/**
 * Boutique info block (CMS block "kruzik-boutiquen").
 * Loaded only on the homepage (cms_index_index), the boutique page (cms_page_view_id_boutique) and the service page.
 * Every selector is scoped to the block's own root class .kk-boutiques.
 * Square corners, uppercase tracked headings - matches the homepage hero rows.
 */

.kk-boutiques {
    display: grid;
    gap: 3rem;
}

/* Mobile: stacked image -> info -> map (DOM order).
   Desktop: portrait image (4:5, ~45 %) next to info (top) + map (bottom); the second boutique is
   mirrored (image right) so the two rows do not read as a repetition. Image column is capped so
   the photos are never upscaled beyond their real size. */
.kk-boutiques .kk-boutique {
    display: grid;
    gap: 1rem;
}

.kk-boutiques .kk-boutique__media,
.kk-boutiques .kk-map-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f3;
}

@media (min-width: 48rem) {
    .kk-boutiques {
        gap: 4rem;
    }

    .kk-boutiques .kk-boutique {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "media info"
            "media map";
        gap: 1rem;
        max-width: 72rem;
        margin-inline: auto;
    }

    .kk-boutiques .kk-boutique:nth-child(even) {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        grid-template-areas:
            "info media"
            "map media";
    }

    .kk-boutiques .kk-boutique__media {
        grid-area: media;
        aspect-ratio: 4 / 5;
    }

    .kk-boutiques .kk-boutique__info {
        grid-area: info;
    }

    .kk-boutiques .kk-boutique__map {
        grid-area: map;
        display: flex;
    }

    .kk-boutiques .kk-boutique__map .kk-map-wrap {
        aspect-ratio: auto;
        min-height: 16rem;
        flex: 1;
    }
}

.kk-boutiques .kk-boutique__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kk-boutiques .kk-boutique__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #f5f5f3;
    text-align: center;
}

.kk-boutiques .kk-boutique__city {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.kk-boutiques .kk-boutique__kicker {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.kk-boutiques .kk-boutique__address {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #333;
}

.kk-boutiques .kk-boutique__address a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgb(0 0 0 / 0.3);
    text-underline-offset: 0.3em;
}

.kk-boutiques .kk-boutique__address a:hover,
.kk-boutiques .kk-boutique__address a:focus-visible {
    text-decoration-color: currentColor;
}

/* Google Maps behind click consent */
.kk-boutiques .kk-map-wrap {
    position: relative;
    width: 100%;
}

.kk-boutiques .kk-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.kk-boutiques .kk-map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    text-align: center;
}

.kk-boutiques .kk-map-consent p {
    max-width: 260px;
    margin: 0;
    font-size: 0.8125rem;
    color: #555;
}

.kk-boutiques .kk-map-wrap.is-loaded .kk-map-consent {
    display: none;
}

.kk-boutiques .kk-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #111;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
}

.kk-boutiques .kk-btn:hover,
.kk-boutiques .kk-btn:focus-visible {
    background: #111;
    color: #fff;
}

/* Phones: on the homepage and the service page the block sits inside another Page Builder row, so its own row and
   the homepage row's inner padding added a second and third side gutter (block 247/279px instead of 327px at 390px).
   Same width as on the boutique page: only the page gutter remains. */
@media (max-width: 47.999rem) {
    [data-content-type="row"] [data-content-type="block"] [data-content-type="row"] {
        padding-inline: 0;
    }

    .cms-index-index [data-element="inner"]:has(> [data-content-type="block"]) {
        padding-inline: 0 !important; /* Page Builder sets the padding inline on the homepage row */
    }
}
