.ekl-location-map {
    width: 100%;
    min-height: 360px;
}

/* EKL map markers intentionally reset global/Elementor button styles. */
.ekl-map-marker,
button.ekl-map-marker {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    outline: 0;
    background: #d88722 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.28) !important;
    transform: none !important;
    cursor: pointer;
    overflow: visible !important;
    transition: box-shadow .16s ease, background-color .16s ease !important;
}

.ekl-map-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #d88722;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 1px rgba(0,0,0,.12));
}

.ekl-map-marker__dot {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 7px !important;
    height: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    transform: translate(-50%, -50%) !important;
}

.ekl-map-marker--active,
button.ekl-map-marker--active {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    background: #a95f16 !important;
    box-shadow: 0 0 0 7px rgba(216,135,34,.28), 0 5px 14px rgba(0,0,0,.32) !important;
}

.ekl-map-marker--active::after {
    border-top-color: #a95f16;
}

.ekl-map-marker:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}


/* Responsive map marker callout (used when the map is stacked/full-screen). */
.ekl-map-callout {
    min-width: 220px;
    max-width: 280px;
    padding: 4px 2px 2px;
    font-family: "Nunito Sans", sans-serif;
    color: #233238;
}

.ekl-map-callout__title {
    margin: 0 0 6px;
    font-family: "Oswald", sans-serif;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 500;
    color: #123f50;
}

.ekl-map-callout__address {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #59656a;
}

.ekl-map-callout__actions {
    display: flex;
    gap: 8px;
}

.ekl-map-callout__button,
a.ekl-map-callout__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #174f63 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #174f63 !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ekl-map-callout__button--primary,
a.ekl-map-callout__button--primary {
    background: #174f63 !important;
    color: #fff !important;
}

.ekl-map-callout__button:hover,
.ekl-map-callout__button:focus-visible {
    background: #f2f6f7 !important;
    color: #123f50 !important;
}

.ekl-map-callout__button--primary:hover,
.ekl-map-callout__button--primary:focus-visible {
    background: #123f50 !important;
    color: #fff !important;
}

/* =========================================================
   EKL HOMEPAGE INTERACTIVE MAP
   ========================================================= */
.ekl-home-map {
    width: 100%;
}

.ekl-home-map__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.ekl-home-map__filter,
button.ekl-home-map__filter {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 42px;
    padding: 10px 18px !important;
    border: 1px solid #174f63 !important;
    border-radius: 0px !important;
    background: #fff !important;
    color: #174f63 !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.ekl-home-map__filter:hover,
.ekl-home-map__filter:focus-visible,
.ekl-home-map__filter.is-active {
    background: #174f63 !important;
    color: #fff !important;
}

.ekl-home-map__filter:focus-visible {
    outline: 3px solid rgba(216,135,34,.35) !important;
    outline-offset: 2px;
}

.ekl-home-map__stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23,79,99,.16);
    border-radius: 0px;
    background: #dde6e8;
}

.ekl-location-map--homepage {
    min-height: 520px;
}

.ekl-home-map__status {
    margin-top: 8px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    color: #6f7a7e;
}

/*
 * Homepage Google Maps InfoWindow: size BOTH the Google wrapper and our card.
 * Google reserves its own popup padding/width, independently of the card;
 * reducing only .ekl-map-callout creates the big white border at the right.
 * Use the same width at every level so the image reaches all four edges.
 */
