/*
 * M.A.K. Galerie — cinematic location footer V11
 * 2/3 identity + contact, 1/3 vertical map (desktop).
 * An automatic cinematic approach begins on VISIBILITY (not a scroll scrub).
 * Building outlines are graphic ink, never fake shadow casts.
 * The map's desktop height is matched to the left-hand footer composition.
 */
.mak-footer {
    --mak-footer-blue: var(--mak-blue, #1a237e);
    --mak-footer-ink: #202328;
    --mak-footer-muted: #6b6e73;
    --mak-footer-rule: #dddee1;
    --mak-footer-paper: #fafaf9;
    box-sizing: border-box;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(54px,6vw,94px) clamp(23px,5.2vw,82px) 20px;
    border-top: 0;
    background: #fff;
    color: var(--mak-footer-ink);
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.mak-footer *,
.mak-footer *::before,
.mak-footer *::after { box-sizing: border-box; }

.mak-footer__inner {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
    column-gap: clamp(24px,3vw,49px);
    align-items: start;
}
.mak-footer__main {
    display: grid;
    grid-template-columns: minmax(0,1.06fr) minmax(0,1fr);
    align-items: start;
    gap: clamp(20px,2.5vw,38px);
    min-width: 0;
}
.mak-footer__col { min-width: 0; }
.mak-footer__col--img { margin: 0; }

/* Original illustration. NEVER crop or desaturate its MAK-blue facade. */
.mak-footer__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 10/7;
    overflow: hidden;
    border: 0;
    background: #fff;
}
.mak-footer__photo img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}
.mak-footer__photo img[hidden] { display: none !important; }
.mak-footer__photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    background: #fff;
    color: var(--mak-footer-blue);
    font-size: 28px;
    font-weight: 670;
    line-height: 1;
}
.mak-footer__photo-fallback span {
    font-size: 13px;
    letter-spacing: .15em;
    font-weight: 600;
}
.mak-footer__col--img figcaption {
    margin-top: 12px;
    color: var(--mak-footer-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .12em;
}

.mak-footer__col--addr { min-width:0; font-style:normal; }
.mak-footer__eyebrow {
    display:block;
    margin:0 0 19px;
    color:var(--mak-footer-muted);
    font-size:10.5px;
    font-weight:750;
    line-height:1.3;
    letter-spacing:.14em;
}
.mak-footer__address-card {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.mak-footer__col--addr p { margin: 0; }
.mak-footer__street {
    margin:0 0 25px !important;
    font-size: clamp(20px,1.75vw,27px);
    line-height:1.23;
    font-weight:560;
    letter-spacing:-.022em;
    overflow-wrap: normal;
}
.mak-footer__phone,.mak-footer__email {
    font-size: clamp(13.5px,1.05vw,15px);
    line-height:1.6;
}
.mak-footer__email { margin-top:9px !important; }
.mak-footer__contact-block { min-width:0; }
.mak-footer__contact {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    margin-top:22px;
    padding-top:17px;
    border-top:1px solid var(--mak-footer-rule);
    font-size:13.5px;
    line-height:1.5;
}
.mak-footer__person { font-size:13.8px; font-weight:750; }
.mak-footer__col--addr a {
    display:inline-block;
    max-width:100%;
    color:var(--mak-footer-ink);
    text-decoration:none;
    text-underline-offset:3px;
    overflow-wrap:anywhere;
    transition:color .24s ease;
}
.mak-footer__col--addr a:hover,
.mak-footer__col--addr a:focus-visible {
    color:var(--mak-footer-blue);
    text-decoration:underline;
}

/* The third of the composition behaves like a tall editorial plate. */
.mak-footer__col--map { min-width:0; }
/* In the desktop grid the map's real content height is synchronized with
 * the left group. No title above the map. */
.mak-footer__col--map { align-self: start; }
.mak-footer__map-frame {
    position:relative;
    isolation:isolate;
    width:100%;
    height:var(--mak-footer-map-height,clamp(330px,39vw,510px));
    overflow:hidden;
    border:0;
    background:#fff;
}
.mak-footer__map-poster,
.mak-footer__map-canvas {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}
.mak-footer__map-poster {
    z-index:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:6px;
    padding:clamp(18px,2.4vw,30px);
    background:#fff;
}
.mak-footer__map-poster-kicker {
    color:var(--mak-footer-blue);
    font-size:10px;
    font-weight:760;
    letter-spacing:.16em;
}
.mak-footer__map-poster-title {
    font-size:clamp(19px,2vw,25px);
    line-height:1.12;
    font-weight:620;
}
.mak-footer__map-poster-subtitle {
    color:var(--mak-footer-muted);
    font-size:12.5px;
}
.mak-footer__map-poster-title {
    color:inherit;
    text-decoration:none;
    border-bottom:1px solid currentColor;
    padding-bottom:2px;
}
.mak-footer__map-poster-title:focus-visible {
    outline:2px solid var(--mak-footer-blue);
    outline-offset:4px;
}
.mak-footer__map-canvas {
    z-index:1;
    display:block;
    opacity:0;
    pointer-events:none;
    transition:opacity .8s cubic-bezier(.2,.66,.3,1);
}
.mak-footer__map-frame--ready .mak-footer__map-canvas {
    opacity:1;
    pointer-events:auto;
}

/* Dedicated street-name labels are placed along actual vector road
   geometries and never intersect the gallery pin. */
.mak-footer__street-label {
    position:absolute;
    z-index:3;
    display:block;
    width:max-content;
    max-width:none;
    pointer-events:none;
    user-select:none;
    white-space:nowrap;
    color:#172735;
    font-family:"Nunito Sans",system-ui,sans-serif;
    font-size:14.5px;
    font-weight:580;
    line-height:1.15;
    letter-spacing:.01em;
    -webkit-text-stroke:2.7px #fff;
    paint-order:stroke fill;
    transform-origin:center center;
    text-shadow:none;
    opacity:0;
    transition:opacity 1000ms cubic-bezier(.22,.62,.18,1);
}
.mak-footer__street-label.is-visible {opacity:1;}
.mak-footer__street-label[hidden] {display:none!important;}
@media(max-width:650px){
    .mak-footer__street-label {font-size:12.5px;}
}
.mak-footer__map-pin {
    position:relative;
    display:block;
    width:22px;
    height:22px;
    border:3px solid #fff;
    border-radius:50%;
    background:var(--mak-footer-blue);
    outline:2px solid var(--mak-footer-blue);
    outline-offset:0;
    pointer-events:none;
}
.mak-footer__map-pin::after {
    content:"";
    position:absolute;
    inset:5px;
    background:#fff;
    border-radius:50%;
}

.mak-footer__bottom {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px 22px;
    margin-top:clamp(50px,5vw,72px);
    padding-top:16px;
    border-top:0;
    color:var(--mak-footer-muted);
    font-size:10.5px;
    line-height:1.55;
}
.mak-footer__bottom p { margin:0; }
.mak-footer .mak-sr-only {
    position:absolute;
    width:1px;height:1px;margin:-1px;padding:0;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
/* Copyright links remain available without a full-width credit bar. */
.mak-footer__map-credits {
    position:absolute;
    z-index:5;
    right:9px;
    bottom:9px;
    max-width:calc(100% - 20px);
    font-family:"Nunito Sans",system-ui,sans-serif;
    font-size:10px;
    color:#283440;
    pointer-events:auto;
}
.mak-footer__map-credits summary {
    list-style:none;
    cursor:pointer;
    width:max-content;
    min-width:31px;
    padding:3px 6px;
    margin-left:auto;
    background:rgba(255,255,255,.97);
    border:1px solid #d8dde1;
    line-height:1.5;
    text-align:center;
    font-size:10px;
}
.mak-footer__map-credits summary::-webkit-details-marker {display:none;}
.mak-footer__map-credits summary:focus-visible {
    outline:2px solid var(--mak-footer-blue);
    outline-offset:2px;
}
.mak-footer__map-credit-details {
    position:absolute;
    right:0;
    bottom:27px;
    width:max-content;
    max-width:min(260px,calc(100vw - 48px));
    padding:8px 10px;
    border:1px solid #d8dde1;
    background:#fff;
    line-height:1.65;
}
.mak-footer__map-credit-details a {
    color:inherit;
    text-decoration:underline;
}
/* Final shadow ban: map-controls inherited from MapLibre, caption and pin
   must have no drop-shadow, text-shadow or filter-based fake relief.
   The geometry itself provides the architectural ink instead. */
.mak-footer__map-pin,
.mak-footer .maplibregl-ctrl,
.mak-footer .maplibregl-ctrl-group,
.mak-footer .maplibregl-ctrl-attrib {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}
/* Required provider attribution is available from its native info control.
   The redundant row of credits is intentionally absent from the footer. */

@media(max-width:1150px) {
    .mak-footer__inner { grid-template-columns:minmax(0,1fr); row-gap:50px; }
    .mak-footer__main { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .mak-footer__map-frame { height:clamp(335px,49vw,465px); }
}
@media(max-width:650px) {
    .mak-footer { padding:51px 24px 16px; }
    .mak-footer__inner { row-gap:34px; }
    .mak-footer__main { grid-template-columns:minmax(0,1fr); gap:32px; }
    .mak-footer__address-card { padding:0; }
    .mak-footer__street { font-size:24px; }
    .mak-footer__map-frame { height:clamp(320px,94vw,435px); }
    .mak-footer__bottom { margin-top:49px; }
}
@media(max-width:360px) {
    .mak-footer { padding-left:16px; padding-right:16px; }
}
@media(prefers-reduced-motion:reduce) {
    .mak-footer__map-canvas,
    .mak-footer__street-label,
    .mak-footer__col--addr a { transition:none !important; }
}
@media print {
    .mak-footer__map-canvas,
    .mak-footer__map-poster { display:flex!important; }
}
