/* ═══════════════════════════════════════════════════════════════════════════
   ONHYM MAP v5 — Modern Compact GIS Dashboard
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fullwidth breakout ───────────────────────────────────────────────────── */
.onhym-map-wrapper.onhym-fullwidth {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow-x: hidden;
}

/* Prevent horizontal scrollbar caused by fullwidth breakout (100vw vs page width) */
body:has(.onhym-map-wrapper.onhym-fullwidth) {
    overflow-x: hidden;
}

/* .map {
    --container-max-width: 1280px;
    --container-default-padding-top: 0px;
    --container-default-padding-right:30px;
    --container-default-padding-bottom: 0px;
    --container-default-padding-left:30px;
} */
/* ── Wrapper ──────────────────────────────────────────────────────────────── */

/* ── SVG Markers ──────────────────────────────────────────────────────────── */
.onhym-marker {
    cursor: pointer;
    z-index: 1;
    line-height: 0;
}
.onhym-marker:hover {
    z-index: 10;
}
.onhym-marker-active {
    z-index: 20 !important;
}

/* Visual transforms on the SVG child — never on .onhym-marker itself
   because Mapbox positions that element with inline transform: translate(). */
.onhym-marker-svg {
    display: block;
    overflow: visible;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
    will-change: transform;
}
.onhym-marker:hover .onhym-marker-svg {
    transform: scale(1.18) translateY(-3px);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.onhym-marker-active .onhym-marker-svg {
    transform: scale(1.3) translateY(-5px);
    filter: drop-shadow(0 4px 16px rgba(250,94,7,0.5));
}
/* ─────────────────────────────────────────────────────────────────────────── */

.onhym-map-wrapper {
    position: relative;
    font-family: 'Inter', 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid transparent;
    margin: 0;
    width: 100%;
    box-shadow: 0 0 0 2px rgba(251, 254, 255, 0.893), 0 8px 32px rgb(254, 255, 255);
    overflow: hidden;
}

/* ── Premier plan (fullscreen overlay) ───────────────────────────────────── */
.onhym-map-wrapper.onhym-premier-plan {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ── Native browser fullscreen (Mapbox FullscreenControl) ─────────────────── */
.onhym-map-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.onhym-map-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.onhym-map-wrapper:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
/* Ensure carousel stays visible inside native fullscreen */
.onhym-map-wrapper:fullscreen .onhym-cluster-carousel,
.onhym-map-wrapper:-webkit-full-screen .onhym-cluster-carousel,
.onhym-map-wrapper:-moz-full-screen .onhym-cluster-carousel {
    z-index: 9999 !important;
}
.onhym-map-wrapper:fullscreen .onhym-topbar,
.onhym-map-wrapper:-webkit-full-screen .onhym-topbar,
.onhym-map-wrapper:-moz-full-screen .onhym-topbar {
    z-index: 9998 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAP CONTAINER — fills entire wrapper
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-map-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
}

/* Key fix: clip canvas at the container level — Mapbox never modifies this element's style */
.mapboxgl-map,
.mapboxgl-canvas-container {
    border-radius: 22px !important;
    overflow: hidden !important;
}

/* Redundant but belt-and-suspenders */
.mapboxgl-canvas {
    border-radius: 22px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING GLASS TOOLBAR — compact & strong glass
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-topbar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 54px;
    padding: 9px 10px;
    background: rgba(10, 20, 40, 0.78);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40), 0 1.5px 6px rgba(0, 0, 0, 0.25);
    max-width: calc(100% - 20px);
    white-space: nowrap;
}

/* ── Three sections ─────────────────────────────────────────────────────── */
.onhym-tb-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.onhym-tb-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.onhym-tb-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Vertical divider ───────────────────────────────────────────────────── */
.onhym-tb-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.10);
    flex-shrink: 0;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.onhym-logo {
    font-family: 'Unbounded', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.2px;
    white-space: nowrap;
    text-transform: uppercase;
    user-select: none;
}
.onhym-logo em {
    font-style: normal;
    color: #d4a017;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MINING / HYDROCARBONS — Segmented Tab Container
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-layer-toggles {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 3px;
    gap: 2px;
}

.onhym-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.40);
    font-family: inherit;
    transition: all 0.22s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    position: relative;
}
.onhym-group-btn svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

