/* =====================================================================
   Qədiroğlu MMC — Corporate stylesheet
   1. Design tokens
   2. Reset & base
   3. Layout primitives
   4. Header / navigation
   5. Hero
   6. Sections & typography
   7. Cards, grids, placeholders
   8. Venues, gallery, contact
   9. Footer
   10. Sub-pages
   11. Motion
   12. Tablet  (≤1080 / ≤900)
   13. Phone   (≤640) — a deliberately more compact layout
   ===================================================================== */

/* ---------- 1. Design tokens ---------------------------------------- */
:root {
  /* Blue — deliberately light and airy rather than a closed-in navy.
     Lifted toward the blue of the logo, but kept well short of aqua. */
  --navy-900: #1C4459;
  --navy-800: #24566E;
  --navy-700: #2E6884;
  --navy-600: #3C7C99;

  /* Single accent, three weights */
  --teal-700: #0A6472;
  --teal-600: #0D7C8C;
  --teal-500: #15A0B2;
  --teal-300: #86D2DC;

  --green-600: #1B8B44;

  /* Text */
  --ink:      #16293A;
  --ink-soft: #3D5566;
  --muted:    #64798A;

  /* Warm neutral surfaces — the page is never plain white */
  --paper:    #F8F6F2;
  --paper-2:  #F0ECE4;
  --paper-3:  #E5DED2;
  --white:    #FFFFFF;
  --line:     #E4DED3;
  --line-2:   #EFEAE1;

  /* Social brand colours */
  --fb:  #1877F2;
  --yt:  #FF0000;
  --li:  #0A66C2;
  --x:   #000000;

  --radius-sm: 7px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-xs: 0 1px 2px rgba(22, 41, 58, .05);
  --shadow-sm: 0 2px 8px rgba(22, 41, 58, .06);
  --shadow-md: 0 10px 28px rgba(22, 41, 58, .10);
  --shadow-lg: 0 20px 50px rgba(22, 41, 58, .16);

  --container: 1220px;
  --gutter: 28px;
  --header-h: 86px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

svg { width: 100%; height: 100%; fill: currentColor; }
svg.icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout primitives ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 104px 0; }
.section--tight { padding: 76px 0; }
.section--surface { background: var(--paper-2); }

