/* =============================================================================
   Nani Ghar — home virtual tour · styles
   1 Fonts & tokens · 2 Base · 3 Buttons & chips · 4 Header · 5 Hero · 6 Tour
   7 Gallery & lightbox · 8 The home · 9 Explore & map · 10 Contact & footer
   11 States, motion & edit mode
   ========================================================================== */

/* 1 · Fonts & design tokens ------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../vendor/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../vendor/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../vendor/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f2ea;
  --bg-deep: #efe6d8;
  --surface: #fffdf9;
  --ink: #1f1a15;
  --ink-2: #4a4239;
  --muted: #7d7266;
  --line: #e5dacb;
  --accent: #b4532a;
  --accent-2: #8f3f1d;
  --accent-soft: #e7a07c;
  --night: #15110d;
  --cream: #fbf6ee;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgb(31 26 21 / .06), 0 4px 14px rgb(31 26 21 / .05);
  --shadow: 0 18px 40px -18px rgb(31 26 21 / .28), 0 4px 12px rgb(31 26 21 / .06);
  --shadow-l: 0 34px 80px -24px rgb(12 9 6 / .55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-cine: cubic-bezier(.65, .05, .2, 1);

  --container: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --header-h: 72px;

  /* Tour geometry — JS measures real sizes, so these can be tuned freely. */
  --stage-h: 100vh;                         /* one full-screen tour stage   */
  --bar-offset: 0px;                        /* mobile browser toolbar space */
  --step-h: calc(var(--stage-h) * .62);     /* scroll distance per step     */
}
@supports (height: 100lvh) {
  :root { --stage-h: 100lvh; --bar-offset: calc(100lvh - 100svh); }
}
/* Keep content clear of the notch and rounded corners when a phone is held sideways. */
@supports (padding: max(0px, env(safe-area-inset-left))) {
  :root { --gutter: max(clamp(18px, 5vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right)); }
}
@media (max-width: 820px) {
  :root { --header-h: 62px; }
}

/* 2 · Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(180 83 42 / .22); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(84px, 12vw, 160px); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: rgb(255 255 255 / .86); }
.eyebrow--warm { color: var(--accent-soft); }
.section-title {
  margin-top: .55rem;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  font-weight: 330;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.section-lede {
  max-width: 60ch;
  margin-top: 1.15rem;
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  color: var(--ink-2);
}

/* 3 · Buttons & chips --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .92em 1.55em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { padding: .62em 1.15em; font-size: .88rem; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: var(--shadow); }
.btn--ghost {
  background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgb(255 255 255 / .18); border-color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip .icon { color: var(--c, var(--accent)); }
.chip:hover { border-color: var(--ink-2); box-shadow: var(--shadow-s); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip[aria-pressed="true"] .icon { color: inherit; }
.chip__count { font-size: .74rem; opacity: .6; font-variant-numeric: tabular-nums; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--dark { border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .08); color: #fff; }
.icon-btn--dark:hover { border-color: #fff; background: rgb(255 255 255 / .16); }

/* 4 · Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgb(10 8 6 / .42) 0%, rgb(10 8 6 / 0) 100%);
  color: #fff;
  text-shadow: 0 1px 14px rgb(0 0 0 / .45);
  transition: background .35s var(--ease), color .35s var(--ease), text-shadow .35s var(--ease);
}
.site-header.is-on-light {
  background: linear-gradient(180deg, rgb(247 242 234 / .88) 0%, rgb(247 242 234 / 0) 100%);
  color: var(--ink);
  text-shadow: none;
}
/* The bar is see-through over the hero and the tour photos. Over text it turns into
   frosted glass, so the page never shows through the brand and the menu: main.js adds
   .is-solid there (until it does, the bar stays see-through). The glass is a separate
   layer so it can fade in, and so the phone menu stays positioned against the screen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(21 17 13 / .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
  pointer-events: none;
}
.site-header.is-solid { text-shadow: none; }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-solid.is-on-light::before {
  background: rgb(247 242 234 / .9);
  box-shadow: 0 1px 0 rgb(31 26 21 / .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 2 * var(--gutter), 1320px);
  height: 100%;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 350;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand__city {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-indent: .38em; /* visually centres the tracked-out word */
  text-transform: uppercase;
  opacity: .84;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  position: relative;
  padding-block: 6px;
  font-size: .95rem;
  font-weight: 450;
  letter-spacing: .01em;
  text-decoration: none;
  opacity: .9;
  transition: opacity .25s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current] { opacity: 1; }
.site-nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__toggle { display: none; }