.ekl-home-map .gm-style-iw,
.ekl-home-map .gm-style-iw-c {
    box-sizing: border-box !important;
    width: 280px !important;
    max-width: calc(100vw - 40px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.ekl-home-map .gm-style-iw-d {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(430px, 65vh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.ekl-home-map .gm-style-iw-ch,
.ekl-home-map .gm-style-iw-chr {
    display: none !important;
}
.ekl-home-map .ekl-map-callout {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Nunito Sans", sans-serif;
}
.ekl-home-map .ekl-map-callout__media {
    position: relative;
    min-height: 0;
    margin: 0;
    padding: 0;
}
.ekl-home-map .ekl-map-callout__image {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 132px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    border: 0 !important;
    border-radius: 0 !important;
}
.ekl-home-map .ekl-map-callout__close,
.ekl-home-map button.ekl-map-callout__close {
    appearance: none !important;
    position: absolute !important;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,.1) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.28) !important;
    cursor: pointer;
}
.ekl-home-map .ekl-map-callout__close:hover,
.ekl-home-map .ekl-map-callout__close:focus-visible {
    background: #f1ede4 !important;
    color: #000 !important;
    outline: 2px solid #002856;
    outline-offset: 1px;
}
/* When there is no image, retain the accessible X above the text. */
.ekl-home-map .ekl-map-callout__media--empty {
    height: 38px;
}
.ekl-home-map .ekl-map-callout__body {
    margin: 0;
    padding: 12px 13px 13px;
}
.ekl-home-map .ekl-map-callout__title {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #002856;
    margin: 0 0 6px;
}
.ekl-home-map .ekl-map-callout__address {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
}
.ekl-home-map .ekl-map-callout__actions {
    flex-wrap: wrap;
    gap: 6px;
}
.ekl-home-map .ekl-map-callout__button {
    min-height: 32px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
    cursor: pointer;
}

/* Details lightbox. */
.ekl-map-modal[hidden] {
    display: none !important;
}

.ekl-map-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ekl-map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,35,44,.72);
}

.ekl-map-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.ekl-map-modal__close,
.ekl-home-map button.ekl-map-modal__close {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.8) !important;
    border-radius: 999px !important;
    background: rgba(12,52,66,.90) !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
}

.ekl-map-modal__close:hover,
.ekl-map-modal__close:focus-visible,
.ekl-home-map button.ekl-map-modal__close:hover,
.ekl-home-map button.ekl-map-modal__close:focus-visible {
    border-color: #fff !important;
    background: #123f50 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.ekl-map-modal__body {
    padding: 28px;
    font-family: "Nunito Sans", sans-serif;
    color: #233238;
}

.ekl-map-modal__image {
    display: block;
    width: calc(100% + 56px) !important;
    max-width: none !important;
    max-height: 290px;
    margin: -28px -28px 24px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.ekl-map-modal__title {
    margin: 0 50px 14px 0;
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #123f50;
}

.ekl-map-modal__meta {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d9dfdf;
}

.ekl-map-modal__meta-row {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.45;
}

.ekl-map-modal__meta-row strong {
    margin-right: 4px;
    color: #123f50;
}

.ekl-map-modal__meta-row a {
    color: #174f63;
    font-weight: 700;
}

.ekl-map-modal__summary {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.55;
}

.ekl-map-modal__bullets {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.55;
}

html.ekl-map-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .ekl-home-map__controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ekl-home-map__filter,
    button.ekl-home-map__filter {
        width: 100%;
        padding: 11px 10px !important;
        font-size: 12px !important;
    }

    .ekl-location-map--homepage {
        min-height: 430px;
    }

    /* Keep Google map callouts compact on phones so they do not dominate
       the map or crowd the viewport. */
    .ekl-home-map .gm-style-iw,
    .ekl-home-map .gm-style-iw-c {
        width: 226px !important;
        max-width: calc(100vw - 40px) !important;
        padding: 0 !important;
    }

    .ekl-home-map .ekl-map-callout {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ekl-home-map .ekl-map-callout__image {
        width: 100% !important;
        height: 100px;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .ekl-home-map .ekl-map-callout__title {
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.18;
    }

    .ekl-home-map .ekl-map-callout__address {
        margin-bottom: 7px;
        font-size: 11px;
        line-height: 1.32;
    }

    .ekl-home-map .ekl-map-callout__actions {
        gap: 5px;
    }

    .ekl-home-map .ekl-map-callout__button,
    .ekl-home-map a.ekl-map-callout__button {
        min-height: 31px !important;
        padding: 6px 8px !important;
        font-size: 10.5px !important;
    }

    .ekl-map-modal {
        padding: 12px;
    }

    .ekl-map-modal__dialog {
        max-height: calc(100vh - 24px);
    }

    .ekl-map-modal__body {
        padding: 22px;
    }

    .ekl-map-modal__image {
        width: calc(100% + 44px) !important;
        max-width: none !important;
        margin: -22px -22px 20px;
        max-height: 220px;
    }

    .ekl-map-modal__title {
        font-size: 24px;
    }
}
