.contact-map-sidebar {
    min-width: 0;
}

.contact-map-card {
    overflow: hidden;
    border: 1px solid rgba(15, 31, 51, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(11, 27, 48, 0.08);
}

.contact-map-card__intro {
    padding: 30px 32px 26px;
}

.contact-map-card__eyebrow {
    margin-bottom: 10px;
    color: #064fbc;
    font-family: "DM Mono", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.contact-map-card__title {
    margin: 0 0 12px;
    color: #171717;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.contact-map-card__address {
    margin: 0 0 18px;
    color: #596574;
    font-size: 15px;
    line-height: 1.65;
}

.contact-map-card__directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #064fbc;
    font-family: "DM Mono", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-map-card__directions span {
    transition: transform 220ms ease;
}

.contact-map-card__directions:hover,
.contact-map-card__directions:focus-visible {
    color: #0b66d4;
}

.contact-map-card__directions:hover span,
.contact-map-card__directions:focus-visible span {
    transform: translateX(4px);
}

.mos-contact-map {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 490px;
    background: #dce4ec;
}

.mos-contact-map .leaflet-popup-content-wrapper {
    border-radius: 2px;
}

.mos-contact-map .leaflet-popup-content {
    min-width: 210px;
    margin: 16px 18px;
    color: #253345;
    font-size: 13px;
    line-height: 1.5;
}

.mos-contact-map .leaflet-control-attribution {
    font-size: 10px;
}

.contact-map-card__fallback {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #064fbc;
    text-align: center;
}

/* Contact page map layout: keep the map and location details in one compact card. */
.faq-section-left-sidebar.contact-map-sidebar {
    width: 48%;
    max-width: 556px;
    min-width: 0;
    align-self: flex-start;
    display: block;
}

.contact-map-sidebar .contact-map-card {
    position: relative;
    width: 100%;
    height: 420px;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    background: #eef2f5;
    box-shadow: 0 8px 22px rgba(11, 27, 48, 0.1);
}

.contact-map-sidebar .mos-contact-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #e7edf1;
}

.contact-map-sidebar .mos-contact-map .leaflet-tile-pane {
    filter: saturate(0.62) contrast(0.93) brightness(1.04);
}

.contact-map-sidebar .contact-map-card__intro {
    position: absolute;
    z-index: 500;
    left: 18px;
    bottom: 18px;
    width: min(250px, calc(100% - 36px));
    padding: 20px;
    border: 1px solid rgba(15, 31, 51, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(11, 27, 48, 0.16);
}

.contact-map-sidebar .contact-map-card__eyebrow {
    margin-bottom: 8px;
    color: #064fbc;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.contact-map-sidebar .contact-map-card__title {
    margin-bottom: 10px;
    color: #171717;
    font-size: 22px;
    line-height: 1.2;
}

.contact-map-sidebar .contact-map-card__address {
    margin-bottom: 16px;
    color: #596574;
    font-size: 12px;
    line-height: 1.55;
}

.contact-map-sidebar .contact-map-card__directions {
    font-size: 11px;
}

.contact-map-sidebar .mos-slider-arrow-left,
.contact-map-sidebar .mos-slider-arrow-right,
.contact-map-sidebar .mos-slider-nav {
    display: none !important;
}

@media screen and (max-width: 991px) {
    .faq-section-left-sidebar.contact-map-sidebar {
        width: 100%;
        max-width: none;
    }

    .contact-map-sidebar .contact-map-card {
        height: 360px;
        min-height: 360px;
    }

    .contact-map-sidebar .contact-map-card__intro {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        max-width: none;
        padding: 18px;
    }

    .mos-contact-map {
        min-height: 420px;
    }
}

/* Reference-style map card: pale map surface, one clear marker, and a quiet
   address card.  The rules remain scoped to the contact-page map section. */
.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map {
    background: #f1f4f6;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map .leaflet-tile-pane {
    opacity: 0.84;
    filter: saturate(0.38) contrast(0.88) brightness(1.1);
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map .leaflet-control-zoom {
    display: none !important;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map .leaflet-control-attribution {
    padding: 0 4px;
    color: #758190;
    background: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    line-height: 16px;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map .leaflet-control-attribution a {
    color: #64748b;
}

@media screen and (max-width: 479px) {
    .contact-map-sidebar .contact-map-card__intro {
        padding: 16px;
    }
}

/* Final contact-map sizing overrides. These are scoped to the FAQ/map section. */
.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: stretch;
    justify-content: normal;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) > .faq-section-left-sidebar.contact-map-sidebar {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 420px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    align-self: stretch;
    border: 1px solid #e3e7eb;
    border-radius: 4px;
    background: #eef2f5;
    box-shadow: 0 8px 24px rgba(15, 30, 45, 0.08);
    box-sizing: border-box;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) > .faq-one-column {
    width: auto;
    max-width: none;
    margin-top: 0;
    min-width: 0;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .contact-map-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .contact-map-card__intro {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;
    width: 250px;
    max-width: calc(100% - 36px);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 31, 51, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(15, 30, 45, 0.14);
}

@media screen and (max-width: 991px) {
    .vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) > .faq-section-left-sidebar.contact-map-sidebar {
        height: 360px;
        min-height: 360px;
    }

    .vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) > .faq-one-column {
        width: 100%;
        margin-top: 0;
    }

    .vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .mos-contact-map {
        min-height: 360px;
    }

    .vertical-section:has(> .faq-section-left-sidebar.contact-map-sidebar) .contact-map-card__intro {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        max-width: none;
    }
}

/* The address stays usable when the interactive map is unavailable. */
.mos-contact-map .contact-map-card__fallback {
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
    background: #f5f1ed;
    color: #2e2118;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.mos-contact-map .contact-map-card__fallback p { margin: 0; }
.mos-contact-map .contact-map-card__fallback a { color: #bf4d0a; text-underline-offset: 4px; }
.mos-contact-map .contact-map-card__fallback a:focus-visible { outline: 2px solid #bf4d0a; outline-offset: 5px; }
