/* ==========================================================================
   MAP PAGE STRUCTURE (extracted from former map.html inline styles)
   These sit at the end of the file on purpose: they must win the
   same-specificity ties that inline styles used to win, while the mobile and
   fullscreen !important overrides above keep beating them exactly as they
   beat the inline styles before.
   ========================================================================== */

body.map-page .site-shell {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.map-page .topbar {
    flex-shrink: 0;
}

body.map-page .content-stack {
    flex-grow: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: calc(100vh - 80px);
}

body.map-page .map-layout {
    flex-grow: 1;
    min-height: 0;
    height: 100%;
}

.map-sidebar-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.map-sidebar-mobile-title {
    font-weight: 800;
    font-family: var(--font-ui);
    color: var(--accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#map-loading-indicator {
    margin-top: 10px;
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

body.map-page .map-layers-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-search-controls-container .map-search-box {
    margin-bottom: 0;
}

.map-search-controls-container .item-list-controls {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.map-layers-actions {
    display: flex;
    gap: 12px;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
