/* Maps overview inside the regular HNT Preview shell. */
.hnt-maps-window { grid-template-columns: 260px minmax(0, 1fr); }
.hnt-maps-window.sidebar-collapsed { grid-template-columns: 88px minmax(0, 1fr); }
.hnt-maps-main { overflow-y: auto; padding: 32px; }
.hnt-maps-shell { width: min(1180px, 100%); margin: 0 auto; }
.hnt-maps-shell .hnt-maps-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    align-items: stretch;
    gap: clamp(28px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 5%, rgba(214, 168, 79, .2), transparent 34%),
        linear-gradient(135deg, rgba(35, 38, 31, .98), rgba(17, 20, 18, .98));
    padding: clamp(28px, 5vw, 62px);
    margin-bottom: clamp(46px, 7vw, 82px);
}
.hnt-maps-shell .hnt-maps-hero::after {
    position: absolute;
    right: 34%;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(161, 193, 92, .15);
    border-radius: 50%;
    content: '';
}
.hnt-maps-shell .hnt-maps-hero-copy { position: relative; z-index: 1; align-self: center; }
.hnt-maps-shell .hnt-maps-kicker,
.hnt-maps-shell .hnt-map-row-copy > span,
.hnt-map-error > div > span {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hnt-maps-shell .hnt-maps-hero h1 {
    max-width: 720px;
    margin: 12px 0 16px;
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.hnt-maps-shell .hnt-maps-hero p,
.hnt-maps-shell .hnt-map-row-copy p,
.hnt-map-error p,
.hnt-map-disclaimer { color: var(--text-muted); line-height: 1.6; }
.hnt-maps-shell .hnt-maps-hero p { max-width: 660px; margin: 0; font-size: clamp(15px, 1.6vw, 18px); }
.hnt-maps-shell .hnt-maps-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.hnt-maps-shell .hnt-maps-primary-action { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; text-decoration: none; }
.hnt-maps-shell .hnt-maps-secondary-action { color: var(--text-main); font-size: 13px; font-weight: 800; text-decoration: none; }
.hnt-maps-shell .hnt-maps-secondary-action:hover { color: var(--accent-primary); }
.hnt-maps-shell .hnt-maps-hero-preview {
    position: relative;
    z-index: 1;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: #171715;
    color: var(--text-main);
    text-decoration: none;
    transform: rotate(1.5deg);
}
.hnt-maps-shell .hnt-maps-hero-preview::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 8, .88)); content: ''; }
.hnt-maps-shell .hnt-maps-hero-preview img { width: 100%; height: 100%; min-height: 330px; display: block; object-fit: cover; transition: transform .35s ease; }
.hnt-maps-shell .hnt-maps-hero-preview:hover img { transform: scale(1.035); }
.hnt-maps-shell .hnt-maps-hero-preview span { position: absolute; z-index: 1; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; }
.hnt-maps-shell .hnt-maps-directory { scroll-margin-top: 24px; }
.hnt-maps-shell .hnt-maps-section-heading { max-width: 720px; margin-bottom: 24px; }
.hnt-maps-shell .hnt-maps-section-heading h2,
.hnt-maps-shell .hnt-maps-editorial h2 { margin: 8px 0 10px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.02em; }
.hnt-maps-shell .hnt-maps-section-heading p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.hnt-maps-shell .hnt-maps-list { border-top: 1px solid var(--border-color); }
.hnt-maps-shell .hnt-map-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.hnt-maps-shell .hnt-map-row-preview { height: 112px; overflow: hidden; border-radius: 12px; background: #171715; color: var(--text-muted); text-decoration: none; }
.hnt-maps-shell .hnt-map-row-preview img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82); transition: filter .25s ease, transform .25s ease; }
.hnt-maps-shell .hnt-map-row:hover .hnt-map-row-preview img { filter: saturate(1); transform: scale(1.025); }
.hnt-maps-shell .hnt-map-row-missing { height: 100%; display: grid; place-content: center; gap: 6px; text-align: center; }
.hnt-maps-shell .hnt-map-row-missing .ph { color: var(--accent-primary); font-size: 28px; }
.hnt-maps-shell .hnt-map-row-copy h3 { margin: 5px 0 7px; font-size: clamp(20px, 2.2vw, 28px); }
.hnt-maps-shell .hnt-map-row-copy h3 a { color: var(--text-main); text-decoration: none; }
.hnt-maps-shell .hnt-map-row-copy p { max-width: 630px; margin: 0; }
.hnt-maps-shell .hnt-map-row-warning { color: #d6a84f !important; margin-top: 7px !important; }
.hnt-maps-shell .hnt-map-row-meta { display: flex; min-width: 126px; flex-direction: column; align-items: flex-end; gap: 14px; }
.hnt-maps-shell .hnt-map-row-meta > span { color: var(--text-muted); font-size: 12px; }
.hnt-maps-shell .hnt-map-row-meta a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-primary); font-size: 13px; font-weight: 800; text-decoration: none; }
.hnt-maps-shell .hnt-maps-feature-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(52px, 8vw, 90px) 0; border: 1px solid var(--border-color); border-radius: 18px; background: rgba(32, 32, 30, .58); }
.hnt-maps-shell .hnt-maps-feature { display: flex; gap: 13px; padding: 22px; border-right: 1px solid var(--border-color); }
.hnt-maps-shell .hnt-maps-feature:last-child { border-right: 0; }
.hnt-maps-shell .hnt-maps-feature > .ph { flex: 0 0 auto; color: #a1c15c; font-size: 24px; }
.hnt-maps-shell .hnt-maps-feature h3 { margin: 0 0 7px; font-size: 14px; }
.hnt-maps-shell .hnt-maps-feature p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.hnt-maps-shell .hnt-maps-editorial { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 7vw, 90px); padding: clamp(28px, 5vw, 56px) 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.hnt-maps-shell .hnt-maps-editorial-copy { columns: 2; column-gap: 34px; }
.hnt-maps-shell .hnt-maps-editorial-copy p { margin: 0; color: var(--text-muted); line-height: 1.75; }
.hnt-maps-shell .hnt-maps-editorial-copy p + p { margin-top: 18px; }
.hnt-maps-shell .hnt-maps-faq { padding: clamp(52px, 8vw, 90px) 0 24px; }
.hnt-maps-shell .hnt-maps-faq dl { margin: 0; border-top: 1px solid var(--border-color); }
.hnt-maps-shell .hnt-maps-faq dl > div { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 34px; padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.hnt-maps-shell .hnt-maps-faq dt { color: var(--text-main); font-weight: 800; }
.hnt-maps-shell .hnt-maps-faq dd { margin: 0; color: var(--text-muted); line-height: 1.65; }

/* Detail workspace: deliberately independent from the regular HNT sidebar. */
body.hnt-map-workspace-body {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--bg-outer);
}
.hnt-map-app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    background: var(--bg-app);
}
.hnt-map-tools {
    position: relative;
    z-index: 1000;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 10% 0, rgba(214, 168, 79, .12), transparent 30%),
        var(--bg-app);
}
.hnt-map-tools-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
}
.hnt-map-tools-head > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hnt-map-tools-brand {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hnt-map-tools-head strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.hnt-map-tools-close {
    display: none;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
}
.hnt-map-home-link {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 14px 14px;
    padding: 10px 11px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}
.hnt-map-home-link:hover { background: var(--card-bg); color: var(--text-main); }
.hnt-map-account {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 14px 16px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(32, 32, 30, .78);
}
.hnt-map-account-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--tag-bg);
    color: var(--accent-primary);
}
.hnt-map-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hnt-map-account > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hnt-map-account span { color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.hnt-map-account strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hnt-map-account a { color: var(--accent-primary); font-size: 11px; text-decoration: none; }
.hnt-map-account-links { display: flex; gap: 9px; margin-top: 3px; }
.hnt-map-tools-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 0 14px 16px; }
.hnt-map-tool-section { padding: 15px 0; border-top: 1px solid var(--border-color); }
.hnt-map-tool-section > label,
.hnt-map-tool-title > span {
    display: block;
    margin-bottom: 9px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
}
.hnt-map-tool-title small,
.hnt-map-tool-section > small { display: block; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.hnt-map-tool-title { margin-bottom: 10px; }
.hnt-map-tool-title > span { margin-bottom: 2px; }
.hnt-map-select-wrap,
.hnt-map-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.hnt-map-select-wrap .ph,
.hnt-map-search-wrap .ph { position: absolute; left: 11px; z-index: 1; color: var(--accent-primary); pointer-events: none; }
.hnt-map-select-wrap select,
.hnt-map-search-wrap input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 34px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: var(--card-bg);
    color: var(--text-main);
    font: inherit;
    font-size: 12px;
}
.hnt-map-select-wrap select { cursor: pointer; }
.hnt-map-search-wrap input:focus { border-color: rgba(214, 168, 79, .62); box-shadow: 0 0 0 2px rgba(214, 168, 79, .1); }
.hnt-map-search-results {
    display: grid;
    gap: 4px;
    max-height: 280px;
    margin-top: 7px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(20, 20, 18, .72);
}
.hnt-map-search-results[hidden] { display: none; }
.hnt-map-search-result {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hnt-map-search-result:hover,
.hnt-map-search-result:focus-visible { outline: none; background: rgba(214, 168, 79, .1); }
.hnt-map-search-result strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hnt-map-search-result span { flex: 0 0 auto; color: var(--accent-primary); font-size: 9px; }
.hnt-map-search-empty { margin: 0; padding: 9px; color: var(--text-muted); font-size: 10px; text-align: center; }
.hnt-map-overview-link { display: inline-block; margin-top: 8px; color: var(--text-muted); font-size: 11px; text-decoration: none; }
.hnt-map-overview-link:hover { color: var(--accent-primary); }
.hnt-map-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hnt-map-filter-chip {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
}
.hnt-map-filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.hnt-map-filter-chip > span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #d6a84f; }
.hnt-map-filter-chip--boss > span { background: #b8463a; }
.hnt-map-filter-chip--spawn > span { background: #6d9dc5; }
.hnt-map-filter-chip--supply > span { background: #69a878; }
.hnt-map-filter-chip--extract > span { background: #d9d2c2; }
.hnt-map-filter-chip--cash > span { background: #c2ad4a; }
.hnt-map-filter-chip--tower > span { background: #9b7653; }
.hnt-map-filter-chip--bugs > span { background: #7d9260; }
.hnt-map-filter-chip--wild > span { background: #9c6f5d; }
.hnt-map-filter-chip--tarot > span { background: #876f9e; }
.hnt-map-filter-chip:has(input:not(:checked)) { opacity: .42; text-decoration: line-through; }
.hnt-map-layer-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 11px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    cursor: pointer;
}
.hnt-map-layer-toggle > span { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; }
.hnt-map-layer-toggle input { width: 32px; accent-color: var(--accent-primary); }
.hnt-map-tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hnt-map-tool-button {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(214, 168, 79, .42);
    border-radius: 10px;
    background: rgba(214, 168, 79, .1);
    color: var(--text-main);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.hnt-map-tool-button:hover,
.hnt-map-tool-button.is-active { border-color: var(--accent-primary); background: rgba(214, 168, 79, .2); }
.hnt-map-tool-button--muted { border-color: var(--border-color); background: var(--card-bg); color: var(--text-muted); }
.hnt-map-tool-button:disabled { opacity: .42; cursor: not-allowed; }
.hnt-map-measure-status { margin: 8px 0 0; color: var(--accent-primary); font-size: 10px; line-height: 1.45; }
.hnt-map-share-fallback { display: grid !important; gap: 6px; margin-top: 9px; color: var(--text-muted) !important; font-size: 10px !important; }
.hnt-map-share-fallback[hidden] { display: none !important; }
.hnt-map-share-fallback input {
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 10px;
}
.hnt-map-tools-footer { padding: 14px; border-top: 1px solid var(--border-color); }
.hnt-map-reset {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 11px 13px;
    border-radius: 10px;
}
.hnt-map-tools-footer > span { display: block; margin-top: 9px; color: var(--text-muted); font-size: 10px; text-align: center; }
.hnt-map-stage { position: relative; min-width: 0; min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #10110f; }
.hnt-map-canvas { width: 100%; height: 100%; background: #10110f; }
.hnt-map-canvas.is-measuring { cursor: crosshair; }
.hnt-map-canvas.is-cash-spot-submitting { cursor: crosshair; }
.hnt-map-canvas .leaflet-popup-content-wrapper,
.hnt-map-canvas .leaflet-popup-tip { background: var(--card-bg); color: var(--text-main); }
.hnt-map-canvas .leaflet-popup-content { display: flex; flex-direction: column; gap: 4px; }
.hnt-map-canvas .leaflet-popup-content span { color: var(--text-muted); font-size: 12px; }
.hnt-map-popup-action {
    border: 1px solid rgba(214, 168, 79, .5);
    border-radius: 6px;
    background: rgba(214, 168, 79, .12);
    color: var(--text-main);
    cursor: pointer;
    padding: 7px 9px;
}
.hnt-map-upload-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.hnt-map-canvas .hnt-map-icon-marker {
    border: 0;
    background: transparent;
}
.hnt-map-canvas .hnt-map-icon-ring {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .72));
    transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.hnt-map-canvas .hnt-map-icon-ring img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.hnt-map-canvas .hnt-map-icon-marker:hover { z-index: 1000 !important; }
.hnt-map-canvas .hnt-map-icon-marker:hover .hnt-map-icon-ring { transform: scale(1.12); }
.hnt-map-canvas .hnt-map-icon-marker--boss:hover .hnt-map-icon-ring { transform: scale(1.36); }
.hnt-map-canvas .hnt-map-icon-marker--supply .hnt-map-icon-ring,
.hnt-map-canvas .hnt-map-icon-marker--cash .hnt-map-icon-ring {
    border: 1px solid rgba(226, 196, 119, .62);
    box-shadow: 0 0 0 2px rgba(214, 168, 79, .12), 0 0 8px rgba(214, 168, 79, .2);
    opacity: .72;
}
.hnt-map-canvas .hnt-map-icon-marker--supply:hover .hnt-map-icon-ring,
.hnt-map-canvas .hnt-map-icon-marker--cash:hover .hnt-map-icon-ring {
    transform: scale(1.28);
    box-shadow: 0 0 0 3px rgba(226, 196, 119, .34), 0 0 15px rgba(214, 168, 79, .62);
    opacity: 1;
}
.hnt-map-canvas .hnt-map-icon-marker.is-search-highlighted .hnt-map-icon-ring {
    transform: scale(1.22);
    filter: drop-shadow(0 0 7px rgba(226, 196, 119, .95)) drop-shadow(0 3px 3px rgba(0, 0, 0, .72));
}
.hnt-map-canvas .leaflet-tooltip.hnt-map-compound-label {
    padding: 3px 6px;
    border: 1px solid rgba(214, 168, 79, .28);
    border-radius: 5px;
    background: rgba(20, 20, 18, .82);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .26);
    color: #e8e0d0;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}
.hnt-map-canvas .leaflet-tooltip-top.hnt-map-compound-label::before { border-top-color: rgba(20, 20, 18, .82); }
.hnt-map-canvas .leaflet-tooltip.hnt-map-measure-label {
    padding: 2px 5px;
    border: 1px solid rgba(214, 168, 79, .5);
    border-radius: 5px;
    background: rgba(20, 20, 18, .9);
    color: #e9d9ad;
    font-size: 9px;
    font-weight: 750;
}
.hnt-map-canvas .leaflet-tooltip-top.hnt-map-measure-label::before { border-top-color: rgba(20, 20, 18, .9); }
.hnt-map-canvas .leaflet-tooltip.hnt-map-measure-distance {
    padding: 3px 6px;
    border: 1px solid rgba(214, 168, 79, .45);
    border-radius: 6px;
    background: rgba(20, 20, 18, .9);
    color: #f0ddb0;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.hnt-map-canvas .leaflet-tooltip.hnt-map-measure-distance--preview {
    border-style: dashed;
    opacity: .82;
}
.hnt-map-canvas .leaflet-control-zoom { border: 1px solid var(--border-color); box-shadow: 0 8px 28px rgba(0, 0, 0, .34); }
.hnt-map-canvas .leaflet-control-zoom a { background: var(--card-bg); color: var(--text-main); border-color: var(--border-color); }
.hnt-map-empty-markers,
.hnt-map-disclaimer {
    position: absolute;
    z-index: 500;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: rgba(26, 26, 24, .88);
    backdrop-filter: blur(8px);
}
.hnt-map-empty-markers { top: 14px; left: 14px; padding: 9px 11px; color: var(--text-muted); font-size: 11px; }
.hnt-map-disclaimer { right: 12px; bottom: 12px; max-width: min(560px, calc(100% - 24px)); padding: 7px 10px; font-size: 10px; }
.hnt-map-toast {
    position: absolute;
    z-index: 700;
    top: 16px;
    left: 50%;
    margin: 0;
    padding: 9px 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(214, 168, 79, .5);
    border-radius: 9px;
    background: rgba(26, 26, 24, .94);
    box-shadow: 0 9px 28px rgba(0, 0, 0, .34);
    color: #e9d9ad;
    font-size: 11px;
}
.hnt-map-toast[hidden] { display: none; }
.hnt-map-lightbox {
    position: absolute;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(14px, 4vw, 42px);
    background: rgba(5, 5, 4, .82);
    backdrop-filter: blur(7px);
}
.hnt-map-lightbox[hidden] { display: none; }
.hnt-map-lightbox-panel {
    width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, .58);
    border-radius: 16px;
    background: #171715;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .72), 0 0 30px rgba(214, 168, 79, .08);
}
.hnt-map-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 18px;
    border-bottom: 1px solid rgba(214, 168, 79, .24);
}
.hnt-map-lightbox-header h2 { margin: 0; color: #e9d9ad; font-size: 15px; }
.hnt-map-lightbox-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 168, 79, .32);
    border-radius: 10px;
    background: rgba(214, 168, 79, .08);
    color: #eee8dc;
    font-size: 19px;
    cursor: pointer;
}
.hnt-map-lightbox-close:hover,
.hnt-map-lightbox-close:focus-visible { outline: none; border-color: #d6a84f; background: rgba(214, 168, 79, .18); }
.hnt-map-lightbox-image {
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    align-self: center;
    display: block;
    object-fit: contain;
}
.hnt-map-lightbox-image[hidden] { display: none; }
.hnt-map-lightbox-error {
    min-height: 180px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 28px;
    color: var(--text-muted);
    text-align: center;
}
.hnt-map-lightbox-error[hidden] { display: none; }
body.hnt-map-lightbox-open { overflow: hidden; }
.hnt-map-cash-detail-panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    padding-top: 12px;
    border-color: rgba(255, 255, 255, .09);
    border-radius: 26px;
    background: #171715;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .78), 0 0 42px rgba(214, 168, 79, .08);
}
.hnt-map-cash-detail-grip {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(232, 224, 208, .28);
}
.hnt-map-cash-detail-body {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, .78fr);
    overflow: hidden;
}
.hnt-map-cash-detail-media {
    min-width: 0;
    min-height: 500px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 0 0 0 25px;
    background: radial-gradient(circle at 35% 25%, rgba(214, 168, 79, .07), transparent 34%), #0d0e0c;
}
.hnt-map-cash-detail-image {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
}
.hnt-map-cash-detail-info {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    border-left: 1px solid rgba(255, 255, 255, .07);
    background: radial-gradient(circle at 92% 2%, rgba(214, 168, 79, .1), transparent 34%), #1a1a18;
}
.hnt-map-cash-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.hnt-map-cash-detail-title-block { min-width: 0; }
.hnt-map-cash-detail-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hnt-map-cash-detail-eyebrow > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(214, 168, 79, .52);
}
.hnt-map-cash-detail-header h2 {
    margin: 0 0 7px;
    color: #f1eadc;
    font-size: clamp(21px, 2.2vw, 27px);
    letter-spacing: -.025em;
    line-height: 1.08;
}
.hnt-map-cash-detail-header .hnt-map-lightbox-close {
    margin: -8px -8px 0 0;
    border-color: rgba(255, 255, 255, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
}
.hnt-map-cash-detail-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}
.hnt-map-cash-detail-votes {
    display: grid;
    gap: 12px;
    padding: 16px 17px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.hnt-map-cash-detail-votes h3 { margin: 0; color: var(--text-main); font-size: 13px; letter-spacing: -.01em; }
.hnt-map-cash-detail-vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hnt-map-cash-detail-vote {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: rgba(10, 10, 9, .24);
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.hnt-map-cash-detail-vote:hover:not(:disabled),
.hnt-map-cash-detail-vote:focus-visible,
.hnt-map-cash-detail-vote.is-active {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(214, 168, 79, .2);
    color: #f2dfad;
}
.hnt-map-cash-detail-vote:active:not(:disabled) { transform: translateY(1px); }
.hnt-map-cash-detail-vote:disabled { cursor: not-allowed; opacity: .58; }
.hnt-map-cash-detail-vote .ph { font-size: 20px; }
.hnt-map-cash-detail-anonymous-hint,
.hnt-map-cash-detail-vote-error {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}
.hnt-map-cash-detail-anonymous-hint { padding-left: 1px; }
.hnt-map-cash-detail-anonymous-hint[hidden],
.hnt-map-cash-detail-vote-error[hidden] { display: none; }
.hnt-map-cash-detail-comments {
    min-height: 0;
    max-height: clamp(220px, 42vh, 430px);
    max-height: clamp(220px, 42dvh, 430px);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)), rgba(12, 13, 11, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    color: var(--text-muted);
    font-size: 12px;
}
.hnt-map-cash-detail-comments > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hnt-map-cash-detail-comments h3 { margin: 0; color: var(--text-main); font-size: 13px; }
.hnt-map-cash-comments-count {
    min-width: 25px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(214, 168, 79, .16);
    color: #ead79f;
    text-align: center;
    font-weight: 800;
}
.hnt-map-cash-comments-list {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 13px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.hnt-map-cash-comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.hnt-map-cash-comment-avatar img { width: 34px; height: 34px; display: block; border-radius: 50%; object-fit: cover; }
.hnt-map-cash-comment-content { min-width: 0; }
.hnt-map-cash-comment-meta { display: flex; align-items: baseline; gap: 7px; }
.hnt-map-cash-comment-meta a { color: var(--text-main); font-weight: 800; text-decoration: none; }
.hnt-map-cash-comment-meta span { color: var(--text-muted); font-size: 10px; }
.hnt-map-cash-comment-body { margin-top: 4px; color: #ded8cb; line-height: 1.5; overflow-wrap: anywhere; }
.hnt-map-cash-comment-body p { margin: 0; }
.hnt-map-cash-comment-actions { display: flex; gap: 4px; margin-top: 4px; }
.hnt-map-cash-comment-actions button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.hnt-map-cash-comment-actions button:hover,
.hnt-map-cash-comment-actions button:focus-visible { outline: none; background: rgba(214, 168, 79, .14); color: var(--accent-primary); }
.hnt-map-cash-comments-status,
.hnt-map-cash-comments-login { margin: 0; color: var(--text-muted); line-height: 1.45; }
.hnt-map-cash-comments-status[hidden],
.hnt-map-cash-comments-login[hidden],
.hnt-map-cash-comments-form[hidden],
.hnt-map-cash-comment-actions[hidden] { display: none; }
.hnt-map-cash-comments-login a { color: #e5d298; font-weight: 750; }
.hnt-map-cash-comments-form,
.hnt-map-cash-comment-editor { display: grid; gap: 8px; }
.hnt-map-cash-comments-form { margin-top: auto; }
.hnt-map-cash-comments-form textarea,
.hnt-map-cash-comment-editor textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(7, 8, 7, .46);
    color: var(--text-main);
    font: inherit;
    line-height: 1.45;
}
.hnt-map-cash-comments-form textarea:focus,
.hnt-map-cash-comment-editor textarea:focus { outline: none; border-color: var(--accent-primary); }
.hnt-map-cash-comments-form button,
.hnt-map-cash-comment-editor-actions button {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(214, 168, 79, .5);
    border-radius: 999px;
    background: rgba(214, 168, 79, .17);
    color: #f0dda8;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.hnt-map-cash-comments-form button { justify-self: end; }
.hnt-map-cash-comments-form button:disabled { cursor: wait; opacity: .55; }
.hnt-map-cash-comment-editor-actions { display: flex; justify-content: flex-end; gap: 7px; }
.hnt-map-cash-submission-panel { width: min(560px, 100%); }
.hnt-map-cash-submission-form { display: grid; gap: 14px; padding: 20px; }
.hnt-map-cash-submission-form [hidden] { display: none !important; }
.hnt-map-cash-submission-form > p { margin: 0; color: var(--text-muted); }
.hnt-map-cash-submission-form label { display: grid; gap: 6px; color: var(--text-main); font-weight: 700; }
.hnt-map-cash-submission-form input:not([type="hidden"]) { box-sizing: border-box; width: 100%; }
.hnt-map-cash-submission-status { min-height: 20px; }
.hnt-map-cash-submission-actions { display: flex; gap: 10px; justify-content: flex-end; }
.hnt-map-measure-hint {
    position: absolute;
    z-index: 700;
    top: 16px;
    left: 16px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(214, 168, 79, .42);
    border-radius: 9px;
    background: rgba(26, 26, 24, .9);
    color: #e9d9ad;
    font-size: 10px;
    pointer-events: none;
}
.hnt-map-measure-hint[hidden] { display: none; }
.hnt-map-error {
    width: 100%;
    height: 100%;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: radial-gradient(circle at center, rgba(214, 168, 79, .08), transparent 42%);
    text-align: left;
}
.hnt-map-error > .ph { color: var(--accent-primary); font-size: 52px; }
.hnt-map-error h1 { margin: 5px 0 7px; font-size: clamp(22px, 3vw, 34px); }
.hnt-map-error p { max-width: 620px; }
.hnt-map-tools-trigger,
.hnt-map-tools-backdrop { display: none; }

@media (max-width: 992px) {
    .hnt-maps-window { grid-template-columns: 220px minmax(0, 1fr); }
    .hnt-maps-window.sidebar-collapsed { grid-template-columns: 88px minmax(0, 1fr); }
    .hnt-maps-main { padding: 24px; }
    .hnt-maps-shell .hnt-maps-hero { grid-template-columns: 1fr; }
    .hnt-maps-shell .hnt-maps-hero-preview { min-height: 250px; max-height: 330px; transform: none; }
    .hnt-maps-shell .hnt-maps-hero-preview img { min-height: 250px; }
    .hnt-maps-shell .hnt-maps-feature-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hnt-maps-shell .hnt-maps-feature:nth-child(2) { border-right: 0; }
    .hnt-maps-shell .hnt-maps-feature:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
    .hnt-map-app { grid-template-columns: 270px minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .hnt-maps-window,
    .hnt-maps-window.sidebar-collapsed { grid-template-columns: 1fr; }
    .hnt-maps-main { padding: 16px 14px 90px; }
    .hnt-maps-shell .hnt-maps-hero { gap: 26px; padding: 24px 20px; border-radius: 16px; }
    .hnt-maps-shell .hnt-maps-hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .hnt-maps-shell .hnt-maps-hero-preview { min-height: 210px; }
    .hnt-maps-shell .hnt-maps-hero-preview img { min-height: 210px; }
    .hnt-maps-shell .hnt-map-row { grid-template-columns: 104px minmax(0, 1fr); gap: 15px; }
    .hnt-maps-shell .hnt-map-row-preview { height: 92px; }
    .hnt-maps-shell .hnt-map-row-meta { grid-column: 2; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; }
    .hnt-maps-shell .hnt-maps-feature-band { grid-template-columns: 1fr; }
    .hnt-maps-shell .hnt-maps-feature { border-right: 0; border-bottom: 1px solid var(--border-color); }
    .hnt-maps-shell .hnt-maps-feature:nth-child(3) { border-bottom: 1px solid var(--border-color); }
    .hnt-maps-shell .hnt-maps-feature:last-child { border-bottom: 0; }
    .hnt-maps-shell .hnt-maps-editorial { grid-template-columns: 1fr; }
    .hnt-maps-shell .hnt-maps-editorial-copy { columns: 1; }
    .hnt-maps-shell .hnt-maps-faq dl > div { grid-template-columns: 1fr; gap: 8px; }
    .hnt-map-app { display: block; }
    .hnt-map-tools {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(340px, calc(100vw - 36px));
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(0, 0, 0, .54);
    }
    .hnt-map-tools.is-open { transform: translateX(0); }
    .hnt-map-tools-close { display: grid; }
    .hnt-map-tools-trigger {
        position: fixed;
        z-index: 900;
        top: max(12px, env(safe-area-inset-top));
        left: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 0 13px;
        border: 1px solid var(--border-color);
        border-radius: 11px;
        background: rgba(32, 32, 30, .94);
        box-shadow: 0 10px 32px rgba(0, 0, 0, .46);
        color: var(--text-main);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }
    .hnt-map-tools-backdrop {
        position: fixed;
        z-index: 950;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(5, 5, 4, .66);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    .hnt-map-tools-backdrop.is-open { opacity: 1; pointer-events: auto; }
    .hnt-map-stage { height: 100vh; height: 100dvh; }
    .hnt-map-error { padding: 70px 22px 28px; flex-direction: column; text-align: center; }
    .hnt-map-disclaimer { right: 8px; bottom: 8px; max-width: calc(100% - 16px); }
    .hnt-map-measure-hint { top: 66px; left: 12px; }
    .hnt-map-lightbox { position: fixed; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
    .hnt-map-lightbox-panel { border-radius: 12px; }
    .hnt-map-lightbox-image { max-height: calc(100vh - 105px); max-height: calc(100dvh - 105px); }
    .hnt-map-cash-detail { display: block; padding: 0; }
    .hnt-map-cash-detail-panel {
        box-sizing: border-box;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding-top: 0;
        border: 0;
        border-radius: 0;
    }
    .hnt-map-cash-detail-grip { top: max(4px, env(safe-area-inset-top)); }
    .hnt-map-cash-detail-body {
        display: block;
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .hnt-map-cash-detail-media { display: block; min-height: 0; height: auto; max-height: none; align-self: start; border-radius: 0; line-height: 0; }
    .hnt-map-cash-detail-image { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
    .hnt-map-cash-detail-info { min-height: 0; gap: 16px; overflow: visible; padding: 20px 18px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .07); border-left: 0; }
    .hnt-map-cash-detail-comments { min-height: 0; max-height: none; margin-top: 0; }
    .hnt-map-cash-comments-list { max-height: clamp(140px, 30vh, 260px); max-height: clamp(140px, 30dvh, 260px); }
    .hnt-map-cash-detail-header .hnt-map-lightbox-close {
        position: fixed;
        z-index: 3;
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        margin: 0;
        background: rgba(20, 20, 18, .86);
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 420px) {
    .hnt-map-tools { width: calc(100vw - 20px); }
    .hnt-map-filter-options { grid-template-columns: 1fr; }
}
