/* =========================================================
   SDR PREMIUM OPENLAYERS ZOOM CONTROL
   Glass / SaaS / Minimal Capsule
   ========================================================= */

.ol-zoom {
    position: absolute !important;
    top: 80px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1100 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;

    padding: 3px !important;
    box-sizing: border-box !important;

    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.88),
        rgba(255, 255, 255, 0.70)
    ) !important;

    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 18px 38px rgba(15, 23, 42, 0.10) !important;

    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);

    user-select: none;
    -webkit-user-select: none;
    isolation: isolate;

    animation: sdr-zoom-enter 0.5s cubic-bezier(.16, 1, .3, 1) both;
}

/* Subtle outer ring highlight */
.ol-zoom::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(207, 244, 228, 0.30),
        rgba(255, 255, 255, 0.85)
    );
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   ZOOM BUTTONS (+ / -)
   ========================================================= */

.ol-zoom button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 50% !important;
    outline: none !important;

    background: transparent !important;
    color: #173b38 !important;

    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s cubic-bezier(.16, 1, .3, 1),
        box-shadow 0.25s ease !important;
}

/* Subtle separator between + and - */
.ol-zoom .ol-zoom-in {
    border-bottom: 1px solid rgba(7, 145, 130, 0.12) !important;
    border-radius: 999px 999px 0 0 !important;
}

.ol-zoom .ol-zoom-out {
    border-radius: 0 0 999px 999px !important;
}

/* =========================================================
   ZOOM HOVER & ACTIVE
   ========================================================= */

.ol-zoom button:hover {
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #e8faf2 100%
    ) !important;

    color: #078e80 !important;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(7, 145, 130, 0.12) !important;

    transform: scale(1.08) !important;
    z-index: 2;
}

.ol-zoom button:active {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
}

.ol-zoom button:focus-visible {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 4px rgba(7, 145, 130, 0.35) !important;
    z-index: 3;
}

/* =========================================================
   MOBILE & RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .ol-zoom {
        top: 75px !important;
        left: 10px !important;
        padding: 2.5px !important;
    }

    .ol-zoom button {
        width: 32px !important;
        height: 32px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 380px) {
    .ol-zoom {
        top: 68px !important;
        left: 8px !important;
        padding: 2px !important;
    }

    .ol-zoom button {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
}

/* =========================================================
   ENTRANCE ANIMATION & ACCESSIBILITY
   ========================================================= */

@keyframes sdr-zoom-enter {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ol-zoom {
        animation: none !important;
    }
    .ol-zoom button {
        transition: none !important;
    }
}