/* sv-map.css - click-to-load map facade (spec 12.1), 360-degree tour facade (12.2), the drawn delivery map (8.2.1),
   plus page-only rules for the Doors 2 pages (.sv-page-bbq / -catering / -contact / -404, see build-notes).
   Owner: Doors 2. Prefixes: sv-map, sv-tour. Tokens from base.css only. */

/* ---------- map facade (12.1): drawn map + "Kaart laden" panel; links under it always ---------- */
.sv-map-facade{display:grid;gap:8px;margin:0}
.sv-map-facade__frame{position:relative;grid-area:1/1;aspect-ratio:4/3;border-radius:var(--sv-r-card);overflow:hidden;background:var(--sv-sand-2);container-type:inline-size}
.sv-map-facade__svg{width:100%;height:100%}
.sv-map-facade__panel{display:grid;justify-items:start;gap:8px;padding-top:4px}
.sv-map-facade__small,.sv-tour__small{margin:0;font-size:.875rem;line-height:1.45;color:var(--sv-muted)}
.sv-dark .sv-map-facade__small,.sv-dark .sv-tour__small{color:var(--sv-mist)}
.sv-map-facade__links{display:flex;flex-wrap:wrap;column-gap:20px}
@media (min-width:600px){
  .sv-map-facade__frame{aspect-ratio:16/9}
  .sv-map-facade__panel{position:relative;z-index:1;grid-area:1/1;align-self:end;justify-self:start;max-width:calc(100% - 32px);margin:16px;padding:16px;border-radius:var(--sv-r-img);background:var(--sv-shell);color:var(--sv-text);box-shadow:var(--sv-shadow-float)}
  .sv-dark .sv-map-facade__panel .sv-map-facade__small{color:var(--sv-muted)}
}
/* labels of the inline map-locatie.svg (user units): larger when the map is small, so they stay readable */
@container (max-width:700px){.sv-map-l2{font-size:36px}.sv-map-l4{font-size:32px}}
@container (max-width:420px){.sv-map-l2{font-size:42px}.sv-map-l4{font-size:38px}}

/* ---------- 360-degree tour facade (12.2): 3:2 card, own still, round play icon, one real link ---------- */
.sv-tour{position:relative;display:grid;gap:12px;align-content:start}
.sv-tour__frame{position:relative;aspect-ratio:3/2;border-radius:var(--sv-r-card);overflow:hidden;background:var(--sv-sand-2)}
.sv-tour__media,.sv-tour__media picture{height:100%}
.sv-tour__media img{height:100%;object-fit:cover;transition:transform .3s var(--sv-ease)}
.sv-tour__play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:rgb(15 26 33 / .78);color:var(--sv-sand);box-shadow:inset 0 0 0 2px rgb(246 240 229 / .55)}
.sv-tour__play .sv-icon{width:32px;height:32px;margin-left:3px}
.sv-tour__body{display:grid;justify-items:start;gap:8px}
.sv-tour__btn::after{content:"";position:absolute;inset:0;z-index:1} /* the whole card opens the tour */
.sv-tour .sv-chip--ai{z-index:2}
.sv-tour.is-active .sv-tour__btn{display:none}
@media (prefers-reduced-motion:no-preference){.sv-tour:hover .sv-tour__media img{transform:scale(1.03)}}

/* ---------- after the click: skeleton (pulse; reduce motion = static "Kaart laden...") and the fading iframe ---------- */
.sv-map-skel{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:16px;background:var(--sv-sand-2);color:var(--sv-text);font-weight:600;text-align:center}
.sv-motion .sv-map-skel{animation:sv-map-pulse .6s ease-in-out infinite alternate}
.sv-motion .sv-map-skel > span{opacity:0}
.sv-map-skel.is-error{animation:none}
.sv-map-skel.is-error > span{opacity:1}
@keyframes sv-map-pulse{from{opacity:.6}to{opacity:1}}
.sv-map-frame{position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;transition:opacity .2s var(--sv-ease)}
.sv-map-frame.is-active{opacity:1}

