
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: var(--gray-0, #f6f7f4);
  --paper-strong: #fffaf2;
  --paper-cool: #e8eee8;
  --ink: var(--gray-12, #151512);
  --soft-ink: var(--stone-10, #45423b);
  --muted: var(--stone-7, #6c665d);
  --line: rgba(21, 21, 18, 0.16);
  --line-strong: rgba(21, 21, 18, 0.28);
  --teal: var(--teal-8, #0f6f68);
  --river: var(--cyan-8, #2d7896);
  --brick: var(--orange-8, #b75531);
  --ochre: var(--yellow-8, #c48b20);
  --green: var(--green-8, #446f48);
  --violet: var(--violet-8, #66517f);
  --night: var(--gray-12, #181611);
  --max: 1160px;
  --reading: 760px;
  --page-gutter: clamp(18px, 4vw, 48px);
  --radius: var(--radius-2, 8px);
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sl-color-primary-50: #e8f5f3;
  --sl-color-primary-100: #cce8e4;
  --sl-color-primary-200: #99d2ca;
  --sl-color-primary-300: #65b9ae;
  --sl-color-primary-400: #329f92;
  --sl-color-primary-500: #197f75;
  --sl-color-primary-600: #0f6f68;
  --sl-color-primary-700: #0b5953;
  --sl-color-primary-800: #073f3b;
  --sl-color-primary-900: #042824;
  --sl-font-sans: var(--sans);
  --sl-font-serif: var(--serif);
  --sl-border-radius-medium: var(--radius);
  --sl-border-radius-large: var(--radius);
  --sl-shadow-medium: var(--shadow-3, 0 10px 22px rgba(21, 21, 18, 0.14));
  --sl-focus-ring-color: var(--ochre);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body.city-guide {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.city-guide [hidden] {
  display: none !important;
}

.city-guide a {
  color: inherit;
}

.city-guide img {
  display: block;
  max-width: 100%;
}

.city-guide :focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.site-nav__inner {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  transition: min-height 180ms ease, padding 180ms ease;
}

.site-nav--compact .site-nav__inner {
  min-height: 46px;
}

body.city-home .site-nav__inner {
  min-height: 52px;
}

body.city-home .site-nav--compact .site-nav__inner {
  min-height: 44px;
}

.brand,
.site-nav nav,
.nav-actions,
.nav-cta,
.button,
.pill {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
}

body.city-home .brand,
.site-nav--compact .brand {
  font-size: 22px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--teal);
  padding: 4px;
}

body.city-home .brand img,
.site-nav--compact .brand img {
  width: 26px;
  height: 26px;
  padding: 3px;
}

.site-nav nav {
  gap: 18px;
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.site-nav--home nav {
  gap: 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.site-nav nav a,
.nav-cta,
.button,
.guide-card a,
.collection-card a,
.list-item a,
.route-list a,
.site-footer a {
  text-decoration: none;
}

.site-nav nav a:hover,
.guide-card a:hover,
.collection-card a:hover,
.list-item a:hover,
.route-list a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.nav-actions {
  gap: 8px;
  justify-content: flex-end;
}

.nav-cta {
  min-height: 40px;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper-strong);
  font-weight: 700;
}

.nav-cta--primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

sl-button.nav-cta,
sl-button.button {
  display: inline-block;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

sl-button.nav-cta::part(base),
sl-button.button::part(base) {
  height: 42px;
  min-height: 42px;
  border-color: var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding-inline: 18px;
  transition: min-height 180ms ease, padding 180ms ease, font-size 180ms ease;
}

sl-button.nav-cta::part(label),
sl-button.button::part(label) {
  display: inline-flex;
  align-items: center;
}

sl-button.nav-cta--primary::part(base),
sl-button.button--primary::part(base) {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 111, 104, 0.16);
}

sl-button.button--secondary::part(base) {
  border-color: var(--line-strong) !important;
  background: var(--paper-strong) !important;
  color: var(--ink);
}

body.city-home .nav-cta,
.site-nav--compact .nav-cta {
  min-height: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.city-home sl-button.nav-cta::part(base),
.site-nav--compact sl-button.nav-cta::part(base) {
  min-height: 36px;
  padding-inline: 12px;
}

.nav-label-short {
  display: none;
}

.city-hero,
.simple-hero,
.section,
.category-nav,
.metrics-band,
.answer-grid,
.site-footer {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.city-hero {
  min-height: min(650px, calc(100svh - 64px));
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
  padding: 48px 0 42px;
}

body.city-home .city-hero {
  min-height: min(650px, calc(100svh - 56px));
  padding-top: 36px;
}

.city-hero__media {
  position: relative;
  /* Bound the hero to a fixed card so ANY source aspect (a tall Wikipedia city
     montage like WacoCity.jpg 551x1023, a portrait, a wide skyline) is cropped to
     a clean banner instead of stretching the page to the image's full height.
     aspect-ratio gives the box a definite height so the img's object-fit:cover
     actually crops; min/max clamp it across column widths. */
  aspect-ratio: 4 / 5;
  min-height: 440px;
  max-height: 560px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 18, 0.05) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 42px 42px;
  overflow: hidden;
}

.city-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favor the top of a tall montage — the lead skyline cell sits at the top. */
  object-position: center top;
}

/* Commons/Wikipedia attribution for the city hero — required by license. Small,
   unobtrusive, bottom-left over a subtle scrim so it stays legible on any photo. */
.city-hero__credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  text-align: right;
}

.city-hero__credit a {
  color: inherit;
  text-decoration: underline;
}

.hero-map-art {
  position: relative;
  min-height: inherit;
  padding: 24px;
}

.hero-map-art::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 48%;
  height: 58px;
  transform: rotate(-8deg);
  background: var(--river);
}

.hero-map-art span {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.hero-map-art span:nth-child(1) {
  left: 16%;
  top: 24%;
}

.hero-map-art span:nth-child(2) {
  right: 18%;
  top: 36%;
}

.hero-map-art span:nth-child(3) {
  left: 26%;
  bottom: 22%;
}

.hero-map-art span:nth-child(4) {
  right: 12%;
  bottom: 16%;
}

.hero-map-art--network::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed color-mix(in srgb, var(--teal) 55%, transparent);
  transform: rotate(-8deg);
}

.hero-map-art--nearby::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border: 2px solid color-mix(in srgb, var(--teal) 52%, transparent);
  border-radius: 999px;
  box-shadow:
    0 0 0 42px color-mix(in srgb, var(--teal) 12%, transparent),
    0 0 0 86px color-mix(in srgb, var(--river) 9%, transparent);
}

.city-hero h1,
.simple-hero h1,
.detail-hero h1 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: 0;
}

.city-hero h1 {
  max-width: 11ch;
  font-size: clamp(52px, 6vw, 82px);
}

.simple-hero h1 {
  max-width: 16ch;
  font-size: clamp(42px, 5vw, 68px);
}

.detail-hero h1 {
  max-width: 17ch;
  font-size: clamp(42px, 5vw, 72px);
}

.city-hero p,
.simple-hero p,
.detail-hero p {
  max-width: var(--reading);
  color: var(--soft-ink);
  font-size: clamp(17px, 1.7vw, 21px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.button-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-job-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-job-action,
.job-action {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper-strong) 92%, var(--paper-cool));
  text-decoration: none;
}

.hero-job-action {
  display: grid;
  gap: 5px;
  padding: 13px;
}

.hero-job-action span,
.job-action__kicker {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-job-action strong,
.job-action strong {
  color: var(--ink);
  line-height: 1.15;
}

.hero-job-action em,
.job-action em {
  color: var(--brick);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.site-home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(660px, calc(100svh - 56px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(10, 12, 9, 0.78) 0%, rgba(10, 12, 9, 0.55) 42%, rgba(10, 12, 9, 0.08) 100%),
    var(--home-hero-image) center / cover no-repeat,
    var(--paper-cool);
}

.site-home-hero__inner {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 72px 0 76px;
}

.site-home-hero .eyebrow {
  color: #d8f2df;
}

.site-home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(52px, 5.7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.site-home-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 1.55vw, 22px);
}

.home-city-search {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 8px;
}

.home-city-search label {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-city-search__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.home-city-search input[type="search"],
.home-city-search button {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
}

.home-city-search input[type="search"] {
  min-width: 0;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  padding: 0 18px;
  -webkit-text-fill-color: var(--ink);
}

.home-city-search input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

.home-city-search button {
  background: var(--teal);
  color: #fff;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.home-city-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-city-suggestions {
  position: absolute;
  left: 0;
  right: min(210px, 32%);
  top: 86px;
  z-index: 8;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(246, 247, 244, 0.96)),
    var(--paper-strong);
  box-shadow: 0 24px 48px rgba(7, 19, 17, 0.28);
  padding: 12px;
  color: var(--ink);
}

.home-city-search.is-suggesting .home-city-search__chips {
  opacity: 0.22;
}

.home-city-suggestions[hidden] {
  display: none;
}

.home-city-suggestions::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 250, 242, 0.98);
  transform: rotate(45deg);
}

.home-city-suggestions a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.home-city-suggestions a:hover,
.home-city-suggestions a.is-active,
.home-city-suggestions a:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 32%, transparent);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  outline: none;
}

.home-city-suggestions span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.home-city-suggestions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-city-search__chips a,
.home-city-search__chips span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.site-home-hero .button-row {
  margin-top: 2px;
}

.site-home-hero .button--secondary:not(sl-button),
.site-home-hero sl-button.button--secondary::part(base) {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.home-live-city {
  position: absolute;
  right: max(var(--page-gutter), calc((100% - var(--max)) / 2));
  bottom: 42px;
  width: min(340px, calc(100% - (var(--page-gutter) * 2)));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  padding: 18px;
}

.home-live-city span,
.home-workflow-item span,
.planner-controls label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-live-city strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.home-live-city p {
  margin: 10px 0 14px;
  color: var(--soft-ink);
  font-size: 15px;
}

.home-live-city a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.home-workflow-strip {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px auto 0;
}

#cities,
#trip-ideas,
#how-it-works,
#coverage {
  scroll-margin-top: 82px;
}

.home-workflow-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-bottom: 2px solid var(--line-strong);
  padding: 18px 0;
  text-decoration: none;
}

.home-workflow-item strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.home-workflow-item em {
  color: var(--brick);
  font-style: normal;
  font-weight: 800;
}

.planner-controls select,
.planner-controls button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: 700 14px/1 var(--sans);
}

.planner-controls button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}

.city-directory-card__meta {
  margin: 14px 0;
  color: var(--brick);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.region-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.region-directory section {
  min-width: 0;
  border-top: 3px solid var(--teal);
  background: var(--paper-strong);
  padding: 18px;
}

.region-directory h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.region-directory p {
  margin: 0;
  color: var(--soft-ink);
}

.job-action-grid {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: -16px auto 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.job-action {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  min-height: 190px;
}

.job-action > span:not(.job-action__kicker) {
  color: var(--soft-ink);
}

.job-action em {
  margin-top: auto;
}

.city-planner-panel,
.recommendation-section,
.plan-tray {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
}

.city-planner-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: end;
  margin: -18px auto 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--paper-strong) 88%, var(--ochre)) 0%, var(--paper-strong) 52%),
    var(--paper-strong);
  padding: 24px;
  box-shadow: 0 14px 28px rgba(21, 21, 18, 0.08);
}

