/* ───────────────────────────────────────────────────────────────────────────
 * city-tours.css  ·  styles for the City Tours section + its interactions
 * Reuses the Direction-A luxe tokens defined globally in the page <style>:
 * --luxe-bg, --luxe-surface, --luxe-ink, --luxe-ink-dim, --luxe-ink-faint,
 * --luxe-gold, --luxe-gold-bright, --luxe-gold-dim, --luxe-rule,
 * --luxe-serif, --luxe-sans, --luxe-mono.
 * ─────────────────────────────────────────────────────────────────────────── */

.ct {
  padding: 110px 64px;
  background: var(--luxe-surface);
  border-top: 1px solid var(--luxe-rule);
}

/* ── header ── */
.ct-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 48px; }
.ct-eyebrow { font-family: var(--luxe-sans); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--luxe-gold); margin: 0 0 24px; }
.ct-title { font-family: var(--luxe-serif); font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -0.02em; color: var(--luxe-ink); margin: 0; }
.ct-title em { font-style: italic; color: var(--luxe-gold-bright); }
.ct-lede { font-family: var(--luxe-sans); font-size: 15px; line-height: 1.7; color: var(--luxe-ink-dim); margin: 0; max-width: 380px; }

/* ── control rail: tour strip (tabs) + active detail panel, above the mosaic ──
 * This is the visual binding — the strip sits directly over the grid it lights,
 * and the active tab / panel / lit tiles all share the tour's variant accent. */
.ct-rail { margin-bottom: 26px; }

.ct-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--luxe-rule); border: 1px solid var(--luxe-rule); }
.ct-tab {
  --ct-accent: var(--luxe-gold-bright);
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--luxe-bg); border: none; padding: 26px 26px 28px;
  font-family: inherit; color: inherit;
  transition: background 320ms ease, opacity 320ms ease;
}
.ct-tab--sunset { --ct-accent: rgba(231,150,90,1); }
.ct-tab--night  { --ct-accent: rgba(132,160,228,1); }
.ct-tab:hover { background: #1a1510; }
.ct-tab.is-active { background: #1c160f; }
/* recede the tabs that aren't the active one */
.ct-tab:not(.is-active) { opacity: 0.62; }
.ct-tab.is-active { opacity: 1; }

/* head row: numeral · name … price */
.ct-tab-head { display: flex; align-items: baseline; gap: 14px; }
.ct-tab-num { font-family: var(--luxe-serif); font-style: italic; font-size: 30px; line-height: 0.9; color: var(--luxe-ink-faint); transition: color 320ms ease; flex: none; }
.ct-tab.is-active .ct-tab-num { color: var(--ct-accent); }
.ct-tab-name { font-family: var(--luxe-serif); font-size: 24px; line-height: 1; color: var(--luxe-ink); flex: 1 1 auto; min-width: 0; }
/* price: subdued by default, emphasized when the tour is focused */
.ct-tab-price { font-family: var(--luxe-serif); font-size: 17px; line-height: 0.9; color: var(--luxe-ink-faint); flex: none; transition: color 320ms ease, font-size 320ms ease; }
.ct-tab.is-active .ct-tab-price { font-size: 30px; color: var(--ct-accent); }

.ct-tab-meta { font-family: var(--luxe-sans); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--luxe-gold); }

/* the tour's stops, riding inside the tab as faded wrapping text */
.ct-tab-stops { font-family: var(--luxe-sans); font-size: 13px; line-height: 1.55; color: var(--luxe-ink-faint); transition: color 320ms ease; }
.ct-tab.is-active .ct-tab-stops { color: var(--luxe-ink-dim); }
.ct-tab-stop:not(:last-child)::after { content: " · "; color: var(--luxe-gold-dim); }

/* autoplay progress bar — anchored to the bottom edge of the tab */
.ct-tab-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.ct-tab-fill { display: block; height: 100%; width: 100%; background: var(--ct-accent); transform: scaleX(0); transform-origin: left; }

/* ── interaction cue (lives under the strip) ── */
.ct-cue { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-family: var(--luxe-sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--luxe-ink-faint); transition: color 400ms ease; }
.ct-cue.is-on { color: var(--luxe-gold-bright); }
.ct-cue-rule { width: 18px; height: 1px; background: currentColor; }

/* ── mosaic ── */
.ct-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 10px; margin-bottom: 0; }

.ct-tile {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--luxe-gold-dim);
  transition: opacity 600ms ease, box-shadow 500ms ease, border-color 500ms ease, transform 600ms ease;
}
.ct-tile.is-dim { opacity: 0.34; filter: grayscale(0.5) brightness(0.85); }
.ct-tile.is-lit { transform: scale(1.014); }

/* version layers — crossfade */
.ct-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; background: var(--luxe-bg) center/cover no-repeat; }
.ct-layer.is-shown { opacity: 1; }