/* ---------- drawn delivery map (8.2.1), inline in the catering hero ---------- */
.sv-map-bezorgen{width:100%;max-width:440px;justify-self:center}
.sv-map-bezorgen__svg{width:100%;height:auto;aspect-ratio:4/5;border-radius:var(--sv-r-card)}
/* fix round 1: the file draws 6 key labels at 44 units for the small <img> on home door 04 and hides the other 5;
   this inline copy shows all 11 places at the size the spec asks (Inter ~12-15 px) */
.sv-map-bezorgen__svg .sv-map-lbl{font-size:28px;stroke-width:6px}
.sv-map-bezorgen__svg .sv-map-lbl--more{display:inline}
.sv-map-bezorgen__svg .sv-map-cap{font-size:22px}
@media (min-width:1024px){.sv-map-bezorgen{justify-self:end}}

/* ---------- small shared helpers for the Doors 2 pages ---------- */
.sv-map-after{margin-top:24px}
.sv-map-note{margin-top:24px}
.sv-map-note + .sv-actions{margin-top:16px}
.sv-map-wide{margin-bottom:clamp(24px,4vw,40px)}

/* ---------- /bbq-buffetten ---------- */
@media (min-width:1024px){.sv-page-bbq .sv-arrs--2{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sv-page-bbq .sv-map-basis{background:var(--sv-sand-2);border-color:transparent}
@media (min-width:768px){.sv-page-bbq .sv-map-basis .sv-list-fulmar{grid-template-columns:repeat(3,auto);justify-content:start;column-gap:32px}}
.sv-page-bbq .sv-map-rows{max-width:760px}

/* ---------- /catering-bezorgen ---------- */
.sv-page-catering .sv-map-also{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px}
.sv-page-catering .sv-map-also__label{margin:0 4px 0 0;font:600 .8125rem/1.3 var(--sv-font-text);letter-spacing:.14em;text-transform:uppercase;color:var(--sv-muted)}
.sv-page-catering .sv-map-formbox{max-width:640px}
/* fix round 1: "Bestel online bij Good Catering Food" + the arrow fit one line of a 358 px phone column (no nowrap:
   larger text may still wrap) */
@media (max-width:599px){.sv-page-catering .sv-btn--primary{padding-inline:16px;font-size:.9375rem}}

/* ---------- /contact ---------- */
.sv-page-contact .sv-map-cards{padding-top:clamp(40px,6vw,64px)}
.sv-page-contact .sv-map-cards .sv-card > p{overflow-wrap:break-word}
.sv-page-contact .sv-map-nowrap{white-space:nowrap} /* e-mail breaks after the @, not at the hyphen */
.sv-page-contact .sv-map-hours{display:grid;gap:4px}
.sv-page-contact .sv-map-subjects{display:flex;flex-wrap:wrap;gap:12px}
.sv-page-contact .sv-map-narrow > *{max-width:640px}
.sv-page-contact .sv-map-photo{margin:0}
/* fix round 1: the contact map is not a 1200 x 675 strip of three flat bands; next to the 360 card the daylight
   photo fills the row the card sets (the 3:2 the review suggested made it 70 px taller still), so both end level */
@media (min-width:1024px){
  .sv-page-contact .sv-map-facade{max-width:800px}
  .sv-page-contact .sv-split:has(> .sv-map-photo){align-items:stretch}
  .sv-page-contact .sv-map-photo{display:flex;flex-direction:column}
  .sv-page-contact .sv-map-photo > .sv-media{flex:1 1 0;min-height:240px}
  .sv-page-contact .sv-map-photo > .sv-media img{position:absolute;inset:0;height:100%;object-fit:cover}
}
@media (max-width:599px){.sv-page-contact .sv-map-nowrap{white-space:normal}} /* reflow at 200 % text */

/* ---------- 404 (8.5): centred, the fulmar 120 px lime-deep, gliding (base .sv-float) ---------- */
.sv-page-404 .sv-map-404__bird{width:120px;margin:0 auto 24px;color:var(--sv-lime-deep)}
.sv-page-404 .sv-section-head > h1 + .sv-lead{margin-top:16px}
.sv-page-404 .sv-map-404__home{justify-content:center;margin-top:clamp(32px,5vw,48px)}
