.field-location-page {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   PAGE HEADER
========================= */

.field-location-header {
    padding: 55px 20px 35px;
    text-align: center;
}

.field-location-header h1 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
}

.field-location-header p {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   MAP + LIST CONTAINER
========================= */

.field-location-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        420px;

    gap: 25px;

    max-width: 1400px;

    margin: 0 auto 50px;

    padding: 0 30px;
}


/* =========================
   MAP
========================= */

.field-location-map {
    width: 100%;

    height: 600px;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.12);
}

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


/* =========================
   LOCATION LIST
========================= */

.field-location-list {
    height: 600px;

    border: 1px solid #e5e5e5;

    border-radius: 14px;

    background: #fff;

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.06);
}


/* Header */

.location-list-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px;

    border-bottom: 1px solid #eee;
}

.location-list-header h2 {
    margin: 0;

    font-size: 21px;

    font-weight: 600;
}

.location-list-header span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    border-radius: 50%;

    background: #f1f1f1;

    font-size: 13px;

    font-weight: 600;
}


/* List */

.location-list-items {
    height: calc(100% - 72px);

    overflow-y: auto;
}


/* Individual location */

.location-list-item {
    display: flex;

    gap: 13px;

    padding: 20px;

    border-bottom: 1px solid #eee;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.location-list-item:hover {
    background: #f8f9fa;
}

.location-list-item.active {
    background: #f1f7ff;

    border-left: 4px solid #007bff;

    padding-left: 16px;
}


/* Marker icon */

.location-marker-icon {
    flex-shrink: 0;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f1f1f1;

    font-size: 16px;
}

.location-list-item.active
.location-marker-icon {
    background: #dcecff;
}


/* Content */

.location-list-content {
    min-width: 0;
}

.location-list-content h3 {
    margin: 0 0 7px;

    font-size: 17px;

    line-height: 1.35;

    font-weight: 600;
}

.location-list-address {
    margin: 0 0 8px;

    color: #777;

    font-size: 12px;

    line-height: 1.5;
}

.location-list-description {
    margin: 0 0 10px;

    color: #555;

    font-size: 13px;

    line-height: 1.55;
}

.location-list-link {
    font-size: 13px;

    text-decoration: none;
}


/* =========================
   MAP POPUP
========================= */

.map-popup-card {
    max-width: 260px;
}

.map-popup-image {
    width: 100%;

    height: 120px;

    object-fit: cover;

    border-radius: 6px;

    margin-bottom: 10px;
}

.map-popup-title {
    margin: 0 0 7px;

    font-size: 17px;

    font-weight: 600;
}

.map-popup-address {
    margin: 0 0 8px;

    color: #777;

    font-size: 12px;

    line-height: 1.5;
}

.map-popup-description {
    margin: 0 0 10px;

    font-size: 13px;

    line-height: 1.5;
}

.map-popup-link {
    font-size: 13px;

    text-decoration: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .field-location-container {
        grid-template-columns: 1fr;

        padding: 0 20px;
    }

    .field-location-map {
        height: 500px;
    }

    .field-location-list {
        height: auto;

        max-height: 500px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .field-location-header {
        padding: 40px 20px 25px;
    }

    .field-location-header h1 {
        font-size: 28px;
    }

    .field-location-header p {
        font-size: 14px;
    }

    .field-location-container {
        padding: 0 15px;

        gap: 15px;
    }

    .field-location-map {
        height: 400px;

        border-radius: 10px;
    }

    .field-location-list {
        max-height: 450px;

        border-radius: 10px;
    }

    .location-list-item {
        padding: 16px;
    }

    .location-list-item.active {
        padding-left: 12px;
    }

    .location-list-content h3 {
        font-size: 15px;
    }

    .location-list-description {
        font-size: 12px;
    }

}