.city-planner-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}

.city-planner-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--soft-ink);
}

.planner-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.planner-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.planner-controls select {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: 0 34px 0 12px;
}

.trip-fit-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trip-fit-controls--inline {
  width: min(100%, 640px);
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.trip-fit-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trip-fit-controls label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.trip-fit-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 700 14px/1 var(--sans);
  padding: 0 34px 0 12px;
}

.recommendation-section__head {
  align-items: start;
}

.recommendation-section__head h2 {
  max-width: 720px;
}

.recommendation-tools {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: min(100%, 640px);
}

.scenario-stack {
  display: grid;
  gap: 18px;
}

.scenario-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 18, 0.035) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 36px 36px;
  padding: 22px;
}

.scenario-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.scenario-panel__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
}

.scenario-panel__head p {
  max-width: 680px;
  color: var(--soft-ink);
}

.scenario-panel__head a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recommendation-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 276px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper-strong) 88%, var(--paper));
  padding: 18px;
}

.recommendation-card[hidden],
.scenario-panel[hidden] {
  display: none;
}

.recommendation-card__top,
.recommendation-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recommendation-card__top span:last-child,
.recommendation-card__foot span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.recommendation-card h4 {
  margin: 0;
  font-size: 23px;
  line-height: 1.08;
}

.recommendation-card h4 a {
  text-decoration: none;
}