@media (max-width: 820px) {
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .46em .95em;
    border: 1px solid rgb(255 255 255 / .42);
    border-radius: 999px;
    background: rgb(10 8 6 / .28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: .88rem;
    font-weight: 500;
    text-shadow: none;
  }
  .site-header.is-on-light .site-nav__toggle {
    border-color: rgb(31 26 21 / .25);
    background: rgb(255 253 249 / .75);
  }
  .site-nav__list {
    position: fixed;
    inset: calc(var(--header-h) - 6px) 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-shadow: none;
    box-shadow: var(--shadow-l);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open .site-nav__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list a { display: block; padding: 12px 14px; border-radius: 12px; opacity: 1; }
  .site-nav__list a:hover { background: var(--bg); }
  .site-nav__list a::after { display: none; }

  /* Phone menu: the four tabs, then two columns of city-guide shortcuts. */
  .site-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 6px;
    max-height: calc(100vh - var(--header-h) - 12px);
    max-height: calc(100svh - var(--header-h) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav__list > li { grid-column: 1 / -1; }
  .site-nav__list > li:not(.site-nav__sub) > a { font-family: var(--font-display); font-size: 1.25rem; }
  .site-nav__list > .site-nav__group {
    display: block;
    margin-top: 6px;
    padding: 12px 14px 4px;
    border-top: 1px solid var(--line);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .site-nav__list > .site-nav__sub { display: block; grid-column: auto; }
  .site-nav__sub > a { padding: 11px 14px; font-size: .92rem; color: var(--ink-2); }
}
/* City-guide shortcuts live only in the phone menu above. */
.site-nav__group,
.site-nav__sub { display: none; }

/* 5 · Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
  animation: hero-drift 30s var(--ease) infinite alternate;
}
/* On an upright screen only a slice of the photo fits: centre it on the window with its
   painted border, rather than on the plain underside of the stairs. */
@media (max-aspect-ratio: 1/1) {
  .hero__media img { object-position: 28% 50%; }
}
/* The photo is a bright, daylit room, so the words sit on a soft dark veil: from the left
   (behind the text) and from the bottom, which leaves the right of the room clear. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 9 6 / .58) 0%, rgb(12 9 6 / 0) 24%),
    linear-gradient(90deg, rgb(12 9 6 / .62) 0%, rgb(12 9 6 / .44) 30%, rgb(12 9 6 / .12) 58%, rgb(12 9 6 / 0) 76%),
    linear-gradient(0deg, rgb(12 9 6 / .74) 0%, rgb(12 9 6 / .3) 34%, rgb(12 9 6 / 0) 60%);
}
.hero .eyebrow,
.hero__title,
.hero__subtitle,
.hero__lede { text-shadow: 0 1px 22px rgb(0 0 0 / .42); }
.hero__content {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  /* The top padding only matters when the text is taller than the screen (small phones):
     the hero then grows and the text starts below the fixed header, not underneath it. */
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: clamp(104px, 15vh, 160px);
}
.hero__content > * { animation: rise 1.2s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .18s; }
.hero__content > :nth-child(4) { animation-delay: .28s; }
.hero__content > :nth-child(5) { animation-delay: .38s; }
.hero__title {
  margin-top: .12em;
  font-size: clamp(4.4rem, 14vw, 11.5rem);
  font-weight: 280;
  line-height: .9;
  letter-spacing: -.04em;
}
.hero__subtitle {
  margin-top: .35em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  color: rgb(255 255 255 / .94);
}
.hero__lede {
  max-width: 48ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgb(255 255 255 / .8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.1rem; }
.hero__facts {
  position: absolute;
  right: var(--gutter);
  /* level with the two buttons (the text column's bottom padding plus half a button), which
     keeps the row clear of the scroll line in the middle of the bottom edge */
  bottom: calc(clamp(104px, 15vh, 160px) + 14px);
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .78);
}
.hero__facts li { display: flex; align-items: center; gap: 18px; }
.hero__facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 1px;
  height: 58px;
  overflow: hidden;
  background: rgb(255 255 255 / .25);
  translate: -50% 0;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-cue 2.4s var(--ease) infinite;
}
.hero__content > :nth-child(6) { animation-delay: .46s; }
@media (max-width: 1339px) {
  /* Not wide enough for the row of facts beside the buttons (small laptops, tablets, phones):
     the facts sit in the text column as small pills instead. */
  .hero__facts {
    position: static;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.4rem;
    font-size: .68rem;
    letter-spacing: .12em;
  }
  .hero__facts li {
    gap: 0;
    padding: 6px 11px;
    border: 1px solid rgb(255 255 255 / .28);
    border-radius: 999px;
    background: rgb(10 8 6 / .3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero__facts li + li::before { display: none; }
  .hero__actions { margin-top: 1.5rem; }
}
@media (max-width: 980px) {
  /* Phones and tablets: the text covers more of the photo, including its bright window, so
     the shade reaches higher and the lettering gets a stronger shadow. */
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(12 9 6 / .55) 0%, rgb(12 9 6 / 0) 22%),
      linear-gradient(0deg, rgb(12 9 6 / .9) 0%, rgb(12 9 6 / .74) 40%, rgb(12 9 6 / .52) 64%, rgb(12 9 6 / .18) 82%, rgb(12 9 6 / 0) 94%);
  }
  .hero .eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__lede { text-shadow: 0 1px 18px rgb(0 0 0 / .5); }
}
@media (max-width: 520px) {
  .hero__title { font-size: clamp(3.4rem, 18vw, 4.6rem); }
  .hero__lede { font-size: .98rem; }
  /* Small screens: a shorter lede, both buttons on one row and no scroll line, so more of
     the photo stays clear above the text. */
  .hero__lede-more { display: none; }
  .hero__content { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { padding: .9em 1em; font-size: .9rem; }
  .hero__scroll { display: none; }
}

/* 6 · Tour -------------------------------------------------------------------- */
.tour { position: relative; background: var(--night); color: var(--cream); }
.tour__intro { padding-block: clamp(110px, 18vh, 190px) clamp(80px, 13vh, 130px); text-align: center; }
.tour__intro .section-title { color: #fff; }
.tour__intro .section-title em { color: var(--accent-soft); }
.tour__intro .section-lede { margin-inline: auto; color: rgb(251 246 238 / .72); }
.tour__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 2.4rem auto 0;
  padding: 0;
  list-style: none;
}
.tour-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.05rem;
  border: 1px solid rgb(251 246 238 / .18);
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  color: rgb(251 246 238 / .85);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.tour-chip:hover { background: rgb(251 246 238 / .08); border-color: rgb(251 246 238 / .45); }
.tour-chip__num { font-size: .72rem; letter-spacing: .1em; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.tour__skip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.8rem;
  font-size: .9rem;
  color: rgb(251 246 238 / .6);
  text-decoration: none;
  border-bottom: 1px solid rgb(251 246 238 / .2);
}
.tour__skip:hover { color: #fff; border-color: #fff; }

/* A room = a tall section with a sticky full-screen stage inside. Rooms overlap
   by one stage height so each new room slides up over the previous one. */
.room {
  position: relative;
  height: calc(var(--steps, 4) * var(--step-h) + 2 * var(--stage-h));
}
.room + .room { margin-top: calc(-1 * var(--stage-h)); }
.room__stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
  overflow: hidden;
  background: #0d0b09;
  container-type: size;
}
.room__camera { position: absolute; inset: 0; animation: drift 32s ease-in-out infinite alternate paused; }
.room.is-active .room__camera { animation-play-state: running; }
.room__media {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 100vh * var(--ar, 1.7778));
  width: max(100cqw, 100cqh * var(--ar, 1.7778));
  aspect-ratio: var(--ar, 1.7778);
  translate: -50% -50%;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1));
  transition: transform 1.5s var(--ease-cine), opacity .9s var(--ease);
  will-change: transform;
}
/* A room can use several photos, stacked here one over the other. tour.js brings one to the
   front (.is-shown): it starts see-through and already framed on its corner (.is-entering),
   fades in over the photo before it, and the ones underneath then stop being drawn (.is-under).
   The .9s fade matches VIEW_FADE_MS in js/tour.js. */
.room__media.is-entering { opacity: 0; transition: none; }
.room__media.is-under { visibility: hidden; }
.room__media:not(.is-shown) .hotspot { visibility: hidden; }
.room__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.room__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(10 8 6 / .74) 0%, rgb(10 8 6 / .36) 36%, rgb(10 8 6 / 0) 62%),
    linear-gradient(0deg, rgb(10 8 6 / .6) 0%, rgb(10 8 6 / 0) 42%),
    linear-gradient(180deg, rgb(10 8 6 / .35) 0%, rgb(10 8 6 / 0) 18%);
  transition: opacity 1s var(--ease);
}
.room.is-exploring .room__shade { opacity: .4; }
.room__exit { position: absolute; inset: 0; background: #000; opacity: var(--exit, 0); pointer-events: none; }
/* Invisible marker for the lowest point of the stage that a phone's browser toolbar never
   covers. tour.js reads its position when it frames a corner on a phone. */
.room__safe {
  position: absolute;
  left: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--bar-offset));
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hotspots sit on the photo and counter-scale so they stay the same size while zooming. */
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  scale: calc(1 / var(--s, 1));
  transition: scale 1.5s var(--ease-cine), opacity .5s var(--ease);
}
.hotspot::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgb(255 255 255 / .9);
  border-radius: 50%;
  animation: pulse 2.6s var(--ease) infinite;
}
.hotspot::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(255 255 255 / .28), 0 4px 16px rgb(0 0 0 / .4);
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hotspot:hover::after,
.hotspot:focus-visible::after { transform: scale(1.3); }
.hotspot.is-active::after {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(255 255 255 / .92), 0 8px 22px rgb(0 0 0 / .45);
  transform: scale(1.15);
}
.room.is-exploring .hotspot:not(.is-active) { opacity: .5; }
.hotspot__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(251 246 238 / .96);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  translate: -50% 4px;
  transition: opacity .25s var(--ease), translate .25s var(--ease);
  pointer-events: none;
}
.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label { opacity: 1; translate: -50% 0; }
.hotspot.is-active .hotspot__label { opacity: 0; }

.room__intro {
  position: absolute;
  left: calc(var(--gutter) + var(--rail-w, 0px));
  bottom: calc(clamp(56px, 11vh, 120px) + var(--bar-offset));
  max-width: min(580px, 100% - 2 * var(--gutter) - var(--rail-w, 0px));
  pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.room__index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  letter-spacing: .22em;
  color: rgb(251 246 238 / .75);
  font-variant-numeric: tabular-nums;
}
.room__index::after { content: ""; width: 56px; height: 1px; background: rgb(251 246 238 / .45); }
.room__name {
  margin-top: .3em;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 30px rgb(0 0 0 / .25);
}
.room__text {
  max-width: 46ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: rgb(251 246 238 / .88);
}
.room__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.6rem;
  font-size: .84rem;
  letter-spacing: .04em;
  color: rgb(251 246 238 / .72);
}
.room__hint .icon { width: 1.4em; height: 1.4em; }
.room.is-exploring .room__intro { opacity: 0; transform: translateY(18px); }
.room__label { display: none; }

.room__cards { position: absolute; inset: 0; pointer-events: none; }
.story-card {
  position: absolute;
  top: 50%;
  right: clamp(20px, 5vw, 80px);
  width: min(410px, 100% - 40px);
  padding: 26px 28px 22px;
  border: 1px solid rgb(255 255 255 / .6);
  border-radius: 24px;
  background: rgb(251 246 238 / .88);
  color: var(--ink);
  box-shadow: var(--shadow-l);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.98);
  transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
  pointer-events: auto;
  /* A column, so that when the card has a height limit (phones, short screens) only the
     story text scrolls and the heading and buttons stay in view. */
  display: flex;
  flex-direction: column;
}
.story-card.is-left { right: auto; left: calc(clamp(20px, 5vw, 80px) + var(--rail-w, 0px)); }
.story-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .4s, .4s, 0s;
}
.story-card__count {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.story-card__title { margin-top: .45em; font-size: clamp(1.6rem, 2.4vw, 2.15rem); font-weight: 380; }
.story-card__text {
  min-height: 2.6em; /* a squeezed card still shows a line or two; shorter than any story */
  margin-top: .8rem;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
/* tour.js adds this when the story is taller than its box: fade the last line to show
   that it scrolls, with room to scroll that line clear of the fade. */
.story-card__text.is-clipped {
  padding-bottom: 1.4em;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.9em), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 1.9em), transparent);
}
.story-card__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(31 26 21 / .1);
}
.story-card__dots { display: flex; gap: 6px; margin-right: auto; }
.story-card__dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(31 26 21 / .2); transition: background-color .3s, width .3s; }
.story-card__dot.is-active { width: 18px; border-radius: 99px; background: var(--accent); }
.story-card__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgb(31 26 21 / .14);
  border-radius: 999px;
  background: none;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.story-card__btn:first-child { order: -1; padding: 0; width: 38px; justify-content: center; }
