/* Location section (landing pages), footer directions link and the Google Maps facade. */

.saf-location {
    padding: 4.5rem 0;
    background: #f4f7fa;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}
.saf-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    align-items: center;
}
.saf-location-eyebrow {
    display: inline-block;
    color: #467a30;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.saf-location h2 {
    color: #0f2846;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.saf-location-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.saf-location-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #14273d;
    margin-bottom: 0.85rem;
    line-height: 1.7;
}
.saf-location-list i {
    color: #58923d;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}
.saf-location-list a {
    color: inherit;
    text-decoration: none;
}
.saf-location-list a:hover {
    color: #467a30;
}
.saf-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f2846;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
}
.saf-location-btn:hover,
.saf-location-btn:focus-visible {
    background: #467a30;
    color: #fff;
}

/* Map facade: fixed aspect ratio, so injecting the iframe causes no layout shift. */
.saf-map {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background-color: #e6ecf1;
    background-image:
        linear-gradient(28deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
        linear-gradient(118deg, transparent 48.5%, #f6d98b 48.5%, #f6d98b 51.5%, transparent 51.5%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.75) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.75) 2px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
    box-shadow: 0 14px 40px rgba(15, 40, 70, 0.12);
}
.saf-map-load {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: #0f2846;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.saf-map-pin {
    font-size: 2.6rem;
    color: #d93025;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
.saf-map-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: #0f2846;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 40, 70, 0.15);
    transition: background 0.2s, color 0.2s;
}
.saf-map-load:hover .saf-map-cta,
.saf-map-load:focus-visible .saf-map-cta {
    background: #0f2846;
    color: #fff;
}
.saf-map-load:focus-visible {
    outline: 3px solid #58923d;
    outline-offset: -3px;
}
.saf-map-note {
    font-size: 0.8rem;
    color: #3d5166;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
}
.saf-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer: directions link under the address + the compact map on non-landing pages. */
.saf-footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-weight: 600;
    color: #467a30 !important; /* on the light footer: 4.6:1 */
    text-decoration: none;
}
.saf-footer-directions:hover {
    color: #0f2846 !important;
}
.saf-map.saf-footer-map {
    margin: 0.5rem 0 1.1rem;
    border-radius: 12px;
    box-shadow: none;
    max-width: 360px;
}
.saf-footer-map .saf-map-pin {
    font-size: 2rem;
}
.saf-footer-map .saf-map-note {
    display: none;
}

@media (max-width: 991.98px) {
    .saf-location {
        padding: 3rem 0;
    }
    .saf-location-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }
}