/* Dark band — breaks up the light half of the page */
.section--dark {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .82);
}
.section--dark .section__title,
.section--dark .banner__title { color: var(--white); }
.section--dark .kicker { color: var(--teal-300); }
.section--dark .section__sub { color: rgba(255, 255, 255, .8); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--countries { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Header ----------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(248, 246, 242, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.header.is-stuck {
  background: rgba(248, 246, 242, .96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; }

/* The logo PNG is transparent — no plate, no ring behind it */
.logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 54px; height: 54px;
}
.logo--sm { width: 50px; height: 50px; }
.logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.logo img.is-missing { display: none; }
.logo__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .05em;
  color: var(--ink);
}
.brand__suffix {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--teal-700);
}

.nav__list { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(22, 41, 58, .05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Wrapper around the language bar. On desktop it does nothing — the bar
   shows as a row. On phones it becomes the anchor the sheet hangs from. */
.lang { position: relative; display: inline-flex; }
.lang__toggle { display: none; }

.langbar {
  display: inline-flex;
  padding: 4px;
  background: rgba(22, 41, 58, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.langbar__btn:hover { color: var(--ink); }
.langbar__btn.is-active { color: var(--white); background: var(--navy-800); }

/* The inactive flags sit back so the chosen language still reads as the
   one that is on; hovering or selecting brings the flag to full colour. */
.langbar__flag {
  width: 19px;
  height: 13px;
  flex: none;
  border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(22, 41, 58, .13) inset;
  opacity: .55;
  filter: saturate(.7);
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.langbar__btn:hover .langbar__flag,
.langbar__btn.is-active .langbar__flag { opacity: 1; filter: none; }
.langbar__btn.is-active .langbar__flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; }

.burger {
  display: none;
  width: 50px; height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(28, 68, 89, .55);
  z-index: 90;
}

/* ---------- 5. Hero -------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 96px) 0 100px;
  background: linear-gradient(178deg, var(--navy-900) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, .85);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.hero__eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  flex: none;
  background: var(--teal-500);
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.9rem, 5.8vw, 4.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero__rule {
  width: 68px; height: 4px;
  margin-bottom: 24px;
  background: var(--teal-500);
}
.hero__lead {
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  font-size: 16.5px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; }

/* Solid white on the lighter blue — teal no longer separates from the
   background enough to read as a button. */
.btn--primary { color: var(--navy-900); background: var(--white); }
.btn--primary:hover { background: var(--paper-2); }

.btn--ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .32); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

.btn--outline {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}
.btn--outline:hover { border-color: var(--teal-600); color: var(--teal-700); }

/* Side panel — large, with the logo shown big and unframed.
   A translucent lift rather than a fixed colour, so it always reads as
   sitting above the hero no matter where the gradient is behind it. */
.hero__panel {
  padding: 40px 38px 34px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
}
.hero__panel-logo {
  width: min(200px, 62%);
  height: auto;
  margin: 0 auto 34px;
}
.hero__facts { display: grid; }
.hero__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}
.hero__fact:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__fact dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}
.hero__fact dd {
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  color: var(--white);
  text-align: right;
}

/* ---------- 6. Sections & typography -------------------------------- */
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.section__head--left { margin-inline: 0; text-align: left; }

.section__title {
  font-size: clamp(2.05rem, 3.6vw, 2.8rem);
  margin-bottom: 16px;
}
.section__title--sm { font-size: clamp(1.5rem, 2.3vw, 1.9rem); }

.section__sub { font-size: 1.14rem; color: var(--muted); }

.section__actions { margin-top: 44px; display: flex; justify-content: center; }

/* General Information — editorial two-column */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  gap: 68px;
  align-items: start;
}
.about__aside { position: sticky; top: calc(var(--header-h) + 32px); }

.about__lead {
  font-size: clamp(1.22rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.about__body p + p { margin-top: 22px; }
.about__body p { font-size: 1.1rem; }

.facts {
  display: grid;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-2);
}
.fact:last-child { border-bottom: 0; }
.fact dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd { margin: 0; font-size: 1.06rem; font-weight: 650; color: var(--ink); text-align: right; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  padding: 12px;
  color: var(--teal-700);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
}
.pillar__title { font-size: 1.22rem; margin-bottom: 10px; }
.pillar__text { font-size: 1.04rem; color: var(--muted); }

/* ---------- 7. Cards, grids, placeholders --------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--paper-3);
  box-shadow: var(--shadow-md);
}
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 1.2rem; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.card__link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.card:hover .card__link svg,
.venue-cat:hover .card__link svg { transform: translateX(4px); }

.card--country .card__media { display: flex; align-items: center; padding: 26px 24px 0; }
/* Fixed height, width follows the flag's own proportions. National flags
   are NOT all the same shape — 3:2 for most, 2:1 for Kazakhstan and
   Uzbekistan, 7:4 for Iran — so forcing them all into one box and
   cropping the overflow cuts real detail off the hoist edge. Kazakhstan
   lost its entire ornament strip that way. */
.flag {
  height: 44px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(22, 41, 58, .2);
}
/* Country-code chip is shown only when the flag image is missing. It has
   no intrinsic size, so unlike the image it needs an explicit width. */
.flag + .flag--ph { display: none; }
.flag--ph {
  display: grid;
  place-items: center;
  width: 66px; height: 44px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--paper-3);
  box-shadow: none;
}

.card--brand .card__logo { padding: 24px 24px 0; }
.card--brand .card__body { align-items: flex-start; }

.card--product { padding: 18px; gap: 16px; }
.card--product .card__title { font-size: 1.04rem; }
.card--empty:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* Not a link — sits still instead of inviting a click */
.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* Placeholder rectangle */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper-2) 10px 20px);
  border: 1px dashed var(--paper-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph--contain img { object-fit: contain; padding: 12px; background: var(--white); }

/* Frame holding a real image: plain block so the photo fills it edge to
   edge — no hatching, no dashes, no centering inset. */
.ph--filled {
  display: block;
  padding: 0;
  background: var(--paper-2);
  border-style: solid;
  border-color: var(--line);
}
.ph--filled img { display: block; width: 100%; height: 100%; }
.ph--contain.ph--filled { background: var(--white); }
.ph--wide   { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--photo  { aspect-ratio: 3 / 2; border-radius: 0; border-width: 0 0 1px 0; }
.ph--hero   { aspect-ratio: 21 / 9; }

.ph__mark { width: 30px; height: 30px; margin-inline: auto; color: #B5AA98; }
.ph__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  max-width: 24ch;
  margin-inline: auto;
}

.chip {
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: rgba(13, 124, 140, .1);
  border-radius: 999px;
}

/* "Coming soon" — takes the place of the card's link, so it sits at the
   bottom the same way, and stays grey rather than teal: it is a status,
   not something to click. */
.chip--soon {
  margin-top: auto;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--paper-3);
}

/* Empty state shown in place of the product grid, on a country or brand
   whose products have not been added yet. Same hatched, dashed treatment
   as the image placeholders, so it reads as "nothing here yet" rather
   than as a card. */
.soon {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px 32px;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper-2) 10px 20px);
  border: 1px dashed var(--paper-3);
  border-radius: var(--radius-sm);
}
.soon__mark { width: 44px; height: 44px; color: #B5AA98; }
.soon__mark svg { width: 100%; height: 100%; }
.soon__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.soon__text { max-width: 46ch; font-size: 1.05rem; color: var(--muted); }

/* ---------- 7b. Map (map.html) --------------------------------------
   Leaflet's own stylesheet is loaded at runtime, only on pages that
   actually show a map. Everything here sits on top of it.            */
.map {
  position: relative;    /* anchors .map-gate */
  height: clamp(420px, 68vh, 680px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;      /* keeps the tiles inside the rounded corner */
  background: var(--paper-2);
  z-index: 0;            /* stays under the fixed header */
  /* Once active on a phone, Leaflet correctly sets touch-action: none
     on this element so it owns drag/pinch — but a fast fling can still
     "chain" its momentum into the page's own scroll once it reaches an
     edge, which is a separate browser behaviour touch-action doesn't
     cover. overscroll-behavior is what actually stops that chaining. */
  overscroll-behavior: contain;
}
/* Phone-only tap gate: dragging/pinch-zoom start disabled on touch (see
   app.js) so a scroll gesture over the map scrolls the page instead of
   panning the map; this is what asks for the tap that turns them back
   on. Sits above every Leaflet pane *and* its controls (zoom buttons
   included) so nothing on the map is interactive until it's dismissed. */
.map-gate {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(22, 41, 58, .28);
  cursor: pointer;
}
.map-gate__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.map-gate__pill svg { width: 18px; height: 18px; color: var(--teal-700); }

/* The way back out of the gate above, once dragging/pinch-zoom are on —
   otherwise a phone visitor who taps in has no way to get page-scroll
   back over the map short of scrolling around it entirely. Sits above
   Leaflet's own controls, same reasoning as .map-gate. */
.map-exit {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Sized to a real thumb: min-height carries it past the 44px touch
     target guideline rather than relying on padding to get there. */
  min-height: 46px;
  padding: 0 18px 0 15px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1;
  /* Dark on purpose. The basemap is a pale grey canvas, so a white chip
     with a small × disappears into it — the button has to be the one
     dark thing on screen, and carry a word rather than just an icon. */
  color: #fff;
  background: var(--navy-800);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(12, 22, 31, .34), 0 0 0 3px rgba(255, 255, 255, .78);
  cursor: pointer;
  animation: map-exit-in .32s var(--ease) both;
}
.map-exit svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.map-exit:hover { background: var(--ink); }
.map-exit:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Slides down from under the map's top edge, so the eye is taken to it
   at the moment the map starts capturing touch. */
@keyframes map-exit-in {
  from { opacity: 0; transform: translateY(-10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* The map is holding your finger: say so on the frame itself. */
.map.is-live,
#map.is-live {
  box-shadow: 0 0 0 2px var(--teal-600), var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .map-exit { animation: none; }
}
/* No pins yet: the map frame gets out of the way and the "Coming soon"
   panel inside provides all the visuals. */
.map--soon {
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
}

/* The placeholder still has to read as a map. Two faint crossing
   gradients stand in for streets, and it keeps the map's own 4:3 shape
   rather than shrinking to its text. */
.soon--map {
  aspect-ratio: 4 / 3;
  align-content: center;
  gap: 9px;
  padding: 28px 24px;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(22, 41, 58, .05) 46px 48px),
    repeating-linear-gradient(0deg,  transparent 0 46px, rgba(22, 41, 58, .05) 46px 48px),
    var(--paper-2);
}
.soon--map .soon__mark  { width: 34px; height: 34px; color: var(--teal-600); }
.soon--map .soon__title { font-size: 1.35rem; }
.soon--map .soon__text  { max-width: 34ch; font-size: .98rem; }

/* Small "MAP" caption above the heading, so there is no doubt what the
   box is going to be. */
.soon__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.map--empty {
  display: grid;
  place-items: center;
  padding: 32px;
  height: clamp(260px, 34vh, 360px);
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper-2) 10px 20px);
  border-style: dashed;
  border-color: var(--paper-3);
}
.map__empty { max-width: 44ch; font-size: 1.05rem; color: var(--muted); }
.map__note  { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

.map-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.chip--filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease);
}
.chip--filter svg { width: 15px; height: 15px; }
.chip--filter:hover { color: var(--ink); border-color: var(--paper-3); }
.chip--filter.is-active {
  color: var(--white);
  background: var(--navy-800);
  border-color: var(--navy-800);
}

