/*!
 * ONHYM Strategic Zones – Premium Dashboard Skin
 * Scope: every selector is namespaced under `.onhym-sz-dashboard` so it cannot
 * leak into the rest of the WordPress / Elementor stack or affect other maps.
 */



.onhym-sz-dashboard *,
.onhym-sz-dashboard *::before,
.onhym-sz-dashboard *::after { box-sizing: border-box; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.onhym-sz-header {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}
.onhym-sz-header .onhym-sz-subtitle { margin-left: auto; margin-right: auto; }
.onhym-sz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 59, 46, 0.08), rgba(201, 162, 74, 0.12));
    color: var(--sz-emerald-700);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.onhym-sz-eyebrow .onhym-sz-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sz-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.18);
    animation: onhymSzPulse 2.4s ease-in-out infinite;
}
@keyframes onhymSzPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.18); }
    50%      { box-shadow: 0 0 0 9px rgba(201, 162, 74, 0.05); }
}
.onhym-sz-title {
    margin: 14px 0 8px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--sz-emerald-900);
    letter-spacing: -0.01em;
}
.onhym-sz-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sz-ink-soft);
    max-width: 640px;
}

/* ─── Hero map stage (single container hosting everything) ────────────── */
.onhym-sz-stage {
    position: relative;
    width: 100%;
    height: clamp(640px, 78vh, 880px);
    border-radius: var(--sz-radius);
    overflow: hidden;
    background:
        radial-gradient(80% 60% at 30% 0%, #f3ead0 0%, transparent 60%),
        linear-gradient(180deg, var(--sz-beige-100), var(--sz-beige-200));
    box-shadow:
        0 40px 80px -40px rgba(8, 42, 32, 0.32),
        0 12px 28px -16px rgba(8, 42, 32, 0.18);
    border: 1px solid rgba(14, 59, 46, 0.06);
}
.onhym-sz-canvas {
    position: absolute; inset: 0;
    border-radius: var(--sz-radius);
    overflow: hidden;
}

/* ─── Floating LEFT sidebar (inside map, dark emerald glass) ──────────── */
.onhym-sz-sidebar {
    position: absolute;
    top: 22px; left: 22px; bottom: 22px;
    z-index: 8;
    width: 290px; max-width: calc(100% - 44px);
    display: flex; flex-direction: column;
    padding: 20px 18px;
    border-radius: 18px;
    color: #e8f1ec;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(201, 162, 74, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(14, 59, 46, 0.94) 0%, rgba(8, 42, 32, 0.94) 100%);
    box-shadow:
        0 22px 50px -24px rgba(8, 42, 32, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .45s var(--sz-ease), opacity .45s var(--sz-ease);
}
.onhym-sz-sidebar::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(80% 50% at 100% 100%, rgba(31, 138, 82, 0.18), transparent 70%);
    pointer-events: none;
}
.onhym-sz-side-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.onhym-sz-side-title {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    color: var(--sz-gold-soft);
    letter-spacing: 0.04em;
}
.onhym-sz-collapse {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: rgba(232, 241, 236, 0.6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background .25s, color .25s;
}
.onhym-sz-collapse:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.onhym-sz-side-hint {
    margin: 6px 0 18px;
    font-size: 12px; line-height: 1.55;
    color: rgba(232, 241, 236, 0.55);
}

/* Toggle list (scrollable when too tall) */
.onhym-sz-toggle-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 74, 0.35) transparent;
    padding-right: 4px;
}
.onhym-sz-toggle-list::-webkit-scrollbar { width: 5px; }
.onhym-sz-toggle-list::-webkit-scrollbar-thumb { background: rgba(201, 162, 74, 0.35); border-radius: 4px; }
.onhym-sz-toggle {
    position: relative;
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background .3s, border-color .3s, transform .3s var(--sz-ease);
    overflow: hidden;
}
.onhym-sz-toggle::before {
    content: "";
    position: absolute; left: 0; top: 10px; bottom: 10px;
    width: 3px; border-radius: 3px;
    background: var(--sz-accent, var(--sz-gold));
    opacity: 0;
    transition: opacity .3s, transform .3s var(--sz-ease);
    transform: scaleY(0.4);
}
.onhym-sz-toggle.is-active { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.onhym-sz-toggle.is-active::before { opacity: 1; transform: scaleY(1); }
.onhym-sz-toggle:hover { transform: translateX(2px); }

.onhym-sz-toggle-row {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; margin: 0;
}
.onhym-sz-toggle-icon {
    flex: 0 0 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--sz-accent, var(--sz-gold));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background .3s, color .3s;
}
.onhym-sz-toggle.is-active .onhym-sz-toggle-icon {
    background: color-mix(in srgb, var(--sz-accent, var(--sz-gold)) 18%, transparent);
    color: #fff;
}
.onhym-sz-toggle-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onhym-sz-toggle-label { font-size: 13px; font-weight: 600; color: #f3f8f5; }
.onhym-sz-toggle-desc  { font-size: 11px; color: rgba(232, 241, 236, 0.5); line-height: 1.35; }

/* Switch */
.onhym-sz-switch { position: relative; display: inline-block; flex: 0 0 auto; }
.onhym-sz-switch-input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.onhym-sz-switch-track {
    display: block; width: 34px; height: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    position: relative;
    transition: background .35s var(--sz-ease);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.onhym-sz-switch-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f3f8f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    transition: transform .35s var(--sz-ease), background .25s;
}
.onhym-sz-switch-input:checked ~ .onhym-sz-switch-track {
    background: color-mix(in srgb, var(--sz-accent, var(--sz-gold)) 70%, var(--sz-emerald-600));
    border-color: transparent;
}
.onhym-sz-switch-input:checked ~ .onhym-sz-switch-track .onhym-sz-switch-thumb {
    transform: translateX(14px);
    background: #fff;
}
.onhym-sz-switch-input:focus-visible ~ .onhym-sz-switch-track {
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.4);
}