/* placeholder tints (delete once real `src` images are wired) */
.ct-day    { background-image: repeating-linear-gradient(135deg, rgba(201,169,97,0.20) 0 8px, rgba(201,169,97,0.05) 8px 16px); }
.ct-sunset { background-image: repeating-linear-gradient(135deg, rgba(214,116,58,0.32) 0 8px, rgba(150,60,40,0.10) 8px 16px); }
.ct-night  { background-image: repeating-linear-gradient(135deg, rgba(74,96,156,0.34) 0 8px, rgba(24,30,60,0.14) 8px 16px); }

/* the lit glow takes the colour of whichever version is shown */
.ct-tile.is-lit { border-color: var(--luxe-gold-bright); box-shadow: 0 0 0 1px var(--luxe-gold-bright), 0 22px 60px -22px var(--luxe-gold-bright); }
.ct-tile.is-lit:has(.ct-sunset.is-shown) { border-color: rgba(231,150,90,0.9); box-shadow: 0 0 0 1px rgba(231,150,90,0.9), 0 22px 60px -22px rgba(231,150,90,0.78); }
.ct-tile.is-lit:has(.ct-night.is-shown)  { border-color: rgba(132,160,228,0.9); box-shadow: 0 0 0 1px rgba(132,160,228,0.9), 0 22px 60px -22px rgba(132,160,228,0.72); }

.ct-tile-meta { position: absolute; top: 12px; left: 14px; display: flex; gap: 8px; align-items: center; }
.ct-photo-tag { font-family: var(--luxe-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(201,169,97,0.6); }
.ct-dots { display: flex; gap: 4px; }
.ct-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(245,237,224,0.22); transition: background 400ms ease; }
.ct-dot.is-shown { background: var(--luxe-gold-bright); }

.ct-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 14px; background: linear-gradient(to top, rgba(11,9,7,0.9), transparent); }
.ct-tile-name { display: block; font-family: var(--luxe-serif); font-size: 19px; color: var(--luxe-ink); line-height: 1.15; }
.ct-tile-kh { display: block; font-family: var(--luxe-serif); font-style: italic; font-size: 13px; color: var(--luxe-gold); margin-top: 2px; }

/* ── inclusions ── */
.ct-inclusions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding: 24px 36px; margin-top: 64px; background: var(--luxe-bg); border: 1px solid var(--luxe-rule); }
.ct-inclusions-label { font-family: var(--luxe-sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--luxe-gold); }
.ct-inclusions-list { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; }
.ct-inclusion { font-family: var(--luxe-serif); font-style: italic; font-size: 18px; color: var(--luxe-ink); }

/* ── utility band ── */
.ct-utility { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--luxe-rule); border: 1px solid var(--luxe-rule); border-top: none; }
.ct-util { background: var(--luxe-bg); padding: 40px 36px; display: flex; flex-direction: column; }
.ct-util-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.ct-util-kicker { font-family: var(--luxe-sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--luxe-gold); }
.ct-util-note { font-family: var(--luxe-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--luxe-ink-faint); }
.ct-util-name { font-family: var(--luxe-serif); font-size: 32px; font-weight: 400; color: var(--luxe-ink); margin: 0; }
.ct-util-sub { font-family: var(--luxe-serif); font-style: italic; font-size: 16px; color: var(--luxe-gold); margin: 4px 0 22px; }
.ct-util-body { font-family: var(--luxe-sans); font-size: 14px; line-height: 1.7; color: var(--luxe-ink-dim); margin: 0 0 24px; max-width: 360px; }
.ct-util-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--luxe-rule); }
.ct-util-row-label { font-family: var(--luxe-sans); font-size: 14px; color: var(--luxe-ink); }
.ct-util-row-price { font-family: var(--luxe-serif); font-size: 28px; color: var(--luxe-gold-bright); }
.ct-util-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.ct-book { background: var(--luxe-gold); color: var(--luxe-bg); border: none; padding: 16px 26px; font-family: var(--luxe-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }
.ct-util-bigprice { font-family: var(--luxe-serif); font-size: 44px; color: var(--luxe-gold-bright); line-height: 0.9; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .ct { padding: 72px 24px; }
  .ct-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ct-title { font-size: 44px; }
  .ct-mosaic { grid-auto-rows: 120px; }
}
@media (max-width: 860px) {
  /* Strip: 4 tabs → 2×2 so each stays legible. */
  .ct-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ct-title { font-size: 36px; }
  /* Collapse the 6-col mosaic to 2 cols; tiles span the full reflow. */
  .ct-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .ct-tile { grid-column: auto !important; grid-row: auto !important; }
  .ct-utility { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .ct-strip { grid-template-columns: 1fr; }
  .ct-tab-num { font-size: 24px; width: 28px; }
}

/* Respect reduced-motion: kill the ambient/crossfade transitions. */
@media (prefers-reduced-motion: reduce) {
  .ct-layer, .ct-tile, .ct-tab, .ct-dot, .ct-cue { transition: none; }
  /* Static fallback: first tour stays active, no autoplay progress bar. */
  .ct-tab-fill { display: none; }
}