/* Pin — a rounded teardrop with the category's icon in it. Drawn in
   CSS rather than shipped as an image, so it stays sharp and can be
   recoloured per category. */
.pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--white);
  background: var(--teal-600);
  background: linear-gradient(155deg, var(--teal-500), var(--teal-600) 68%);
  border: 2.5px solid var(--white);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(22, 41, 58, .38), 0 1px 3px rgba(22, 41, 58, .22);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pin svg { width: 21px; height: 21px; transform: rotate(45deg); }
.pin--store      { background: linear-gradient(155deg, #3FAE68, var(--green-600) 68%); }
.pin--restaurant { background: linear-gradient(155deg, #D1554A, #B23A2E 68%); }
.pin--sport      { background: linear-gradient(155deg, #4C8DD9, #2F6FB0 68%); }
.pin--office     { background: linear-gradient(155deg, #333336, #0E0E10 68%); }
.leaflet-marker-icon:hover .pin {
  transform: rotate(-45deg) scale(1.14);
  box-shadow: 0 6px 18px rgba(22, 41, 58, .44), 0 2px 5px rgba(22, 41, 58, .26);
}

/* Popup: Leaflet's chrome reset to the site's card look. */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.leaflet-popup-content { margin: 16px 18px; }

/* Attribution: required text (OSM/CARTO's free-tile terms), styled down
   to a quiet corner label instead of a visible bar. */
.leaflet-control-attribution {
  padding: 1px 6px;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(248, 246, 242, .72);
}
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-control-attribution a:hover { color: var(--ink-soft); }
.pop__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.pop__title { margin: 5px 0 0; font-size: 1.06rem; line-height: 1.3; }
.pop__addr  { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* Call link — shown only for a venue that carries its own `phone`.
   Shared by the map popup and the locations list card. */
.pop__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--teal-700);
  transition: color .2s var(--ease);
}
.pop__phone svg { width: 15px; height: 15px; fill: currentColor; }
.pop__phone b   { font-weight: 650; }
.pop__phone:hover { color: var(--ink); }

/* The same link as a full button on the venue's own page. */
.detail__contact { margin: 24px 0 0; }
.detail__contact .btn b { font-weight: 650; }

.pop__routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.pop__routes-label {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pop__route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pop__route svg { width: 16px; height: 16px; }
.pop__route:hover { color: var(--teal-700); border-color: var(--teal-600); }

.pop__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.pop__link svg { width: 15px; height: 15px; }

/* Locations page (locations.html) — search + category tabs driving a
   scrollable card list beside the map. .chip--filter (defined above)
   is reused as-is for the tabs, so only the search field and the
   cards themselves need their own rules. */
.locator {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
.locator__panel { display: flex; flex-direction: column; gap: 16px; }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field > svg {          /* the magnifier only, not the button's icon */
  position: absolute;
  left: 16px;
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease);
}
/* Submit button inside the field: filtering happens as you type, this is
   what moves the map to whatever matched. */
.search-field__go {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;                 /* fills the field's height, no transform needed
                                  so :active can use scale on its own */
  display: grid;
  place-items: center;
  width: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.search-field__go svg { width: 17px; height: 17px; fill: currentColor; color: #fff; }
.search-field__go:hover { background: var(--ink); }
.search-field__go:active { transform: scale(.94); }
.search-field__go:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }
/* Room for it, so a long query never runs underneath. */
.search-field input { padding-right: 50px; }

/* Briefly flagged when a search matched nothing, so submitting never
   looks like it did nothing at all. */
.search-field.is-empty-result input { border-color: #c8553d; }

.search-field input:focus { outline: none; border-color: var(--teal-600); }
.search-field input::placeholder { color: var(--muted); }

.locator__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.loc-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.loc-card:hover, .loc-card:focus-visible { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.loc-card__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.loc-card__title { margin: 5px 0 0; font-size: 1.05rem; line-height: 1.3; }
.loc-card__addr  { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.loc-card__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.loc-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: var(--radius);
}

/* ---------- 8. Venues, gallery, contact ----------------------------- */
.venue-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.venue-cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease);
}
.venue-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.venue-cat__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  padding: 13px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: var(--radius-sm);
}
.venue-cat__title { font-size: 1.35rem; }
.venue-cat__count {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 16px;
}

/* Venue cards on the dark band */
.section--dark .venue-cat {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .13);
}
.section--dark .venue-cat:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.section--dark .venue-cat__title { color: var(--white); }
.section--dark .venue-cat__count { color: var(--teal-300); }
/* White reads stronger than the accent against this band */
.section--dark .card__link { color: var(--white); }

/* Gallery banner */
.banner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px 32px;
  margin-bottom: 26px;
  background: var(--navy-800);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .84);
}
.banner__icon {
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  padding: 14px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: var(--radius-sm);
}
.banner__body { flex: 1; }
.banner__kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.banner__title { color: var(--white); font-size: 1.35rem; margin: 5px 0; }
.banner__sub { font-size: 1.04rem; color: rgba(255, 255, 255, .78); }
.banner .btn { flex: none; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery__item .ph { border: 0; border-radius: 0; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  flex: none;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  padding: 12px;
  color: var(--teal-700);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
}
.contact-card__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-card__value {
  font-size: 1.14rem;
  font-weight: 650;
  color: var(--ink);
  transition: color .2s var(--ease);
}
a.contact-card__value:hover { color: var(--teal-700); }

/* .map already carries its own border/radius (see section 7), so this
   is just a column stacking the map and the "View Full Map" link
   below it — not a second frame around both. */
.contact__map { display: flex; flex-direction: column; gap: 16px; }
.contact__map .ph { border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.contact__map-cta { align-self: flex-start; }

/* ---------- 9. Footer ------------------------------------------------ */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .76);
  border-top: 3px solid var(--teal-600);
}
.footer__grid {
  display: grid;
  /* last column is widest — it holds five social icons on one line */
  grid-template-columns: 1.4fr .85fr 1.15fr 1.3fr;
  gap: 44px;
  padding-block: 66px 48px;
}
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__suffix { color: var(--teal-300); }

.footer__tagline { margin: 20px 0 8px; font-size: 1.04rem; max-width: 34ch; }
.footer__loc { font-size: .96rem; color: rgba(255, 255, 255, .6); }

.footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__list { display: grid; gap: 12px; font-size: 1.04rem; }
.footer__list a { transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--teal-300); }

/* Social icons carry their own brand colour */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__link {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 11px;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.social__link:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* The "f" is framed edge to edge in its viewBox, so it also gets less
   padding than the other marks — that is what makes it read large. */
.social__link--facebook  { background: var(--fb); padding: 9px; }
.social__link--youtube   { background: var(--yt); }
.social__link--linkedin  { background: var(--li); }
/* X's brand colour is black, which needs an edge to read on dark navy */
.social__link--x { background: var(--x); border-color: rgba(255, 255, 255, .22); }
.social__link--x:hover { filter: none; border-color: rgba(255, 255, 255, .45); }
.social__link--instagram {
  background:
    radial-gradient(circle at 28% 106%, #FDF497 0%, #FDF497 5%, #FD5949 45%,
                    #D6249F 62%, #285AEB 92%);
}

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 22px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .62);
}
.footer__top:hover { color: var(--teal-300); }

/* ---------- 10. Sub-pages -------------------------------------------- */
.page-head {
  padding: calc(var(--header-h) + 60px) 0 50px;
  background: linear-gradient(172deg, var(--navy-800), var(--navy-700));
  color: rgba(255, 255, 255, .84);
}
.page-head .kicker { color: var(--teal-300); }
.page__title { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page__sub { margin-top: 16px; max-width: 60ch; font-size: 1.14rem; color: rgba(255, 255, 255, .82); }

.backlink {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .76);
  transition: color .2s var(--ease);
}
.backlink svg { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .2s var(--ease); }
.backlink:hover { color: var(--white); }
.backlink:hover svg { transform: rotate(180deg) translateX(3px); }

/* Title row — a venue logo, when there is one, sits beside the title */
.page__heading { display: flex; align-items: center; gap: 22px; }
/* Wide wordmarks on white artwork — size by height, and sit them on a
   deliberate white plate so the background reads as intentional. */
.page__logo {
  flex: none;
  height: 62px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
}

/* The frame hugs the photo rather than the photo being cut to fit the
   frame — these images range from 3:2 to square. */
.detail__media {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail__media .ph { border: 0; border-radius: 0; }

/* A placeholder has no image to take its size from, so give it one */
.detail__media .ph:not(.ph--filled) { width: min(100%, 900px); }

/* A real photo keeps its own proportions, capped so it stays in scale
   with the gallery below it. */
.detail__media .ph--filled { aspect-ratio: auto; }
.detail__media .ph--filled img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
}

/* Heading above the extra-photos gallery on a venue page */
.detail__sub { margin: 56px 0 24px; }

/* ---------- 11. Motion ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.grid > .reveal:nth-child(2), .venue-cats > .reveal:nth-child(2), .gallery > .reveal:nth-child(2) { transition-delay: .05s; }
.grid > .reveal:nth-child(3), .venue-cats > .reveal:nth-child(3), .gallery > .reveal:nth-child(3) { transition-delay: .10s; }
.grid > .reveal:nth-child(4), .gallery > .reveal:nth-child(4) { transition-delay: .15s; }
.grid > .reveal:nth-child(6) { transition-delay: .05s; }
.grid > .reveal:nth-child(7) { transition-delay: .10s; }
.grid > .reveal:nth-child(8) { transition-delay: .15s; }

/* Home previews render one extra tile so phones get a full 2×2 block;
   wider screens trim back to a clean row. */
@media (min-width: 641px) {
  .grid--preview > *:nth-child(n+4) { display: none; }
}

/* ---------- First-visit tour ----------------------------------------
   Four dim panels frame the highlighted control, leaving a real gap in
   the middle — so the control underneath stays clickable. The wrapper
   itself is click-through; only the panels and the tooltip catch input.
   These rules apply to markup that exists on a visitor's first visit
   only, and never render again afterwards.
   -------------------------------------------------------------------- */
body.tour-open { overflow: hidden; }

.tour {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.tour.is-in { opacity: 1; }

.tour__panel {
  position: fixed;
  pointer-events: auto;
  background: rgba(12, 32, 44, .68);
}
/* Positions animate only once the overlay is visible, so the very first
   placement does not slide in from nowhere. */
.tour.is-in .tour__panel,
.tour.is-in .tour__ring,
.tour.is-in .tour__tip {
  transition: left .35s var(--ease), top .35s var(--ease),
              width .35s var(--ease), height .35s var(--ease);
}

.tour__ring {
  position: fixed;
  pointer-events: none;
  border: 2px solid var(--teal-300);
  border-radius: 10px;
  animation: tourPulse 2.2s var(--ease) infinite;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(134, 210, 220, .30); }
  50%      { box-shadow: 0 0 0 9px rgba(134, 210, 220, .10); }
}

/* Deliberately unlike the site's white cards: a dark coach mark with a
   tail pointing at whatever is highlighted, so it reads as guidance
   sitting on top of the page rather than as page content. */
.tour__tip {
  position: fixed;
  pointer-events: auto;
  width: min(330px, calc(100vw - 28px));
  padding: 22px 24px 20px;
  background: var(--navy-800);
  border: 1px solid rgba(134, 210, 220, .30);
  border-radius: var(--radius);
  box-shadow: 0 20px 46px rgba(6, 22, 32, .45);
}
.tour__tip::before {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 14px; height: 14px;
  background: var(--navy-800);
  border: 1px solid rgba(134, 210, 220, .30);
  transform: translateX(-50%) rotate(45deg);
}
.tour__tip[data-side="below"]::before { top: -8px;    border-width: 1px 0 0 1px; }
.tour__tip[data-side="above"]::before { bottom: -8px; border-width: 0 1px 1px 0; }

.tour__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  padding: 8px;
  color: rgba(255, 255, 255, .5);
  border-radius: 50%;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tour__close:hover { color: var(--white); background: rgba(255, 255, 255, .12); }

.tour__tip-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  padding-right: 32px;
  margin-bottom: 8px;
}
/* The language step says the same thing in all three at once, with no
   one of them treated as the "main" one. */
.tour__tip-title.is-multi { display: grid; gap: 5px; margin-bottom: 0; }
.tour__tip-title.is-multi span { font-size: 1.05rem; line-height: 1.3; }

.tour__tip-text { font-size: .96rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }

.tour__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.tour__dots { display: flex; gap: 7px; }
.tour__dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.tour__dots i.is-on { background: var(--teal-300); transform: scale(1.3); }
.tour__next {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  padding: 13px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.tour__next:hover { background: var(--teal-500); transform: translateX(2px); }

/* =====================================================================
   12. Tablet
   ===================================================================== */
@media (max-width: 1080px) {
  .about__grid { grid-template-columns: 1fr; gap: 42px; }
  .about__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero__panel { max-width: 540px; }
  .hero__panel-logo { width: 180px; }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform .26s var(--ease), opacity .2s var(--ease), visibility .26s;
    z-index: 95;
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 18px; }
  .nav__link {
    display: block;
    padding: 16px 4px;
    font-size: 17.5px;
    border-bottom: 1px solid var(--line-2);
    border-radius: 0;
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: transparent; }
  .nav__link.is-active { color: var(--teal-700); }

  .section { padding: 76px 0; }
  .hero { padding-bottom: 76px; }

  .pillars { grid-template-columns: 1fr; }
  .venue-cats { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .locator { grid-template-columns: 1fr; }
  .locator__list { max-height: 420px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--countries { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .banner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* =====================================================================
   13. Phone — a more compact structure, but comfortable type sizes.
   ===================================================================== */
@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 66px; }

  body { font-size: 16.5px; line-height: 1.65; }

  /* --- Header --- */
  .logo--sm { width: 42px; height: 42px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 15px; }
  .brand__suffix { font-size: 10.5px; letter-spacing: .17em; }
  .header__actions { gap: 9px; }
  /* Phones: three flags in a row leave no width for the menu button, so
     the languages move into a sheet behind one toggle. The toggle wears
     the flag of whatever language you are currently reading in. */
  .lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 7px;
    background: rgba(22, 41, 58, .05);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease);
  }
  .lang__current { display: inline-flex; align-items: center; gap: 6px; }
  .lang__code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--ink);
  }
  .lang__toggle .langbar__flag { opacity: 1; filter: none; width: 20px; height: 14px; }
  .lang__chevron {
    width: 15px;
    height: 15px;
    flex: none;
    transition: transform .26s var(--ease);
  }
  .lang.is-open .lang__toggle { background: rgba(22, 41, 58, .1); border-color: var(--paper-3); }
  .lang.is-open .lang__chevron { transform: rotate(180deg); }

  /* The sheet. Laid out as a column with the labels back in — there is
     room for them here, and they are what makes the choice readable. */
  .lang .langbar {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 120;
    flex-direction: column;
    gap: 2px;
    min-width: 132px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(16, 26, 34, .17), 0 2px 6px rgba(16, 26, 34, .08);

    /* Closed: collapsed toward the toggle and not hit-testable. The
       properties animate, so this doubles as the "out" state. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.96);
    transform-origin: top right;
    transition: opacity .2s var(--ease),
                transform .26s cubic-bezier(.22, 1, .36, 1),
                visibility 0s linear .26s;
  }
  .lang.is-open .langbar {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s var(--ease),
                transform .3s cubic-bezier(.22, 1, .36, 1),
                visibility 0s;
  }

  .lang .langbar__btn {
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 9px;
  }
  .lang .langbar__btn > span { position: static; width: auto; height: auto; clip: auto; margin: 0; }
  .lang .langbar__flag { width: 22px; height: 15px; }

  /* Each row eases in just behind the one above it, so the sheet reads
     as opening rather than appearing. */
  .lang .langbar__btn {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s var(--ease), transform .2s var(--ease),
                color .2s var(--ease), background .2s var(--ease);
  }
  .lang.is-open .langbar__btn { opacity: 1; transform: none; }
  .lang.is-open .langbar__btn:nth-child(1) { transition-delay: .04s, .04s, 0s, 0s; }
  .lang.is-open .langbar__btn:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
  .lang.is-open .langbar__btn:nth-child(3) { transition-delay: .12s, .12s, 0s, 0s; }
  .burger { width: 44px; height: 44px; padding: 13px 11px; }

  /* --- Hero: the desktop composition, not a shrunken copy of it. Same
         left-aligned eyebrow / title / rule / lead, given the whole screen
         so the title can go really large — that size is what carries the
         hero on a phone, in place of the fact panel that sits beside the
         copy on desktop. The panel itself is dropped: those three facts
         repeat verbatim in General Information immediately below. --- */
  .hero {
    position: relative;
    overflow: hidden;     /* crops the oversized logo below */
    display: grid;
    align-content: center;
    min-height: 100vh;
    min-height: 100svh;   /* ignores the phone's collapsing URL bar */
    padding: calc(var(--header-h) + 30px) 0 40px;
  }
  .hero__grid { position: relative; z-index: 1; gap: 0; }

  /* The logo is not placed on the hero, it *is* the hero's background:
     blown up far past the screen and cropped by it, sitting behind the
     type at low opacity. Reads as a brand mark rather than a letterhead,
     and gives the flat gradient something to hold. The panel's frame and
     its three facts go — the facts repeat in General Information below. */
  .hero__panel {
    position: absolute;
    right: -32vw;
    bottom: -8vh;
    z-index: 0;
    padding: 0;
    background: none;
    border: 0;
    pointer-events: none;
  }
  .hero__facts { display: none; }
  /* Desaturated on purpose: in full colour at this size it reads as a
     faded sticker, in grey as part of the background. */
  .hero__panel-logo {
    width: 95vw;
    margin: 0;
    opacity: .1;
    filter: grayscale(1) brightness(1.4);
  }

  /* Wraps cleanly on narrow phones instead of running to the edge */
  .hero__eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: .07em;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
  }
  .hero__eyebrow::before { width: 20px; margin-top: 7px; }
  .hero__title {
    font-size: clamp(3rem, 14vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: 22px;
  }
  .hero__rule { width: 56px; margin-bottom: 24px; }
  .hero__lead { font-size: 1.1rem; margin-bottom: 32px; }
  /* Sized to their labels and left-aligned under the copy, rather than
     stretched across the screen. They wrap to a second row by themselves
     if the labels get long (they do in Russian on a narrow phone). */
  .hero__actions { gap: 10px; }
  .hero__actions .btn { padding: 14px 22px; font-size: 15px; }

  /* --- Section rhythm --- */
  .section { padding: 54px 0; }
  .section__head { margin-bottom: 30px; }
  .section__title { font-size: 1.85rem; margin-bottom: 12px; }
  .section__sub { font-size: 1.04rem; }
  .kicker { margin-bottom: 9px; font-size: 11.5px; letter-spacing: .12em; }
  .section__actions { margin-top: 26px; }
  .section__actions .btn { width: 100%; }

  /* --- General Information --- */
  .about__grid { gap: 28px; }
  .about__lead { font-size: 1.2rem; margin-bottom: 20px; }
  .about__body p { font-size: 1.05rem; }
  .about__body p + p { margin-top: 16px; }

  .facts { margin-top: 22px; }
  .fact { padding: 13px 16px; gap: 14px; }
  .fact dt { font-size: 11.5px; letter-spacing: .07em; }
  .fact dd { font-size: 1rem; }

  /* Pillars become compact rows */
  .pillars { grid-template-columns: 1fr; gap: 11px; margin-top: 30px; padding-top: 30px; }
  .pillar {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas: "icon title" "icon text";
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    padding: 16px 17px;
  }
  .pillar__icon { grid-area: icon; width: 42px; height: 42px; margin: 0; padding: 10px; }
  .pillar__title { grid-area: title; font-size: 1.08rem; margin: 0; }
  .pillar__text { grid-area: text; font-size: .97rem; line-height: 1.5; }

  /* --- Grids --- */
  .grid { gap: 13px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--countries, .grid--products, .grid--brands, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 11px; }

  /* "Coming soon" empty state */
  .soon { padding: 44px 20px; gap: 11px; }
  .soon__mark { width: 36px; height: 36px; }
  .soon__title { font-size: 1.3rem; }
  .soon__text { font-size: .97rem; }

  /* Country tiles */
  .card--country .card__media { padding: 16px 16px 0; }
  .card--country .card__body { padding: 12px 16px 16px; gap: 7px; }
  .card--country .card__title { font-size: 1.05rem; }
  .flag { height: 35px; width: auto; }
  .flag--ph { width: 52px; height: 35px; }
  .card__link { font-size: 12px; letter-spacing: .04em; gap: 7px; }
  .card__link svg { width: 15px; height: 15px; }

  /* Brand tiles */
  .card--brand .card__logo { padding: 14px 14px 0; }
  .card--brand .card__body { padding: 12px 16px 16px; gap: 7px; }
  .card--brand .card__title { font-size: 1.05rem; }
  .card--brand .ph--wide { aspect-ratio: 4 / 3; }
  .ph__label { font-size: 12px; max-width: 18ch; }
  .ph__mark { width: 24px; height: 24px; }

  /* Venue list cards become rows: thumbnail left, text right */
  .card--venue { flex-direction: row; align-items: stretch; }
  .card--venue > .ph {
    width: 108px;
    flex: none;
    aspect-ratio: auto;
    border-width: 0 1px 0 0;
    padding: 8px;
  }
  /* a real photo fills the whole thumbnail column */
  .card--venue > .ph--filled { padding: 0; }
  .card--venue > .ph .ph__label { display: none; }

  /* A wide wordmark needs the full card width, so logo cards stack
     instead of using the compact row layout. */
  .card--logo { flex-direction: column; }
  .card--logo > .ph {
    width: 100%;
    aspect-ratio: 5 / 2;
    border-width: 0 0 1px 0;
  }
  .card--logo .card__body { padding: 14px 16px 16px; }
  .card--venue .card__body { padding: 14px 16px; gap: 6px; justify-content: center; }
  .card--venue .card__title { font-size: 1.08rem; }
  .card--venue .chip { padding: 3px 9px; font-size: 10.5px; }
  .card--venue .card__link { margin-top: 2px; }

  /* Product tiles */
  .card--product { padding: 12px; gap: 10px; }
  .card--product .card__title { font-size: .96rem; }

  /* --- Venue categories become rows --- */
  .venue-cats { gap: 11px; }
  .venue-cat {
    display: grid;
    grid-template-columns: 50px 1fr 20px;
    grid-template-areas: "icon title arrow" "icon count arrow";
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    padding: 16px 18px;
  }
  .venue-cat__icon { grid-area: icon; width: 50px; height: 50px; margin: 0; padding: 12px; }
  .venue-cat__title { grid-area: title; font-size: 1.15rem; }
  .venue-cat__count { grid-area: count; margin: 0; font-size: 12px; }
  .venue-cat .card__link { grid-area: arrow; margin: 0; }
  .venue-cat .card__link > span { display: none; }
  .venue-cat .card__link svg { width: 20px; height: 20px; }

  /* --- Banner --- */
  .banner { padding: 18px; gap: 14px; margin-bottom: 16px; }
  .banner__icon { width: 48px; height: 48px; padding: 12px; }
  .banner__title { font-size: 1.18rem; }
  .banner__sub { font-size: .97rem; }
  .banner__kicker { font-size: 11px; }
  .banner .btn { width: 100%; padding: 14px; font-size: 15px; }

  /* --- Contact --- */
  .contact__grid { gap: 24px; }
  .contact-cards { gap: 10px; }
  .contact-card { padding: 15px 16px; gap: 14px; }
  .contact-card__icon { width: 42px; height: 42px; padding: 10px; }
  .contact-card__label { font-size: 11px; letter-spacing: .1em; }
  .contact-card__value { font-size: 1.05rem; }
  .contact__map .ph { aspect-ratio: 16 / 10; }

  /* --- Footer: two columns instead of four stacked --- */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 40px 30px; }
  .footer__brand { grid-column: 1 / -1; }
  /* Social row gets the full width so all four icons sit on one line */
  .footer__col:last-of-type { grid-column: 1 / -1; }
  .footer__tagline { margin: 16px 0 6px; font-size: 1rem; }
  .footer__loc { font-size: .9rem; }
  .footer__title { margin-bottom: 14px; font-size: 11.5px; }
  .footer__list { gap: 10px; font-size: .98rem; }
  .social { gap: 10px; }
  .social__link { width: 44px; height: 44px; padding: 11px; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 9px; font-size: .86rem; }

  /* --- Sub-page headers --- */
  .page-head { padding: calc(var(--header-h) + 30px) 0 32px; }
  .page__heading { gap: 14px; }
  .page__logo { height: 44px; max-width: 140px; padding: 5px 9px; }
  .page__title { font-size: 2rem; }
  .detail__sub { margin: 34px 0 16px; }
  .page__sub { margin-top: 12px; font-size: 1.04rem; }
  .backlink { margin-bottom: 16px; font-size: 12px; }
  .detail__media .ph--hero { aspect-ratio: 16 / 10; }
}

/* Very small phones */
@media (max-width: 360px) {
  .brand__text { display: none; }
  .hero__lead { margin-bottom: 26px; }
  .hero__actions .btn { padding: 13px 18px; }
  .grid--countries { gap: 11px; }
}

/* Phone held sideways: only ~360px of height, so the hero stops trying to
   fill the screen and the title comes back down to a readable size. */
@media (max-width: 640px) and (max-height: 520px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 24px) 0 34px; }
  .hero__panel { right: -18vw; bottom: -20vh; }
  .hero__panel-logo { width: 62vh; }
  .hero__title { font-size: 2.3rem; margin-bottom: 16px; }
  .hero__rule { margin-bottom: 16px; }
  .hero__lead { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 12. Photo viewer (lightbox) -------------------------------
   Reachable from a map pin, a location card, a venue page and the
   interiors gallery. The point is recognising a place before you drive
   to it, so the photo is given the whole screen and the chrome is kept
   to a close button, two arrows and a counter. */

/* Any thumbnail that opens the viewer. It is a real <button>, so it
   has to be stripped back to behaving like the element it wraps. */
.lb-open {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  border-radius: inherit;
  overflow: hidden;
}
.lb-open:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; }