.story-card__btn:hover { border-color: var(--ink); background: rgb(255 255 255 / .6); }
.story-card__btn--next { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.story-card__btn--next:hover { background: var(--accent); border-color: var(--accent); }

/* The "stacked" tour layout: the write-up card sits above or below the corner instead of
   beside it. Used on phones and on tablets held upright, where the photo is far wider than
   the screen. A phone held sideways is too short for it, so it keeps the side layout.
   tour.js uses the same media query (STACKED_LAYOUT), so keep the two in sync. */
@media (max-width: 760px) and (min-height: 521px), (max-width: 900px) and (orientation: portrait) {
  .story-card,
  .story-card.is-left {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--bar-offset));
    left: 12px;
    width: auto;
    max-width: 560px;    /* tablets: keep a comfortable reading width… */
    margin-inline: auto; /* …and centre the card */
    padding: 18px 20px 16px;
    border-radius: 20px;
    translate: none;
  }
  .story-card.is-m-top { top: calc(var(--header-h) + 42px); bottom: auto; }
  .story-card__title { font-size: 1.45rem; }
  .story-card__text { font-size: .94rem; line-height: 1.55; }
  /* A card never covers more than about half the screen. A longer story scrolls inside its
     text box (see .story-card__text); the card itself only scrolls as a last resort.
     Scroll chaining is left on, so a swipe on the card still moves the tour along. */
  .story-card {
    max-height: min(52vh, 430px);
    max-height: min(52svh, 430px);
    overflow-y: auto;
  }
  .room__name { font-size: clamp(1.9rem, 8.6vw, 2.7rem); }
  .room__text { font-size: .98rem; }
  .room__intro {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px) + var(--bar-offset));
    max-width: calc(100% - 2 * var(--gutter));
  }
}

/* Thin overall progress bar + the room rail (room names, always visible) */
.tour { --rail-w: 150px; }
@media (max-width: 760px) and (min-height: 521px), (max-width: 900px) and (orientation: portrait) { .tour { --rail-w: 0px; } }
.tour-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 3px;
  background: rgb(255 255 255 / .12);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.tour-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.tour-progress.is-visible { opacity: 1; }
.tour-rail {
  position: fixed;
  left: clamp(18px, 2.4vw, 40px);
  top: 50%;
  z-index: 35;
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.tour-rail[hidden] { display: none; }
.tour-rail.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.tour-rail__list { position: relative; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
/* the thin vertical line the dots sit on */
.tour-rail__list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: rgb(255 255 255 / .32);
}
.tour-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
  color: rgb(255 255 255 / .66);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.tour-rail__item:hover,
.tour-rail__item:focus-visible { color: #fff; }
.tour-rail__dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgb(10 8 6 / .5);
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tour-rail__name {
  font-size: .88rem;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 1px 14px rgb(0 0 0 / .6);
  transition: transform .3s var(--ease);
}
.tour-rail__item:hover .tour-rail__name { transform: translateX(2px); }
.tour-rail__item.is-active { color: #fff; }
.tour-rail__item.is-active .tour-rail__name { font-weight: 500; }
.tour-rail__item.is-active .tour-rail__dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgb(10 8 6 / .5), 0 0 0 4.5px rgb(255 255 255 / .95);
  transform: scale(1.1);
}
@media (max-width: 760px) and (min-height: 521px), (max-width: 900px) and (orientation: portrait) {
  /* In the stacked layout the rail becomes a slim strip of room pills below the header. */
  .tour-rail {
    left: 0;
    right: 0;
    top: calc(var(--header-h) - 2px);
    translate: none;
    padding-inline: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }
  .tour-rail::-webkit-scrollbar { display: none; }
  .tour-rail__list { display: flex; gap: 6px; width: max-content; margin-inline: auto; }
  .tour-rail__list::before { display: none; }
  .tour-rail__item {
    gap: 7px;
    min-height: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgb(10 8 6 / .42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgb(255 255 255 / .82);
  }
  .tour-rail__dot { width: 6px; height: 6px; box-shadow: none; }
  .tour-rail__name { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-shadow: none; }
  .tour-rail__item.is-active { background: rgb(251 246 238 / .94); color: var(--ink); }
  .tour-rail__item.is-active .tour-rail__dot { background: var(--accent); box-shadow: none; transform: none; }
}

/* "Scroll to continue the tour" — the small cue at the bottom of the stage */
.tour-cue {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: #fff;
  font-size: .76rem;
  letter-spacing: .03em;
  text-shadow: 0 1px 14px rgb(0 0 0 / .6);
  translate: -50% 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.tour-cue[hidden] { display: none; }
.tour-cue.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.tour-cue__mouse {
  position: relative;
  width: 18px;
  height: 28px;
  border: 1.5px solid rgb(255 255 255 / .85);
  border-radius: 10px;
}
.tour-cue__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  animation: mouse-wheel 1.9s var(--ease) infinite;
}
.tour-cue:hover .tour-cue__mouse { border-color: #fff; }
@media (max-width: 760px) and (min-height: 521px), (max-width: 900px) and (orientation: portrait) {
  .tour-cue { font-size: .7rem; }
  /* the story card can sit at the bottom in the stacked layout, and it has its own Next button */
  .tour-cue.is-exploring { opacity: 0; visibility: hidden; }
}

.js-fallback {
  padding: 18vh var(--gutter);
  text-align: center;
  color: rgb(251 246 238 / .6);
  opacity: 0;
  animation: fade-in .4s var(--ease) 1.2s forwards;
}

/* 7 · Gallery & lightbox ---------------------------------------------------------- */
.gallery-section { position: relative; z-index: 2; background: var(--bg); }
/* Once the tour is ready, the gallery slides up over the last room like a sheet. */
.tour.is-ready + .gallery-section {
  margin-top: calc(-1 * var(--stage-h));
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: 0 -40px 80px -40px rgb(0 0 0 / .6);
}
/* The sections after the gallery ride above the tour's last sticky stage too. Without
   this, whenever the gallery is shorter than the screen (phones, tall monitors) that
   stage stays on top of the section that follows. */
.tour.is-ready ~ * { position: relative; z-index: 2; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: clamp(380px, 50vw, 620px);
  margin-top: 44px;
  overflow: hidden;
  border-radius: var(--radius-l);
}
.photo-grid__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--bg-deep);
  cursor: zoom-in;
}
.photo-grid__item:first-child { grid-row: span 2; }
.photo-grid__item:nth-child(n + 6) { display: none; }
.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .4s var(--ease);
}
.photo-grid__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.photo-grid__room {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(251 246 238 / .9);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.photo-grid__item:hover .photo-grid__room,
.photo-grid__item:focus-visible .photo-grid__room { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .photo-grid {
    display: flex;
    height: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    border-radius: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-grid__item,
  .photo-grid__item:nth-child(n + 6) {
    display: block;
    flex: 0 0 84%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    scroll-snap-align: center;
  }
  .photo-grid__room { opacity: 1; transform: none; }
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(15 12 9 / .6); }
.lightbox[open] { animation: fade-in .3s var(--ease); }
.lightbox__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgb(247 242 234 / .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lightbox__title { font-size: 1.5rem; font-weight: 400; }
.lightbox__filters { display: flex; gap: 8px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.lightbox__grid { columns: 3 300px; column-gap: 14px; padding: 26px var(--gutter) 70px; }
.lightbox__tile {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--bg-deep);
  cursor: zoom-in;
  break-inside: avoid;
}
.lightbox__tile[hidden] { display: none; }
.lightbox__tile-img { width: 100%; transition: transform .9s var(--ease); }
.lightbox__tile:hover .lightbox__tile-img { transform: scale(1.03); }
.lightbox__tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgb(10 8 6 / .65), rgb(10 8 6 / 0));
  color: #fff;
  font-size: .85rem;
  text-align: left;
}
.viewer {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #0e0b08;
  color: #fff;
}
.viewer[hidden] { display: none; }
.viewer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.viewer__count { font-size: .9rem; color: rgb(255 255 255 / .75); font-variant-numeric: tabular-nums; }
.viewer__stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 0 clamp(16px, 8vw, 110px) 26px;
  touch-action: pan-y;
}
.viewer__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  animation: fade-in .35s var(--ease);
}
.viewer__caption { text-align: center; font-size: .95rem; color: rgb(255 255 255 / .8); }
.viewer__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: #fff;
  translate: 0 -50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.viewer__nav:hover { background: rgb(255 255 255 / .18); border-color: #fff; }
.viewer__nav--prev { left: clamp(10px, 2.4vw, 32px); }
.viewer__nav--next { right: clamp(10px, 2.4vw, 32px); }
@media (max-width: 760px) {
  .viewer__nav { top: auto; bottom: 22px; translate: none; }
  .viewer__stage { padding-bottom: 92px; }
}

/* 8 · The home -------------------------------------------------------------------- */
/* Opaque, because on phones this section slides over the tour's last photo (see the gallery). */
.story { background: var(--bg); }
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.story__body p + p { margin-top: 1.1em; }
.story__lead {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 330;
  line-height: 1.5;
  color: var(--ink);
}
.story__body p:not(.story__lead):not(.eyebrow) { color: var(--ink-2); }
.story__sign { font-family: var(--font-display); font-style: italic; color: var(--accent-2); }
.highlights { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.highlight {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.highlight:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.highlight__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-deep);
  color: var(--accent);
}
.highlight__icon .icon { width: 24px; height: 24px; }
.highlight__title { font-size: 1.25rem; font-weight: 450; }
.highlight p { margin-top: .3rem; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-block: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column-reverse; gap: 4px; padding: 26px 0 24px; }
.fact + .fact { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--line); }
.fact dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fact dd { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; line-height: 1; }