.onhym-sz-toggle-bar {
    display: block;
    height: 2px; width: 100%; margin-top: 10px;
    background: linear-gradient(90deg, var(--sz-accent, var(--sz-gold)) 0%, transparent 100%);
    opacity: 0; transform-origin: left;
    transform: scaleX(.2);
    transition: opacity .4s var(--sz-ease), transform .55s var(--sz-ease);
    border-radius: 2px;
}
.onhym-sz-toggle.is-active .onhym-sz-toggle-bar { opacity: .55; transform: scaleX(1); }

/* Sidebar footer */
.onhym-sz-side-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.onhym-sz-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--sz-gold-soft);
    background: rgba(201, 162, 74, 0.08);
    border: 1px solid rgba(201, 162, 74, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s var(--sz-ease);
}
.onhym-sz-btn-ghost:hover { background: rgba(201, 162, 74, 0.18); color: #fff; transform: translateY(-1px); }
.onhym-sz-active-meta {
    font-size: 11px; color: rgba(232, 241, 236, 0.55);
    display: inline-flex; align-items: center; gap: 6px;
}
.onhym-sz-active-count {
    font-size: 14px; font-weight: 700; color: var(--sz-gold-soft);
}

/* ─── Embedded map frame (fills the whole stage) ─────────────────────── */
.onhym-sz-map-frame {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: var(--sz-radius);
    overflow: hidden;
    z-index: 1;
}
.onhym-sz-map-frame > .onhym-map-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--sz-radius) !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}
.onhym-sz-map-frame .onhym-map-container { width: 100%; height: 100%; }

/* Inset overview (bottom-left of map, away from the floating sidebar) */
.onhym-sz-inset {
    position: absolute;
    bottom: 22px; left: calc(22px + 290px + 16px);
    width: 118px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 10px 24px -14px rgba(8, 42, 32, 0.35);
    border: 1px solid rgba(14, 59, 46, 0.06);
    z-index: 6;
    pointer-events: none;
    animation: onhymSzFadeIn .8s var(--sz-ease) .2s both;
}
.onhym-sz-inset-head {
    font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--sz-emerald-700);
    margin: 2px 0 6px 4px;
}
.onhym-sz-inset-svg { width: 100%; height: auto; display: block; }
.onhym-sz-inset-viewport { animation: onhymSzInsetPulse 3s ease-in-out infinite; }
@keyframes onhymSzInsetPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .45; }
}

