﻿.building-center-info {
    font-family: var(--font-sans);
}

.location-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--secondary);
}

.building-address {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 0;
}

/* ---- Leaflet ---- */

#mapHint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1000;
    background-color: var(--accent-light);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: .8;
}

.leaflet-top { z-index: 500; }

.leaflet-control-attribution {
    opacity: 0.2 !important;
}

    .leaflet-control-attribution a {
        font-size: 10px;
    }

.leaflet-popup-content {
    margin-inline: 13px !important;
    font-size: 14px;
}

    .leaflet-popup-content p {
        font-family: var(--font-sans);
        font-weight: 500;
        font-size: 15px;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    .leaflet-popup-content img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
    }

/* ---- Search / Autocomplete ---- */

#searchAdornment {
    pointer-events: none;
}

.searchbar {
    position: relative;
}

#searchWrapper {
    position: relative;
}


/* make the suggestions container sit neatly under the pill, full-width, with rounded bottom corners */
.autocomplete-suggestions {
    width: stretch !important;
    box-sizing: border-box;
    position: absolute;
    top: 70px;
    background: #fff;
    border: 1px solid var(--gray-medium);
    border-top: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    z-index: 2000;
    overflow: hidden;
    text-align: start;
    margin-left: 24px;
    margin-right: 24px;
    left: 0;
}



/* individual suggestion rows */
.autocomplete-suggestion {
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--gray-dark);
    cursor: pointer;
}

/* hover or keyboard “selected” state */
.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background: var(--accent);
    color: #fff;
}


/* ---- Loading ---- */

#officeCardGrid.is-loading .office-card {
    display: none;
}

.skeleton-card {
    height: 220px;
    border-radius: 16px;
    background: #eee;
    margin-bottom: 12px;
}

@media (max-width:768px) {
    h1 {
        font-size: 2rem;
    }
}

/* ===================================================================== */
/* SPLIT LAYOUT (cards left, map right)                                   */
/* ===================================================================== */

.location-split {
    min-height: 600px;
}

/* Map needs explicit sizing hooks */
#mapContainer {
    width: 100%;
}

#map {
    width: 100%;
}

/* Desktop: lock section height so list scrolls, map doesn't grow */
@media (min-width:992px) {
    .location-split {
        height: calc(100vh - 240px); /* tune */
        max-height: 920px; /* optional */
        overflow: hidden;
    }

        .location-split .cards-col,
        .location-split .map-col {
            height: 100%;
        }

        .location-split .cards-col {
            overflow: hidden; /* header stays, body scrolls */
        }

        .location-split .cards-scroll {
            height: calc(100% - 72px); /* adjust to your header height */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

    #mapContainer,
    #map {
        height: 100%;
        min-height: 0; /* critical inside flex/grid */
    }
}

/* Mobile: fixed map height, list flows */
@media (max-width:991.98px) {
    #mapContainer,
    #map {
        height: 420px;
        min-height: 420px;
    }
}