/* Hover (inactive) */
.onhym-group-btn:hover:not(:disabled):not(.active) {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.06);
}
.onhym-group-btn:hover:not(:disabled) svg { opacity: 1; }
.onhym-group-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Active: Mining — amber highlight */
.onhym-group-btn[data-group="mining"].active {
    background: #ffb400;
    color: #1a1200;
    box-shadow: 0 2px 12px rgba(255,180,0,0.35);
}
.onhym-group-btn[data-group="mining"].active svg { opacity: 1; color: #1a1200; }

/* Active: Hydrocarbons — teal highlight */
.onhym-group-btn[data-group="hydrocarbons"].active {
    background: #00bfa5;
    color: #00291f;
    box-shadow: 0 2px 12px rgba(0,191,165,0.30);
}
.onhym-group-btn[data-group="hydrocarbons"].active svg { opacity: 1; color: #00291f; }

/* SOON badge */
.onhym-soon {
    font-size: 7px;
    font-weight: 800;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLE SWITCHER — segmented pills
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-style-btns {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 3px;
    gap: 2px;
}
.onhym-style-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.onhym-style-btn svg {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}

/* Hover (inactive) */
.onhym-style-btn:hover:not(.active) {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.06);
}
.onhym-style-btn:hover svg { opacity: 0.9; }

/* Active: unified blue highlight */
.onhym-style-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 10px rgba(37,99,235,0.30);
}
.onhym-style-btn.active svg { opacity: 1; }

/* Hide Standard & Satellite buttons */
.onhym-style-btn[data-style="standard"],
.onhym-style-btn[data-style="satellite"] { display: none !important; }

/* Label swapping: full label on desktop, short on mobile */
.onhym-label-short { display: none; }
.onhym-label-full  { display: inline; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACTION BUTTONS — icon + text, right side
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.55) !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.22s ease;
    flex-shrink: 0;
}
.onhym-action-btn svg {
    flex-shrink: 0;
    display: inline-block !important;
    opacity: 0.7;
}
.onhym-action-btn span {
    display: inline !important;
}

/* Hover */
.onhym-action-btn:hover {
    border-color: rgba(255,255,255,0.20) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.12) !important;
}
.onhym-action-btn:hover svg { opacity: 1; }