/* Decorative city labels (very subtle so they do not clash with the live map labels) */
.onhym-sz-city-overlay {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .6s var(--sz-ease);
}
.onhym-sz-dashboard.sz-labels-on .onhym-sz-city-overlay { opacity: 1; }
.onhym-sz-city {
    position: absolute;
    display: inline-flex; align-items: center; gap: 6px;
    transform: translate(-50%, -50%);
    font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sz-emerald-900);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    border: 1px solid rgba(14, 59, 46, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.onhym-sz-city-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--sz-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.25);
}

/* Mobile floating triggers (hidden on desktop) */
.onhym-sz-mobile-trigger {
    display: none;
    position: absolute;
    z-index: 7;
    align-items: center; gap: 8px;
    padding: 9px 14px;
    font-size: 12px; font-weight: 600;
    color: #fff;
    background: var(--sz-emerald-800);
    border: 1px solid rgba(201, 162, 74, 0.4);
    border-radius: 999px;
    box-shadow: 0 8px 20px -10px rgba(8, 42, 32, 0.5);
    cursor: pointer;
}
.onhym-sz-mobile-trigger--layers { top: 16px; left: 16px; }
.onhym-sz-mobile-trigger--legend { top: 16px; right: 16px; background: #fff; color: var(--sz-emerald-800); border-color: rgba(14, 59, 46, 0.15); }

/* ─── Floating RIGHT legend (inside map, glass beige) ─────────────────── */
.onhym-sz-legend {
    position: absolute;
    top: 22px; right: 22px; bottom: 22px;
    z-index: 8;
    width: 280px; max-width: calc(100% - 44px);
    display: flex; flex-direction: column;
    padding: 20px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(251, 246, 234, 0.88) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        0 22px 50px -28px rgba(8, 42, 32, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(14, 59, 46, 0.06);
    color: var(--sz-emerald-900);
    transition: transform .45s var(--sz-ease), opacity .45s var(--sz-ease);
    overflow: hidden;
}
.onhym-sz-legend > .onhym-sz-legend-group:last-child,
.onhym-sz-legend > div { flex: 0 0 auto; }
.onhym-sz-legend { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(14, 59, 46, 0.18) transparent; }
.onhym-sz-legend::-webkit-scrollbar { width: 5px; }
.onhym-sz-legend::-webkit-scrollbar-thumb { background: rgba(14, 59, 46, 0.18); border-radius: 4px; }
.onhym-sz-legend-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(14, 59, 46, 0.12);
}
.onhym-sz-legend-head h3 {
    margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--sz-emerald-900);
}
.onhym-sz-legend-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
    padding: 3px 8px; border-radius: 6px;
    color: var(--sz-emerald-900);
    background: rgba(201, 162, 74, 0.22);
    border: 1px solid rgba(201, 162, 74, 0.4);
}
.onhym-sz-legend-group { margin-bottom: 18px; }
.onhym-sz-legend-group:last-child { margin-bottom: 0; }
.onhym-sz-legend-group h4 {
    margin: 0 0 10px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sz-emerald-700);
}
.onhym-sz-legend-group ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 9px;
}
.onhym-sz-legend-group li {
    display: flex; align-items: center; gap: 12px;
    font-size: 12.5px; color: var(--sz-ink);
}

/* Legend line tokens */
.onhym-sz-line {
    flex: 0 0 36px; height: 4px; border-radius: 4px;
    background: var(--sz-line-existing);
    position: relative;
}
.onhym-sz-line--existing {
    background: var(--sz-line-existing);
    box-shadow: 0 0 0 2px rgba(31, 138, 82, 0.18);
}
.onhym-sz-line--dev {
    background: repeating-linear-gradient(90deg, var(--sz-line-dev) 0 6px, transparent 6px 10px);
    box-shadow: none;
    height: 3px;
}
.onhym-sz-line--planned {
    background: repeating-linear-gradient(90deg, var(--sz-line-planned) 0 2px, transparent 2px 5px);
    height: 3px;
}
.onhym-sz-line--aagp {
    background: repeating-linear-gradient(90deg, var(--sz-line-aagp) 0 5px, transparent 5px 9px);
    height: 3px;
}
.onhym-sz-line--maritime {
    background: repeating-linear-gradient(90deg, var(--sz-line-maritime) 0 3px, transparent 3px 7px);
    height: 3px;
}