.recommendation-card p {
  margin: 0;
  color: var(--soft-ink);
}

.recommendation-reason {
  border-left: 4px solid var(--brick);
  padding-left: 12px;
}

.recommendation-card__foot {
  margin-top: auto;
}

.add-plan-button {
  flex: none;
  min-height: 38px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 9px 13px;
  font: 800 13px/1 var(--sans);
  cursor: pointer;
}

.add-plan-button[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: var(--paper-strong);
  color: var(--teal);
}

.add-plan-button--wide {
  width: 100%;
  margin-top: 12px;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intent-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 22px;
}

.intent-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.intent-card p {
  margin: 0;
  color: var(--soft-ink);
}

.intent-card__stops {
  font-family: var(--mono);
  font-size: 12px;
}

.intent-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  font-weight: 700;
}

.intent-card--link {
  min-height: 174px;
  color: inherit;
  text-decoration: none;
}

.intent-card--link strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.intent-card--link span:not(.card-kicker) {
  color: var(--soft-ink);
  margin-top: auto;
}

.button:not(sl-button) {
  min-height: 46px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  line-height: 1;
}

.button--primary:not(sl-button) {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 10px 22px rgba(15, 111, 104, 0.2);
}

.city-guide a.button--primary,
.city-guide a.button--primary:visited,
.city-guide a.button--primary:hover,
.city-guide a.button--primary:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.button--secondary:not(sl-button) {
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

sl-button.button::part(base) {
  height: 46px;
  min-height: 46px;
  padding-inline: 20px;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.metric {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.answer-grid,
.card-grid,
.collection-grid,
.split-section,
.detail-layout,
.list-grid {
  display: grid;
  gap: 16px;
}

.answer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 42px 0 18px;
}

.answer-card,
.guide-card,
.collection-card,
.fact-panel,
.list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.answer-card {
  padding: 22px;
}

sl-card.answer-card,
sl-card.guide-card,
sl-card.collection-card {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  --border-color: var(--line);
  --border-radius: var(--radius);
  --padding: 0;
}

sl-card.answer-card::part(base),
sl-card.guide-card::part(base),
sl-card.collection-card::part(base) {
  height: 100%;
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: none;
}

sl-card.guide-card::part(body) {
  padding: 0;
}

sl-card.answer-card::part(body),
sl-card.collection-card::part(body) {
  padding: 22px;
}

.answer-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.answer-card p {
  margin: 0;
  color: var(--soft-ink);
}

.section {
  padding: 58px 0;
}

.section--compact {
  padding-top: 24px;
}

.section--wash {
  width: 100%;
  max-width: none;
  padding-left: max(var(--page-gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--page-gutter), calc((100% - var(--max)) / 2));
  background: var(--paper-cool);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head--compact {
  display: block;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-head a {
  color: var(--teal);
  font-weight: 700;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Viator / GetYourGuide bookable activity cards (experiences page, things-to-do
   strip, POI "book a tour here" module). */
.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.activity-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.activity-card .place-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.activity-card .place-card-body > * {
  margin: 0;
}

.activity-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.activity-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.activity-card__rating {
  color: #b8860b;
}

.activity-card .booking-cta {
  margin-top: 6px;
  align-self: flex-start;
}

/* Experiences page category jump-nav: sticky chip bar that anchors to each
   category section. */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
}

.category-nav__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.category-nav__chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.category-nav__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Offset anchored sections so the sticky chip bar doesn't cover the heading. */
.section[id^="cat-"] {
  scroll-margin-top: 72px;
}

/* GetYourGuide availability widget renders its own iframe; reserve height so
   the grid doesn't reflow when it hydrates. */
.activity-card--gyg {
  padding: 0;
  border: none;
  background: transparent;
  min-height: 360px;
}

.activity-card--gyg [data-gyg-widget] > span {
  display: block;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

.place-activities__lede {
  max-width: 62ch;
  margin: -6px 0 18px;
  color: var(--muted);
}

.card-grid--masonry {
  display: block;
  column-count: 3;
  column-gap: 16px;
}

.card-grid--masonry > .guide-card {
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.card-grid--masonry > sl-card.guide-card::part(base) {
  height: auto;
}

.collection-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.collection-card {
  grid-column: span 2;
  padding: 22px;
}

sl-card.collection-card {
  grid-column: span 2;
  padding: 0;
}

.collection-card h3,
.guide-card h3,
.list-item h3,
.route-list h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.collection-card p,
.guide-card p,
.list-item p,
.route-list p {
  color: var(--soft-ink);
}

.collection-card span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.guide-card {
  overflow: hidden;
}

.guide-card--imageless::part(base) {
  border-top: 4px solid color-mix(in srgb, var(--teal) 72%, var(--paper-strong));
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 18, 0.06) 1px, transparent 1px),
    #ece4d4;
  background-size: 28px 28px;
}

.guide-card__body {
  padding: 20px;
}

.card-note,
.recommendation-note {
  border-left: 4px solid var(--brick);
  padding-left: 12px;
}

.guide-card--route,
.guide-card--story {
  border-top: 4px solid var(--teal);
}

.guide-card--story {
  border-top-color: var(--violet);
}

sl-card.guide-card--route,
sl-card.guide-card--story {
  border-top: 0;
}

sl-card.guide-card--route::part(base) {
  border-top: 4px solid var(--teal);
}

sl-card.guide-card--story::part(base) {
  border-top: 4px solid var(--violet);
}

.tour-map {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 18, 0.06) 1px, transparent 1px),
    var(--paper-cool);
  background-size: 30px 30px;
}

.tour-map--compact {
  min-width: 100%;
  min-height: 220px;
  border-width: 0 0 1px;
  border-radius: 0;
}

sl-card.guide-card .tour-map[slot="image"] {
  width: 100%;
}

/* route map dropped into a unit-card media box (mixed planning feed) — fill the
   3:2 media slot instead of forcing the tour-map min-height. */
.tour-map--card {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.tour-map--detail {
  min-height: 440px;
}

.tour-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tour-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 18px;
}

.tour-map__fallback ol {
  display: grid;
  gap: 6px;
  max-width: 92%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-map__fallback li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: var(--soft-ink);
  line-height: 1.25;
}

.tour-map__fallback li span {
  color: var(--brick);
}

.tour-map.is-ready .tour-map__fallback {
  display: none;
}

.tour-map .leaflet-container {
  background: var(--paper-cool);
  font-family: var(--sans);
}

.tour-map .leaflet-tile {
  filter: sepia(0.2) saturate(0.78) hue-rotate(34deg) brightness(1.02) contrast(0.96);
}

.tour-map .leaflet-control-attribution {
  background: rgba(255, 250, 242, 0.82);
  color: var(--muted);
  font-size: 9px;
}

.tour-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 18px rgba(21, 21, 18, 0.13);
}

.tour-map .leaflet-control-zoom a {
  border-color: var(--line) !important;
  background: var(--paper-strong) !important;
  color: var(--ink) !important;
}

.tour-map .leaflet-div-icon {
  border: 0;
  background: transparent;
}

.tour-marker {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper-strong);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 21, 18, 0.2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.tour-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(21, 21, 18, 0.16);
}

