/* Geo-Spatial Ledger & Leaflet Map Styles */
.map-page-header {
    background-color: var(--canopy-dark);
    color: #ffffff;
    padding: 130px 0 40px 0;
    text-align: center;
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 420px;
    }
    .sites-drawer {
        max-height: 400px;
    }
}

.map-container {
    height: 620px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    background: #e5e7eb;
    position: relative;
}

#leaflet-map {
    width: 100%;
    height: 100%;
}

.sites-drawer {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    max-height: 620px;
    overflow-y: auto;
}

.drawer-header {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.site-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site-card:hover, .site-card.active {
    border-color: var(--growth-accent);
    background-color: var(--oxygen-light);
}

.site-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.site-category {
    font-size: 12px;
    color: var(--growth-hover);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 13px;
    background: rgba(0,0,0,0.02);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.vital-item span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.vital-item strong {
    color: var(--canopy-primary);
}

@media (max-width: 992px) {
    .map-layout { grid-template-columns: 1fr; }
    .map-container { height: 400px; }
}