/* Legend icon tokens */
.onhym-sz-ico {
    flex: 0 0 22px; height: 22px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 700;
    background: var(--sz-emerald-600);
    box-shadow: 0 2px 6px rgba(14, 59, 46, 0.18);
}
.onhym-sz-ico--lng     { background: linear-gradient(135deg, #1b6f8c, #154f64); }
.onhym-sz-ico--storage { background: linear-gradient(135deg, #2c8b6b, #14503f); }
.onhym-sz-ico--hub     { background: linear-gradient(135deg, #c9a24a, #a07b2c); color: #fff; }
.onhym-sz-ico--power   { background: linear-gradient(135deg, #e29a2c, #b56f17); }
.onhym-sz-ico--node    { background: linear-gradient(135deg, #7cc58a, #3f8b58); }
.onhym-sz-ico--gateway { background: linear-gradient(135deg, #6f6ae8, #3d3aa3); }
.onhym-sz-ico::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.85);
}
.onhym-sz-ico--lng::before     { border-radius: 0; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.onhym-sz-ico--storage::before { border-radius: 50%; }
.onhym-sz-ico--node::before    { border-radius: 50%; width: 6px; height: 6px; }
.onhym-sz-ico--gateway::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ─── Bottom infrastructure cards ────────────────────────────────────── */
.onhym-sz-cards {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.onhym-sz-card {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: var(--sz-radius);
    background: #fff;
    border: 1px solid rgba(14, 59, 46, 0.08);
    box-shadow: var(--sz-shadow-sm);
    overflow: hidden;
    transition: transform .35s var(--sz-ease), box-shadow .35s var(--sz-ease);
    cursor: pointer;
}
.onhym-sz-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--sz-line-existing);
}
.onhym-sz-card--dev::before     { background: var(--sz-line-dev); }
.onhym-sz-card--planned::before { background: var(--sz-line-planned); }
.onhym-sz-card--aagp::before    { background: var(--sz-line-aagp); }
.onhym-sz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sz-shadow-md);
}
.onhym-sz-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.onhym-sz-card-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    color: var(--sz-emerald-800);
    background: rgba(31, 138, 82, 0.1);
    border: 1px solid rgba(31, 138, 82, 0.2);
}
.onhym-sz-card--dev .onhym-sz-card-tag {
    color: #8a5a14; background: rgba(226, 154, 44, 0.12); border-color: rgba(226, 154, 44, 0.3);
}
.onhym-sz-card--planned .onhym-sz-card-tag {
    color: #2e6c46; background: rgba(124, 197, 138, 0.18); border-color: rgba(124, 197, 138, 0.4);
}
.onhym-sz-card--aagp .onhym-sz-card-tag {
    color: #3d3aa3; background: rgba(111, 106, 232, 0.12); border-color: rgba(111, 106, 232, 0.3);
}
.onhym-sz-card-arrow {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: var(--sz-emerald-700);
    background: rgba(14, 59, 46, 0.06);
    transition: background .25s, transform .35s var(--sz-ease);
}
.onhym-sz-card:hover .onhym-sz-card-arrow {
    background: var(--sz-emerald-800);
    color: var(--sz-gold-soft);
    transform: translate(2px, -2px);
}
.onhym-sz-card-title {
    margin: 0 0 8px;
    font-size: 15px; font-weight: 700; line-height: 1.3;
    color: var(--sz-emerald-900);
}
.onhym-sz-card-desc {
    margin: 0 0 14px;
    font-size: 12.5px; line-height: 1.55; color: var(--sz-ink-soft);
}
.onhym-sz-card-foot {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(14, 59, 46, 0.1);
}
.onhym-sz-card-kpi {
    font-size: 11px; font-weight: 600;
    color: var(--sz-emerald-800);
    padding: 3px 9px; border-radius: 6px;
    background: var(--sz-beige-100);
    border: 1px solid rgba(201, 162, 74, 0.25);
}

/* ─── Animated pipeline overlay layers (added via Mapbox API in JS) ───
   We expose CSS custom props so the JS layer can read computed colors. */
.onhym-sz-dashboard[data-sz-layer-existing="off"]    .onhym-sz-toggle[data-layer="existing"]    { opacity: .55; }
.onhym-sz-dashboard[data-sz-layer-development="off"] .onhym-sz-toggle[data-layer="development"] { opacity: .55; }
.onhym-sz-dashboard[data-sz-layer-planned="off"]     .onhym-sz-toggle[data-layer="planned"]     { opacity: .55; }
.onhym-sz-dashboard[data-sz-layer-aagp="off"]        .onhym-sz-toggle[data-layer="aagp"]        { opacity: .55; }

/* ─── Entrance animations ────────────────────────────────────────────── */
.onhym-sz-header,
.onhym-sz-stage,
.onhym-sz-sidebar,
.onhym-sz-legend {
    animation: onhymSzFadeIn .7s var(--sz-ease) both;
}
.onhym-sz-stage   { animation-delay: .08s; }
.onhym-sz-sidebar { animation-delay: .22s; }
.onhym-sz-legend  { animation-delay: .28s; }
@keyframes onhymSzFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .onhym-sz-stage { height: clamp(620px, 72vh, 820px); }
    .onhym-sz-sidebar { width: 260px; }
    .onhym-sz-legend  { width: 250px; }
    .onhym-sz-inset   { left: calc(22px + 260px + 14px); }
}
@media (max-width: 980px) {
    /* Switch sidebar & legend to collapsible drawers; the map stays dominant. */
    .onhym-sz-sidebar,
    .onhym-sz-legend {
        top: 0; bottom: 0;
        height: 100%;
        width: min(82%, 320px);
        border-radius: 0;
        z-index: 20;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-110%);
    }
    .onhym-sz-sidebar { left: 0;  border-radius: 0 18px 18px 0; }
    .onhym-sz-legend  { left: auto; right: 0; transform: translateX(110%); border-radius: 18px 0 0 18px; }
    .onhym-sz-dashboard.sz-sidebar-open .onhym-sz-sidebar,
    .onhym-sz-dashboard.sz-legend-open  .onhym-sz-legend {
        opacity: 1; pointer-events: auto; transform: translateX(0);
    }
    .onhym-sz-mobile-trigger { display: inline-flex; }
    .onhym-sz-inset { left: 16px; bottom: 16px; width: 96px; }
}
@media (max-width: 640px) {
    .onhym-sz-dashboard { padding: 20px 12px 28px; margin: 16px 0; border-radius: 0; }
    .onhym-sz-stage { height: clamp(520px, 78vh, 720px); border-radius: 16px; }
    .onhym-sz-title { font-size: 24px; }
    .onhym-sz-subtitle { font-size: 13.5px; }
    .onhym-sz-inset { display: none; }
}

/* Missing-dependency notice */
.onhym-sz-missing {
    padding: 18px 22px; margin: 16px 0;
    border-radius: 14px;
    background: #fff7e6;
    color: #8a5a14;
    border: 1px solid #f0d59b;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .onhym-sz-dashboard *,
    .onhym-sz-dashboard *::before,
    .onhym-sz-dashboard *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ──────────────────────────────────────────────────────────────────
   INSTITUTIONAL MARKER SKIN
   Overrides the look of the core onhym-map plugin markers when they
   are rendered inside our dashboard. The plugin still owns the data,
   the coordinates and the click logic — we only restyle the DOM.
   Selectors are scoped to .onhym-sz-dashboard so other pages keep
   the original plugin markers untouched.
   ────────────────────────────────────────────────────────────────── */

.onhym-sz-dashboard .mapboxgl-marker .onhym-marker {
    /* shrink the box; plugin uses 'bottom' anchor so the bottom edge stays
       on the geographic point. */
    width: 22px;
    height: 26px;
    line-height: 0;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(8, 42, 32, 0.18));
    transition: transform 0.18s ease, filter 0.18s ease;
    cursor: pointer;
}

.onhym-sz-dashboard .mapboxgl-marker .onhym-marker .sz-skin-svg {
    display: block;
    width: 22px;
    height: 26px;
    overflow: visible;
}

.onhym-sz-dashboard .mapboxgl-marker .onhym-marker .sz-skin-svg .sz-skin-halo {
    transition: opacity 0.18s ease, r 0.18s ease;
}

/* Hover — subtle technical lift, no cartoon bounce */
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(8, 42, 32, 0.28));
    z-index: 5;
}
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker:hover .sz-skin-svg .sz-skin-halo {
    opacity: 0.18;
}

/* Active marker (selected) — soft gold ring */
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker-active .sz-skin-svg rect:nth-of-type(1),
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker.onhym-marker-active .sz-skin-svg rect:nth-of-type(1) {
    stroke: #c9a24a;
    stroke-width: 1.8;
}
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker-active .sz-skin-svg .sz-skin-halo {
    opacity: 0.22;
    r: 12.5;
}

/* Make the plugin's enter-animation invisible (the teardrop scale/translate
   classes target the old SVG and would shift our flat node oddly). */
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker.onhym-marker-enter .sz-skin-svg,
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker.onhym-marker-enter.is-in .sz-skin-svg {
    transform: none !important;
    opacity: 1 !important;
}

/* Subtle, institutional city / place labels rendered by Mapbox base style */
.onhym-sz-dashboard .mapboxgl-canvas-container .mapboxgl-marker.mapboxgl-marker-anchor-center {
    /* leave centered markers (some plugin variants) untouched */
}

/* Soften Mapbox-rendered text symbols via the canvas — no DOM hook for these,
   so this CSS targets only popup typography and our own labels. */
.onhym-sz-dashboard .mapboxgl-popup-content {
    border-radius: 14px;
    border: 1px solid rgba(14, 59, 46, 0.12);
    box-shadow: 0 18px 42px -22px rgba(8, 42, 32, 0.45);
    font-family: 'Inter', system-ui, sans-serif;
    color: #1f2a26;
    padding: 14px 16px;
}
.onhym-sz-dashboard .mapboxgl-popup-content strong,
.onhym-sz-dashboard .mapboxgl-popup-content h3,
.onhym-sz-dashboard .mapboxgl-popup-content h4 {
    color: #0e3b2e;
    letter-spacing: 0.01em;
    font-weight: 700;
}
.onhym-sz-dashboard .mapboxgl-popup-tip {
    border-top-color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────
   MINIMAL ATLAS LAYOUT
   Hide the core plugin's own chrome (topbar tabs, legend panel,
   click-to-interact overlay) so our floating sidebar + legend become
   the only UI. Everything is scoped to the dashboard so other pages
   that embed [onhym_map] keep their original chrome.
   ────────────────────────────────────────────────────────────────── */

/* 1. Kill the plugin's top header strip (Mining / Hydrocarbons / Midstream / Legend tab). */
.onhym-sz-dashboard .onhym-topbar,
.onhym-sz-dashboard .onhym-tb-left,
.onhym-sz-dashboard .onhym-tb-right,
.onhym-sz-dashboard .onhym-layer-toggles,
.onhym-sz-dashboard .onhym-group-btn,
.onhym-sz-dashboard .onhym-legend-btn,
.onhym-sz-dashboard .onhym-legend-panel,
.onhym-sz-dashboard .onhym-tb-divider,
.onhym-sz-dashboard .onhym-logo {
    display: none !important;
}

/* 2. Remove the dark "click-to-interact" lock overlay completely.
      The map is meant to be interactive immediately inside the dashboard. */
.onhym-sz-dashboard .onhym-interact-overlay,
.onhym-sz-dashboard .onhym-interact-pill,
.onhym-sz-dashboard .onhym-map-wrapper.onhym-locked .onhym-interact-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    pointer-events: none !important;
}
.onhym-sz-dashboard .onhym-map-wrapper.onhym-locked .onhym-map-container {
    filter: none !important;
}

/* Force the "unlocked" state visually so the plugin's CSS can't re-blur the map. */
.onhym-sz-dashboard .onhym-map-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 3. Lighten the wrapper itself — institutional editorial tone. */
.onhym-sz-dashboard .onhym-sz-map-frame .onhym-map-wrapper {
    background: #f7f3ea !important;          /* warm beige paper */
    border: 1px solid rgba(14, 59, 46, 0.08) !important;
    border-radius: var(--sz-radius) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 18px 38px -28px rgba(8, 42, 32, 0.18) !important;
    overflow: hidden;
}
.onhym-sz-dashboard .onhym-sz-map-frame .onhym-map-container {
    background: #f7f3ea !important;
}

/* Remove any heavy filter/saturation the plugin may apply to the canvas. */
.onhym-sz-dashboard .mapboxgl-canvas-container,
.onhym-sz-dashboard .mapboxgl-canvas {
    filter: none !important;
}

/* 4. Mapbox controls (zoom +/−, compass, fullscreen) — minimal institutional chips. */
.onhym-sz-dashboard .mapboxgl-ctrl-group {
    border-radius: 12px !important;
    box-shadow: 0 6px 18px -10px rgba(8, 42, 32, 0.25) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(14, 59, 46, 0.08) !important;
    overflow: hidden;
}
.onhym-sz-dashboard .mapboxgl-ctrl-group button {
    width: 32px !important;
    height: 32px !important;
    background-color: transparent !important;
}
.onhym-sz-dashboard .mapboxgl-ctrl-group button + button {
    border-top: 1px solid rgba(14, 59, 46, 0.08) !important;
}
.onhym-sz-dashboard .mapboxgl-ctrl-group button:hover {
    background-color: rgba(14, 59, 46, 0.05) !important;
}

/* 5. Mapbox attribution — keep it visible but discreet (legal requirement). */
.onhym-sz-dashboard .mapboxgl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #4b5b54 !important;
    font-size: 10px !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.onhym-sz-dashboard .mapboxgl-ctrl-attrib a { color: #0e3b2e !important; }

/* 6. Now that the topbar is gone, give the map full vertical breathing room. */
.onhym-sz-dashboard .onhym-sz-stage .onhym-sz-map-frame {
    inset: 0 !important;
}
.onhym-sz-dashboard .onhym-sz-stage .onhym-map-wrapper,
.onhym-sz-dashboard .onhym-sz-stage .onhym-map-container {
    height: 100% !important;
    min-height: 100% !important;
}

/* ═════════════════════════════════════════════════════════════════
   FINAL CLEANUP — minimal institutional atlas controls
   - hide the inset overview minimap
   - hide every Mapbox button except zoom +/-
   - hide the plugin's own fullscreen action
   ════════════════════════════════════════════════════════════════ */

/* Remove the inset “Overview” minimap card entirely. */
.onhym-sz-dashboard .onhym-sz-inset {
    display: none !important;
}

/* Mapbox Navigation Control → keep only zoom in / zoom out.
   The compass (rotate) button gets removed; pitch indicator too. */
.onhym-sz-dashboard .mapboxgl-ctrl-compass,
.onhym-sz-dashboard .mapboxgl-ctrl-fullscreen,
.onhym-sz-dashboard .mapboxgl-ctrl-shrink,
.onhym-sz-dashboard .mapboxgl-ctrl-geolocate,
.onhym-sz-dashboard .mapboxgl-ctrl-scale {
    display: none !important;
}

/* Plugin's own header action (Fullscreen / Legend) buttons — belt-and-suspenders
   in case the topbar is ever forced visible by another rule. */
.onhym-sz-dashboard .onhym-expand-btn,
.onhym-sz-dashboard .onhym-action-btn {
    display: none !important;
}

/* Tighten the zoom control group: remove the bottom border under the last
   visible button (now there are only two: + and −). */
.onhym-sz-dashboard .mapboxgl-ctrl-group > button:last-of-type {
    border-bottom: 0 !important;
}

/* Markers — the unified institutional skin sets the SVG to 28×34 px now. */
.onhym-sz-dashboard .mapboxgl-marker .onhym-marker .sz-skin-svg {
    width: 28px;
    height: 34px;
}