.tour-map .leaflet-popup-content {
  margin: 10px 12px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.35;
}

.pagination {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.nearby-bookable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.nearby-bookable p {
  margin-bottom: 0;
}

.pagination__controls,
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination__step,
.pagination__page,
.pagination__ellipsis {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  padding: 9px 13px;
  color: var(--soft-ink);
  font-weight: 700;
  text-decoration: none;
}

.pagination__page--current {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.pagination__step--disabled,
.pagination__ellipsis {
  color: var(--muted);
}

.pagination__step--disabled {
  opacity: 0.45;
}

.infinite-loader {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.infinite-loader span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-strong) 72%, transparent);
  padding: 9px 14px;
}

.infinite-loader.is-complete span {
  border-color: transparent;
  background: transparent;
}

.infinite-loader.is-error span {
  border-color: color-mix(in srgb, var(--brick) 55%, var(--line));
  color: var(--brick);
}

.js .infinite-scroll-ready .pagination {
  display: none;
}

.split-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stack {
  display: grid;
  gap: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span,
.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  padding: 8px 12px;
}

.pill {
  min-height: 30px;
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

sl-tag.pill,
sl-tag.count-tag,
sl-tag.category-tag {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

sl-tag.pill::part(base),
sl-tag.count-tag::part(base),
sl-tag.category-tag::part(base) {
  border-color: var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

sl-tag.count-tag::part(base) {
  padding-inline: 12px;
}

.simple-hero,
.detail-hero {
  padding: 64px 0 36px;
}

.simple-hero {
  border-bottom: 1px solid var(--line-strong);
}

.places-browser {
  max-width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  min-width: 0;
  padding-top: 42px;
}

.places-browser__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.places-browser__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.places-browser__head p:last-child {
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
}

.places-tabs {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.places-tabs::part(base) {
  display: grid;
  gap: 18px;
}

.places-tabs::part(nav) {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  border: 0;
}

.places-tabs::part(tabs) {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: visible;
  padding: 2px 2px 0;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.places-tabs::part(active-tab-indicator) {
  display: none;
}

.places-tabs::part(body) {
  overflow: visible;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 18, 0.035) 1px, transparent 1px),
    color-mix(in srgb, var(--paper-strong) 78%, var(--paper));
  background-size: 34px 34px;
}

.places-tabs sl-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.places-tabs sl-tab::part(base) {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
}

.places-tabs sl-tab::part(base):hover {
  border-color: color-mix(in srgb, var(--teal) 58%, var(--line-strong));
  color: var(--teal);
}

.places-tabs sl-tab[active]::part(base) {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 9px 18px rgba(15, 111, 104, 0.16);
}

.places-tabs sl-tab span,
.places-tabs sl-tab strong {
  display: inline-flex;
  align-items: center;
}

.places-tabs sl-tab strong {
  min-width: 24px;
  justify-content: center;
  margin-left: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  padding: 2px 7px;
}

.places-tabs sl-tab[active] strong {
  background: rgba(255, 255, 255, 0.16);
}

.places-tabs sl-tab-panel::part(base) {
  padding: 0;
}

.place-group {
  margin-bottom: 42px;
  scroll-margin-top: 96px;
}

.places-tabs .place-group {
  margin-bottom: 0;
  padding: 24px;
}

.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-item {
  min-width: 0;
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.list-item > div {
  min-width: 0;
}

.list-item:hover {
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  box-shadow: 0 10px 22px rgba(21, 21, 18, 0.08);
  transform: translateY(-1px);
}

.list-item span {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.detail-page {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--ink);
}

.breadcrumb-nav {
  display: inline-flex;
  margin-top: 26px;
  --color: var(--teal);
  --sl-color-primary-600: var(--teal);
}

.breadcrumb-nav::part(base) {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
  padding-top: 44px;
}

.detail-hero--text {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  max-width: 860px;
  margin: 0;
}

.detail-hero__copy {
  min-width: 0;
}

.button-row--place {
  margin-top: 24px;
}

.button-row--place .button {
  min-width: 132px;
}

.detail-image {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-image figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.detail-layout {
  grid-template-columns: minmax(0, var(--reading)) minmax(280px, 340px);
  gap: clamp(28px, 4vw, 48px);
}

.prose {
  max-width: 760px;
}

.prose h2,
.fact-panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 30px;
}

.prose p,
.prose li {
  color: var(--soft-ink);
  font-size: 17px;
}

.recommendation-note {
  margin: 24px 0;
  background: var(--paper-strong);
  padding: 16px 18px 16px 16px;
}

.fact-panel {
  align-self: start;
  padding: 20px;
}

.fact-panel dl {
  margin: 0;
}

.fact-panel dl div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact-panel dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.fact-panel dd {
  margin: 3px 0 0;
}

.fact-panel__updated,
.story-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 16px;
}

.source-card--with-image {
  grid-template-columns: 106px minmax(0, 1fr);
}

.source-preview {
  width: 106px;
  aspect-ratio: 1.45;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.source-body {
  min-width: 0;
}

.source-list a {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.source-list p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.source-host {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.route-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.route-number {
  color: var(--brick);
  font-family: var(--mono);
  font-weight: 600;
}

.detail-page--itinerary {
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  padding-bottom: 58px;
}

.itinerary-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-stop {
  display: grid;
  width: 100%;
  max-inline-size: none;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 20px;
}

.timeline-stop--bookable {
  grid-template-columns: 52px minmax(0, 1fr) minmax(180px, 240px);
}

.timeline-stop__number {
  color: var(--brick);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.timeline-stop__body {
  min-width: 0;
  max-width: 720px;
}

.timeline-stop__body h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
}

.timeline-stop__body p {
  max-width: 58ch;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.45;
}

.timeline-stop__cta {
  min-width: 0;
}

.planning-rail {
  display: grid;
  gap: 12px;
}

.planning-rail code {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px;
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  white-space: normal;
}

.booking-list-item {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.booking-list-item:first-of-type {
  border-top: 0;
}

.empty-note {
  color: var(--muted);
}

.agent-route-table,
.context-list {
  display: grid;
  gap: 10px;
}

.agent-route-table__row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.4fr minmax(160px, 0.8fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 14px;
}

.agent-route-table__row--head {
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-route-table__row a,
.agent-route-table__row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-list__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 18px;
}

.context-list__item h3 {
  margin: 0;
}

.context-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
}

.detail-page--tour {
  padding-bottom: 58px;
}

.tour-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(26px, 3.4vw, 44px);
  align-items: start;
}

.tour-detail-main {
  min-width: 0;
}

.tour-detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding-top: 44px;
}

.tour-side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 16px;
}

.tour-stops-section {
  width: 100%;
  padding-top: 28px;
}

.story-article .prose p {
  max-width: 68ch;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  padding: 28px 0 36px;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.plan-tray {
  position: fixed;
  z-index: 30;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 16px;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(21, 21, 18, 0.18);
  padding: 16px;
}

.plan-tray[hidden] {
  display: none;
}

.plan-tray__head,
.plan-tray__item,
.plan-tray__actions {
  display: flex;
  gap: 12px;
}

.plan-tray__head {
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan-tray__head strong {
  display: block;
  font-size: 20px;
}

.plan-tray__close,
.plan-tray__item button {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 800 18px/1 var(--sans);
  cursor: pointer;
}

.plan-tray__items {
  display: grid;
  gap: 10px;
  max-height: 280px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.plan-tray__item {
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.plan-tray__number {
  color: var(--brick);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.plan-tray__item div {
  min-width: 0;
  flex: 1;
}

.plan-tray__item strong,
.plan-tray__item span {
  display: block;
}

.plan-tray__item a {
  text-decoration: none;
}

.plan-tray__item span {
  color: var(--muted);
  font-size: 13px;
}

.plan-tray__actions {
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 1040px) {
  .site-home-hero {
    display: block;
    min-height: auto;
  }

  .site-home-hero__inner {
    padding: 56px 0 18px;
    padding-right: 0;
  }

  .home-live-city {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, calc(100% - (var(--page-gutter) * 2)));
    margin: 6px auto 34px;
  }
}

@media (max-width: 900px) {
  .site-nav nav {
    display: none;
  }

  .city-hero,
  .detail-hero,
  .split-section,
  .detail-layout,
  .tour-detail-layout {
    grid-template-columns: 1fr;
  }

  .tour-detail-side {
    position: static;
    order: 2;
    padding-top: 18px;
  }

  .tour-detail-main {
    display: contents;
  }

  .tour-detail-main .detail-hero {
    order: 1;
  }

  .tour-stops-section {
    order: 3;
  }

  .tour-map--detail {
    min-height: 380px;
  }

  .city-hero {
    min-height: auto;
  }

  .city-hero__media {
    /* stacked full-width: a landscape band reads better than a tall portrait */
    aspect-ratio: 16 / 10;
    min-height: 320px;
    max-height: 420px;
    order: 2;
  }

  .metrics-band,
  .answer-grid,
  .job-action-grid,
  .hero-job-actions,
  .home-workflow-strip,
  .city-planner-panel,
  .planner-controls,
  .trip-fit-controls,
  .recommendation-grid,
  .scenario-panel__head,
  .intent-grid,
  .intent-grid--compact,
  .card-grid,
  .card-grid--three,
  .card-grid--two,
  .list-grid,
  .source-list,
  .context-list {
    grid-template-columns: 1fr;
  }

  .region-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-stop,
  .agent-route-table__row {
    grid-template-columns: 1fr;
  }

  .agent-route-table__row--head {
    display: none;
  }

  .timeline-stop__cta {
    width: 100%;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    grid-column: auto;
  }

  .card-grid--masonry {
    column-count: 2;
  }

  .places-browser__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .job-action-grid {
    margin-top: 0;
  }

  .city-planner-panel {
    margin-top: 0;
  }

  .recommendation-section__head {
    display: grid;
    align-items: start;
  }

  .recommendation-tools {
    justify-items: stretch;
    min-width: 0;
  }

  .nearby-bookable {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-home-hero {
    display: block;
    min-height: auto;
  }

  .site-home-hero__inner {
    padding: 56px 0 18px;
    padding-right: 0;
  }

  .home-live-city {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, calc(100% - (var(--page-gutter) * 2)));
    margin: 6px auto 34px;
  }
}

@media (max-width: 560px) {
  .site-nav__inner {
    width: min(var(--max), calc(100% - 24px));
    gap: 12px;
  }

  .site-home-hero {
    min-height: auto;
    align-items: start;
    display: block;
    background:
      linear-gradient(180deg, rgba(10, 12, 9, 0.72) 0%, rgba(10, 12, 9, 0.58) 48%, rgba(10, 12, 9, 0.72) 100%),
      var(--home-hero-image) center top / cover no-repeat,
      var(--paper-cool);
  }

  .site-home-hero__inner {
    width: min(var(--max), calc(100% - 24px));
    gap: 12px;
    padding: 28px 0 16px;
  }

  .site-home-hero h1 {
    max-width: 9.5ch;
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1;
  }

  .site-home-hero p {
    font-size: 15px;
    line-height: 1.45;
  }

  .home-city-search {
    width: 100%;
    gap: 9px;
    margin-top: 4px;
  }

  .home-city-search input[type="search"],
  .home-city-search button {
    min-height: 52px;
    font-size: 15px;
  }

  .home-city-search input[type="search"] {
    padding: 0 14px;
  }

  .home-city-search button {
    padding: 0 14px;
  }

  .home-city-search__chips a,
  .home-city-search__chips span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .home-city-search__row {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 40%);
  }

  .home-city-suggestions {
    right: 0;
    top: 82px;
    border-radius: 16px;
  }

  .planner-controls button {
    width: 100%;
  }

  .site-home-hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(270px, 100%);
    margin-top: 2px;
  }

  .site-home-hero .button-row .button,
  .site-home-hero .button-row sl-button {
    width: 100%;
  }

  .home-live-city {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: 8px auto 24px;
    padding: 16px;
    background: rgba(255, 250, 242, 0.95);
  }

  .home-live-city strong {
    font-size: 28px;
  }

  .home-live-city p {
    margin: 8px 0 10px;
    font-size: 13px;
  }

  .region-directory {
    grid-template-columns: 1fr;
  }

  .city-hero,
  .simple-hero,
  .section,
  .category-nav,
  .city-planner-panel,
  .recommendation-section,
  .job-action-grid,
  .home-workflow-strip,
  .metrics-band,
  .answer-grid,
  .site-footer,
  .detail-page {
    width: min(var(--max), calc(100% - 24px));
  }

  .card-grid--masonry {
    column-count: 1;
  }

  .places-browser {
    padding-top: 34px;
  }

  .places-browser__head {
    margin-bottom: 18px;
  }

  .places-tabs::part(tabs) {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -2px;
    padding-bottom: 10px;
  }

  .places-tabs,
  .places-tabs::part(nav) {
    overflow: hidden;
  }

  .places-tabs::part(body) {
    background-size: 28px 28px;
  }

  .places-tabs .place-group {
    padding: 16px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  sl-button.nav-cta::part(base) {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .hero-job-actions {
    margin-top: 18px;
  }

  .scenario-panel {
    padding: 16px;
  }

  .recommendation-card {
    min-height: 0;
  }

  .recommendation-card__foot {
    display: grid;
    justify-items: start;
  }

  .plan-tray {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .job-action {
    min-height: 0;
    padding: 18px;
  }

  .intent-card {
    min-height: 0;
    padding: 18px;
  }

  .intent-card h3 {
    font-size: 22px;
  }

  .timeline-stop {
    padding: 16px;
  }

  .timeline-stop__number {
    font-size: 12px;
  }

  .city-hero h1,
  .simple-hero h1,
  .detail-hero h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .city-hero p,
  .simple-hero p,
  .detail-hero p {
    font-size: 16px;
  }

  .city-hero {
    padding: 26px 0 28px;
    gap: 22px;
  }

  .city-hero__media {
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: 300px;
  }

  .section-head,
  .site-footer {
    display: block;
  }

  .source-card--with-image {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .source-preview {
    width: 88px;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Booking CTA design system                                           */
/* ------------------------------------------------------------------ */

.booking-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--paper-strong);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.city-guide a.booking-cta,
.city-guide a.booking-cta:visited {
  color: var(--teal);
}

.booking-cta:hover,
.booking-cta:focus-visible,
.city-guide a.booking-cta:hover,
.city-guide a.booking-cta:focus-visible {
  background: var(--teal);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 10px 22px rgba(15, 111, 104, 0.2);
}

.booking-cta--filled,
.city-guide a.booking-cta--filled,
.city-guide a.booking-cta--filled:visited {
  background: var(--teal);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 10px 22px rgba(15, 111, 104, 0.2);
}

.booking-cta__icon {
  flex: none;
}

.booking-cta__price {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--ochre) 16%, var(--paper-strong));
  color: #7a5510;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  -webkit-text-fill-color: #7a5510;
}

.booking-cta__provider {
  opacity: 0.72;
  font-size: 13px;
  font-weight: 500;
}

.affiliate-disclosure {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-disclosure--center {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto 36px;
  text-align: center;
}

/* Quiet booking affordance on POI grid cards */

.bookable-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  text-decoration: none;
}

.bookable-row__badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 9%, var(--paper-strong));
  padding: 4px 10px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.bookable-row:hover .bookable-row__badge,
.bookable-row:focus-visible .bookable-row__badge {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.bookable-row__hint {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookable-row__arrow {
  margin-left: auto;
  color: var(--teal);
  font-weight: 700;
}

/* Event cards */

.card-image--event {
  aspect-ratio: 16 / 9;
}

sl-card.event-card::part(body) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.event-card .guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.event-card__chips {
  margin-bottom: 12px;
  gap: 8px;
}

.event-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--teal);
  padding: 3px 10px;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-card__venue {
  margin: 8px 0 0;
  color: var(--soft-ink);
}

.event-card__description {
  margin: 8px 0 0;
  color: var(--soft-ink);
  font-size: 15px;
}

.event-card__foot {
  margin-top: auto;
  padding-top: 16px;
}

/* Events page */

.simple-hero--compact {
  padding: 36px 0 20px;
}

.events-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.events-weekend-head {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  margin: 40px auto 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.event-day .section-head h2 {
  margin-bottom: 0;
}

/* Events strip ("This week in {city}") */

.events-strip .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.events-strip .section-head h2 {
  margin: 0;
}

.events-strip__more {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

.events-strip__row {
  display: flex;
  gap: 12px;
  min-height: 200px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.events-strip__card {
  flex: 0 0 16rem;
  scroll-snap-align: start;
}

.events-strip__venue {
  margin: 8px 0 0;
  color: var(--soft-ink);
}

.events-strip__card .booking-cta {
  width: auto;
  min-height: 40px;
  margin-top: 14px;
  padding: 9px 14px;
  font-size: 14px;
}

/* Place page: compact "Upcoming here" rows */

.place-events {
  margin-top: 28px;
}

.mini-event-list {
  display: grid;
}

.mini-event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  border-top: 1px dashed var(--line);
  padding: 12px 0;
}

.mini-event-row__title {
  margin: 0;
  font-weight: 700;
}

.mini-event-row .booking-cta {
  width: auto;
  min-height: 40px;
  margin-left: auto;
  padding: 9px 14px;
  font-size: 14px;
}

/* Guided-options upsell panel */

.tour-upsell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-cool);
  padding: 22px;
}

.prose .tour-upsell {
  margin-top: 28px;
}

.tour-upsell h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.tour-upsell__lede {
  margin: 0 0 14px;
  color: var(--soft-ink);
}

.tour-upsell__items {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-upsell__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.tour-upsell__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tour-upsell__copy strong {
  line-height: 1.25;
}

.tour-upsell__meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.tour-upsell .affiliate-disclosure {
  margin-top: 12px;
}

.tour-upsell--mini {
  padding: 16px;
}

.tour-upsell--mini h2 {
  font-size: 21px;
}

@media (max-width: 560px) {
  .booking-cta {
    width: 100%;
  }

  .booking-cta__provider {
    display: none;
  }

  .tour-upsell__item {
    display: grid;
  }
}

/* ---- Shared plan + group invite pages (phase 4) ------------------------- */

.route-list--plan li {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
}

.plan-stop-body {
  min-width: 0;
}

.plan-stop-thumb {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.plan-route-map {
  margin-top: 8px;
}

.plan-invite-hint,
.invite-hint,
.invite-roster-note {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}

.plan-booking-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-cta-section .button-row {
  justify-content: flex-start;
}

.invite-avatars {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
}

.invite-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #0f6f68;
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
}

.invite-avatar--more {
  background: var(--muted);
}

.invite-plan {
  margin-top: 18px;
}

.invite-plan-list {
  margin: 8px 0 0;
  padding-left: 22px;
}

.invite-plan-list li {
  padding: 2px 0;
}

@media (max-width: 560px) {
  .route-list--plan li {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .plan-stop-thumb {
    display: none;
  }
}

/* ============================================================================
   Unit card — one shell for the mixed planning feed (POI · walk · event ·
   partner experience). Format is the 4px left spine; cost/provider live only
   in the action row. Cool spine = own/free, warm spine = commerce.
   Used by the inventory_card() macro on /nearby/ and /events/ (+ today).
   ========================================================================== */
.unit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  --spine: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.unit-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--spine);
  z-index: 2;
}
.unit-card:hover,
.unit-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(21, 21, 18, 0.09);
}

/* format → spine color (own/free = cool, commerce = warm) */
.unit-card--poi { --spine: var(--river); }
.unit-card--gyde_walk { --spine: var(--teal); }
.unit-card--event { --spine: var(--brick); }
.unit-card--partner_activity { --spine: var(--ochre); }

/* media — single 3:2 box so every card aligns regardless of fill */
.unit-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: var(--paper-cool);
}
.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* typographic media fallbacks (no photo) */
.unit-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.unit-card__fallback--map {
  background:
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    color-mix(in srgb, var(--teal) 8%, var(--paper-cool));
}
.unit-card__fallback--map svg { width: 100%; height: 100%; }
.unit-card__date {
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  background: color-mix(in srgb, var(--brick) 12%, var(--paper-cool));
}
.unit-card__date .d {
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--brick);
}
.unit-card__date .m {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
}
.unit-card__fallback--word {
  background: color-mix(in srgb, var(--spine) 9%, var(--paper-cool));
  font-family: var(--serif);
  font-size: 22px;
  color: color-mix(in srgb, var(--spine) 70%, var(--ink));
  opacity: 0.85;
}

/* body */
.unit-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 15px 16px 16px 18px;
}
.unit-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--spine) 78%, var(--ink));
  background: color-mix(in srgb, var(--spine) 13%, transparent);
}
.unit-card__chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spine);
}
.unit-card__title {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.unit-card__title a { color: var(--ink); text-decoration: none; }
.unit-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.unit-card__copy {
  margin: 0;
  color: var(--soft-ink);
  font-size: 14.5px;
  line-height: 1.45;
}

/* uniform fact strip */
.unit-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.unit-card__fact {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--paper-cool);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

/* action row — pinned to the bottom edge */
.unit-card__action {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.unit-card__action .booking-cta { min-height: 42px; }
/* tiny, consistent provider marker — the only affiliate signal beyond price */
.unit-card__provider {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
