/* Map + CTA — two-column card: text left (60%), map image right (40%).
   Heading/button use shared .circla-* classes (see style.css). */

.map-cta-block {
    padding: 64px 0;
}

/* Grid so the CTA button can be a sibling of text/map (it needs to drop below
   the map on mobile). Left column spans both the text row and the button row;
   a ::before paints the continuous light card behind them. */
.map-cta-block__inner {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "text map"
        "cta  map";
    position: relative;
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 32px;
}

.map-cta-block__inner::before {
    content: "";
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    background-color: #f7f4f6;
    border-radius: 16px 0 0 16px;
}

.map-cta-block__text {
    grid-area: text;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 56px 56px 18px;
    align-items: flex-start;
}

.map-cta-block__cta {
    grid-area: cta;
    position: relative;
    justify-self: start;
    margin: 0 56px 56px;
}

/* This heading sits on a light card and is set to 38px to match the design.
   (.circla-heading defaults to 42px; this is the one section that differs.) */
.map-cta-block__heading {
    font-size: 38px !important;
    line-height: 45px !important;
    color: #233129 !important;
}

.map-cta-block__body {
    font-family: "Open Sans";
    font-size: 16px;
    line-height: 24px; /* 150% */
    color: #233129;
}

.map-cta-block__body p {
    margin: 0 0 14px;
}

.map-cta-block__body p:last-child {
    margin-bottom: 0;
}

/* Absolute image so it fills the column's full (flex-stretched) height —
   a percentage height on the <img> alone collapses to its intrinsic ratio. */
.map-cta-block__map {
    grid-area: map;
    position: relative;
    overflow: hidden;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.map-cta-block__map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    /* Full-bleed section: the grey text card spans 100% screen width; the text,
       map and button keep the global 16px gutter. */
    .map-cta-block {
        padding: 40px 0 24px;
    }
    /* Stack: text card → map → button (button drops below the map). */
    .map-cta-block__inner {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .map-cta-block__inner::before {
        display: none; /* per-element backgrounds take over when stacked */
    }
    .map-cta-block__text {
        order: 0;
        width: 100%;
        padding: 40px 16px;       /* full-width grey band, text at 16px gutter */
        background-color: #f7f4f6;
        border-radius: 0;
    }
    .map-cta-block__heading {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .map-cta-block__map {
        order: 1;
        margin: 0 16px;           /* 16px gutter */
        aspect-ratio: 16 / 10;
        min-height: 0;
        border-radius: 16px;
    }
    .map-cta-block__cta {
        order: 2;
        width: auto;              /* stretches to fill the 16px-gutter width */
        margin: 16px 16px 0;
    }
}
