
/* =====================================
   HISTORICAL LOCATIONS MAP PAGE
===================================== */

.location-breadcrumb {
    margin-bottom: 22px;
    font-size: 13px;
    color: #777;
}

.location-breadcrumb a {
    color: #174a70;
    text-decoration: none;
}

.location-breadcrumb span {
    margin: 0 8px;
}

.map-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-page-heading h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.map-page-heading p {
    color: #777;
    font-size: 13px;
    margin: 0;
}

.map-result-count {
    color: #174a70;
    font-size: 13px;
    white-space: nowrap;
}

/* Main two-column layout */
.historical-map-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
}

/* Sidebar */
.map-filter-sidebar {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 15px;
}

.map-filter-sidebar h3 {
    font-size: 16px;
    margin-bottom: 18px;
}

.filter-group h4 {
    font-size: 13px;
    margin-bottom: 12px;
    color: #444;
}

.map-filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.map-filter-option input {
    margin: 0;
    accent-color: #174a70;
    cursor: pointer;
}

.filter-divider {
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.clear-map-filters {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #174a70;
    font-size: 12px;
    cursor: pointer;
}

.clear-map-filters:hover {
    background: #f1f4f7;
}

/* Map area */
.map-main-content {
    min-width: 0;
}

.map-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.map-search-box > i {
    position: absolute;
    left: 14px;
    color: #777;
}

.map-search-box input {
    width: 100%;
    height: 45px;
    padding: 10px 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
}

.map-search-box button {
    position: absolute;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #777;
    cursor: pointer;
}

/* Leaflet map */
#historical-map {
    width: 100%;
    height: 450px;
    min-height: 350px;
    border: 1px solid #ccc;
    border-radius: 7px;
    z-index: 1;
}

/* Custom map markers */
.custom-location-marker {
    background: transparent;
    border: none;
}

/* Popup */
.location-map-popup {
    min-width: 170px;
}

.location-map-popup h4 {
    font-size: 14px;
    margin: 0 0 7px;
    color: #333;
}

.location-map-popup p {
    margin: 0 0 5px;
    font-size: 12px;
    color: #555;
}

.location-map-popup small {
    display: block;
    color: #777;
    margin-bottom: 10px;
}

.location-map-popup a {
    color: #174a70;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* Map legend */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 5px;
    font-size: 12px;
    color: #666;
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hospital-pin {
    color: #174a70;
}

.clinic-pin {
    color: #39845d;
}

.facility-pin {
    color: #555;
}

/* Responsive */
@media (max-width: 767px) {

    .historical-map-layout {
        grid-template-columns: 1fr;
    }

    .map-filter-sidebar {
        width: 100%;
    }

    #historical-map {
        height: 380px;
    }

    .map-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

}






.location-details-page {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.location-breadcrumb {
    margin-bottom: 30px;
    color: #777;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.location-header h1 {
    margin: 10px 0;
}

.location-type {
    background: #e8f0f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.location-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 35px;
}

.location-facts {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
}

.back-button {
    padding: 10px 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .location-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-content {
        grid-template-columns: 1fr;
    }
}