/* The expand glyph stays out of the way until the thumbnail is hovered
   or focused — on a phone it never shows, where tapping is the hint. */
.lb-open__hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(17, 18, 20, .62);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  pointer-events: none;
}
.lb-open__hint svg { width: 14px; height: 14px; fill: #fff; }
.lb-open:hover .lb-open__hint,
.lb-open:focus-visible .lb-open__hint { opacity: 1; transform: none; }

/* Photo at the head of a map popup. */
.pop__photo { margin: -2px -2px 10px; border-radius: 10px; overflow: hidden; }
.pop__photo img { display: block; width: 100%; height: 116px; object-fit: cover; }
.pop__nophoto {
  margin: 0 0 9px;
  padding: 14px 10px;
  border: 1px dashed var(--paper-3);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* "how many photos" chip, shown only when there is more than one. */
.pop__count {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 18, 20, .62);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.pop__count svg { width: 13px; height: 13px; fill: #fff; }

/* Same thumbnail on a locations-page card. */
.loc-card__photo { margin: 0 0 12px; border-radius: 12px; overflow: hidden; }
.loc-card__photo img { display: block; width: 100%; height: 148px; object-fit: cover; }

/* ---- the overlay itself ---- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1200;                 /* over the map (1000) and the header */
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(9, 10, 12, .93);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
body.lb-lock { overflow: hidden; }

.lb__stage {
  margin: 0;
  max-width: min(100%, 1180px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.lb__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.lb__name  { font-weight: 650; font-size: 1rem; }
.lb__count { font-size: 13px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }

.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .16s var(--ease);
}
.lb__btn svg { width: 22px; height: 22px; fill: #fff; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lb__btn[hidden] { display: none; }

.lb__close { top: 18px; right: 18px; }
.lb__nav--prev { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }

/* On a phone the arrows would sit on top of the photo, so they move
   under it and the caption goes between them. Swiping works too. */
@media (max-width: 640px) {
  .lb { padding: 14px; }
  .lb__img { max-height: calc(100vh - 168px); }
  .lb__nav { top: auto; bottom: 18px; transform: none; }
  .lb__nav--next { transform: rotate(180deg); }
  .lb__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .pop__photo img { height: 96px; }
  .loc-card__photo img { height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb, .lb-open__hint { transition: none; }
  .lang .langbar,
  .lang .langbar__btn,
  .lang__chevron { transition: none !important; transition-delay: 0s !important; }
  .lang .langbar { transform: none; }
  .lang .langbar__btn { transform: none; }
}

/* ---------- 13. Phone: full-screen map ------------------------------
   Tapping the map hands over the whole screen and brings the search and
   filters with it. Everything here is phone-only; desktop keeps the map
   in its box with the controls beside it. */

/* ---------- Phone: the Map page is the map ---------------------------
   Search, filters and the venue list all live inside the full-screen map
   now, so stacking them above it only pushed the map off the screen. */

@media (max-width: 640px) {
  /* JS lifts the search and chips out of here when the map opens — that
     works even though the panel is hidden, because they land in a bar
     that is visible. */
  .locator__panel { display: none; }
  .locator { gap: 0; }

  /* Same reason as above, for the field in its normal page position. */
  .search-field input { font-size: 16px; }

  /* Same on the home page's contact map: these two exist only to be
     moved into the map's toolbar, never to be shown in the page. */
  .contact__map > .search-field,
  .contact__map > .map-filters { display: none; }

  /* --- the map itself, once opened --- */
  .map.is-full {
    position: fixed;
    inset: 0;
    z-index: 400;               /* over the header (200), under the lightbox (1200) */
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* Pinned rather than just overflow:hidden — iOS ignores the latter.
     JS stores the scroll offset in `top` and restores it on close. */
  body.map-fs {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  /* --- toolbar --- */
  .map-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 401;               /* just above the full-screen map (400) */
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: calc(env(safe-area-inset-top, 0px) + 11px) 12px 11px;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    animation: map-bar-in .3s var(--ease) both;
  }
  /* One field, full width — nothing shares the row with it. */
  .map-bar__row { display: flex; }
  .map-bar__chips[hidden] { display: none; }

  /* The search field, slimmed for the bar and allowed to take the row.

     16px is not a style choice: iOS Safari zooms the whole page in when
     a focused input is smaller than that, and never zooms back out. Any
     value below 16px reintroduces that. */
  .search-field--bar { flex: 1; min-width: 0; margin: 0; }
  .search-field--bar input { height: 44px; font-size: 16px; }

  /* Chips scroll sideways rather than wrapping to three rows and eating
     the map. `mask-image` fades the right edge so it reads as scrollable. */
  .map-filters--bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    overflow-x: auto;
    touch-action: pan-x;        /* the strip owns horizontal drags */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }
  .map-filters--bar::-webkit-scrollbar { height: 0; }
  .map-filters--bar .chip--filter { flex: none; padding: 8px 13px; font-size: 12px; }

  /* The way out sits at the bottom, centred and in thumb reach, leaving
     the whole top row to the search field. */
  .map-exit--bottom {
    position: fixed;
    /* Both of these must be cleared: the base .map-exit pins top/right,
       and an element with all four offsets set stretches to fill them
       instead of sizing to its content. */
    top: auto;
    right: auto;
    left: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: max-content;
    z-index: 401;
    min-height: 48px;
    padding: 0 20px 0 17px;
    animation: map-done-in .32s var(--ease) both;
  }
  @keyframes map-done-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes map-bar-in {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: none; }
  }

  /* Leaflet's own furniture, clear of the toolbar above and the Done
     button below — the attribution line is wide enough to run under a
     centred button otherwise. */
  .map.is-full .leaflet-top { top: 118px; }
  /* Only the bottom-left corner is taken now, and the attribution sits
     bottom-right, so it just needs to clear the safe area. */
  .map.is-full .leaflet-bottom { bottom: env(safe-area-inset-bottom, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .map-bar, .map-exit--bottom { animation: none; }
}

@media print {
  .header, .footer, .nav-scrim, .hero__actions { display: none !important; }
  body { color: #000; background: #fff; }
}