/* 8b · Interactive Floor-by-Floor Skeleton (Pixel packaging line-art style) ------- */
.floorplan {
  margin-top: clamp(64px, 9vw, 108px);
  padding-top: clamp(8px, 2vw, 16px);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.floorplan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 36px;
}
.floorplan__title { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.floorplan__lede {
  max-width: 50ch;
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.floorplan__mount { margin-top: clamp(24px, 3.6vw, 38px); }

.fp-controls {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.fp-controls__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.fp-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-deep);
}
.fp-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.fp-tab:hover { color: var(--ink); }
.fp-tab.is-active {
  background: #181614;
  color: #f8f4ec;
  box-shadow: 0 4px 14px rgb(0 0 0 / .14);
}
.fp-tab__meta {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(24 22 20 / .08);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.fp-tab.is-active .fp-tab__meta {
  background: rgb(231 160 124 / .24);
  color: #f6d5c1;
}
.fp-summary {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgb(43 29 20 / .16);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.fp-chip:hover {
  border-color: #6e3b1f;
  color: var(--ink);
}
.fp-chip.is-active {
  border-color: #7c3a1d;
  background: #e6cfb8;
  color: #261810;
  font-weight: 600;
}
.fp-chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: rgb(43 29 20 / .09);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}
.fp-chip.is-active .fp-chip__count {
  background: #5c2b14;
  color: #fbf6ee;
}

.fp-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: clamp(24px, 3.6vw, 44px);
  align-items: stretch;
}

/* Pressed sandstone-kraft architectural card */
.fp-box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  filter: drop-shadow(0 24px 36px rgb(31 22 15 / .16)) drop-shadow(0 4px 10px rgb(31 22 15 / .09));
  user-select: none;
}
.fp-box__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fp-box__face {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgb(43 29 20 / .24);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  /* Warm sandstone-kraft molded fiber cardstock with subtle organic pulp flecks */
  background-color: #dfd3c0;
  background-image:
    radial-gradient(rgb(56 36 22 / .07) 1px, transparent 0),
    radial-gradient(rgb(255 250 240 / .26) 1px, transparent 0),
    radial-gradient(rgb(112 68 38 / .055) 1.2px, transparent 0),
    linear-gradient(155deg, #e7dccb 0%, #ddd0bc 50%, #d1c1aa 100%);
  background-size: 11px 11px, 15px 15px, 23px 23px, 100% 100%;
  background-position: 0 0, 5px 7px, 11px 3px, 0 0;
  box-shadow:
    inset 0 1px 0 rgb(255 252 246 / .55),
    inset 0 -1px 0 rgb(43 29 20 / .14);
}
.fp-box__spine {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding-inline: 14px;
  border-left: 1px solid rgb(43 29 20 / .24);
  border-right: 1px solid rgb(43 29 20 / .24);
  border-bottom: 1px solid rgb(43 29 20 / .3);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background:
    radial-gradient(rgb(43 29 20 / .06) 1px, transparent 0),
    linear-gradient(180deg, #c2b19b 0%, #aa9880 100%);
  background-size: 10px 10px, 100% 100%;
  box-shadow: inset 0 2px 4px rgb(31 20 12 / .14);
}
.fp-box__spine-text {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #261810;
  opacity: .86;
}
.fp-box__stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 0 6px 10px;
  border-bottom: 1px solid rgb(43 29 20 / .18);
  color: #261810;
}
.fp-box__stamp-brand {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.fp-box__stamp-sub {
  padding: 2px 9px;
  border: 1px solid rgb(43 29 20 / .36);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.fp-box__canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 8px;
}
.fp-box__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 6px 0;
  border-top: 1px solid rgb(43 29 20 / .18);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(43 29 20 / .74);
}

/* SVG line-art inside the pressed-cardboard box */
.fp-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.fp-outer-halo {
  fill: none;
  stroke: #261810;
  stroke-width: 2.5;
  pointer-events: none;
}
.fp-passage {
  fill: rgb(43 29 20 / .045);
  stroke: #261810;
  stroke-width: 1.75;
  pointer-events: none;
}
.fp-zone {
  cursor: pointer;
  outline: none;
}
.fp-zone__wall {
  fill: rgb(255 255 255 / 0);
  stroke: #261810;
  stroke-width: 1.95;
  stroke-linejoin: round;
  transition: fill .2s var(--ease), stroke-width .2s var(--ease);
}
.fp-art-line {
  fill: none;
  stroke: rgb(56 36 22 / .36);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s var(--ease);
  pointer-events: none;
}
.fp-art-line--dash {
  stroke-dasharray: 10 9;
}
.fp-label {
  fill: #21150e;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -.01em;
  pointer-events: none;
}
.fp-label--lg { font-size: 21px; }
.fp-label--md { font-size: 17.5px; }
.fp-label--sm { font-size: 14.5px; }
.fp-label--xs { font-size: 12px; }
.fp-sublabel {
  fill: rgb(43 29 20 / .68);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  pointer-events: none;
}

/* Hover & Active states: warm terracotta-ochre wash + deep espresso-brown ink */
.fp-zone:hover .fp-zone__wall,
.fp-zone:focus-visible .fp-zone__wall {
  fill: rgb(180 83 42 / .17);
  stroke-width: 2.15;
}
.fp-zone.is-active .fp-zone__wall {
  fill: rgb(188 106 60 / .34);
  stroke-width: 2.4;
}
.fp-zone.is-active .fp-art-line {
  stroke: rgb(38 24 16 / .72);
}
.fp-zone.is-active .fp-sublabel {
  fill: #21150e;
  font-weight: 600;
}

/* Right-hand companion card ("outer sleeve" with photos & room details) */
.fp-card {
  position: static;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(43 29 20 / .14);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.fp-card__head {
  padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.8vw, 30px) 16px;
}
.fp-card__eyebrow {
  margin: 0;
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.fp-card__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.15;
}
.fp-card__sub {
  margin: 4px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.fp-card__stage {
  position: relative;
  flex: 1 1 280px;
  min-height: 280px;
  margin-inline: clamp(16px, 2.4vw, 26px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #141210;
}
.fp-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .45s var(--ease);
}
.fp-card__stage:hover .fp-card__img {
  transform: scale(1.015);
}
.fp-card__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / .32);
  border-radius: 50%;
  background: rgb(15 13 11 / .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  translate: 0 -50%;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.fp-card__nav:hover {
  background: rgb(15 13 11 / .86);
  border-color: #fff;
}
.fp-card__nav--prev { left: 12px; }
.fp-card__nav--next { right: 12px; }
.fp-card__nav[hidden] { display: none; }

.fp-card__count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(15 13 11 / .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fp-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 999px;
  background: rgb(15 13 11 / .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.fp-card__zoom:hover {
  background: rgb(15 13 11 / .9);
  border-color: #fff;
}
.fp-card__zoom .icon { width: 14px; height: 14px; }

.fp-card__caption {
  margin: 10px clamp(20px, 2.8vw, 30px) 0;
  font-size: .84rem;
  color: var(--muted);
}

.fp-card__thumbs {
  display: flex;
  gap: 8px;
  margin: 12px clamp(20px, 2.8vw, 30px) 0;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.fp-card__thumbs[hidden] { display: none; }
.fp-thumb {
  flex: 0 0 64px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-deep);
  opacity: .66;
  cursor: pointer;
  transition: opacity .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.fp-thumb:hover { opacity: .92; }
.fp-thumb.is-active {
  border-color: #181614;
  opacity: 1;
}
.fp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-card__desc {
  margin: 14px clamp(20px, 2.8vw, 30px) 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.fp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding: 18px clamp(20px, 2.8vw, 30px) clamp(22px, 2.8vw, 30px);
}
.btn--dark {
  background: #181614;
  color: #f8f4ec;
}
.btn--dark:hover {
  background: #2c2824;
  color: #fff;
}
.fp-card__tour[hidden] { display: none; }

@media (max-width: 960px) {
  .fp-layout {
    grid-template-columns: 1fr;
  }
  .fp-box {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
    height: auto;
  }
  .fp-card {
    position: static;
    height: auto;
  }
  .fp-card__stage {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 520px) {
  .fp-box__spine-text {
    font-size: .58rem;
  }
  .fp-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .fp-chips::-webkit-scrollbar { display: none; }
  .fp-chip { flex: 0 0 auto; }
}

.amenities {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-l);
  background: var(--bg-deep);
}
.amenities__title { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 380; }
.amenities__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.amenities__list li { display: flex; align-items: center; gap: 12px; font-size: .98rem; }
.amenities__list .icon { width: 24px; height: 24px; color: var(--accent); }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.quote-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 62vh, 620px);
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.quote-band__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: brightness(.55) saturate(1.05);
}
.quote-band__quote { width: min(100% - 2 * var(--gutter), 900px); text-align: center; color: #fff; }
.quote-band__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  text-shadow: 0 2px 30px rgb(0 0 0 / .35);
}

/* 8b · Sacred Ujjain (Cosmic Rarity) ------------------------------------------------- */
.sacred {
  position: relative;
  border-top: 1px solid rgb(251 246 238 / .1);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgb(180 83 42 / .2), transparent 65%),
    var(--night);
  color: var(--cream);
}
.sacred__head { text-align: center; }
.sacred__head .section-title { color: #fff; }
.sacred__head .section-title em { color: var(--accent-soft); }
.sacred__head .section-lede { margin-inline: auto; color: rgb(251 246 238 / .76); }
.sacred__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}
.sacred-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.sacred-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgb(251 246 238 / .12);
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgb(255 255 255 / .055) 0%, rgb(255 255 255 / .02) 100%);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sacred-card:hover {
  border-color: rgb(231 160 124 / .42);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / .55);
}
.sacred-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sacred-card__num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 320;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.sacred-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgb(231 160 124 / .36);
  border-radius: 999px;
  background: rgb(180 83 42 / .2);
  color: #f9d8c4;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sacred-badge--gold {
  border-color: rgb(236 188 98 / .55);
  background: rgb(199 146 42 / .24);
  color: #ffe4a8;
}
.sacred-badge--subtle {
  border-color: rgb(251 246 238 / .2);
  background: rgb(255 255 255 / .06);
  color: rgb(251 246 238 / .82);
}
.sacred-card__title {
  margin-top: .75rem;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 380;
  color: #fff;
}
.sacred-card__text {
  margin-top: .65rem;
  font-size: .96rem;
  line-height: 1.62;
  color: rgb(251 246 238 / .78);
}
.sacred-card__text em { color: #fff; }
.sacred-sub {
  margin-top: auto;
  padding-top: 16px;
}
.sacred-sub::before {
  content: "";
  display: block;
  margin-bottom: 14px;
  border-top: 1px dashed rgb(251 246 238 / .14);
}
.sacred-sub__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.sacred-sub__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 420;
  color: var(--accent-soft);
}
.sacred-sub__text {
  margin-top: .4rem;
  font-size: .88rem;
  line-height: 1.55;
  color: rgb(251 246 238 / .7);
}
.sacred-sub__text strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  /* minmax(0, …) lets a card shrink below its longest badge instead of pushing the page sideways */
  .sacred-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .sacred-badge { white-space: normal; }
}

