/* Leaflet map fix.
   This file intentionally overrides the old fake .map-card CSS. */

.contact-section {
    align-items: stretch;
}

.map-card.map-card-real {
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    min-height: 420px !important;
    height: 420px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #e9e5dc !important;
    border-radius: 18px;
}

#map {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    z-index: 1;
    background: #e9e5dc;
}

.map-card.map-card-real .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 420px;
    font-family: Arial, Helvetica, sans-serif;
}

.map-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 450;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.map-overlay strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    color: var(--text);
}

.map-overlay span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.map-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
    background: var(--brand);
    color: #fff !important;
    white-space: nowrap;
}

.map-button.secondary {
    background: #fff;
    color: var(--brand) !important;
    border: 1px solid var(--line);
}

.leaflet-control-attribution {
    font-size: 10px;
}

.leaflet-popup-content {
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .map-card.map-card-real,
    #map,
    .map-card.map-card-real .leaflet-container {
        min-height: 430px !important;
        height: 430px !important;
    }

    .map-overlay {
        align-items: flex-start;
        flex-direction: column;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
    }

    .map-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .map-button {
        flex: 1;
    }
}