/* Active (legend open) */
.onhym-action-btn.active {
    border-color: #FA5E07 !important;
    color: #FA5E07 !important;
    background: rgba(250,94,7,0.12) !important;
}
.onhym-action-btn.active svg { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   LEGEND PANEL — glass floating card
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-legend-panel {
    position: absolute;
    bottom: 38px;
    left: 14px;
    z-index: 15;
    background: rgba(10, 20, 40, 0.82);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    overflow: hidden;
    animation: onhym-fade-in 0.2s ease;
}
@keyframes onhym-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.onhym-legend-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #FA5E07;
}
.onhym-legend-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.18s;
}
.onhym-legend-close svg {
    display: block !important;
    stroke: #fff !important;
    fill: none !important;
    flex-shrink: 0;
    pointer-events: none;
}
.onhym-legend-close:hover { background: rgba(250,94,7,0.2); color: #FA5E07; }
.onhym-legend-close:hover svg { stroke: #FA5E07 !important; }

.onhym-legend-list {
    list-style: none;
    margin: 0;
    padding: 10px 14px 14px;
}
.onhym-legend-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    line-height: 1.3;
}
.onhym-legend-list li:last-child { margin-bottom: 0; }

.onhym-ld {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.onhym-ld-sq { border-radius: 2px; }
.onhym-legend-group-title {
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(255,255,255,0.35) !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    pointer-events: none;
}
.onhym-legend-group-title:first-child { margin-top: 0 !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ESC HINT
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-esc-hint {
    display: none;
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.85);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    z-index: 50;
    pointer-events: none;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}
.onhym-premier-plan .onhym-esc-hint { display: flex; }
.onhym-esc-hint kbd {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FLOATING "MAP" BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-mobile-map-btn {
    display: none;                        /* hidden on desktop */
}

@media (max-width: 768px) {
    .onhym-mobile-map-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(16px);
        z-index: 10000;
        pointer-events: none;          /* hidden until map is in view */
        opacity: 0;
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    /* Revealed by IntersectionObserver when map section is near viewport */
    .onhym-mobile-map-btn.onhym-mmb-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    .onhym-mobile-map-btn button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 22px;
        background: #c9a227;
        color: #fff;
        border: none;
        border-radius: 30px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .onhym-mobile-map-btn button:active {
        transform: scale(0.95);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    .onhym-mobile-map-btn button svg {
        flex-shrink: 0;
    }

    /* ── Active state: gold background + white close icon ── */
    .onhym-mobile-map-btn.onhym-mmb-active button {
        background: #c9a227;
        color: #fff;
    }
    .onhym-mobile-map-btn.onhym-mmb-active button svg {
        stroke: #fff;
    }

    /* ── Hide the floating btn when carousel panel is open to avoid overlap ── */
    .onhym-cluster-carousel.open ~ .onhym-mobile-map-btn {
        /* CSS sibling won't work since btn is outside wrapper.
           Handled by raising carousel z-index instead. */
    }

    /* ── Safe-area bottom for notched phones ── */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .onhym-mobile-map-btn {
            bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARKERS
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-marker {
    width: 32px;
    height: 32px;
    /* border-radius: 50%; */
    /* border: 2.5px solid rgba(255,255,255,0.9); */
    cursor: pointer;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 0 0 1.5px rgba(0,0,0,0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.onhym-marker:hover {
    transform: scale(1.25);
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 0 3px rgba(255,255,255,0.25); */
    z-index: 999;
}
.onhym-marker span {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   POPUPS — Modern light card with carousel
   ═══════════════════════════════════════════════════════════════════════════ */
.mapboxgl-popup.onhym-popup {
    max-width: 340px !important;
}
.mapboxgl-popup.onhym-popup .mapboxgl-popup-content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    overflow: visible;
}
.mapboxgl-popup.onhym-popup .mapboxgl-popup-tip {
    border-top-color: #fff;
}
.mapboxgl-popup.onhym-popup .mapboxgl-popup-close-button {
    color: #555 !important;
    font-size: 18px;
    padding: 0;
    background: rgba(255,255,255,0.92) !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 5;
    top: 10px;
    right: 10px;
    transition: all 0.18s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: none !important;
}
.mapboxgl-popup.onhym-popup .mapboxgl-popup-close-button:hover {
    background: #FA5E07 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Card container */
.onhym-pi {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    width: 310px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Inter', 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
}

/* Carousel */
.onhym-carousel {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f7, #dde4ed);
}
.onhym-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.onhym-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}
.onhym-carousel-placeholder svg { opacity: 0.18; }
.onhym-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.18s;
    z-index: 3;
    font-size: 11px;
    padding: 0;
}
.onhym-carousel-nav:hover {
    background: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.22);
    transform: translateY(-50%) scale(1.08);
}
.onhym-carousel-prev { left: 8px; }
.onhym-carousel-next { right: 8px; }
.onhym-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.onhym-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: all 0.2s;
}
.onhym-carousel-dot.active { background: #fff; transform: scale(1.35); }
.onhym-carousel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Header */
.onhym-ph {
    padding: 14px 16px 4px;
    border-left: none;
    background: transparent;
}
.onhym-pb { display: none; }
.onhym-pt {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
}

/* Body */
.onhym-pbd {
    padding: 6px 16px 10px;
    border-top: none;
}
.onhym-pr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 11.5px;
    color: #555;
    line-height: 1.4;
}
.onhym-pr:last-child { margin-bottom: 0; }
.onhym-pico { font-size: 13px; flex-shrink: 0; }
.onhym-pr strong {
    display: inline;
    color: #999;
    font-size: 9px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 4px;
}

/* Divider */
.onhym-pdiv { height: 1px; background: #f0f0f0; margin: 0 16px; }

/* CTA actions */
.onhym-pa {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: none;
    flex-wrap: wrap;
}
.onhym-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 90px;
}
.onhym-btn:hover { transform: translateY(-1px); text-decoration: none; }
.onhym-btn-p {
    background: #FA5E07;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(250,94,7,0.30);
}
.onhym-btn-p:hover { background: #e8540a; box-shadow: 0 6px 20px rgba(250,94,7,0.40); }
.onhym-btn-s {
    background: #fff;
    color: #FA5E07;
    border: 1.5px solid #FA5E07;
}
.onhym-btn-s:hover { background: #fff5f0; }

/* ═══════════════════════════════════════════════════════════════════════════
   MAPBOX CONTROL OVERRIDES — glass style matching toolbar
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-map-wrapper .mapboxgl-ctrl-group {
    background: rgba(10, 20, 40, 0.78) !important;
    backdrop-filter: blur(14px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.5) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35) !important;
    overflow: hidden;
}
.onhym-map-wrapper .mapboxgl-ctrl-group button {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    width: 36px !important;
    height: 36px !important;
    transition: background 0.18s ease !important;
}
.onhym-map-wrapper .mapboxgl-ctrl-group button:last-child {
    border-bottom: none !important;
}
.onhym-map-wrapper .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
    filter: invert(50%) brightness(1.5) !important;
}
.onhym-map-wrapper .mapboxgl-ctrl-group button:hover {
    background: rgba(255,255,255,0.10) !important;
}
.onhym-map-wrapper .mapboxgl-ctrl-group button:hover .mapboxgl-ctrl-icon {
    filter: invert(100%) brightness(1) !important;
}

.onhym-map-wrapper .mapboxgl-ctrl-attrib {
    background: #d5d8dc73 !important;
    font-size: 8px !important;
    border-radius: 4px;
}
.onhym-map-wrapper .mapboxgl-ctrl-attrib a,
.onhym-map-wrapper .mapboxgl-ctrl-attrib-inner {
    color: rgb(2 1 1 / 77%) !important;
}
.onhym-map-wrapper .mapboxgl-ctrl-scale {
    background: rgba(10,20,40,0.7) !important;
    backdrop-filter: blur(8px) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 8px !important;
    font-family: inherit !important;
    border-radius: 6px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLUSTER MARKERS — GeoJSON circle layers
   ═══════════════════════════════════════════════════════════════════════════ */
/* Pulse animation on cluster hover (applied via JS) */
@keyframes onhym-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(250,94,7,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(250,94,7,0); }
    100% { box-shadow: 0 0 0 0 rgba(250,94,7,0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM CLUSTER CAROUSEL — Swiper-powered card tray
   ═══════════════════════════════════════════════════════════════════════════ */
.onhym-cluster-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    background: none;
    padding-bottom: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.onhym-cluster-carousel.active {
    transform: translateY(0);
    opacity: 1;
    /* pointer-events stays none on the wrapper — only children get events */
}

/* ── Carousel header ────────────────────────────────────────────────────── */
.onhym-cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px 4px;
    pointer-events: auto;
}
.onhym-cc-count {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.onhym-cc-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.18s;
    z-index: 50;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button, .mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner {
    display: block;
    PADDING-RIGHT: 9px;
  
}
.onhym-cc-close svg {
    display: block !important;
    flex-shrink: 0;
    stroke: #fff !important;
    fill: none !important;
    pointer-events: none;
    width: 12px;
    height: 12px;
}
.onhym-cc-close:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: scale(1.1);
}

/* ── Carousel body (Swiper + nav arrows) ────────────────────────────────── */
.onhym-cc-body {
    position: relative;
    padding: 0 44px;
    pointer-events: auto;
}

/* ── Navigation arrows ──────────────────────────────────────────────────── */
.onhym-cc-prev,
.onhym-cc-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(10,20,40,0.75);
    color: #fff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: all 0.18s;
    padding: 0;
    line-height: 1;
}
.onhym-cc-prev svg,
.onhym-cc-next svg {
    display: block !important;
    flex-shrink: 0;
    stroke: #fff !important;
    fill: none !important;
    pointer-events: none;
    width: 16px;
    height: 16px;
}
.onhym-cc-prev { left: 4px; margin-left: 7px; }
.onhym-cc-next { right: 4px; }
.onhym-cc-prev:hover,
.onhym-cc-next:hover {
    background: rgba(250,94,7,0.85);
    box-shadow: 0 6px 22px rgba(0,0,0,0.40);
    transform: translateY(-50%) scale(1.08);
}
.onhym-cc-prev:disabled,
.onhym-cc-next:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Swiper overrides — flat horizontal cards ───────────────────────────── */
.onhym-cc-swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden !important;   /* keep cards inside the map wrapper */
    list-style: none;
    padding: 4px 0 14px;
    z-index: 1;
}
.onhym-cc-swiper .swiper-wrapper {
    align-items: flex-start;
}
.onhym-cc-swiper .swiper-slide {
    width: 220px;
    flex-shrink: 0;
    height: auto;
    display: flex;
    align-items: stretch;
    opacity: 0.55;
    transform: scale(0.94);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.onhym-cc-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}
.onhym-cc-swiper .swiper-slide-prev,
.onhym-cc-swiper .swiper-slide-next {
    opacity: 0.75;
    transform: scale(0.97);
}

/* Swiper pagination dots */
.onhym-cc-swiper .swiper-pagination {
    bottom: 0 !important;
}
.onhym-cc-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 7px;
    height: 7px;
    transition: all 0.2s;
}
.onhym-cc-swiper .swiper-pagination-bullet-active {
    background: #FA5E07;
    transform: scale(1.3);
}

/* ── Carousel card ──────────────────────────────────────────────────────── */
.onhym-cc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.20), 0 1px 4px rgba(0,0,0,0.08);
    font-family: 'Inter', 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.onhym-cc-badge {
    display: inline-block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    margin: 10px 10px 4px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.onhym-cc-title {
    margin: 0;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.onhym-cc-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 10px;
}
.onhym-cc-info {
    padding: 0 10px;
}
.onhym-cc-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #555;
    margin-bottom: 2px;
    line-height: 1.3;
}
.onhym-cc-row:last-child { margin-bottom: 0; }
.onhym-cc-ico {
    font-size: 11px;
    flex-shrink: 0;
}
.onhym-cc-row strong {
    display: inline;
    color: #999;
    font-size: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 2px;
}

/* ── Carousel card CTA buttons ──────────────────────────────────────────── */
.onhym-cc-actions {
    display: flex;
    gap: 4px;
    padding: 6px 10px 10px;
}
.onhym-cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}
.onhym-cc-btn:hover { transform: translateY(-1px); text-decoration: none; }
.onhym-cc-btn-p {
    background: #FA5E07;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(250,94,7,0.30);
}
.onhym-cc-btn-p:hover { background: #e8540a; box-shadow: 0 6px 20px rgba(250,94,7,0.40); }
.onhym-cc-btn-s {
    background: #fff;
    color: #FA5E07;
    border: 1.5px solid #FA5E07;
}
.onhym-cc-btn-s:hover { background: #fff5f0; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet: compact single row with scroll
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .onhym-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 6px;
        gap: 6px;
        border-radius: 12px;
    }
    .onhym-topbar::-webkit-scrollbar { display: none; }

    .onhym-tb-left,
    .onhym-tb-center,
    .onhym-tb-right {
        flex: 0 0 auto;
    }
    .onhym-style-btn {
        padding: 0 10px;
        height: 32px;
        font-size: 9.5px;
    }
    .onhym-group-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }
    .onhym-action-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 10px;
        border-radius: 8px;
    }
    /* Carousel — tablet */
    .onhym-cc-swiper .swiper-slide { width: 260px; height: auto; }
    .onhym-cc-body { padding: 0 40px; }
    .onhym-cc-prev { left: 4px; }
    .onhym-cc-next { right: 4px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile: Compact two-row toolbar
   Row 1: Logo + Mining | Hydrocarbons  (segmented pill)
   Row 2: Std | Dark | Light | Sat  +  [≡] [⛶]
   Thin, compact, doesn't block the map
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    /* Safe-area support for notch phones */
    .onhym-map-wrapper {
        padding-top: env(safe-area-inset-top);
    }

    .onhym-topbar {
        top: 5px;
        top: calc(5px + env(safe-area-inset-top));
        left: 5px;
        right: 5px;
        transform: none;
        max-width: none;
        height: auto;
        padding: 3px 5px;
        gap: 3px;
        border-radius: 11px;
        flex-wrap: wrap;
        overflow: visible;
        white-space: nowrap;
    }

    /* ── Row 1: Logo + Layer toggles ── */
    .onhym-tb-left {
        flex: 1 0 100%;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .onhym-logo {
        font-size: 9.5px;
        letter-spacing: 0.7px;
        flex-shrink: 0;
    }
    .onhym-tb-divider {
        height: 16px;
    }
    .onhym-layer-toggles {
        flex: 1;
        padding: 2px;
        gap: 1px;
        border-radius: 16px;
    }
    .onhym-group-btn {
        flex: 1;
        justify-content: center;
        height: 28px;
        padding: 0 8px;
        font-size: 10px;
        font-weight: 700;
        gap: 4px;
        border-radius: 14px;
    }
    .onhym-group-btn svg {
        width: 11px;
        height: 11px;
    }
    .onhym-group-btn span { display: inline !important; }
    .onhym-soon {
        font-size: 6px;
        padding: 1px 4px;
    }

    /* ── Row 2: Style switcher + action icons ── */
    .onhym-tb-center {
        flex: 1 1 auto;
        min-width: 0;
    }
    .onhym-style-btns {
        padding: 2px;
        width: auto;
        flex: 1;
        gap: 1px;
        border-radius: 16px;
    }
    .onhym-style-btn {
        flex: 1;
        justify-content: center;
        height: 28px;
        padding: 0 6px;
        font-size: 9.5px;
        font-weight: 600;
        gap: 3px;
        border-radius: 14px;
    }
    .onhym-style-btn svg {
        display: inline-block;
        width: 11px;
        height: 11px;
    }

    /* Short labels on mobile */
    .onhym-label-full  { display: none !important; }
    .onhym-label-short { display: inline !important; }

    /* ── Right: icon-only action buttons, large touch targets ── */
    .onhym-tb-right {
        flex: 0 0 auto;
        gap: 3px;
        margin-left: 0;
    }
    .onhym-expand-btn {
        display: none !important;
    }
    .onhym-action-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 10px;
        min-width: 38px;
    }
    .onhym-action-btn span {
        display: none !important;
    }
    .onhym-action-btn svg {
        width: 17px !important;
        height: 17px !important;
        opacity: 0.85;
    }

    /* ── Push Mapbox controls well below the toolbar ── */
    .onhym-map-wrapper .mapboxgl-ctrl-top-left {
        top: 90px !important;
        top: calc(90px + env(safe-area-inset-top)) !important;
    }
    .onhym-map-wrapper .mapboxgl-ctrl-top-right {
        top: 90px !important;
        top: calc(90px + env(safe-area-inset-top)) !important;
    }

    /* Popup on mobile */
    .onhym-pi { width: 280px; }
    .onhym-carousel { height: 130px; }

    /* Carousel — mobile */
    .onhym-cluster-carousel { padding-bottom: 12px; }
    .onhym-cc-header { padding: 10px 14px 4px; }
    .onhym-cc-count { font-size: 10px; }
    .onhym-cc-close { width: 26px; height: 26px; }
    .onhym-cc-body { padding: 0 34px; }
    .onhym-cc-swiper .swiper-slide { width: 240px; height: auto; }
    .onhym-cc-card { border-radius: 14px; }
    .onhym-cc-badge { font-size: 7px; padding: 4px 10px; margin: 12px 12px 6px; }
    .onhym-cc-title { font-size: 13px; padding: 0 12px; }
    .onhym-cc-divider { margin: 8px 12px; }
    .onhym-cc-info { padding: 0 12px; }
    .onhym-cc-row { font-size: 10.5px; gap: 6px; margin-bottom: 3px; }
    .onhym-cc-ico { font-size: 12px; }
    .onhym-cc-actions { padding: 8px 12px 12px; gap: 5px; }
    .onhym-cc-btn { padding: 8px 10px; font-size: 9px; border-radius: 8px; }
    .onhym-cc-prev,
    .onhym-cc-next { width: 30px; height: 30px; }
    .onhym-cc-prev { left: 2px; }
    .onhym-cc-next { right: 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Small phones (≤ 400px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .onhym-topbar {
        left: 3px;
        right: 3px;
        padding: 12px 0px;
        top: 6px;
        gap: 2px;
        border-radius: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .onhym-topbar::-webkit-scrollbar { display: none; }
    .onhym-logo { font-size: 8.5px; letter-spacing: 0.4px; }
    .onhym-tb-divider { height: 14px; }
    .onhym-layer-toggles { padding: 2px; }
    .onhym-group-btn {
        height: 26px;
        padding: 0 6px;
        font-size: 9px;
        /* min touch target via pseudo */
        position: relative;
    }
    .onhym-group-btn::after {
        content: '';
        position: absolute;
        inset: -4px -2px;
    }
    .onhym-group-btn svg { width: 10px; height: 10px; }
    .onhym-style-btns { padding: 2px; gap: 0; }
    .onhym-style-btn {
        height: 26px;
        padding: 0 5px;
        font-size: 8.5px;
        position: relative;
    }
    .onhym-style-btn::after {
        content: '';
        position: absolute;
        inset: -4px -2px;
    }
    .onhym-style-btn svg { display: none; }
    .onhym-action-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px;
    }
    .onhym-action-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
    .onhym-map-wrapper .mapboxgl-ctrl-top-left {
        top: 82px !important;
        top: calc(140px + env(safe-area-inset-top)) !important;
    }
    .onhym-map-wrapper .mapboxgl-ctrl-top-right {
        top: 82px !important;
        top: calc(82px + env(safe-area-inset-top)) !important;
    }

    /* Carousel — small phones */
    .onhym-cc-swiper .swiper-slide { width: 220px; height: auto; }
    .onhym-cc-body { padding: 0 30px; }
    .onhym-cc-prev,
    .onhym-cc-next { width: 26px; height: 26px; }
    .onhym-cc-prev svg,
    .onhym-cc-next svg { width: 12px; height: 12px; }
    .onhym-cc-title { font-size: 12px; }
    .onhym-cc-row { font-size: 10px; }
    .onhym-cc-btn { font-size: 8.5px; padding: 7px 8px; }
}