/* 9 · Explore & map ------------------------------------------------------------------ */
.explore { background: var(--surface); }
.explore__head { text-align: center; }
.explore__head .section-lede { margin-inline: auto; }
.explore__jump {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.explore__jump:hover { color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.explore__layout {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 1.35fr;
  gap: 24px;
  height: min(700px, 80vh);
  margin-top: 32px;
}
.places-panel { display: flex; flex-direction: column; min-height: 0; }
.places__count { margin-bottom: 10px; font-size: .85rem; color: var(--muted); }
.places {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 2px 8px 2px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.place {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.place:hover,
.place.is-hover,
.place.is-active { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.place.is-active { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.place__thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
}
.place__thumb img { width: 100%; height: 100%; object-fit: cover; }
.place__thumb .icon { width: 28px; height: 28px; }
.place__title {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 420;
  line-height: 1.2;
  text-align: left;
}
.place__title:hover { color: var(--accent); }
.place__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: .8rem;
  color: var(--muted);
}
.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: color-mix(in srgb, var(--c) 72%, black);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.place__next { color: var(--accent-2); font-weight: 600; }
.place__blurb { margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.place__tip { margin-top: 8px; font-size: .86rem; color: var(--accent-2); }
.place__actions { display: flex; gap: 16px; margin-top: 10px; }
.place__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.place__link:hover { color: var(--accent); border-color: currentColor; }
.place__link .icon { width: 1.05em; height: 1.05em; }

.map-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--bg-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.map { position: absolute; inset: 0; }
.map__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.map__status[hidden] { display: none; }
.map__status a { color: var(--accent); font-weight: 600; }
.map__recenter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: .84rem;
  font-weight: 600;
}
.map__recenter[hidden] { display: none; }
.explore__note { margin-top: 18px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Leaflet theme (leaflet.css is inserted before this file, so these win) */
.leaflet-container { background: #ede7dd; font-family: var(--font-body); }
.leaflet-tile-pane { filter: sepia(.16) saturate(.78) contrast(.96) brightness(1.03); }
.leaflet-control-zoom.leaflet-bar { border: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--ink); }
.leaflet-control-attribution { border-radius: 8px 0 0 0; font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 18px; font-size: .9rem; line-height: 1.45; }
.map-pin, .map-home { background: none; border: 0; }
.map-pin__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c, var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgb(31 26 21 / .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.map-pin__dot .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.map-pin:hover .map-pin__dot,
.map-pin:focus-visible .map-pin__dot,
.map-pin.is-highlight .map-pin__dot { transform: scale(1.25); box-shadow: 0 10px 22px rgb(31 26 21 / .4); }
.map-home__wrap { position: relative; display: block; width: 44px; height: 44px; }
.map-home__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 22px rgb(31 26 21 / .4);
}
.map-home__badge .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.map-home__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  translate: 0 -50%;
}
.map-popup__cat { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.map-popup__name { margin-top: 2px; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.map-popup__meta { margin-top: 2px; font-size: .82rem; color: var(--muted); }
.map-popup__link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  /* fade the right edge so it is clear the row of categories swipes sideways */
  .chips {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .explore__layout { grid-template-columns: 1fr; height: auto; }
  .map-wrap { order: -1; height: min(56vh, 460px); min-height: 300px; }
  .places { overflow: visible; padding: 0; }
}

/* 9b · Festival calendar -------------------------------------------------------------- */
.cal-section {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cal-head { text-align: center; }
.cal-head .section-lede { margin-inline: auto; max-width: 62ch; }

/* One colour per kind of festival (the kinds are listed in js/calendar.js): --c for marks
   and lettering, --c-tint behind a picked line, --band (and its full colour --band-c) for a
   festival that runs for days. */
.cal [data-kind="sawari"] { --c: #b4532a; --c-tint: #f9e7dc; }
.cal [data-kind="parva"] { --c: #4f5aa8; --c-tint: #e5e8f7; }
.cal [data-kind="simhastha"] { --c: #96650f; --c-tint: #f8ebcb; }
.cal [data-kind="utsavevents"] { --c: #2c7a68; --c-tint: #dcf0ea; }
.cal [data-band="sawari"] { --band: #f9e7dc; --band-c: #b4532a; }
.cal [data-band="parva"] { --band: #e5e8f7; --band-c: #4f5aa8; }
.cal [data-band="simhastha"] { --band: #f8ebcb; --band-c: #96650f; }
.cal [data-band="utsavevents"] { --band: #dcf0ea; --band-c: #2c7a68; }

.cal { margin-top: clamp(34px, 5vw, 56px); }
.cal__card {
  overflow: hidden;
  overflow: clip; /* clips the rounded corners without stopping the month from staying in view (below) */
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Years and months: jump straight to any month. A dot shows which kinds of festival it has. */
.cal__jump {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.cal-years { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cal-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-width: 78px;
  min-height: 38px;
  padding: 0 .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cal-year:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.cal-year[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.cal-year__star { font-size: .78em; color: #a8760f; }
.cal-year[aria-pressed="true"] .cal-year__star { color: #f0c96a; }
.cal-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cal-month {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cal-month:not(:disabled):hover { border-color: var(--ink-2); }
.cal-month.is-empty { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; }
.cal-month.is-empty:not(:disabled):hover { border-color: var(--line); }
.cal-month.is-now .cal-month__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cal-month[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); font-weight: 600; }
.cal-month:disabled { border-color: transparent; opacity: .4; cursor: default; }
.cal-month__dots { display: flex; gap: 3px; height: 6px; }
.cal-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--muted)); }
.cal-month[aria-pressed="true"] .cal-dot { box-shadow: 0 0 0 1px rgb(251 246 238 / .75); }

/* The month on the left, that month's festivals on the right. */
.cal__body { display: grid; grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); align-items: start; }
.cal-page { padding: clamp(16px, 2.4vw, 28px); }
.cal-agenda { align-self: stretch; min-width: 0; padding: clamp(16px, 2.4vw, 28px); border-left: 1px solid var(--line); }
/* On a tall enough screen the month stays in view while a long list scrolls beside it. */
@media (min-width: 901px) and (min-height: 700px) {
  .cal-page { position: sticky; top: var(--header-h); }
}
.cal-page__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px 16px 0 0;
  background: var(--ink);
  color: var(--cream);
}
.cal-page__title {
  flex: 1;
  text-align: center;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 380;
  color: #fff;
}
.cal-page__nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(251 246 238 / .3);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.cal-page__nav:hover:not(:disabled) { border-color: var(--cream); background: rgb(251 246 238 / .14); }
.cal-page__nav:disabled { opacity: .3; cursor: default; }
.cal-page__nav:focus-visible { outline-color: var(--accent-soft); border-radius: 50%; }

.cal-grid {
  width: 100%;
  padding: 6px 8px 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  border-collapse: separate;
  border-spacing: 0 3px;
  table-layout: fixed;
  background: #fff;
  touch-action: pan-y pinch-zoom; /* a sideways swipe turns the page (see js/calendar.js) */
}
.cal-grid th {
  padding: 8px 0 5px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-grid abbr { text-decoration: none; }
.cal-day { padding: 0; text-align: center; }
.cal-day__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--band, transparent);
  color: var(--ink-2);
  font: inherit;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: fade-in .28s var(--ease);
}
button.cal-day__box { cursor: pointer; }
.cal-day__box:focus-visible { outline-offset: -2px; border-radius: 12px; }
.cal-day__num {
  display: grid;
  place-items: center;
  width: min(34px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
button.cal-day__box:hover .cal-day__num { transform: scale(1.1); }
/* A festival that runs for days: a band, one piece per week, rounded where it starts and stops. */
.cal-day[data-band] .cal-day__box { color: var(--ink); }
.cal-day[data-band]:first-child .cal-day__box,
.cal-day.is-band-start .cal-day__box { border-top-left-radius: 22px; border-bottom-left-radius: 22px; }
.cal-day[data-band]:last-child .cal-day__box,
.cal-day.is-band-end .cal-day__box { border-top-right-radius: 22px; border-bottom-right-radius: 22px; }
/* A festival day has a ring. A festival's main day is filled in. */
.cal-day[data-mark] .cal-day__num { box-shadow: inset 0 0 0 2px var(--c); color: var(--ink); font-weight: 700; }
.cal-day[data-mark="star"] .cal-day__num { background: var(--c); color: #fff; }
.cal-day.is-today .cal-day__num { outline: 1.5px solid var(--ink); outline-offset: 2px; }
/* The days of the line the pointer is on, and the day that was picked. */
.cal-day.is-glow .cal-day__box { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--c, var(--band-c, var(--ink))); }
.cal-day.is-selected .cal-day__box { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day__dots { position: absolute; left: 50%; bottom: 0; display: flex; gap: 2px; translate: -50% 0; }
.cal-day__dots .cal-dot { width: 5px; height: 5px; box-shadow: 0 0 0 1px #fff; }

/* "Find the next": the colour key, and a shortcut to the next month with that kind of festival. */
.cal-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cal-find__label {
  flex-basis: 100%;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-find__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 36px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cal-find__btn:hover { border-color: var(--c); box-shadow: var(--shadow-s); }
.cal-find__btn .cal-dot { width: 9px; height: 9px; }

/* The festivals of the month on show. */
.cal-agenda__title {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-agenda__title:focus { outline: none; }
.cal-agenda__body { display: grid; gap: 14px; margin-top: 14px; }
.cal-event {
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  animation: fade-in .3s var(--ease);
}
.cal-event__tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.cal-event__title { margin-top: .35rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 420; line-height: 1.22; letter-spacing: -.005em; }
.cal-event__meta { margin-top: .35rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.cal-event__dates {
  display: grid;
  grid-template-columns: fit-content(46%) minmax(0, 1fr);
  column-gap: 14px;
  margin: 12px -8px 0;
  padding: 0;
  list-style: none;
}
.cal-entry {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 7.2em minmax(0, 1fr); /* for a browser without subgrid */
  grid-template-columns: subgrid;
  column-gap: 14px;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.4;
  scroll-margin-block: calc(var(--header-h) + 24px) 28px;
  transition: background-color .2s var(--ease);
}
.cal-entry:hover { background: var(--bg); }
.cal-entry.is-selected { background: var(--c-tint); }
.cal-entry__when { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.cal-entry__star { margin-right: .3em; }
.cal-entry.is-star .cal-entry__when { color: var(--c); }
.cal-entry__what { color: var(--ink-2); overflow-wrap: anywhere; }
.cal-entry.is-star .cal-entry__what { color: var(--ink); font-weight: 600; }
.cal-entry__note {
  display: inline-block;
  max-width: calc(100% - .6em);
  margin-left: .5em;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--ink-2);
  font-size: .74rem;
  font-weight: 600;
  vertical-align: baseline;
}
.cal-event__blurb { margin-top: 12px; font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.cal-event__more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; margin-top: 10px; }
.cal-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c, var(--accent-2));
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease);
}
.cal-link:hover { text-decoration-color: currentColor; }
.cal-link .icon { width: 1.05em; height: 1.05em; }
.cal-link--next { margin-left: auto; }
.cal-empty {
  padding: clamp(20px, 3vw, 30px);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg);
  animation: fade-in .3s var(--ease);
}
.cal-empty__text { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
.cal-empty__hint { margin-top: .5rem; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.cal-empty__hint a { font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.cal-empty__jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* The Simhastha strip under the calendar: its three Shahi Snan days open on the month above. */
.cal-spot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 18px;
  padding: clamp(18px, 2.6vw, 26px) clamp(18px, 3vw, 32px);
  border: 1px solid rgb(236 188 98 / .35);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgb(199 146 42 / .26), transparent 55%),
    linear-gradient(135deg, #1b140e 0%, #2d1b10 65%, #3b2011 100%);
  color: var(--cream);
}
.cal-spot__text { flex: 1 1 300px; min-width: 0; }
.cal-spot__title { font-size: clamp(1.35rem, 2.1vw, 1.7rem); font-weight: 380; color: #fff; }
.cal-spot__when { margin-top: .3rem; font-size: .92rem; font-weight: 600; color: #ffe4a8; }
.cal-spot__why { margin-top: .15rem; font-size: .84rem; line-height: 1.5; color: rgb(251 246 238 / .72); }
.cal-spot__days { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cal-spot__day {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 132px;
  padding: 9px 14px;
  border: 1px solid rgb(251 246 238 / .2);
  border-radius: 12px;
  background: rgb(255 255 255 / .06);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
button.cal-spot__day:hover { border-color: #ffe4a8; background: rgb(255 255 255 / .13); }
button.cal-spot__day:focus-visible { outline-color: #ffe4a8; border-radius: 12px; }
.cal-spot__date { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; color: #fff; }
.cal-spot__label { font-size: .74rem; line-height: 1.35; color: rgb(251 246 238 / .75); }

.cal .data-error { margin-bottom: 0; }
.cal-note {
  max-width: 72ch;
  margin: 24px auto 0;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  /* One column: the month first, its festivals under it. */
  .cal__body { grid-template-columns: minmax(0, 1fr); }
  .cal-agenda { border-left: 0; border-top: 1px solid var(--line); }
  .cal-page__head,
  .cal-grid,
  .cal-find { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  /* The years share one row, however many there are. */
  .cal-years { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
  .cal-year { min-width: 0; padding: 0; font-size: .86rem; }
  .cal-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cal-event { padding: 16px 16px 14px; }
  /* The Shahi Snan days: one row each, the date beside its name. */
  .cal-spot__days { flex-direction: column; width: 100%; }
  .cal-spot__day { grid-template-columns: 6.2em minmax(0, 1fr); align-items: baseline; gap: 12px; min-width: 0; }
}
@media (max-width: 359px) {
  /* No room for the star beside the Simhastha year: its colour marks it instead. */
  .cal-year { font-size: .82rem; }
  .cal-year__star { display: none; }
  .cal-year--star:not([aria-pressed="true"]) { color: #96650f; }
  .cal-year--star[aria-pressed="true"] { border-color: #96650f; background: #96650f; color: #fff; }
  .cal-grid { padding-inline: 4px; }
  .cal-grid th { letter-spacing: .04em; }
}

/* 10 · Contact & footer ---------------------------------------------------------------- */
.contact { background: var(--night); color: var(--cream); }
.contact .section-title { color: #fff; }
.contact .section-title em { color: var(--accent-soft); }
.contact .section-lede { color: rgb(251 246 238 / .72); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact__sub {
  margin-top: 2.6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(251 246 238 / .6);
}
.getting-here { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / .12); }
.getting-here__item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / .12);
}
.getting-here__icon { color: var(--accent-soft); }
.getting-here__icon .icon { width: 22px; height: 22px; }
.getting-here__km { font-variant-numeric: tabular-nums; color: rgb(251 246 238 / .7); font-size: .92rem; }
.getting-here__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 50%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.getting-here__link:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.contact-card {
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-l);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-l);
}
.contact-card__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 350; }
.contact-card p { margin-top: .6rem; color: var(--ink-2); }
.contact-card__actions { display: grid; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.site-footer {
  padding: 30px 0 42px;
  border-top: 1px solid rgb(255 255 255 / .08);
  background: var(--night);
  color: rgb(251 246 238 / .55);
  font-size: .85rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* 11 · States, motion & edit mode --------------------------------------------------------- */
.data-error {
  max-width: 640px;
  margin: 24px auto;
  padding: 16px 20px;
  border: 1px solid #f2c6b0;
  border-radius: 14px;
  background: #fff3ec;
  color: #7a2e12;
  font-size: .95rem;
  text-align: left;
}
.data-error__detail { margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.tour .data-error { margin: 0 auto 18vh; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Used for deep links: apply a tour state instantly, without animating. */
.room.is-instant .room__media,
.room.is-instant .hotspot,
.room.is-instant .story-card,
.room.is-instant .room__intro,
.room.is-instant .room__label,
.room.is-instant .room__shade { transition: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes mouse-wheel { 0% { transform: translateY(0); opacity: 1; } 65% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Hotspot picker (only on localhost with ?edit in the URL) */
.editor-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-l);
  font: 500 .84rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.editor-panel__hint { margin-top: 4px; color: rgb(251 246 238 / .7); }
.editor-panel__out { margin: 10px 0; padding: 10px; border-radius: 8px; background: rgb(255 255 255 / .08); white-space: pre-wrap; }
.editor-panel__copy { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; }
.editor-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #ff4d4d;
  border-radius: 50%;
  background: rgb(255 77 77 / .3);
  scale: calc(1 / var(--s, 1));
  pointer-events: none;
}

/* 12 · City guide: guide links, place facts, plan, dishes, apps, booking ------------------- */

/* Quick links from Explore to the rest of the guide */
.guide-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.6rem; }
.guide-nav a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.guide-nav a:hover { border-color: var(--ink-2); box-shadow: var(--shadow-s); }
.guide-nav .icon { width: 1.1em; height: 1.1em; color: var(--accent); }

/* Timings and "Must try" lines on a place card */
.place__facts {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  line-height: 1.45;
}
.place__facts li { display: flex; align-items: flex-start; gap: 7px; }
.place__facts .icon { width: 1.05em; height: 1.05em; margin-top: .2em; color: var(--c, var(--accent)); }

/* "Show all" button that unfolds the long places list on phones */
.places__more { justify-self: center; margin-top: 4px; }

.map__hint {
  position: absolute;
  left: 50%;
  bottom: 28px; /* clear of the map credit line along the bottom edge */
  z-index: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(21 17 13 / .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  translate: -50% 0;
  pointer-events: none;
}
.map__hint[hidden] { display: none; }

/* "Directions" link used by the evening, the itineraries and the dishes */
.dir-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.dir-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.dir-link .icon { width: 1.05em; height: 1.05em; }

/* Plan your days */
.plan { border-top: 1px solid var(--line); background: var(--bg); }
.plan__head,
.food__head,
.apps__head { text-align: center; }
.plan__head .section-lede,
.food__head .section-lede,
.apps__head .section-lede { margin-inline: auto; }

.evening {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgb(236 188 98 / .3);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 8% 0%, rgb(180 83 42 / .38), transparent 55%),
    linear-gradient(135deg, #17110c 0%, #2a1a10 62%, #38200f 100%);
  color: var(--cream);
  box-shadow: var(--shadow-l);
}
.evening[hidden],
.itinerary[hidden] { display: none; }
.evening__kicker {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.evening__heading { margin-top: .4rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 340; color: #fff; }
.evening__lede { margin-top: .4rem; color: rgb(251 246 238 / .76); }
.evening__stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.evening__stop {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid rgb(251 246 238 / .16);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .06);
}
.evening__time {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 340;
  line-height: 1;
  color: #ffe4a8;
  font-variant-numeric: tabular-nums;
}
.evening__title { margin-top: .55rem; font-size: 1.35rem; font-weight: 400; color: #fff; }
.evening__where {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: .3rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-soft);
}
.evening__where .icon { width: 1.05em; height: 1.05em; }
.evening__text { margin-top: .7rem; font-size: .92rem; line-height: 1.58; color: rgb(251 246 238 / .82); }
.evening__tip { margin-top: .6rem; font-size: .84rem; color: #ffe4a8; }
.evening__stop .dir-link { margin-top: auto; padding-top: 14px; color: var(--cream); text-decoration-color: rgb(251 246 238 / .4); }
.evening__stop .dir-link:hover { color: #fff; }
.evening__note { margin-top: 18px; font-size: .86rem; color: rgb(251 246 238 / .7); }
.evening__note[hidden] { display: none; }
@media (max-width: 860px) {
  .evening__stops { grid-template-columns: 1fr; }
  .evening__stop { padding: 18px; }
}

.itinerary { margin-top: clamp(44px, 6vw, 76px); }
.itinerary__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.plan-tab {
  min-height: 44px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.plan-tab:hover { background: var(--bg); color: var(--ink); }
.plan-tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-s); }
.itinerary__panel { margin-top: 26px; }
.plan-intro { max-width: 62ch; margin-inline: auto; text-align: center; }
.plan-intro__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 360; }
.plan-intro__summary { margin-top: .5rem; color: var(--ink-2); }
.plan-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 26px;
}
.plan-days--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.plan-day {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.plan-day__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-l);
  cursor: pointer;
  list-style: none;
}
.plan-day__head::-webkit-details-marker { display: none; }
.plan-day__num {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-day__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.plan-day__chev { margin-left: auto; color: var(--muted); transition: rotate .25s var(--ease); }
.plan-day[open] .plan-day__chev { rotate: 180deg; }
.plan-stops { margin: 0; padding: 0 20px 8px; list-style: none; }
.plan-stop {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
.plan-stop__time {
  padding-top: 2px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-stop__title { font-weight: 600; line-height: 1.35; }
.plan-stop__note { margin-top: 3px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.plan-stop .dir-link { margin-top: 8px; }
.plan-day__extra {
  margin: 4px 20px 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-deep);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Famous dishes */
.food { border-top: 1px solid var(--line); background: var(--surface); }
.food__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.6rem; }
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.dish {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dish:hover { border-color: rgb(180 83 42 / .4); box-shadow: var(--shadow); }
.dish__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.dish__name { margin-top: .7rem; font-size: 1.45rem; font-weight: 400; }
.dish__text { margin-top: .5rem; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.dish__where { margin-top: auto; padding-top: 16px; }
.dish__where-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dish__places { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.dish__places a,
.dish__places span { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; font-weight: 600; }
.dish__places a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgb(143 63 29 / .3); text-underline-offset: 3px; }
.dish__places a:hover { text-decoration-color: currentColor; }
.dish__places .icon { width: 1.05em; height: 1.05em; }
@media (max-width: 700px) {
  /* On phones the dishes become one swipeable row instead of a very long column. */
  .dishes {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .dishes::-webkit-scrollbar { display: none; }
  .dish { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }
}

/* Apps that work in Ujjain */
.apps { border-top: 1px solid var(--line); background: var(--bg-deep); }
.apps__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.app {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.app__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--accent);
}
.app__icon .icon { width: 23px; height: 23px; }
.app__kind { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.app__name { margin-top: 2px; font-size: 1.25rem; font-weight: 420; line-height: 1.2; }
.app__name a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.app__name a:hover { color: var(--accent); }
.app__name .icon { width: .7em; height: .7em; color: var(--muted); }
.app__hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdf1e8;
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 600;
}
.app__hours .icon { width: 1.05em; height: 1.05em; }
.app__text { margin-top: 8px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.apps__note { max-width: 74ch; margin: 24px auto 0; text-align: center; font-size: .86rem; color: var(--ink-2); }
.apps__note[hidden] { display: none; }

/* Booking platforms in the contact card. Each one is shown in its own colour with its logo.
   The logos are trademarks of their owners and only point to the listing on that platform. */
.booking { display: grid; gap: 12px; margin-top: 26px; }
.booking .booking__label {
  margin-top: 4px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.booking__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.booking__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
a.booking__link:hover { border-color: var(--ink); }
.booking__link .icon { width: 1em; height: 1em; color: var(--muted); }
.booking__link.is-pending { border-style: dashed; background: transparent; color: var(--muted); }
.booking__link small { font-size: .72rem; font-weight: 500; }
.booking + .contact-card__actions { margin-top: 12px; }

/* The platforms' colours. --brand fills a button that has a link (the text on it is white
   unless --brand-ink says otherwise). --brand-mark colours the logo of a platform that is
   still waiting for its link. Some fills are a shade deeper than the logo so that white
   text on them stays easy to read: Airbnb's is the gradient of its own buttons. */
[data-brand="airbnb"] { --brand: linear-gradient(90deg, #e61e4d 0%, #e31c5f 50%, #d70466 100%); --brand-mark: #ff385c; }
[data-brand="booking"] { --brand: #003b95; --brand-mark: #003b95; }
[data-brand="agoda"] { --brand: #fff; --brand-ink: #24242a; --brand-edge: #d9d9de; }
[data-brand="makemytrip"] { --brand: #e31e25; --brand-mark: #e31e25; }
[data-brand="goibibo"] { --brand: #c8500a; --brand-mark: #f26b21; }

/* A logo from the sprite in index.html (see brandLogo() in js/dom.js). Its height is set
   here and its width follows its shape. */
.brand-logo { flex: none; width: auto; height: 1.3em; fill: currentColor; stroke: none; }
.brand-logo--booking { height: 1.05em; }
.brand-logo--agoda { height: .5em; }
.brand-logo--makemytrip { height: 1.15em; }
.brand-logo--goibibo { height: 1.05em; }

/* The main "Book on …" button, and the other platforms once they have a link. */
.btn--book,
a.booking__link[data-brand] {
  border-color: var(--brand-edge, transparent);
  background: var(--brand, var(--accent));
  background-origin: border-box;
  color: var(--brand-ink, #fff);
}
.btn--book:hover { box-shadow: var(--shadow); filter: brightness(.94) saturate(1.06); }
a.booking__link[data-brand]:hover { border-color: var(--brand-edge, transparent); filter: brightness(.94) saturate(1.06); }
a.booking__link[data-brand] .icon { color: currentColor; opacity: .75; }
.booking__link.is-pending .brand-logo { color: var(--brand-mark, currentColor); }

/* 13 · Phone, touch & landscape refinements --------------------------------------------------- */
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 760px) {
  .section { padding-block: 68px; }
  .quote-band { min-height: 320px; }
}
@media (max-width: 520px) {
  .section-title { font-size: clamp(1.95rem, 8.4vw, 2.4rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .place { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .place__thumb { width: 44px; height: 44px; border-radius: 12px; }
  .place__thumb .icon { width: 22px; height: 22px; }
  .sacred-card { padding: 22px 20px; }
  .contact-card { padding: 26px 20px; }
  .plan-tab { padding: 0 1.1rem; }
  .plan-stop { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .plan-day__head { padding: 16px; }
  .plan-stops { padding-inline: 16px; }
  .plan-day__extra { margin-inline: 16px; }
}

/* Fingers need bigger targets than a mouse pointer (about 44px). */
@media (pointer: coarse) {
  .chip,
  .cal-year,
  .cal-find__btn,
  .cal-link,
  .tour-chip { min-height: 44px; }
  .cal-page__nav { width: 44px; height: 44px; }
  .cal-day__box { height: 46px; }
  .place__title { padding-block: 8px; }
  .dir-link { padding-block: 9px; }
  .dish__places a,
  .app__name a { padding-block: 8px; }
  .site-footer a { padding-block: 10px; }
  /* These two are underlined with a bottom border, so grow the touch area without moving the line. */
  .place__link,
  .tour__skip { position: relative; }
  .place__link::after,
  .tour__skip::after { content: ""; position: absolute; inset: -11px -6px; }
  .story-card__btn { min-height: 44px; }
  .story-card__btn:first-child { width: 44px; }
  .leaflet-control-zoom a { width: 42px; height: 42px; line-height: 42px; }
}

/* A phone held sideways: very little height, so trim the hero and the tour text. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__title { font-size: clamp(2.6rem, 18vh, 5rem); }
  .hero__lede { display: none; }
  .hero__content { padding-top: calc(var(--header-h) + 6px); padding-bottom: 30px; }
  .hero__facts { bottom: 44px; } /* a very wide but short window: still level with the buttons */
  .hero__scroll { display: none; }
  .room__name { font-size: clamp(1.8rem, 9vh, 2.8rem); }
  .room__text { display: none; }
  .room__intro { bottom: 96px; } /* clear of the "Scroll to continue the tour" cue */
  /* The tour keeps its side layout here: a narrower card, centred in the space under the header. */
  .story-card {
    top: calc(50% + var(--header-h) / 2 - 6px);
    width: min(340px, 46%);
    max-height: calc(100% - var(--header-h) - 20px);
    padding: 16px 20px 14px;
    overflow-y: auto;
  }
  .story-card__title { font-size: 1.4rem; }
  .story-card__text { margin-top: .5rem; font-size: .9rem; line-height: 1.5; }
  .tour-rail { top: calc(50% + 20px); }
  .tour-rail__item { min-height: 28px; }
  /* the card nearly fills the height and has its own Next button */
  .tour-cue.is-exploring { opacity: 0; visibility: hidden; }
}
/* The very shortest screens (an older, small phone held sideways): a more compact card. */
@media (max-height: 360px) and (orientation: landscape) {
  .story-card { padding: 12px 16px 10px; }
  .story-card__title { font-size: 1.15rem; }
  .story-card__nav { margin-top: .6rem; padding-top: .6rem; }
  /* no room for the progress dots beside the buttons; "Corner 2 of 4" above says the same */
  .story-card__dots { display: none; }
  .story-card__btn--next { margin-left: auto; }
}
