/* =========================================
   LOCATIONS SECTION
========================================= */

.locations-section {
    position: relative;
    padding: 90px 0;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 78, 145, 0.06),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0, 78, 145, 0.05),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 50%,
            #edf1f5 100%
        );
    overflow: hidden;
}


/* =========================================
   DECORATIVE GRAPHICS
========================================= */

.locations-section::before {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    border: 1px solid rgba(0, 78, 145, 0.08);
    border-radius: 50%;

    top: -180px;
    left: -120px;

    pointer-events: none;
}


.locations-section::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(0, 78, 145, 0.06);
    border-radius: 50%;

    right: -150px;
    bottom: -150px;

    pointer-events: none;
}


/* =========================================
   HEADING
========================================= */

.location-heading {
    max-width: 750px;
    margin: 0 auto 55px;
    position: relative;
    z-index: 2;
}


.location-eyebrow {
    display: inline-block;

    font-family: "IBM Plex Mono", monospace;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.18em;

    color: #004e91;

    margin-bottom: 14px;
}


.location-heading h2 {
    margin: 0 0 15px;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 600;

    color: #162d4d;

    line-height: 1.15;
}


.location-heading p {
    margin: 0;

    color: #667085;

    font-size: 17px;

    line-height: 1.7;
}


.location-card {

    position: relative;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #e1e8ef;

    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(18, 45, 75, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.location-card:hover {

    transform: translateY(-8px);

    border-color: rgba(0, 78, 145, 0.20);

    box-shadow:
        0 20px 48px rgba(18, 45, 75, 0.14);
}


/* =========================================================
   CARD DECORATIVE CIRCLE
========================================================= */

.location-card::before {

    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    top: -65px;
    right: -55px;

    border-radius: 50%;

    background: rgba(0, 78, 145, 0.045);

    transition:
        width 0.35s ease,
        height 0.35s ease;
}


.location-card:hover::before {

    width: 155px;
    height: 155px;
}


/* =========================================================
   LOCATION IMAGE
========================================================= */

.location-image {

    position: relative;

    width: 100%;

    height: 225px;

    overflow: hidden;

    background: #e9eef3;
}


/* Image */

.location-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.55s ease,
        filter 0.35s ease;
}


/* Image hover */

.location-card:hover .location-image img {

    transform: scale(1.06);

    filter: saturate(1.05);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.location-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 35, 70, 0.02) 30%,
            rgba(0, 35, 70, 0.18) 100%
        );

    pointer-events: none;
}


/* =========================================================
   LOCATION CONTENT
========================================================= */

.location-content {

    position: relative;

    z-index: 3;

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 23px 22px 22px;
}


/* =========================================================
   SMALL LABEL
========================================================= */

.location-label {

    display: block;

    margin-bottom: 7px;

    color: #004e91;

    font-family: "IBM Plex Mono", monospace;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


/* =========================================================
   LOCATION TITLE
========================================================= */

.location-content h3 {

    margin: 0 0 18px;

    color: #243b5a;

    font-size: 18px;

    font-weight: 600;

    line-height: 1.3;
}


/* =========================================================
   LOCATION INFORMATION
========================================================= */

.location-info {

    display: flex;

    flex-direction: column;

    gap: 11px;
}


.location-info p {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin: 0;

    color: #333;

    font-size: 14px;

    line-height: 1.6;
}


.location-info p i {

    width: 19px;

    flex-shrink: 0;

    margin-top: 4px;

    color: #004e91;

    font-size: 14px;
}

.location-info a {

   text-decoration: none;
   font-weight: 600;

    color: #004e91;

    font-size: 14px;
}
/* =========================================================
   CARD FOOTER
========================================================= */

.location-footer {

    position: relative;

    z-index: 3;

    margin-top: auto;

    padding: 0 22px 22px;
}


/* =========================================================
   View in map BUTTON
========================================================= */

.location-map-btn {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 12px 14px 12px 18px;

    border: 0;

    border-radius: 9px;

    background: #004e91;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.location-map-btn:hover {

    background: #003b70;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0, 78, 145, 0.22);
}


/* =========================================================
   BUTTON ARROW CIRCLE
========================================================= */

.location-map-btn i {

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    font-size: 12px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.location-map-btn:hover i {

    transform: translateX(4px);

    background: rgba(255, 255, 255, 0.22);
}


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

.map-modal {

    position: fixed;

    inset: 0;

    background: rgba(8, 22, 38, 0.72);

    backdrop-filter: blur(5px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 99999;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.map-modal.active {

    opacity: 1;

    visibility: visible;
}


.map-modal-box {

    width: min(900px, 100%);

    max-height: 90vh;

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.25);

    transform: translateY(30px) scale(0.98);

    transition: transform 0.3s ease;
}


.map-modal.active .map-modal-box {

    transform: translateY(0) scale(1);
}


/* =========================================
   MODAL HEADER
========================================= */

.map-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    border-bottom: 1px solid #e7ebef;
}


.map-modal-title {

    margin: 0;

    color: #162d4d;

    font-size: 22px;

    font-weight: 600;
}


.map-modal-close {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f1f4f7;

    color: #344054;

    font-size: 18px;

    cursor: pointer;

    transition: 0.2s ease;
}


.map-modal-close:hover {

    background: #004e91;

    color: #ffffff;
}


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

.map-container {

    width: 100%;

    height: 430px;

    background: #eef2f5;
}


.map-container iframe {

    width: 100%;

    height: 100%;

    border: 0;

    display: block;
}


/* =========================================
   MODAL FOOTER
========================================= */

.map-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 25px;

    border-top: 1px solid #e7ebef;
}


.map-address {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: #667085;

    font-size: 14px;

    line-height: 1.5;

    margin: 0;
}


.map-address i {

    color: #004e91;

    margin-top: 3px;
}


.direction-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    white-space: nowrap;

    padding: 12px 20px;

    border-radius: 9px;

    background: #004e91;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.25s ease;
}


.direction-btn:hover {

    background: #003b70;

    color: #ffffff;

    transform: translateY(-2px);
}


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

@media (max-width: 767px) {

    .locations-section {

        padding: 65px 0;
    }

    .location-heading {

        margin-bottom: 35px;
    }

    .location-heading h2 {

        font-size: 34px;
    }

    .location-heading p {

        font-size: 15px;
    }

    .location-card {

        padding: 25px;
    }

    .map-modal {

        padding: 10px;
    }

    .map-modal-box {

        border-radius: 15px;
    }

    .map-container {

        height: 350px;
    }

    .map-modal-footer {

        flex-direction: column;

        align-items: stretch;
    }

    .direction-btn {

        width: 100%;
    }

}
