:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #f1eee8;
  --ink: #23211e;
  --muted: #6f6a62;
  --line: #ddd8cf;
  --accent: #b46f45;
  --accent-dark: #875036;
  --success: #34785a;
  --danger: #b95749;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(40, 33, 24, .06);
  --shadow: 0 18px 50px rgba(40, 33, 24, .10);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
.page-noise { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,241,.94);
  border-bottom: 1px solid rgba(221,216,207,.85);
  backdrop-filter: blur(18px);
}
.nav-shell {
  max-width: var(--max);
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-seal {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif TC", serif;
  font-weight: 800;
  font-size: 19px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: "Noto Serif TC", serif; font-size: 17px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .11em; }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: 18px; }
.desktop-nav a { color: var(--muted); font-size: 14px; }
.desktop-nav a:hover { color: var(--ink); }
.nav-search {
  margin-left: auto;
  width: min(310px, 27vw);
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.nav-search svg, .hero-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--muted); }
.nav-search input, .hero-search input, .mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.mobile-menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; }
.mobile-menu-button span { width: 20px; height: 1.5px; margin: 5px auto; background: var(--ink); }
.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  padding: 28px 24px;
  background: var(--bg);
  overflow: auto;
}
.mobile-menu > a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.mobile-search { margin-top: 24px; display: flex; gap: 8px; }
.mobile-search input { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mobile-search button { border: 0; border-radius: 12px; padding: 0 18px; background: var(--ink); color: #fff; }

/* Shared typography and buttons */
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.primary-link, .location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.primary-link svg, .location-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-link:hover, .location-button:hover { background: var(--accent-dark); }
.location-button.light { background: #fff; color: var(--ink); }
.text-link, .section-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.text-link:hover, .section-link:hover { color: var(--accent); }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.icon-button:hover { border-color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 74px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 58px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.18;
  letter-spacing: -.04em;
}
.hero-lead { max-width: 520px; margin: 22px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-search {
  max-width: 560px;
  min-height: 58px;
  padding: 7px 8px 7px 18px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero-search input { font-size: 15px; }
.hero-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 18px; }
.hero-stats { margin-top: 36px; display: flex; gap: 34px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Noto Serif TC", serif; font-size: 22px; line-height: 1.2; }
.hero-stats span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d7c6b2;
  box-shadow: var(--shadow);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,.42), transparent 52%); }
.floating-note { display: none; }
.ticket-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.ticket-topline, .ticket-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.ticket-main { margin: 15px 0; display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; }
.ticket-index { font-family: "Noto Serif TC", serif; font-size: 42px; color: var(--accent); }
.ticket-main small { color: var(--muted); font-size: 11px; }
.ticket-main h2 { margin: 5px 0 4px; font-family: "Noto Serif TC", serif; font-size: 20px; line-height: 1.4; }
.ticket-main p { margin: 0; color: var(--muted); font-size: 12px; }
.barcode { letter-spacing: .06em; }

/* Home sections */
.discovery-panel, .editorial-section {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.discovery-panel { margin-bottom: 76px; }
.panel-topline, .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 24px;
}
.panel-topline h2, .section-heading h2, .nearby-copy h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.3;
}
.quick-filters {
  padding: 18px;
  display: flex;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.date-field { min-width: 170px; }
.date-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.date-field input, #listingDatePicker {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.status-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pills button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}
.status-pills button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.clear-filter { margin-left: auto; min-height: 42px; border: 0; background: transparent; color: var(--muted); }
.category-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
.category-chip {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 9px;
  align-items: center;
}
.category-chip:hover, .category-chip.active { border-color: var(--accent); background: #fff8f3; }
.category-icon { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-soft); display: grid; place-items: center; font-size: 17px; }
.category-chip strong { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-chip small { color: var(--muted); font-size: 11px; }
.editorial-section { padding-bottom: 82px; }
.section-controls { display: flex; gap: 8px; }

/* Exhibition cards */
.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 286px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.exhibition-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.exhibition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #d8cabb; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.exhibition-card:hover .card-image img { transform: scale(1.025); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 48px; }
.card-badge { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 700; }
.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 20px;
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.favorite-button.active { color: var(--danger); }
.card-body { padding: 16px 16px 18px; }
.card-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; }
.card-title { margin: 9px 0 10px; font-family: "Noto Serif TC", serif; font-size: 18px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 52px; }
.card-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.card-price { margin-top: 11px; font-size: 12px; font-weight: 700; }
.card-price.free { color: var(--success); }

/* Time lists */
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.time-column {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dark-column { background: var(--surface); color: var(--ink); }
.time-column-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.time-column-head > div { display: flex; align-items: center; gap: 9px; }
.time-column-head h3 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 21px; }
.time-column-head a { color: var(--muted); font-size: 12px; }
.time-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.time-dot.closing { background: var(--danger); }
.compact-list { display: flex; flex-direction: column; }
.compact-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.compact-date { width: 58px; height: 58px; border-radius: 12px; background: var(--surface-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.compact-date strong { font-family: "Noto Serif TC", serif; font-size: 20px; line-height: 1; }
.compact-date span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.compact-info h4 { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.compact-info p { margin: 0; color: var(--muted); font-size: 12px; }
.compact-arrow { color: var(--muted); }

/* Nearby home */
.nearby-home {
  max-width: none;
  margin-bottom: 82px;
  padding: 70px max(24px, calc((100vw - var(--max))/2 + 24px));
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
  background: #ede8df;
}
.nearby-copy p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.nearby-copy .location-button { margin: 18px 12px 0 0; }
.nearby-stack { display: grid; gap: 12px; }
.nearby-mini-card { display: grid; grid-template-columns: 112px 1fr; min-height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.nearby-mini-card img, .nearby-mini-media { width: 112px; height: 112px; object-fit: cover; background: #d8cabb; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 28px; }
.nearby-mini-body { padding: 14px 16px; align-self: center; }
.nearby-mini-body small { color: var(--accent); font-size: 11px; font-weight: 700; }
.nearby-mini-body h3 { margin: 5px 0; font-family: "Noto Serif TC", serif; font-size: 16px; line-height: 1.4; }
.nearby-mini-body p { margin: 0; color: var(--muted); font-size: 12px; }

/* Venues */
.venue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.venue-tile { position: relative; min-height: 230px; overflow: hidden; border-radius: var(--radius); background: #756a5c; color: #fff; }
.venue-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,9,.72), rgba(15,12,9,.03) 70%); }
.venue-tile-content { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 17px; }
.venue-tile-content small { font-size: 10px; letter-spacing: .08em; }
.venue-tile-content h3 { margin: 5px 0; font-family: "Noto Serif TC", serif; font-size: 18px; line-height: 1.35; }
.venue-tile-content p { margin: 0; font-size: 12px; opacity: .82; }

/* Listing */
.app-view { max-width: var(--max); margin: 0 auto; padding: 0 24px 84px; }
.view-hero { padding: 64px 0 40px; }
.view-hero h1 { margin: 0 0 10px; font-family: "Noto Serif TC", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.2; }
.view-hero > p:last-child { margin: 0; color: var(--muted); }
.listing-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; align-items: start; }
.filter-sidebar { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); max-height: calc(100vh - 120px); overflow: auto; }
.filter-block + .filter-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.filter-title button { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.vertical-options { display: flex; flex-direction: column; gap: 2px; }
.vertical-option { width: 100%; padding: 8px 0; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.vertical-option.active { color: var(--accent); font-weight: 700; }
.vertical-option span:last-child { font-size: 11px; }
.listing-toolbar { min-height: 44px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.listing-toolbar select { height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.filter-drawer-button { display: none; height: 42px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filter { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.active-filter button { border: 0; background: transparent; color: #fff; padding: 0; }
.exhibition-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.listing-content .card-image, .favorites-shell .card-image { aspect-ratio: 4 / 5; }
.empty-state { padding: 72px 20px; text-align: center; }
.empty-state > span { color: var(--accent); font-family: "Noto Serif TC", serif; font-size: 46px; }
.empty-state h3 { margin: 12px 0; font-family: "Noto Serif TC", serif; font-size: 23px; }
.empty-state p { color: var(--muted); }

/* Nearby page */
.nearby-view { max-width: none; padding: 0; }
.nearby-view-hero { padding: 58px max(24px,calc((100vw - var(--max))/2 + 24px)) 36px; display: flex; justify-content: space-between; align-items: flex-end; background: var(--bg); color: var(--ink); }
.nearby-view-hero h1 { margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(42px,6vw,64px); }
.nearby-view-hero p:last-child { color: var(--muted); }
.nearby-layout { max-width: var(--max); margin: 0 auto 84px; padding: 0 24px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.nearby-map { min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.nearby-results { max-height: 650px; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nearby-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nearby-results-head h2 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 22px; }
.nearby-results-head span { color: var(--muted); font-size: 12px; }
.nearby-result-list { display: flex; flex-direction: column; }
.nearby-result-card { padding: 14px 0; display: grid; grid-template-columns: 92px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.nearby-result-card img, .nearby-result-media { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: #d8cabb; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; }
.nearby-result-card small { color: var(--accent); font-size: 11px; font-weight: 700; }
.nearby-result-card h3 { margin: 4px 0 5px; font-family: "Noto Serif TC", serif; font-size: 15px; line-height: 1.4; }
.nearby-result-card p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.map-popup h3 { margin: 0 0 6px; font-family: "Noto Serif TC", serif; font-size: 15px; }
.map-popup p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.map-popup a { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 700; }

/* Detail */
.detail-view { padding-top: 40px; }
.detail-shell { max-width: 1100px; margin: 0 auto; }
.detail-breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 58px; align-items: start; }
.detail-poster { position: sticky; top: 98px; overflow: hidden; border-radius: var(--radius); background: #d8cabb; box-shadow: var(--shadow-sm); }
.detail-poster img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.detail-poster-placeholder { aspect-ratio: 4/5; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 56px; }
.detail-info { padding-top: 8px; }
.detail-category { color: var(--accent); font-size: 12px; font-weight: 700; }
.detail-info h1 { margin: 12px 0 22px; font-family: "Noto Serif TC", serif; font-size: clamp(34px,4.2vw,52px); line-height: 1.28; }
.detail-summary { color: var(--muted); font-size: 15px; line-height: 1.9; }
.detail-meta { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.detail-meta-row { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.detail-meta-row:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.detail-meta-row small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.detail-meta-row strong { font-size: 13px; line-height: 1.6; }
.detail-actions { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 9px; }
.detail-actions a, .detail-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.detail-actions .primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.detail-description { padding-top: 24px; border-top: 1px solid var(--line); }
.detail-description h2, .detail-related h2 { font-family: "Noto Serif TC", serif; font-size: 26px; }
.detail-description p { white-space: pre-line; color: #4f4a42; font-size: 15px; line-height: 2; }
.detail-related { margin-top: 64px; }
.detail-related .featured-rail { grid-auto-columns: minmax(240px,280px); }
.favorites-shell { padding-top: 8px; }

/* Loading / footer */
.loading-view, .error-view { min-height: 65vh; display: grid; place-content: center; text-align: center; }
.loader-mark { width: 66px; height: 66px; margin: auto; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: "Noto Serif TC", serif; font-size: 28px; animation: pulse 1.2s ease-in-out infinite; }
.loading-view p, .error-view p { color: var(--muted); }
.error-view > span { color: var(--accent); font-family: "Noto Serif TC", serif; font-size: 54px; }
.error-view h2 { font-family: "Noto Serif TC", serif; }
.error-view button { margin: auto; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .55; } }
.site-footer { padding: 58px max(24px,calc((100vw - var(--max))/2 + 24px)) 24px; background: #24221f; color: #fff; }
.footer-top { padding-bottom: 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.footer-top h2 { margin: 18px 0 0; font-family: "Noto Serif TC", serif; font-size: clamp(28px,3.6vw,42px); line-height: 1.45; }
.footer-top .brand-seal { border-color: #fff; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-links > div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { margin-bottom: 5px; color: #d7d2ca; font-size: 12px; }
.footer-links a, .footer-links span { color: #a9a49c; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); color: #99948c; font-size: 10px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%,24px); opacity: 0; pointer-events: none; padding: 11px 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .category-strip { grid-template-columns: repeat(4,1fr); }
  .venue-grid { grid-template-columns: repeat(2,1fr); }
  .exhibition-grid { grid-template-columns: repeat(2,1fr); }
  .nearby-layout { grid-template-columns: 1fr 390px; }
}

@media (max-width: 820px) {
  .nav-shell { height: 68px; padding: 0 18px; }
  .nav-search { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-menu { inset: 68px 0 0; }
  .hero { grid-template-columns: 1fr; padding: 46px 18px 62px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 500px; }
  .discovery-panel, .editorial-section { padding-left: 18px; padding-right: 18px; }
  .quick-filters { align-items: flex-start; flex-wrap: wrap; }
  .clear-filter { margin-left: 0; }
  .category-strip { grid-template-columns: repeat(3,1fr); }
  .time-grid, .nearby-home, .detail-grid { grid-template-columns: 1fr; }
  .nearby-home { padding: 58px 18px; gap: 32px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: fixed; inset: 68px 0 0; z-index: 90; max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .filter-sidebar.open { transform: translateX(0); }
  .filter-drawer-button { display: inline-block; }
  .nearby-layout { grid-template-columns: 1fr; padding: 0 18px; }
  .nearby-map { min-height: 430px; }
  .nearby-results { max-height: none; }
  .nearby-view-hero { align-items: flex-start; flex-direction: column; gap: 20px; padding-left: 18px; padding-right: 18px; }
  .detail-poster { position: relative; top: auto; max-width: 520px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 14px; }
  .hero-search { grid-template-columns: 22px 1fr; border-radius: 16px; }
  .hero-search button { grid-column: 1/-1; width: 100%; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-stats { gap: 18px; justify-content: space-between; }
  .hero-stats strong { font-size: 19px; }
  .hero-visual { min-height: 410px; }
  .ticket-card { left: 14px; right: 14px; bottom: 14px; padding: 15px; }
  .ticket-main { grid-template-columns: 48px 1fr; }
  .ticket-index { font-size: 34px; }
  .ticket-main h2 { font-size: 16px; }
  .panel-topline, .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .quick-filters { padding: 14px; }
  .date-field { width: 100%; }
  .status-pills { width: 100%; }
  .status-pills button { flex: 1 1 calc(50% - 4px); padding: 0 8px; }
  .category-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
  .featured-rail { grid-auto-columns: 82%; }
  .time-column { padding: 18px; }
  .compact-item { grid-template-columns: 52px 1fr auto; gap: 11px; }
  .compact-date { width: 52px; height: 52px; }
  .nearby-mini-card { grid-template-columns: 92px 1fr; }
  .nearby-mini-card img, .nearby-mini-media { width: 92px; height: 100%; }
  .venue-grid, .exhibition-grid { grid-template-columns: 1fr; }
  .app-view { padding: 0 16px 70px; }
  .view-hero { padding: 48px 0 30px; }
  .listing-toolbar { align-items: flex-start; gap: 12px; }
  .nearby-view { padding: 0; }
  .nearby-layout { padding: 0 16px; }
  .nearby-results { padding: 18px 16px; }
  .nearby-result-card { grid-template-columns: 82px 1fr; }
  .nearby-result-card img, .nearby-result-media { width: 82px; height: 82px; }
  .detail-view { padding-top: 26px; }
  .detail-grid { gap: 28px; }
  .detail-info h1 { font-size: 33px; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-meta-row:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

/* =========================================================
   V3.3 — ticket hero, date results and structured filters
   ========================================================= */
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.text-button:hover { color: var(--accent); }
.section-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Hero: three real exhibition tickets */
.hero-visual {
  min-height: 548px;
  isolation: isolate;
  background: #8c6c4e;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(125deg, rgba(28,21,16,.06), rgba(28,21,16,.18)),
    linear-gradient(to top, rgba(28,21,16,.48), rgba(28,21,16,.03) 62%);
}
.hero-scene-caption {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  background: rgba(41,31,23,.34);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-scene-caption span { font-size: 9px; letter-spacing: .14em; opacity: .78; }
.hero-scene-caption strong { font-size: 12px; font-weight: 600; }
.hero-ticket-stack {
  position: absolute;
  z-index: 4;
  inset: 0;
  transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}
.hero-ticket-stack.is-changing { opacity: 0; transform: translateX(-20px); filter: blur(3px); }
.hero-ticket-card {
  position: absolute;
  display: block;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(70,58,45,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(20,14,9,.22);
  backdrop-filter: blur(14px);
  transform-origin: right center;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.hero-ticket-card::before,
.hero-ticket-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b6d51;
  transform: translateY(-50%);
}
.hero-ticket-card::before { left: -10px; }
.hero-ticket-card::after { right: -10px; }
.hero-ticket-slot-1 { left: 28px; right: 28px; bottom: 27px; z-index: 3; }
.hero-ticket-slot-2 { width: 78%; right: 18px; top: 165px; z-index: 2; transform: rotate(-2.2deg); opacity: .96; }
.hero-ticket-slot-3 { width: 66%; right: -17px; top: 66px; z-index: 1; transform: rotate(4.5deg); opacity: .9; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation: ticket-slide-in .72s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation: ticket-slide-in .72s .11s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation: ticket-slide-in .72s .2s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-slot-1:hover { transform: translateY(-7px); box-shadow: 0 28px 62px rgba(20,14,9,.28); }
.hero-ticket-slot-2:hover { z-index: 5; transform: rotate(0) translate(-8px,-7px); opacity: 1; }
.hero-ticket-slot-3:hover { z-index: 5; transform: rotate(1deg) translate(-12px,-7px); opacity: 1; }
@keyframes ticket-slide-in {
  from { opacity: 0; transform: translateX(115%) rotate(7deg); }
}
.hero-ticket-card .ticket-main { margin: 13px 0; grid-template-columns: 55px 1fr; gap: 12px; }
.hero-ticket-card .ticket-index { font-size: 38px; }
.hero-ticket-card .ticket-main h2 {
  margin: 4px 0;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-ticket-card .ticket-main p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-ticket-slot-2 .ticket-main h2,
.hero-ticket-slot-3 .ticket-main h2 { font-size: 15px; }
.hero-ticket-slot-2 .ticket-main,
.hero-ticket-slot-3 .ticket-main { grid-template-columns: 45px 1fr; }
.hero-ticket-slot-2 .ticket-index,
.hero-ticket-slot-3 .ticket-index { font-size: 30px; }
.hero-ticket-hint {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  letter-spacing: .05em;
}
.hero-ticket-hint span { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .3; transform: scale(.7); } }

/* Date-selected results on home */
.date-results-section {
  margin-bottom: 72px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(180,111,69,.055), transparent 55%);
}
.date-results-footer { margin-top: 18px; display: flex; align-items: center; gap: 16px; }

/* Listing filter hub */
.listing-filter-hub {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(315px,.7fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.listing-category-panel,
.listing-calendar-panel,
.listing-status-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.listing-category-panel { grid-row: 1 / 3; }
.filter-panel-heading,
.filter-panel-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.filter-panel-heading { margin-bottom: 18px; }
.filter-panel-heading > div { justify-content: flex-start; }
.filter-panel-heading small,
.filter-sidebar-head small { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.filter-panel-heading h2,
.filter-sidebar-head h2 { margin: 1px 0 0; font-family: "Noto Serif TC",serif; font-size: 19px; line-height: 1.35; }
.filter-step {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--accent);
  font-family: "Noto Serif TC",serif;
  font-size: 15px;
}
.listing-category-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.listing-category-option {
  min-width: 0;
  min-height: 102px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
  color: var(--ink);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.listing-category-option:hover { transform: translateY(-2px); border-color: var(--accent); }
.listing-category-option.active { border-color: var(--accent); background: #fff4ec; box-shadow: inset 0 0 0 1px var(--accent); }
.listing-category-option .category-icon { grid-row: auto; width: 36px; height: 36px; font-size: 18px; }
.listing-category-option strong { max-width: 100%; font-size: 13px; }
.listing-category-option small { color: var(--muted); font-size: 10px; }

/* Expanded calendar */
.calendar-shell { padding: 2px; }
.calendar-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 12px; }
.calendar-head strong { text-align: center; font-family: "Noto Serif TC",serif; font-size: 15px; }
.calendar-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.calendar-day.empty { pointer-events: none; }
.calendar-day:hover { border-color: var(--line); background: var(--surface-soft); }
.calendar-day.has-events::after { content: ""; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.calendar-day small { position: absolute; top: 2px; right: 3px; color: var(--accent); font-size: 7px; line-height: 1; }
.calendar-day.today { border-color: var(--accent); }
.calendar-day.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.calendar-day.selected::after { background: #fff; }
.calendar-day.selected small { color: #fff; }
.calendar-footer { margin-top: 12px; padding-top: 11px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.calendar-footer button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; }
.listing-status-options { display: flex; flex-wrap: wrap; gap: 7px; }
.status-filter-button { min-height: 37px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.status-filter-button.active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* County > venue accordion */
.listing-layout { grid-template-columns: 276px 1fr; }
.filter-sidebar { padding: 18px; }
.filter-sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.filter-sidebar-intro { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.filter-close-button { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 20px; }
.location-accordion { display: flex; flex-direction: column; gap: 7px; }
.region-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf8; }
.region-accordion.selected { border-color: var(--accent); }
.region-accordion summary {
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}
.region-accordion summary::-webkit-details-marker { display: none; }
.region-accordion summary small { color: var(--muted); font-size: 10px; font-weight: 500; }
.region-accordion summary i { color: var(--muted); font-style: normal; transition: transform .18s ease; }
.region-accordion[open] summary i { transform: rotate(180deg); }
.region-venues { padding: 5px 8px 9px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); background: var(--surface); }
.venue-filter-option { width: 100%; min-height: 37px; padding: 7px 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.venue-filter-option span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.venue-filter-option small { flex: 0 0 auto; font-size: 9px; }
.venue-filter-option:hover,
.venue-filter-option.active { background: var(--surface-soft); color: var(--accent); font-weight: 700; }

/* Detail buttons: optical and actual centering */
.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  line-height: 1;
}
.detail-info h1 { margin-bottom: 26px; }
.detail-meta { margin-top: 0; }
.detail-poster > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 1050px) {
  .listing-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .hero-visual { min-height: 520px; }
  .listing-filter-hub { grid-template-columns: 1fr; grid-template-rows: auto; }
  .listing-category-panel { grid-row: auto; }
  .listing-calendar-panel, .listing-status-panel { grid-column: auto; }
  .filter-sidebar { padding-top: 24px; }
  .filter-close-button { display: grid; place-items: center; }
}

@media (max-width: 600px) {
  .hero-visual { min-height: 470px; }
  .hero-scene-caption { top: 14px; left: 14px; }
  .hero-ticket-card { padding: 14px; border-radius: 15px; }
  .hero-ticket-slot-1 { left: 13px; right: 13px; bottom: 24px; }
  .hero-ticket-slot-2 { width: 86%; top: 143px; right: 6px; }
  .hero-ticket-slot-3 { width: 74%; top: 62px; right: -12px; }
  .hero-ticket-card .ticket-main { grid-template-columns: 42px 1fr; gap: 8px; }
  .hero-ticket-card .ticket-index { font-size: 29px; }
  .hero-ticket-card .ticket-main h2 { font-size: 15px; }
  .hero-ticket-slot-2 .ticket-main h2,
  .hero-ticket-slot-3 .ticket-main h2 { font-size: 13px; }
  .hero-ticket-slot-2 .ticket-footer,
  .hero-ticket-slot-3 .ticket-footer { display: none; }
  .hero-ticket-hint { right: 13px; }
  .date-results-section { margin-bottom: 52px; padding-top: 24px; padding-bottom: 24px; }
  .date-results-footer { align-items: flex-start; flex-direction: column; }
  .listing-category-panel,
  .listing-calendar-panel,
  .listing-status-panel { padding: 16px; }
  .listing-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .listing-category-option { min-height: 86px; padding: 9px 5px; }
  .listing-category-option .category-icon { width: 31px; height: 31px; font-size: 15px; }
  .listing-category-option strong { font-size: 11px; }
  .calendar-day { border-radius: 7px; font-size: 10px; }
  .calendar-day small { display: none; }
  .filter-panel-heading h2,
  .filter-sidebar-head h2 { font-size: 17px; }
  .filter-step { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-card, .hero-ticket-stack { transition: none; animation: none !important; }
  .hero-ticket-hint span { animation: none; }
}

/* =========================================================
   V3.4 — calm ticket counter, compact filters and data polish
   ========================================================= */

/* Softer global type scale */
.panel-topline h2,
.section-heading h2,
.nearby-copy h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.34;
  letter-spacing: -.018em;
}
.editorial-section { padding-bottom: 66px; }
.discovery-panel { margin-bottom: 62px; }
.section-heading { margin-bottom: 20px; }

/* Minimal ticket-counter hero */
.hero { padding-top: 54px; padding-bottom: 66px; }
.hero-visual {
  min-height: 520px;
  isolation: isolate;
  background: #e9e3d9;
  box-shadow: 0 24px 60px rgba(56,44,31,.12);
}
.hero-counter-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-counter-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 48%),
    linear-gradient(to top, rgba(37,27,20,.12), transparent 38%);
}
.hero-shuffle-button {
  position: absolute;
  z-index: 7;
  top: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(58,47,36,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #4e473f;
  box-shadow: 0 10px 25px rgba(50,38,27,.08);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-shuffle-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(50,38,27,.12);
}
.hero-shuffle-button:disabled { cursor: wait; opacity: .72; transform: none; }
.shuffle-icon { font-size: 17px; line-height: 1; transition: transform .45s ease; }
.hero-shuffle-button:hover .shuffle-icon { transform: rotate(-35deg); }
.hero-ticket-stack {
  z-index: 4;
  transition: opacity .48s ease, transform .48s ease, filter .48s ease;
}
.hero-ticket-stack.is-changing {
  opacity: 0;
  transform: translateX(-14px) translateY(4px);
  filter: blur(2px);
}
.hero-ticket-card {
  background: rgba(255,255,255,.975);
  box-shadow: 0 20px 44px rgba(30,22,17,.18);
  transition: transform .34s ease, box-shadow .34s ease, opacity .34s ease;
}
.hero-ticket-card::before,
.hero-ticket-card::after { background: #e8e1d7; }
.hero-ticket-slot-1 { left: 28px; right: 38px; bottom: 32px; }
.hero-ticket-slot-2 { width: 77%; right: 16px; top: 174px; }
.hero-ticket-slot-3 { width: 65%; right: -12px; top: 82px; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation: ticket-slide-calm 1.55s cubic-bezier(.18,.72,.18,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation: ticket-slide-calm 1.55s .16s cubic-bezier(.18,.72,.18,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation: ticket-slide-calm 1.55s .31s cubic-bezier(.18,.72,.18,1) both; }
@keyframes ticket-slide-calm {
  from { opacity: 0; transform: translateX(122%) rotate(4deg); filter: blur(2px); }
  55% { opacity: 1; }
  to { filter: blur(0); }
}
.hero-ticket-hint { color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(20,14,9,.4); }

/* Date results: graceful reveal and dismissal */
.date-results-section {
  opacity: 0;
  transform: translateY(14px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-color: transparent;
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.2,.75,.2,1),
    max-height .52s cubic-bezier(.2,.75,.2,1),
    margin .52s ease,
    padding .52s ease,
    border-color .35s ease;
}
.date-results-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 980px;
  margin-bottom: 64px;
  padding-top: 28px;
  padding-bottom: 30px;
  border-color: var(--line);
}
.date-results-section.is-leaving { opacity: 0; transform: translateY(-8px); }
.date-reveal-card {
  opacity: 0;
  transform: translateY(13px);
  animation: date-card-reveal .48s calc(var(--reveal-index, 0) * 70ms + 130ms) ease forwards;
}
@keyframes date-card-reveal { to { opacity: 1; transform: translateY(0); } }

/* Pastel, exceptional-only badges */
.card-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 64px);
}
.card-badge {
  position: static;
  padding: 5px 9px;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 10px;
  line-height: 1;
}
.badge-new { background: #fff5cf; border-color: #eadca8; color: #6d5a24; }
.badge-upcoming { background: #e9f2f8; border-color: #cbdde9; color: #375b70; }
.badge-ending { background: #f8e9e6; border-color: #ebcbc4; color: #7b443c; }
.badge-free { background: #e8f3ec; border-color: #c9dfd0; color: #365f45; }
.badge-curated { background: #eeeaf6; border-color: #d9d0e8; color: #5d5075; }

/* Compact Explore header */
.listing-view-hero {
  padding: 36px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.view-title-row { display: flex; align-items: center; gap: 13px; }
.view-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.view-title-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.listing-view-hero h1 { margin: 0; font-size: clamp(34px, 3.8vw, 44px); }
.listing-view-hero .eyebrow { margin-bottom: 3px; }
.listing-view-hero > p { max-width: 440px; text-align: right; font-size: 13px; }

/* Smaller circular categories */
.listing-filter-hub {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto;
  align-items: end;
  gap: 14px;
}
.listing-category-panel,
.listing-status-panel {
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: none;
}
.listing-category-panel { grid-row: auto; }
.filter-panel-heading { margin-bottom: 14px; }
.filter-panel-heading.compact > div { display: block; }
.filter-panel-heading h2 { font-size: 17px; }
.listing-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}
.listing-category-option {
  min-height: 76px;
  padding: 5px 2px;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform: none;
}
.listing-category-option:hover { transform: none; border-color: transparent; background: var(--surface-soft); }
.listing-category-option .category-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #ded8ce;
  border-radius: 50%;
  background: #f4f1ec;
  color: #514b44;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.listing-category-option .category-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.listing-category-option strong { font-size: 12px; font-weight: 600; }
.listing-category-option small { display: none; }
.listing-category-option.active { border: 0; background: transparent; box-shadow: none; }
.listing-category-option.active .category-icon {
  border-color: #c49372;
  background: #f8e9df;
  color: #815137;
  box-shadow: 0 0 0 3px rgba(180,111,69,.1);
  transform: translateY(-2px);
}
.listing-category-option.active strong { color: var(--accent-dark); font-weight: 700; }
.listing-status-panel { min-width: 250px; }
.listing-status-options { max-width: 260px; }
.status-filter-button { min-height: 34px; padding: 0 11px; font-size: 11px; }

/* Calendar and county panel share the same sidebar */
.listing-layout { grid-template-columns: 302px minmax(0,1fr); gap: 30px; }
.filter-sidebar {
  position: sticky;
  top: 94px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar-calendar-panel,
.location-filter-panel {
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.location-filter-panel { margin-top: 13px; }
.sidebar-panel-heading { margin-bottom: 10px; }
.calendar-shell { padding: 0; }
.calendar-head { grid-template-columns: 30px 1fr 30px; margin-bottom: 8px; }
.calendar-head strong { font-size: 14px; }
.calendar-head button { width: 29px; height: 29px; font-size: 11px; }
.calendar-weekdays,
.calendar-grid { gap: 3px; }
.calendar-weekdays { margin-bottom: 3px; font-size: 9px; }
.calendar-day { min-height: 32px; aspect-ratio: auto; border-radius: 7px; font-size: 10px; }
.calendar-day small { top: 1px; right: 2px; font-size: 6px; }
.calendar-day.has-events::after { bottom: 3px; }
.calendar-footer { margin-top: 8px; padding-top: 8px; font-size: 9px; }
.filter-sidebar-intro { margin: 8px 0 13px; }
.location-accordion { max-height: min(46vh, 520px); overflow-y: auto; padding-right: 3px; }

/* Square, lower-fatigue cards in listing view only */
.listing-content .card-image { aspect-ratio: 1 / 1; }
.listing-content .exhibition-grid { gap: 18px; }
.listing-content .card-body { padding: 14px 14px 16px; }
.listing-content .card-title { font-size: 16px; min-height: 2.8em; }
.listing-content .card-meta { font-size: 11px; }

/* Venue cards no longer misuse event posters */
.venue-tile.venue-placeholder {
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.5), transparent 35%),
    linear-gradient(135deg, #d8c9b9, #9c8069);
}
.venue-placeholder-mark {
  position: absolute;
  right: 18px;
  top: 15px;
  color: rgba(255,255,255,.34);
  font-family: "Noto Serif TC", serif;
  font-size: 58px;
  font-weight: 900;
}

/* Detail page: calmer title, stronger factual information */
.detail-info h1 {
  margin: 10px 0 22px;
  font-size: clamp(34px, 3.35vw, 42px);
  line-height: 1.34;
}
.detail-category { font-size: 13px; }
.detail-meta-row { padding-top: 17px; padding-bottom: 17px; }
.detail-meta-row small { font-size: 12px; }
.detail-meta-row strong { font-size: 16px; line-height: 1.65; }
.detail-description p { font-size: 16px; line-height: 1.85; }
.detail-description h2, .detail-related h2 { font-size: 24px; }

@media (max-width: 1050px) {
  .listing-filter-hub { grid-template-columns: 1fr; }
  .listing-status-panel { min-width: 0; }
  .listing-status-options { max-width: none; }
  .listing-category-grid { grid-template-columns: repeat(9, minmax(56px,1fr)); overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 820px) {
  .hero { padding-top: 38px; }
  .hero-visual { min-height: 500px; }
  .listing-view-hero { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 28px; }
  .listing-view-hero > p { text-align: left; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed;
    inset: 74px 0 0;
    z-index: 120;
    padding: 18px;
    overflow-y: auto;
    background: var(--bg);
  }
  .filter-sidebar:not(.open) { display: none; }
  .location-accordion { max-height: none; }
  .listing-category-grid { grid-template-columns: repeat(7, 64px); }
}

@media (max-width: 600px) {
  .panel-topline h2,
  .section-heading h2,
  .nearby-copy h2 { font-size: 24px; }
  .editorial-section { padding-bottom: 52px; }
  .hero-visual { min-height: 455px; }
  .hero-shuffle-button { top: 13px; left: 13px; min-height: 38px; font-size: 11px; }
  .hero-ticket-slot-1 { left: 12px; right: 12px; bottom: 25px; }
  .hero-ticket-slot-2 { width: 85%; top: 148px; right: 4px; }
  .hero-ticket-slot-3 { width: 73%; top: 66px; right: -10px; }
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.35s; }
  .date-results-section.is-visible { margin-bottom: 50px; padding-top: 24px; padding-bottom: 24px; }
  .listing-category-panel, .listing-status-panel { padding: 15px; }
  .listing-category-grid { grid-template-columns: repeat(6, 58px); gap: 7px; }
  .listing-category-option { min-height: 70px; }
  .listing-category-option .category-icon { width: 44px; height: 44px; }
  .listing-category-option .category-icon svg { width: 21px; height: 21px; }
  .listing-content .exhibition-grid { grid-template-columns: 1fr; }
  .detail-info h1 { font-size: 29px; }
  .detail-meta-row strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .date-results-section,
  .date-reveal-card,
  .hero-shuffle-button,
  .hero-ticket-stack { animation: none !important; transition: none !important; }
}

/* ========================================================================== */
/* V3.5 — paper collage hero, calmer motion, location stability               */
/* ========================================================================== */

/* Hero: Japanese editorial paper collage, built entirely with HTML/CSS. */
.hero-paper-collage {
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #d8d0c4;
  background:
    linear-gradient(rgba(85,82,76,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,82,76,.045) 1px, transparent 1px),
    #e9e1d3;
  background-size: 28px 28px;
  box-shadow: 0 25px 70px rgba(48,38,28,.16);
}
.hero-paper-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 13%, rgba(255,255,255,.75), transparent 30%),
    radial-gradient(circle at 92% 92%, rgba(117,83,56,.14), transparent 35%);
}
.paper-collage-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.paper-sheet { position: absolute; display: block; border: 1px solid rgba(83,72,61,.14); box-shadow: 0 13px 28px rgba(56,42,28,.11); }
.paper-sheet-main {
  width: 70%; height: 76%; left: -7%; top: 11%; transform: rotate(-3deg);
  background: #f5efe3;
}
.paper-sheet-grid {
  width: 53%; height: 49%; right: -5%; top: -6%; transform: rotate(5deg);
  background:
    linear-gradient(rgba(82,88,85,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,88,85,.08) 1px, transparent 1px),
    #e8e2d6;
  background-size: 20px 20px;
}
.paper-map-fragment {
  position: absolute; left: 8%; top: 15%; width: 48%; height: 30%; overflow: hidden;
  border: 1px solid rgba(92,88,80,.18); background: rgba(224,224,210,.72); transform: rotate(-4.5deg);
}
.paper-map-fragment svg { width: 100%; height: 100%; fill: none; stroke: #8c9993; stroke-width: 2; opacity: .64; }
.paper-stamp {
  position: absolute; right: 9%; top: 9%; width: 112px; height: 112px; display: grid; place-content: center;
  border: 2px solid rgba(153,81,51,.58); border-radius: 50%; color: rgba(143,72,45,.72);
  font-size: 10px; line-height: 1.2; letter-spacing: .15em; text-align: center; transform: rotate(9deg);
}
.paper-stamp::before, .paper-stamp::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid currentColor; }
.paper-stamp::before { inset: 7px; }
.paper-stamp::after { inset: 12px; opacity: .45; }
.paper-stamp b { font-family: "Noto Serif TC",serif; font-size: 13px; letter-spacing: .08em; }
.paper-stamp small { margin-top: 4px; font-size: 6px; }
.paper-date {
  position: absolute; left: 8%; bottom: 13%; color: rgba(63,58,53,.36); font-family: "Noto Serif TC",serif;
  font-size: 40px; font-weight: 700; letter-spacing: .04em; transform: rotate(-5deg);
}
.paper-ticket-stub {
  position: absolute; right: -22px; bottom: 10%; padding: 10px 42px 10px 18px;
  border: 1px dashed rgba(83,73,62,.35); background: #d6c7af; color: rgba(71,58,47,.62);
  font-size: 8px; letter-spacing: .22em; transform: rotate(-4deg);
}
.paper-tape { position: absolute; width: 82px; height: 24px; background: rgba(218,198,159,.58); box-shadow: inset 0 0 0 1px rgba(117,93,61,.08); }
.tape-one { left: 31%; top: 6%; transform: rotate(-7deg); }
.tape-two { right: 27%; bottom: 6%; transform: rotate(8deg); }
.hero-counter-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(239,232,220,.08), rgba(55,42,31,.03));
}
.hero-shuffle-button, .hero-ticket-stack, .hero-ticket-hint { z-index: 4; }
.hero-shuffle-button {
  border-color: rgba(80,66,52,.22);
  background: rgba(251,248,242,.88);
  color: #413a33;
  box-shadow: 0 8px 24px rgba(60,45,31,.09);
  backdrop-filter: blur(8px);
}
.hero-shuffle-button:hover { background: #fffdf8; color: var(--accent-dark); }
.hero-ticket-hint { color: rgba(60,52,45,.7); text-shadow: none; }
.hero-ticket-hint span { background: var(--accent); }
.hero-ticket-card { box-shadow: 0 18px 45px rgba(48,35,23,.17); }
.hero-ticket-stack.is-changing { transition: opacity .76s ease, transform .76s ease, filter .76s ease; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation-duration: 1.95s; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-duration: 1.95s; animation-delay: .22s; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.95s; animation-delay: .42s; }

/* Exact update date/time inside homepage statistics. */
.hero-stats .updated-stat { min-width: 184px; }
.hero-stats .updated-stat strong { max-width: 190px; font-size: clamp(15px,1.25vw,20px); line-height: 1.35; white-space: normal; }
.hero-stats .updated-stat span { margin-top: 3px; }

/* Slower, less abrupt home date result motion. */
.date-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: clip;
  transform: translateY(20px);
  transition:
    opacity .95s cubic-bezier(.22,.65,.25,1),
    transform .95s cubic-bezier(.22,.65,.25,1),
    max-height 1.15s cubic-bezier(.22,.65,.25,1),
    padding .95s ease,
    margin .95s ease;
}
.date-results-section.is-visible {
  max-height: 980px;
  margin-bottom: 72px;
  padding-top: 34px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}
.date-results-section.is-leaving {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-12px);
}
.date-reveal-card {
  animation: date-card-reveal-v35 .9s calc(var(--reveal-index, 0) * 115ms + 240ms) cubic-bezier(.19,.72,.22,1) forwards;
}
@keyframes date-card-reveal-v35 { from { opacity: 0; transform: translate3d(-20px,12px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }

/* Scroll-triggered, left-to-right reveal for search controls and categories. */
.reveal-sequence .reveal-item {
  opacity: 0;
  transform: translate3d(-22px, 10px, 0);
  transition:
    opacity .82s calc(var(--reveal-index, 0) * 105ms) cubic-bezier(.19,.72,.22,1),
    transform .82s calc(var(--reveal-index, 0) * 105ms) cubic-bezier(.19,.72,.22,1);
}
.reveal-sequence.is-in-view .reveal-item { opacity: 1; transform: translate3d(0,0,0); }
.quick-filters.reveal-sequence > * { min-width: 0; }

/* Location accordion: prevent blank outlined bars and force readable labels. */
.location-filter-panel { min-height: 220px; }
.location-accordion { scrollbar-width: thin; scrollbar-color: #c7beb2 transparent; }
.region-accordion { flex: 0 0 auto; min-height: 46px; }
.region-accordion summary { color: #26221e; background: #fbfaf8; }
.region-accordion summary .region-name { display: block; min-width: 0; overflow: hidden; color: #26221e; white-space: nowrap; text-overflow: ellipsis; }
.region-accordion summary small, .region-accordion summary i { color: #756e66; }
.region-accordion[open] summary { border-bottom: 1px solid var(--line); background: #f6f2ec; }
.region-venues { min-height: 42px; }
.venue-filter-option { color: #5f5952; }
.venue-filter-option span { display: block; color: inherit; }
.region-no-venue { margin: 5px 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Detail taxonomy links and a slightly calmer title. */
.detail-info h1 { font-size: clamp(29px,3vw,38px); line-height: 1.35; }
.detail-taxonomy { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-taxonomy a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #faf7f2; color: var(--accent-dark);
  font-size: 12px; font-weight: 650; text-decoration: none;
}
.detail-taxonomy a:hover { border-color: #c8a088; background: #fff; }
.detail-meta-row strong { font-size: 16.5px; }

@media (max-width: 900px) {
  .hero-paper-collage { min-height: 485px; }
  .paper-stamp { width: 92px; height: 92px; right: 6%; }
  .paper-date { font-size: 31px; }
  .hero-stats .updated-stat { min-width: 0; }
}
@media (max-width: 680px) {
  .hero-paper-collage { min-height: 455px; }
  .paper-sheet-main { width: 83%; height: 72%; }
  .paper-map-fragment { width: 60%; }
  .paper-stamp { width: 78px; height: 78px; font-size: 8px; }
  .paper-stamp b { font-size: 10px; }
  .paper-date { left: 4%; bottom: 12%; font-size: 24px; }
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.7s; }
  .date-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .detail-info h1 { font-size: 27px; }
  .detail-meta-row strong { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-sequence .reveal-item { opacity: 1; transform: none; transition: none; }
  .date-results-section { transition: none; }
  .date-reveal-card { animation: none; opacity: 1; transform: none; }
}
.venue-image-label {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 4px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  background: rgba(35,31,27,.6); color: #fff; font-size: 9px; font-weight: 650; letter-spacing: .06em;
  backdrop-filter: blur(7px);
}

/* ========================================================================== */
/* V3.6 — filtered home rails, slow editorial motion, stable SPA navigation   */
/* ========================================================================== */

/* A filtered status rail appears independently; it no longer replaces picks. */
.status-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: clip;
  transform: translateY(18px);
  transition:
    opacity 1.05s cubic-bezier(.2,.7,.2,1),
    transform 1.05s cubic-bezier(.2,.7,.2,1),
    max-height 1.2s cubic-bezier(.2,.7,.2,1),
    padding 1s ease,
    margin 1s ease;
}
.status-results-section.is-visible {
  max-height: 1040px;
  margin-bottom: 72px;
  padding-top: 34px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}
.status-results-section.is-leaving {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
}
.status-results-footer { margin-top: 18px; display: flex; justify-content: center; }

/* Cards enter slowly from the right and settle toward the left. */
.motion-card {
  opacity: 0;
  transform: translate3d(78px, 10px, 0);
  transition:
    opacity 1.15s calc(var(--motion-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1),
    transform 1.28s calc(var(--motion-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, transform;
}
[data-motion-group].is-in-view .motion-card,
.status-results-section.is-visible .motion-card {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* The two planning panels enter from opposite sides. */
[data-split-reveal] > .time-column {
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(.2,.7,.2,1), transform 1.35s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-split-reveal] > .time-column:first-child { transform: translate3d(-78px,0,0); }
[data-split-reveal] > .time-column:last-child { transform: translate3d(78px,0,0); transition-delay: 140ms; }
[data-split-reveal].is-in-view > .time-column { opacity: 1; transform: translate3d(0,0,0); }

/* Nearby block uses a restrained, slow fade rather than a directional slide. */
[data-fade-reveal] {
  opacity: 0;
  transform: translate3d(0,24px,0);
  transition: opacity 1.35s cubic-bezier(.2,.7,.2,1), transform 1.35s cubic-bezier(.2,.7,.2,1);
}
[data-fade-reveal].is-in-view { opacity: 1; transform: translate3d(0,0,0); }

/* Explore header: title/status at left, compact category matrix at right. */
.listing-view-hero {
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: minmax(260px,.68fr) minmax(540px,1.32fr);
  align-items: stretch;
  gap: 22px;
}
.listing-heading-column {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.listing-view-hero .view-title-row { align-items: flex-start; }
.listing-view-hero h1 { font-size: clamp(30px,3.2vw,40px); }
.listing-view-hero .listing-status-panel,
.listing-view-hero .listing-category-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.listing-view-hero .listing-category-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.listing-view-hero .listing-status-options { max-width: none; }
.listing-view-hero .filter-panel-heading { margin-bottom: 11px; }
.listing-view-hero .listing-category-grid {
  grid-template-columns: repeat(9, minmax(52px,1fr));
  gap: 7px;
}
.listing-view-hero .listing-category-option { min-height: 68px; }
.listing-view-hero .listing-category-option .category-icon { width: 42px; height: 42px; }
.listing-view-hero .listing-category-option .category-icon svg { width: 20px; height: 20px; }
.listing-view-hero .listing-category-option strong { font-size: 11px; }

/* County and venue list follows the document flow with no nested scrollbar. */
.listing-layout { align-items: start; }
.filter-sidebar {
  position: relative;
  top: auto;
  max-height: none !important;
  overflow: visible !important;
}
.location-filter-panel { min-height: 0; }
.location-accordion {
  max-height: none !important;
  height: auto;
  overflow: visible !important;
  padding-right: 0;
  scrollbar-width: none;
}
.location-accordion::-webkit-scrollbar { display: none; }
.region-accordion[open] .region-venues { display: block; }

/* The map CTA only appears when a reliable address, venue, or coordinate exists. */
.detail-action-disabled {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1c9be;
  border-radius: 999px;
  background: #f3f0eb;
  color: #8b847b;
  font-size: 13px;
  cursor: not-allowed;
}
.detail-info h1 { font-size: clamp(27px,2.55vw,34px); line-height: 1.38; }

/* A calmer fallback is preferable to an empty or loud default image. */
.card-placeholder,
.detail-poster-placeholder,
.nearby-mini-media,
.nearby-result-media {
  background:
    linear-gradient(rgba(76,72,66,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,72,66,.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(190,116,72,.18), transparent 24%),
    linear-gradient(145deg, #eee7dc, #d8ccbc);
  background-size: 22px 22px, 22px 22px, auto, auto;
  color: rgba(78,67,57,.72);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* Footer update label and complete timestamp stay as two deliberate lines. */
.footer-update-block {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px !important;
}
.footer-update-block small {
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 600;
}
.footer-update-block #footerUpdatedAt {
  display: block;
  white-space: nowrap;
  color: #a9a49c;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .listing-view-hero { grid-template-columns: 1fr; }
  .listing-view-hero .listing-category-grid { grid-template-columns: repeat(9, minmax(54px,1fr)); }
}

@media (max-width: 820px) {
  .listing-view-hero { display: grid; padding-top: 28px; }
  .listing-view-hero .listing-category-grid { grid-template-columns: repeat(7, 62px); overflow-x: auto; }
  .filter-sidebar {
    position: fixed;
    top: 74px;
    max-height: calc(100vh - 74px) !important;
    overflow-y: auto !important;
  }
  .location-accordion { overflow: visible !important; }
}

@media (max-width: 600px) {
  .status-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .motion-card { transform: translate3d(52px,8px,0); }
  [data-split-reveal] > .time-column:first-child { transform: translate3d(-46px,0,0); }
  [data-split-reveal] > .time-column:last-child { transform: translate3d(46px,0,0); }
  .detail-info h1 { font-size: 25px; }
  .footer-update-block #footerUpdatedAt { white-space: normal; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  [data-split-reveal] > .time-column,
  [data-fade-reveal],
  .status-results-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Exhibition Hub V4.6
   ========================================================================== */

/* Restore the warm paper cast that was lost when pure-white surfaces occupied
   more of the viewport. */
:root {
  --bg: #f3eee6;
  --surface: #fffaf3;
  --surface-soft: #ece5db;
  --line: #d8cfc3;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(rgba(115,91,65,.018) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.site-header { background: rgba(243,238,230,.94); }

/* The copy aligns with the main navigation. The collage becomes the complete
   right side of the Hero, while a smaller ticket stage sits farther right. */
.hero {
  min-height: 584px;
  padding-top: 0;
  padding-left: max(32px, calc((100vw - 1248px) / 2 + 44px));
  padding-bottom: 0;
  align-items: stretch;
}
.hero-copy {
  min-height: 584px;
  padding-top: 54px;
  padding-right: 58px;
  padding-bottom: 60px;
}
.hero-visual,
.hero-paper-collage {
  height: auto;
  min-height: 584px;
  align-self: stretch;
  border: 0;
}
.hero-ticket-stage {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(22px,3.2vw,52px);
  width: min(700px,calc(100% - 42px));
  height: 450px;
  transform: translateY(-50%);
}
.hero-ticket-stage .hero-ticket-stack {
  right: 0;
  width: auto;
}
.hero-ticket-stage .hero-shuffle-button,
.hero-ticket-stage .hero-ticket-hint { z-index: 8; }

/* Explore uses related low-chroma paper colours instead of five white boxes. */
.listing-view { --listing-panel-border: rgba(116,94,70,.15); }
.listing-heading-column {
  border-color: var(--listing-panel-border);
  background: #e8ded1;
}
.listing-view-hero .listing-category-panel {
  border-color: var(--listing-panel-border);
  background: #e1e4da;
}
.listing-view-hero .listing-status-panel { background: transparent; }
.sidebar-calendar-panel {
  border-color: var(--listing-panel-border);
  background: #eee1cf;
}
.location-filter-panel {
  border-color: var(--listing-panel-border);
  background: #e8dcd6;
}
.listing-content {
  padding: 18px;
  border: 1px solid var(--listing-panel-border);
  border-radius: 18px;
  background: #e7e1d8;
}
.listing-content .listing-toolbar select,
.listing-content .filter-drawer-button { background: #fffaf3; }
.listing-view .exhibition-card {
  border-color: rgba(118,94,69,.14);
  background: #fffaf3;
}
.listing-view .listing-category-option:hover { background: rgba(255,250,243,.56); }
.listing-view .listing-category-option.active .category-icon { background: #f3dfd1; }
.listing-view .calendar-day:not(.empty) { background: rgba(255,250,243,.56); }
.listing-view .region-accordion summary { background: rgba(255,250,243,.68); }
.listing-view .region-accordion[open] summary { background: rgba(246,238,228,.88); }

/* Major panels arrive one after another, brightening slowly from a deeper
   paper tone into their final colour. */
.listing-tone-block {
  opacity: 0;
  filter: brightness(.78) saturate(.82);
  transform: translate3d(0,20px,0);
  transition:
    opacity 1.25s calc(var(--listing-block-index,0) * 180ms + 70ms) cubic-bezier(.2,.7,.2,1),
    filter 1.65s calc(var(--listing-block-index,0) * 180ms + 70ms) ease,
    transform 1.45s calc(var(--listing-block-index,0) * 180ms + 70ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, filter, transform;
}
.listing-view.is-animated-in .listing-tone-block {
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: translate3d(0,0,0);
}

/* Rebuilding the result grid on every filter/sort change creates fresh nodes,
   so this quiet stagger restarts for every new selection. */
.listing-reveal-card {
  opacity: 0;
  filter: brightness(.72) saturate(.82);
  transform: translate3d(0,24px,0);
  animation:
    listing-card-reveal-v46 1.35s
    calc(var(--listing-card-index,0) * 120ms + 160ms)
    cubic-bezier(.18,.72,.2,1) both;
  will-change: opacity, filter, transform;
}
@keyframes listing-card-reveal-v46 {
  0% {
    opacity: 0;
    filter: brightness(.72) saturate(.82);
    transform: translate3d(0,24px,0);
  }
  38% { opacity: .42; }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translate3d(0,0,0);
  }
}

@media (max-width: 1120px) {
  .hero {
    min-height: 566px;
    padding-top: 0;
    padding-left: 28px;
    padding-bottom: 0;
  }
  .hero-copy {
    min-height: 566px;
    padding-top: 50px;
    padding-right: 44px;
    padding-bottom: 56px;
  }
  .hero-visual,
  .hero-paper-collage { min-height: 566px; }
  .hero-ticket-stage {
    right: 24px;
    width: min(660px,calc(100% - 36px));
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding: 44px 18px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    min-height: 0;
    padding: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    min-height: 500px;
    margin-right: -18px;
    margin-left: -18px;
  }
  .hero-ticket-stage {
    right: 18px;
    width: calc(100% - 36px);
    height: 440px;
  }
  .listing-content { padding: 15px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero-visual,
  .hero-paper-collage { min-height: 470px; }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 420px;
  }
  .listing-content { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-tone-block,
  .listing-reveal-card {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ========================================================================== */
/* V3.7 — unified filters, reliable hero controls and editorial image frames  */
/* ========================================================================== */

/* The redraw control always stays above the ticket stack. JavaScript pauses
   the fifteen-second countdown while the pointer or keyboard focus is inside. */
.hero-ticket-stack { z-index: 4; }
.hero-shuffle-button {
  z-index: 8;
  pointer-events: auto;
  touch-action: manipulation;
}
.hero-shuffle-button[aria-busy="true"] .shuffle-icon { animation: v37-spin .72s ease both; }
@keyframes v37-spin { to { transform: rotate(-360deg); } }

/* Date and status now share one result area. Every change fades the previous
   result out, replaces its content, then replays the card entrance motion. */
.filter-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: clip;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: linear-gradient(90deg, rgba(180,111,69,.055), transparent 55%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s ease, transform .72s cubic-bezier(.2,.72,.2,1), max-height .72s ease, margin .72s ease, padding .72s ease, border-color .5s ease;
}
.filter-results-section.is-visible {
  max-height: 1080px;
  margin-bottom: 68px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-color: var(--line);
  opacity: 1;
  transform: translateY(0);
}
.filter-results-section.is-changing,
.filter-results-section.is-leaving { opacity: 0; transform: translateY(-9px); }
.filter-results-section.is-visible .motion-card { opacity: 1; transform: translate3d(0,0,0); }
.filter-results-footer { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }

.quick-filters .clear-filter { order: 99; margin-left: auto; white-space: nowrap; }
.quick-filters .clear-filter[hidden] { display: none; }
.active-filters { align-items: center; }
.clear-all-filters {
  margin-left: auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #c8b8aa;
  border-radius: 999px;
  background: #fffaf5;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.clear-all-filters:hover { border-color: var(--accent); background: #fff3e9; }

/* One county can be open at a time; all counties are collapsed initially. */
.region-accordion:not([open]) .region-venues { display: none; }
.region-accordion summary { cursor: pointer; }

/* A clear, uncropped poster sits over a soft duplicate of the same image.
   This keeps mixed portrait/landscape sources legible without empty bars. */
.smart-image-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #ded5c8;
}
.smart-image-frame > img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
}
.smart-image-blur {
  z-index: 0;
  object-fit: cover !important;
  filter: blur(20px) saturate(.88);
  opacity: .72;
  transform: scale(1.14);
}
.smart-image-foreground {
  z-index: 1;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 12px rgba(31,24,18,.14));
  transition: transform .35s ease;
}
.exhibition-card:hover .smart-image-blur { transform: scale(1.14); }
.exhibition-card:hover .smart-image-foreground { transform: scale(1.018); }
.nearby-mini-card .smart-image-frame,
.nearby-result-card .smart-image-frame { flex: 0 0 auto; border-radius: 12px; }
.nearby-mini-card .smart-image-frame { width: 112px; height: 112px; }
.nearby-result-card .smart-image-frame { width: 92px; height: 92px; }
.detail-poster > .smart-image-frame { width: 100%; aspect-ratio: 4 / 5; height: auto; }
.detail-poster .smart-image-frame > img { aspect-ratio: auto; }

/* Smaller type makes Explore and Detail easier to scan on desktop. */
.listing-view-hero h1 { font-size: clamp(25px,2.7vw,34px); line-height: 1.28; }
.listing-view-hero .filter-panel-heading h2 { font-size: 14px; }
.listing-view-hero .filter-panel-heading small { font-size: 9px; }
.listing-view-hero .listing-category-option { min-height: 58px; }
.listing-view-hero .listing-category-option .category-icon { width: 36px; height: 36px; }
.listing-view-hero .listing-category-option strong { font-size: 10px; }
.listing-view-hero .status-filter-button { min-height: 31px; padding-inline: 10px; font-size: 10px; }
.listing-toolbar, #listingCount { font-size: 12px; }
.listing-content .card-title { font-size: 16px; line-height: 1.55; }
.detail-info h1 { font-size: clamp(23px,2.2vw,30px); line-height: 1.42; }
.detail-meta-row small { font-size: 10px; }
.detail-meta-row strong { font-size: 13.5px; line-height: 1.65; }
.detail-description h2, .detail-related h2 { font-size: 20px; }
.detail-description p { font-size: 14px; line-height: 1.9; }

@media (max-width: 600px) {
  .filter-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .quick-filters .clear-filter { width: 100%; margin-left: 0; text-align: right; }
  .clear-all-filters { width: 100%; margin-left: 0; }
  .nearby-mini-card .smart-image-frame { width: 92px; height: 100%; }
  .nearby-result-card .smart-image-frame { width: 82px; height: 82px; }
  .detail-info h1 { font-size: 21px; }
  .detail-description h2, .detail-related h2 { font-size: 18px; }
  .detail-description p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-results-section { transition: none !important; }
  .filter-results-section.is-visible { opacity: 1 !important; transform: none !important; }
  .hero-shuffle-button[aria-busy="true"] .shuffle-icon { animation: none; }
}

/* ========================================================================== */
/* V3.8 — illustrated city hero, square home cards and animated venue rail     */
/* ========================================================================== */

/* A denser editorial collage gives the ticket counter a crafted print feel. */
.hero-paper-collage {
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,.88), transparent 23%),
    radial-gradient(circle at 88% 82%, rgba(117,74,48,.17), transparent 32%),
    repeating-linear-gradient(117deg, rgba(78,67,56,.025) 0 1px, transparent 1px 7px),
    #e7ddce;
}
.hero-paper-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), inset 0 -42px 80px rgba(79,57,37,.07);
  mix-blend-mode: multiply;
}
.paper-collage-layer::before {
  content: "";
  position: absolute;
  width: 178px;
  height: 178px;
  right: 2%;
  top: 27%;
  border: 34px solid rgba(54,82,78,.12);
  border-radius: 50%;
  transform: rotate(11deg);
}
.paper-collage-layer::after {
  content: "";
  position: absolute;
  width: 126px;
  height: 88px;
  left: 38%;
  bottom: 4%;
  border-radius: 46% 54% 58% 42%;
  background: rgba(184,91,56,.13);
  transform: rotate(-14deg);
}
.paper-sheet-main {
  background:
    radial-gradient(circle, rgba(89,75,60,.075) 0 1px, transparent 1.3px) 0 0 / 13px 13px,
    linear-gradient(145deg, #fbf4e7 0%, #efe1cd 100%);
}
.paper-sheet-grid {
  background:
    linear-gradient(32deg, transparent 47%, rgba(83,91,87,.07) 48% 50%, transparent 51%) 0 0 / 24px 24px,
    linear-gradient(rgba(82,88,85,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,88,85,.07) 1px, transparent 1px),
    #e4ddd0;
  background-size: 24px 24px, 20px 20px, 20px 20px, auto;
}
.paper-city-map {
  position: absolute;
  left: 5%;
  top: 14%;
  width: 59%;
  aspect-ratio: 420 / 250;
  overflow: hidden;
  border: 1px solid rgba(83,72,61,.24);
  border-radius: 7px;
  background: #f3ecdc;
  box-shadow: 0 18px 36px rgba(62,45,30,.16), 0 2px 0 rgba(255,255,255,.72) inset;
  transform: rotate(-5deg);
}
.paper-city-map::after {
  content: "TAIWAN CITY EDITION  /  03";
  position: absolute;
  right: 8px;
  top: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(72,66,58,.23);
  border-radius: 999px;
  background: rgba(250,245,235,.82);
  color: rgba(52,49,45,.68);
  font-size: 5px;
  font-weight: 750;
  letter-spacing: .12em;
}
.paper-city-map svg { display: block; width: 100%; height: 100%; }
.city-river { fill: none; stroke: url(#cityRiver); stroke-width: 26; stroke-linecap: round; opacity: .82; }
.city-streets path { fill: none; stroke: #fffaf0; stroke-width: 8; stroke-linecap: round; opacity: .9; }
.city-streets path:nth-child(2) { stroke-width: 5; opacity: .7; }
.city-blocks path { stroke: rgba(91,72,52,.16); stroke-width: 1; }
.city-trees circle { fill: #6f8c70; stroke: #f3ecdc; stroke-width: 3; }
.city-trees path { stroke: #67523b; stroke-width: 3; stroke-linecap: round; }
.city-pin path { fill: #b7583b; stroke: #fff5e7; stroke-width: 3; }
.city-pin circle { fill: #fff5e7; }
.city-compass circle { fill: rgba(250,244,232,.9); stroke: #6c756b; stroke-width: 2; }
.city-compass path { fill: #6c756b; }
.city-compass text { fill: #5a6259; font-family: serif; font-size: 10px; text-anchor: middle; font-weight: 700; }
.city-map-title { fill: #51483e; font-family: "Noto Serif TC", serif; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.paper-stamp {
  border-color: rgba(153,81,51,.7);
  color: rgba(143,72,45,.82);
  background: rgba(241,226,207,.3);
  box-shadow: 0 9px 22px rgba(76,48,31,.07);
}

/* Every exhibition card on the homepage uses the same square image rhythm. */
.home-view .exhibition-card .card-image { aspect-ratio: 1 / 1; }

/* Venue cards become a swipeable editorial rail with venue/exhibition imagery. */
.venue-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 306px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 3px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c1b4a6 transparent;
}
.venue-tile {
  min-height: 286px;
  scroll-snap-align: start;
  border: 1px solid rgba(75,63,50,.16);
  box-shadow: 0 15px 34px rgba(43,33,23,.1);
}
.venue-tile img {
  filter: saturate(.9) contrast(1.02);
  transform: scale(1.015);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease;
}
.venue-tile:hover img { transform: scale(1.055); filter: saturate(1) contrast(1.04); }
.venue-tile::after {
  background:
    linear-gradient(to top, rgba(18,15,12,.84), rgba(18,15,12,.17) 63%, rgba(18,15,12,.03)),
    linear-gradient(120deg, rgba(177,94,56,.12), transparent 50%);
}
.venue-tile-content small { display: block; color: rgba(255,255,255,.76); line-height: 1.45; }
.venue-controls { align-items: center; }
.venue-controls .section-link { margin-right: 6px; }
.venue-section .motion-card {
  transform: translate3d(96px, 8px, 0);
  transition:
    opacity 1.5s calc(var(--motion-index, 0) * 165ms + 100ms) cubic-bezier(.18,.72,.2,1),
    transform 1.7s calc(var(--motion-index, 0) * 165ms + 100ms) cubic-bezier(.18,.72,.2,1);
}
.venue-section.is-in-view .motion-card { opacity: 1; transform: translate3d(0,0,0); }

@media (max-width: 680px) {
  .paper-city-map { left: 4%; top: 16%; width: 67%; }
  .paper-city-map::after { display: none; }
  .venue-grid { grid-template-columns: none; grid-auto-columns: minmax(225px, 82vw); }
  .venue-tile { min-height: 250px; }
  .venue-controls .section-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-section .motion-card { opacity: 1; transform: none; transition: none; }
  .venue-tile img { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V3.9
   ========================================================================== */

/* The supplied balanced journal signature replaces the compact seal/wordmark. */
.brand-logo-frame {
  position: relative;
  display: block;
  width: 314px;
  height: 58px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 508px;
  max-width: none;
  height: auto;
  transform: translate(-50%,-50%);
  mix-blend-mode: multiply;
}

/* Generated category artwork is only shown after every real image candidate fails. */
.fallback-art {
  position: relative;
  overflow: hidden;
  background-color: #d9cdbd;
  background-image: url("exhibition-fallback-sprite-v40.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--fallback-x, 100%) var(--fallback-y, 100%);
  color: #fff;
  isolation: isolate;
}
.fallback-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(24,19,15,.52), transparent 58%),
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 42%);
}
.fallback-art-label {
  position: absolute;
  left: 13px;
  bottom: 11px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(28,23,19,.38);
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 1px 4px rgba(0,0,0,.34);
  backdrop-filter: blur(5px);
}

/* Home filters use one non-conflicting animation, avoiding opacity/transform flashes. */
.filter-results-section.is-changing { opacity: 1; transform: translateY(0); }
.filter-results-section .date-reveal-card {
  opacity: 0;
  transform: translate3d(0,16px,0);
  animation: filter-card-reveal-v39 1.05s calc(var(--reveal-index, 0) * 90ms + 90ms) cubic-bezier(.19,.72,.22,1) both;
  will-change: opacity, transform;
}
@keyframes filter-card-reveal-v39 {
  0% { opacity: 0; transform: translate3d(0,16px,0); }
  30% { opacity: .28; }
  100% { opacity: 1; transform: translate3d(0,0,0); }
}

/* Upcoming is visually distinct from the terracotta "ending soon" state. */
.time-dot.upcoming { background: #3f8a62; box-shadow: 0 0 0 5px rgba(63,138,98,.12); }

/* Favorites: four square cards, slow bottom-up reveal, and a swipeable affinity rail. */
.favorites-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.favorites-shell .favorites-grid .card-image { aspect-ratio: 1 / 1; }
.favorite-reveal-card {
  opacity: 0;
  transform: translate3d(0,34px,0);
  animation: favorite-card-rise-v39 1.25s calc(var(--favorite-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1) both;
  will-change: opacity, transform;
}
@keyframes favorite-card-rise-v39 {
  from { opacity: 0; transform: translate3d(0,34px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.favorites-recommendations {
  margin-top: 76px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.favorites-recommendations .section-description { max-width: 620px; }
.favorites-recommendation-rail {
  grid-auto-columns: minmax(232px,270px);
  scroll-snap-type: x proximity;
}
.favorites-recommendation-rail .card-image { aspect-ratio: 1 / 1; }

/* Nearby cards expose distance as a colored datum and keep external navigation separate. */
.nearby-result-card {
  position: relative;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nearby-result-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-right: 76px;
}
.nearby-result-copy { min-width: 0; }
.distance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcece5;
  color: #24654b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.nearby-map-link {
  position: absolute;
  right: 0;
  bottom: 16px;
  color: #2e6f84;
  font-size: 10px;
  font-weight: 750;
}
.nearby-map-link:hover { color: #174f62; }
.map-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-popup-actions a:last-child { color: #2e6f84; }

@media (max-width: 1120px) {
  .brand-logo-frame { width: 250px; }
  .brand-logo-frame img { width: 405px; }
  .nav-shell { gap: 20px; }
  .desktop-nav { margin-left: 2px; gap: 18px; }
  .favorites-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 220px; height: 52px; }
  .brand-logo-frame img { width: 356px; }
  .favorites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nearby-result-main { grid-template-columns: 82px 1fr; }
}

@media (max-width: 520px) {
  .brand-logo-frame { width: 190px; height: 48px; }
  .brand-logo-frame img { width: 308px; }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorites-recommendations { margin-top: 54px; padding-top: 32px; }
  .nearby-result-main { padding-right: 0; }
  .nearby-map-link { position: static; display: inline-block; margin: 8px 0 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-results-section .date-reveal-card,
  .favorite-reveal-card { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Exhibition Hub V4.0
   ========================================================================== */

/* Keep the complete supplied signature, but let it sit only slightly above
   the navigation type instead of dominating the header. */
.brand-logo-frame {
  width: 210px;
  height: 44px;
}
.brand-logo-frame img { width: 340px; }

/* Warm editorial hero band: a quiet paper grid separates the opening story
   from the white content below without turning it into a flat banner. */
.hero {
  max-width: none;
  padding: 56px max(24px, calc((100vw - 1248px) / 2)) 62px;
  grid-template-columns: minmax(350px,430px) minmax(0,720px);
  justify-content: center;
  gap: 48px;
  background-color: #eee8de;
  background-image:
    linear-gradient(rgba(88,73,56,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,73,56,.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.48), transparent 28%);
  background-size: 24px 24px, 24px 24px, auto;
  border-bottom: 1px solid rgba(114,94,71,.11);
}
.hero-copy { max-width: 430px; }
.hero-visual {
  width: 100%;
  height: 470px;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(99,77,54,.13);
  box-shadow: 0 24px 60px rgba(59,45,31,.13);
}

/* The all-exhibitions CTA belongs to the right edge of the filter frame. */
.quick-filters { flex-wrap: nowrap; }
.quick-filters .status-pills { flex: 1 1 auto; }
.quick-filters .clear-filter {
  order: 1;
  margin-left: 0;
  padding: 0 4px;
  white-space: nowrap;
}
.discover-all-button,
.venue-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(154,104,72,.24);
  border-radius: 999px;
  background: #eee4d8;
  color: #75513d;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.discover-all-button {
  order: 2;
  margin-left: auto;
}
.discover-all-button:hover,
.venue-all-button:hover {
  border-color: rgba(134,81,50,.38);
  background: #e7d7c7;
  transform: translateY(-1px);
}

/* Three rows of four shorter venue cards are visible at once. Additional
   columns remain swipeable. Every failed real image exposes refined category
   artwork instead of the old single-character placeholder. */
.venue-grid {
  grid-template-columns: none;
  grid-template-rows: repeat(3,142px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, calc((100% - 54px) / 4));
  column-gap: 18px;
  row-gap: 14px;
  padding: 3px 3px 16px;
}
.venue-tile {
  min-height: 0;
  height: 142px;
  border-radius: 15px;
}
.venue-tile img,
.venue-fallback-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.venue-fallback-art { z-index: 0; }
.venue-tile img { z-index: 0; }
.venue-tile::after { z-index: 1; }
.venue-tile-content {
  left: 14px;
  right: 14px;
  bottom: 12px;
}
.venue-tile-content small { font-size: 8px; letter-spacing: .07em; }
.venue-tile-content h3 {
  margin: 3px 0 2px;
  font-size: 15px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.venue-tile-content p { font-size: 10px; }
.venue-placeholder-mark { display: none; }
.venue-section-footer {
  padding-top: 22px;
  display: flex;
  justify-content: center;
}
.venue-all-button {
  min-height: 44px;
  padding-inline: 22px;
  background: #f7f1e9;
}

/* The footer now contains only the useful navigation group. */
.footer-links {
  grid-template-columns: minmax(150px,220px);
  justify-content: end;
}

@media (max-width: 1120px) {
  .brand-logo-frame { width: 188px; height: 42px; }
  .brand-logo-frame img { width: 304px; }
  .hero {
    padding-left: 28px;
    padding-right: 28px;
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 32px;
  }
  .hero-copy { max-width: 460px; }
  .hero-visual { height: 460px; }
  .quick-filters { flex-wrap: wrap; }
  .quick-filters .status-pills { flex: 1 1 560px; }
  .discover-all-button { margin-left: auto; }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 186px; height: 42px; }
  .brand-logo-frame img { width: 301px; }
  .hero {
    padding: 44px 18px 58px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy { max-width: 680px; }
  .hero-visual {
    height: auto;
    min-height: 440px;
    aspect-ratio: 16 / 10;
  }
  .venue-grid {
    grid-template-rows: repeat(3,136px);
    grid-auto-columns: minmax(220px,42vw);
  }
  .venue-tile { height: 136px; }
}

@media (max-width: 600px) {
  .brand-logo-frame { width: 176px; height: 40px; }
  .brand-logo-frame img { width: 285px; }
  .quick-filters .status-pills { flex-basis: 100%; }
  .quick-filters .clear-filter { width: auto; text-align: left; }
  .discover-all-button {
    width: 100%;
    margin-left: 0;
  }
  .venue-grid {
    grid-template-rows: repeat(3,128px);
    grid-auto-columns: minmax(218px,78vw);
  }
  .venue-tile { height: 128px; }
  .venue-section-footer { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-all-button,
  .venue-all-button { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V4.1
   ========================================================================== */

/* The wordmark is transparent outside the ticket; only the ticket keeps color. */
.brand-logo-frame {
  width: 210px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.brand-logo-frame img {
  position: static;
  width: 210px;
  max-width: 100%;
  height: auto;
  transform: none;
  mix-blend-mode: normal;
}

/* A calmer headline and bottom-aligned figures restore balance with the
   neighboring ticket drawer. The current slogan stays editable for a later
   copy decision. */
.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  max-width: 410px;
  font-size: clamp(38px,3.55vw,51px);
  line-height: 1.24;
  letter-spacing: -.032em;
}
.hero-lead { margin-top: 18px; margin-bottom: 22px; }
.hero-stats {
  margin-top: auto;
  padding-top: 26px;
  align-items: flex-end;
}

/* Flatter illustrated city map: no drop shadows or dimensional buildings. */
.paper-city-map {
  border-color: rgba(79,72,63,.2);
  background: #f3ecdc;
  box-shadow: none;
  transform: rotate(-2.2deg);
}
.paper-city-map::after {
  border-radius: 3px;
  background: rgba(243,236,220,.9);
}
.city-river {
  stroke: #91b7b5;
  stroke-width: 22;
  opacity: .76;
}
.city-streets path {
  stroke: #fffaf0;
  stroke-width: 5;
  opacity: .88;
}
.city-streets path:nth-child(2) { stroke-width: 3; opacity: .72; }
.city-blocks path {
  stroke: none;
  opacity: .82;
}
.city-landmarks path {
  fill: none;
  stroke: rgba(255,249,237,.78);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-trees circle {
  fill: #718d72;
  stroke: none;
}
.city-trees path {
  stroke: #6b5843;
  stroke-width: 2;
}
.city-pin path {
  fill: #b85f43;
  stroke: #fff6e9;
  stroke-width: 2;
}
.city-compass circle {
  fill: #f7f0e2;
  stroke-width: 1.5;
}

/* Ticket hierarchy, print details, deeper barcode, and a restrained seal. */
.hero-ticket-card {
  border-color: rgba(64,52,41,.24);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.86),
    inset 0 0 0 3px rgba(81,65,50,.13),
    0 18px 45px rgba(48,35,23,.17);
}
.hero-ticket-card .ticket-topline,
.hero-ticket-card .ticket-main,
.hero-ticket-card .ticket-footer {
  position: relative;
  z-index: 1;
}
.hero-ticket-card .ticket-main small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 3px double rgba(137,84,54,.54);
  border-radius: 999px;
  background: rgba(255,252,247,.72);
  color: #795039;
  line-height: 1.1;
}
.hero-ticket-card .barcode {
  color: #241f1a;
  font-weight: 900;
  letter-spacing: .09em;
}
.ticket-watermark {
  position: absolute;
  z-index: 0;
  right: 23px;
  top: 43px;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  border: 4px double currentColor;
  border-radius: 50%;
  color: #9f6544;
  text-align: center;
  opacity: .075;
  transform: rotate(-11deg);
  pointer-events: none;
}
.ticket-watermark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed currentColor;
  border-radius: inherit;
}
.ticket-watermark b {
  font-family: "Noto Serif TC",serif;
  font-size: 29px;
  line-height: 1;
}
.ticket-watermark i {
  margin-top: 3px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-ticket-slot-1 {
  left: 25px;
  right: 30px;
  bottom: 25px;
}
.hero-ticket-slot-2 {
  width: 79%;
  right: 20px;
  top: 108px;
  transform: rotate(-3.4deg);
}
.hero-ticket-slot-3 {
  width: 67%;
  right: -7px;
  top: 39px;
  transform: rotate(3.2deg);
}
.hero-ticket-slot-2:hover {
  z-index: 5;
  transform: rotate(-.4deg) translate(-7px,-5px);
}
.hero-ticket-slot-3:hover {
  z-index: 5;
  transform: rotate(.5deg) translate(-10px,-5px);
}
.hero-ticket-slot-2 .ticket-watermark,
.hero-ticket-slot-3 .ticket-watermark {
  width: 66px;
  height: 66px;
  right: 16px;
  top: 36px;
}

/* Venue cards reveal inside their fixed cells. No card is translated, so the
   three-row rail cannot appear offset before settling. */
.venue-section .motion-card {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 0 100% round 15px);
  transition:
    opacity 1.05s calc(var(--motion-index, 0) * 95ms + 80ms) ease,
    clip-path 1.35s calc(var(--motion-index, 0) * 95ms + 80ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, clip-path;
}
.venue-section.is-in-view .motion-card {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 15px);
}

/* Selected filters become a quieter editorial line instead of one oversized
   title with a prominent plus sign. */
.listing-view-hero h1 {
  font-size: clamp(21px,2.15vw,29px);
  line-height: 1.42;
  letter-spacing: -.018em;
}
#listingTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
}
.listing-title-filter { min-width: 0; }
.listing-title-separator {
  color: #b3aaa0;
  font-size: .56em;
  font-weight: 400;
}

@media (max-width: 1120px) {
  .brand-logo-frame { width: 188px; height: 42px; }
  .brand-logo-frame img { width: 188px; }
  .hero-copy { min-height: 460px; }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 186px; height: 42px; }
  .brand-logo-frame img { width: 186px; }
  .hero-copy {
    min-height: 0;
    display: block;
  }
  .hero-stats {
    margin-top: 32px;
    padding-top: 0;
  }
  .hero h1 { max-width: 560px; font-size: clamp(37px,7vw,48px); }
}

@media (max-width: 600px) {
  .brand-logo-frame { width: 176px; height: 40px; }
  .brand-logo-frame img { width: 176px; }
  .hero h1 { font-size: 35px; }
  .hero-ticket-slot-1 { left: 12px; right: 12px; bottom: 24px; }
  .hero-ticket-slot-2 { width: 85%; top: 98px; right: 5px; }
  .hero-ticket-slot-3 { width: 74%; top: 38px; right: -8px; }
  .ticket-watermark { width: 66px; height: 66px; top: 42px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-section .motion-card {
    opacity: 1;
    clip-path: none;
    transition: none;
  }
}

/* ==========================================================================
   Exhibition Hub V4.2
   ========================================================================== */

/* More breathing room after the opening band and calmer editorial copy. */
.discovery-panel { padding-top: 86px; }

/* Status choices borrow the tactile response of the category cards while
   keeping their own pale butter palette. */
.status-pills button {
  transition:
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}
.status-pills button:not(.active):hover {
  border-color: #d4bb82;
  background: #fff4d8;
  color: #69552d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91,70,32,.09);
}
.status-pills button.active:hover {
  border-color: #666858;
  background: #666858;
}

/* Nearby discovery is a warm editorial action, rather than a hard black CTA. */
.hero-actions .primary-link {
  border: 1px solid rgba(113,91,51,.2);
  background: #ddcba5;
  color: #4f412d;
  box-shadow: 0 9px 22px rgba(83,63,33,.1);
}
.hero-actions .primary-link:hover {
  border-color: rgba(102,78,39,.32);
  background: #cfb887;
  color: #40331f;
  transform: translateY(-1px);
}

/* A simplified paper map: one river, three walking routes, two quiet parks,
   two gallery symbols, and one destination pin. */
.paper-city-map {
  background: #f3ecdc;
  transform: rotate(-1.35deg);
}
.paper-city-map::after { display: none; }
.city-river {
  fill: none;
  stroke: #a9c5bf;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: .72;
}
.city-routes path {
  fill: none;
  stroke: #d4c6ad;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: .9;
}
.city-parks path {
  fill: #d8dfc6;
  stroke: #aab899;
  stroke-width: 1;
  opacity: .82;
}
.city-landmarks path {
  fill: rgba(249,245,235,.68);
  stroke: #806f58;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-pin path {
  fill: #bd7655;
  stroke: #fff8e9;
  stroke-width: 2;
}
.city-pin circle { fill: #fff8e9; }
.city-map-title {
  fill: #665b4d;
  font-size: 10px;
  letter-spacing: 1.35px;
}

/* Venue hover is deliberately clearer, but remains slow and composed. */
.venue-tile {
  transition:
    transform .52s cubic-bezier(.2,.72,.2,1),
    box-shadow .52s ease,
    border-color .4s ease;
}
.venue-section.is-in-view .venue-tile:hover {
  z-index: 4;
  transform: translateY(-6px) scale(1.028);
  border-color: rgba(255,245,225,.58);
  box-shadow: 0 23px 46px rgba(38,29,20,.24);
}
.venue-section.is-in-view .venue-tile:hover img {
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.06);
}
.venue-section.is-in-view .venue-tile:hover::after {
  background:
    linear-gradient(to top, rgba(18,15,12,.76), rgba(18,15,12,.08) 66%, transparent),
    linear-gradient(120deg, rgba(221,167,105,.18), transparent 52%);
}

/* Featured cards reveal without a horizontal translation, removing the
   temporary left-offset appearance inside the swipe rail. */
.featured-block .motion-card {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 12% 0 round 16px);
  transition:
    opacity 1.05s calc(var(--motion-index, 0) * 95ms + 80ms) ease,
    clip-path 1.22s calc(var(--motion-index, 0) * 95ms + 80ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, clip-path;
}
.featured-block.is-in-view .motion-card {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 16px);
}

/* The Explore grid behaves as one large, keyboard-accessible card target. */
.exhibition-card.is-whole-card-link { cursor: pointer; }
.exhibition-card.is-whole-card-link:focus-visible {
  outline: 3px solid rgba(187,126,80,.38);
  outline-offset: 3px;
}

/* Exploration and live data sit side by side with compact, unbroken rows. */
.footer-links {
  grid-template-columns: minmax(120px,160px) minmax(255px,1fr);
  justify-content: end;
  gap: clamp(34px,5vw,72px);
}
.footer-metrics {
  min-width: 255px;
  gap: 11px !important;
}
.footer-metric {
  display: grid;
  grid-template-columns: 76px max-content;
  align-items: baseline;
  gap: 20px;
  white-space: nowrap;
}
.footer-metric strong {
  margin: 0;
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 650;
}
.footer-metric span {
  color: #bcb6ad;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .discovery-panel { padding-top: 68px; }
  .footer-links { justify-content: start; }
}

@media (max-width: 600px) {
  .discovery-panel { padding-top: 54px; }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-metrics { min-width: 0; }
  .footer-metric { grid-template-columns: 76px max-content; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-pills button,
  .venue-tile,
  .featured-block .motion-card { transition: none !important; }
  .featured-block .motion-card { opacity: 1; clip-path: none; }
}

/* ==========================================================================
   Exhibition Hub V4.3
   ========================================================================== */

/* A shorter, direct headline keeps the opening spread in proportion. */
.hero h1 {
  max-width: 390px;
  font-size: clamp(33px,3vw,44px);
  line-height: 1.32;
  letter-spacing: -.026em;
}
.hero-lead {
  max-width: 405px;
  line-height: 1.9;
}

/* The nearby action uses a quiet stone-taupe instead of saturated yellow. */
.hero-actions .primary-link {
  border-color: rgba(91,79,66,.18);
  background: #d9d0c3;
  color: #514b43;
  box-shadow: 0 9px 22px rgba(65,54,43,.08);
}
.hero-actions .primary-link:hover {
  border-color: rgba(83,70,57,.28);
  background: #cbc0b2;
  color: #403a34;
}

/* Editorial city illustration: layered neighbourhoods, topographic lines,
   architecture and one restrained route marker. */
.paper-city-map {
  background: #f1eadf;
  transform: rotate(-1.45deg);
}
.city-contours path {
  fill: none;
  stroke: #b7aa99;
  stroke-width: 1.1;
  opacity: .28;
}
.city-districts path {
  stroke: rgba(101,86,70,.22);
  stroke-width: 1.1;
  opacity: .76;
}
.city-districts .district-sage { fill: #c9d2bd; }
.city-districts .district-clay { fill: #d8b5a1; }
.city-districts .district-sand { fill: #dfcfad; }
.city-districts .district-rose { fill: #d6b8ae; }
.city-districts .district-olive { fill: #bdc5a4; }
.city-districts .district-blue { fill: #b9cdca; }
.city-river {
  fill: none;
  stroke: #91b8b6;
  stroke-width: 15;
  stroke-linecap: round;
  opacity: .72;
}
.city-routes path {
  fill: none;
  stroke: rgba(255,250,240,.9);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: none;
  opacity: .88;
}
.city-routes path:nth-child(2),
.city-routes path:nth-child(4) {
  stroke: #8d7d69;
  stroke-width: 1.35;
  opacity: .44;
}
.city-nodes circle {
  fill: #f8f1e6;
  stroke: #897662;
  stroke-width: 1.4;
}
.city-landmarks path {
  fill: rgba(248,243,233,.58);
  stroke: #6f6253;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-pin path {
  fill: #ae6d53;
  stroke: #fff8ea;
  stroke-width: 2;
}
.city-pin circle { fill: #fff8ea; }

/* Each ticket now has a visible tear-off section in the centre-right area. */
.ticket-perforation {
  position: absolute;
  z-index: 0;
  top: 12px;
  bottom: 12px;
  right: 28%;
  border-left: 1.5px dashed rgba(77,61,48,.28);
  pointer-events: none;
}
.ticket-perforation::before,
.ticket-perforation::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(77,61,48,.12);
}
.ticket-perforation::before { top: 18%; }
.ticket-perforation::after { bottom: 18%; }

/* Compact floating admission ticket for returning to the top. */
.back-to-top-ticket {
  position: fixed;
  z-index: 180;
  right: clamp(14px,2.4vw,30px);
  bottom: 28px;
  width: 54px;
  height: 76px;
  padding: 10px 7px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(77,63,49,.32);
  background: #eadfce;
  color: #594c40;
  box-shadow:
    inset 0 0 0 3px #f7f0e6,
    inset 0 0 0 4px rgba(88,70,54,.16),
    0 12px 28px rgba(51,40,31,.14);
  clip-path: polygon(0 0,100% 0,100% 36%,91% 40%,87% 50%,91% 60%,100% 64%,100% 100%,0 100%,0 64%,9% 60%,13% 50%,9% 40%,0 36%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease;
}
.back-to-top-ticket::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 1px dashed rgba(77,63,49,.26);
}
.back-to-top-ticket span,
.back-to-top-ticket small {
  position: relative;
  z-index: 1;
}
.back-to-top-ticket span {
  margin-bottom: 8px;
  font-family: "Noto Serif TC",serif;
  font-size: 20px;
  line-height: 1;
}
.back-to-top-ticket small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
}
.back-to-top-ticket.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-ticket:hover {
  background: #dfd0bc;
  transform: translateY(-3px);
}
.back-to-top-ticket:focus-visible {
  outline: 3px solid rgba(164,111,77,.35);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .hero h1 {
    max-width: 510px;
    font-size: clamp(32px,6.3vw,42px);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 31px; }
  .ticket-perforation { right: 26%; }
  .back-to-top-ticket {
    right: 12px;
    bottom: 18px;
    width: 48px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-ticket { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V4.4
   ========================================================================== */

/* The opening spread is a true two-column editorial composition. The collage
   fills the ticket column and is separated from the copy by one quiet rule. */
.hero {
  padding-top: 38px;
  padding-bottom: 42px;
  grid-template-columns: minmax(350px,430px) minmax(0,720px);
  gap: 0;
}
.hero-copy {
  min-height: 444px;
  padding-right: 44px;
}
.hero h1 {
  max-width: 430px;
  font-size: clamp(34px,3vw,43px);
  line-height: 1.3;
}
.hero-lead {
  max-width: 410px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  height: 444px;
  min-height: 0;
  border: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(99,77,54,.2);
  border-radius: 0;
  box-shadow: none;
}
.hero-paper-collage::after {
  border-radius: 0;
  box-shadow: inset 0 -42px 80px rgba(79,57,37,.07);
}

/* Shorter section joins preserve the editorial rhythm without oversized
   blank bands between each English label and the preceding content. */
.discovery-panel { padding-top: 48px; margin-bottom: 44px; }
.featured-block { padding-bottom: 46px; }
.split-feature { padding-bottom: 22px; }
.nearby-home {
  margin-bottom: 0;
  padding-top: 42px;
  padding-bottom: 42px;
}
.venue-section { padding-top: 42px; padding-bottom: 54px; }

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 0;
  }
  .hero-copy {
    min-height: 436px;
    padding-right: 32px;
  }
  .hero-visual,
  .hero-paper-collage { height: 436px; }
}

@media (max-width: 820px) {
  .hero {
    padding: 30px 18px 34px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-copy {
    min-height: 0;
    padding-right: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid rgba(99,77,54,.2);
  }
  .discovery-panel { padding-top: 38px; margin-bottom: 38px; }
  .featured-block { padding-bottom: 40px; }
  .split-feature { padding-bottom: 16px; }
  .nearby-home {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .venue-section { padding-top: 36px; padding-bottom: 48px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 24px; padding-bottom: 30px; }
  .hero h1 { font-size: 31px; }
  .hero-visual,
  .hero-paper-collage { min-height: 400px; }
  .discovery-panel { padding-top: 32px; margin-bottom: 34px; }
  .featured-block { padding-bottom: 36px; }
  .split-feature { padding-bottom: 12px; }
  .nearby-home {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .venue-section { padding-top: 32px; padding-bottom: 42px; }
}

/* ==========================================================================
   Exhibition Hub V4.5
   ========================================================================== */

/* Restore the more relaxed V4.3 proportions while allowing the collage to
   become the entire right half of the opening band, all the way to the edge. */
.hero {
  padding-top: 54px;
  padding-right: 0;
  padding-bottom: 60px;
  grid-template-columns: minmax(350px,430px) minmax(0,1fr);
}
.hero-copy {
  min-height: 470px;
  padding-right: 48px;
}
.hero-visual,
.hero-paper-collage {
  height: 470px;
  min-height: 470px;
}
.hero-ticket-stack {
  right: auto;
  width: min(760px,100%);
}
.hero-lead br { display: block; }

/* Date and status results are now a continuation of the same filter frame,
   placed immediately beneath its controls rather than after the categories. */
.filter-workbench {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.filter-workbench .quick-filters {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.filter-workbench .filter-results-section {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 18px;
  padding-left: 18px;
  border-right: 0;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(180,111,69,.06), transparent 58%),
    #fcfaf7;
}
.filter-workbench .filter-results-section.is-visible {
  margin-bottom: 0;
  padding-top: 27px;
  padding-bottom: 27px;
  border-top-color: var(--line);
  border-bottom-color: transparent;
}
.filter-workbench + .category-strip { margin-top: 18px; }

@media (max-width: 1120px) {
  .hero {
    padding-top: 50px;
    padding-right: 0;
    padding-bottom: 56px;
  }
  .hero-copy {
    min-height: 460px;
    padding-right: 36px;
  }
  .hero-visual,
  .hero-paper-collage {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 44px 18px 52px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    min-height: 0;
    padding-right: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 440px;
  }
  .hero-ticket-stack {
    right: 0;
    width: auto;
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .hero-visual,
  .hero-paper-collage { min-height: 420px; }
  .filter-workbench .filter-results-section {
    padding-right: 14px;
    padding-left: 14px;
  }
  .filter-workbench .filter-results-section.is-visible {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.7
   ========================================================================== */

/* A warmer Japanese milk-tea palette replaces the cool grey cast while
   retaining enough contrast for long-form browsing. */
:root {
  --bg: #f2e7d9;
  --surface: #fcf7ef;
  --surface-soft: #eadfd2;
  --line: #d8c8b7;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255,251,243,.58), transparent 30%),
    linear-gradient(rgba(111,82,55,.022) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.site-header { background: rgba(242,231,217,.94); }

/* Hero returns to the same 24px container inset as the category section.
   The ticket collage is a rounded rectangle, not a full-bleed right panel. */
.hero {
  min-height: 0;
  padding: 36px 24px 44px;
  grid-template-columns: minmax(350px,430px) minmax(0,1fr);
  gap: 36px;
  align-items: center;
}
.hero-copy {
  min-height: 0;
  padding: 18px 0;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  height: 438px;
  min-height: 438px;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(112,82,56,.18);
  border-radius: 24px;
  background:
    linear-gradient(rgba(100,75,51,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,75,51,.052) 1px, transparent 1px),
    linear-gradient(90deg, #faf5ed 0%, #ead8c4 57%, #d4b99f 100%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 20px 52px rgba(74,52,34,.12);
}
.hero-paper-collage::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(255,255,255,.62), transparent 27%),
    radial-gradient(circle at 90% 86%, rgba(119,77,45,.12), transparent 34%);
}
.hero-paper-collage::after {
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    inset 0 -34px 68px rgba(79,57,37,.055);
}
.hero-ticket-stage {
  top: 50%;
  right: 18px;
  width: calc(100% - 36px);
  height: 408px;
}

/* Nearby is deliberately browner than the page, but remains light enough to
   preserve the airy wood-and-paper character. */
.nearby-home {
  background: linear-gradient(132deg, #e7d8c8 0%, #dfcbb7 58%, #d8bea5 100%);
}
.nearby-mini-card {
  border-color: rgba(112,82,56,.18);
  background: #fbf4e9;
}

/* Explore page: all motion is removed for immediate filter response. Its
   category area now shares the same milk-tea family instead of sage green. */
.listing-heading-column {
  border-color: rgba(116,86,58,.16);
  background: #eadccd;
}
.listing-view-hero .listing-category-panel {
  border-color: rgba(116,86,58,.16);
  background: #eee1d3;
}
.sidebar-calendar-panel {
  border-color: rgba(116,86,58,.16);
  background: #efe1d1;
}
.location-filter-panel {
  border-color: rgba(116,86,58,.16);
  background: #e8d7c9;
}
.listing-content {
  border-color: rgba(116,86,58,.16);
  background: #eadfd2;
}
.listing-view .listing-category-option:hover {
  background: rgba(252,247,239,.72);
}
.listing-view .listing-category-option.active .category-icon {
  background: #e6cbb4;
}
.listing-view .exhibition-card {
  background: #fcf7ef;
}
.listing-view .listing-heading-column,
.listing-view .listing-category-panel,
.listing-view .sidebar-calendar-panel,
.listing-view .location-filter-panel,
.listing-view .listing-content,
.listing-view .exhibition-card,
.listing-view .listing-category-option,
.listing-view .status-filter-button,
.listing-view .region-accordion,
.listing-view .venue-filter-option {
  animation: none !important;
  transition: none !important;
  will-change: auto;
}
.listing-view .exhibition-card:hover {
  transform: none;
}

@media (max-width: 1120px) {
  .hero {
    min-height: 0;
    padding: 34px 24px 42px;
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 28px;
  }
  .hero-copy {
    min-height: 0;
    padding: 14px 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: 426px;
    min-height: 426px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 398px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding: 32px 18px 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy {
    min-height: 0;
    padding: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 420px;
    margin: 0;
    border: 1px solid rgba(112,82,56,.18);
    border-radius: 22px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 394px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 28px 16px 36px; }
  .hero-visual,
  .hero-paper-collage {
    min-height: 408px;
    border-radius: 18px;
  }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 382px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.8
   ========================================================================== */

/* Reduce saturation and brightness contrast for long, comfortable browsing.
   The page remains warm, but reads as pale milk-tea paper rather than brown. */
:root {
  --bg: #f7f1e9;
  --surface: #fffaf4;
  --surface-soft: #f1e8de;
  --line: #ded2c5;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255,253,249,.72), transparent 31%),
    linear-gradient(rgba(107,80,55,.014) 1px, transparent 1px);
  background-size: auto, 30px 30px;
}
.site-header { background: rgba(247,241,233,.95); }

/* Match the Hero to the same centred 1200px rhythm used by the sections
   below. Both sides regain generous breathing room, while the ticket panel
   and ticket stack are deliberately shorter. */
.hero {
  width: 100%;
  max-width: var(--max);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 36px 24px 44px;
  grid-template-columns: minmax(340px,400px) minmax(0,680px);
  justify-content: space-between;
  gap: 48px;
}
.hero-copy {
  min-height: 0;
  padding: 18px 0 18px 12px;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  max-width: 680px;
  height: 432px;
  min-height: 432px;
  justify-self: end;
  background:
    linear-gradient(rgba(100,75,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,75,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, #fdfaf5 0%, #f4ebe1 58%, #e8d7c7 100%);
  background-size: 30px 30px, 30px 30px, auto;
  border-color: rgba(112,82,56,.13);
  box-shadow: 0 18px 46px rgba(74,52,34,.075);
}
.hero-paper-collage::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(255,255,255,.7), transparent 28%),
    radial-gradient(circle at 90% 86%, rgba(119,77,45,.07), transparent 35%);
}
.hero-ticket-stage {
  right: 22px;
  width: min(590px,calc(100% - 44px));
  height: 400px;
}

/* Nearby remains distinct from the page but no longer forms a saturated
   brown band. */
.nearby-home {
  background: linear-gradient(132deg, #f5ede4 0%, #eee2d6 58%, #e8d8c8 100%);
}
.nearby-mini-card {
  border-color: rgba(112,82,56,.13);
  background: #fffaf4;
}

/* Five related but visibly different pale papers for the Explore page. */
.listing-heading-column {
  border-color: rgba(116,86,58,.12);
  background: #f2e7db;
}
.listing-view-hero .listing-category-panel {
  border-color: rgba(116,86,58,.12);
  background: #f7efe3;
}
.sidebar-calendar-panel {
  border-color: rgba(116,86,58,.12);
  background: #f3e6dc;
}
.location-filter-panel {
  border-color: rgba(116,86,58,.12);
  background: #efe4df;
}
.listing-content {
  border-color: rgba(116,86,58,.12);
  background: #f4ede4;
}
.listing-content .listing-toolbar select,
.listing-content .filter-drawer-button,
.listing-view .exhibition-card {
  background: #fffaf4;
}
.listing-view .listing-category-option:hover {
  background: rgba(255,250,244,.76);
}
.listing-view .listing-category-option.active .category-icon {
  background: #ecd9c7;
}

@media (max-width: 1120px) {
  .hero {
    width: 100%;
    max-width: var(--max);
    padding: 34px 24px 42px;
    grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    justify-content: normal;
    gap: 32px;
  }
  .hero-copy { padding: 14px 0 14px 8px; }
  .hero-visual,
  .hero-paper-collage {
    max-width: none;
    height: 422px;
    min-height: 422px;
  }
  .hero-ticket-stage {
    right: 18px;
    width: min(570px,calc(100% - 36px));
    height: 394px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 32px 18px 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy { padding: 0 6px; }
  .hero-visual,
  .hero-paper-collage {
    max-width: none;
    height: auto;
    min-height: 414px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 388px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 28px 16px 36px; }
  .hero-copy { padding-right: 4px; padding-left: 4px; }
  .hero-visual,
  .hero-paper-collage { min-height: 400px; }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 376px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.9
   ========================================================================== */

/* Extend only the Hero paper band to both viewport edges. The calculated
   insets preserve the exact V4.8 positions of the copy and ticket collage. */
.hero {
  max-width: none;
  padding-right: max(24px,calc((100vw - var(--max))/2 + 24px));
  padding-left: max(24px,calc((100vw - var(--max))/2 + 24px));
  background-color: #f5ecdf;
  background-image:
    linear-gradient(rgba(116,87,59,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,87,59,.03) 1px, transparent 1px),
    linear-gradient(90deg, #fbf6ef 0%, #f4eadd 48%, #ead9c8 100%);
  background-size: 30px 30px, 30px 30px, auto;
}
.hero-visual,
.hero-paper-collage {
  background:
    linear-gradient(rgba(105,77,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,77,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, #fbf6ee 0%, #f0e3d5 58%, #dfc6ae 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

/* The city drawing reaches into the former blank corner, with fewer districts
   and routes so it reads like an editorial illustration rather than a map UI. */
.paper-city-map {
  left: -3%;
  top: 1%;
  width: 64%;
  border-color: rgba(98,77,56,.17);
  background: #f4ecdf;
  transform: rotate(-1.1deg);
}
.city-contours path { opacity: .21; }
.city-districts path {
  stroke: rgba(101,86,70,.16);
  opacity: .67;
}
.city-routes path {
  stroke-width: 2.7;
  opacity: .78;
}
.city-nodes circle {
  r: 3px;
  stroke-width: 1.15;
}
.city-landmarks path {
  stroke-width: 1.6;
  opacity: .88;
}

/* A quiet clay-beige action remains identifiable against the milk-tea paper. */
.hero-actions .primary-link {
  border-color: rgba(126,85,56,.22);
  background: #cfb298;
  color: #42352b;
  box-shadow: 0 9px 22px rgba(84,57,37,.1);
}
.hero-actions .primary-link:hover {
  border-color: rgba(118,76,50,.32);
  background: #c39e80;
  color: #352920;
}

/* Lighten the supplied raster wordmark without softening its fine outlines. */
.brand-logo-frame img {
  filter: brightness(1.08) saturate(.72);
  opacity: .96;
}

/* Filter results continue as clean exhibition paper rather than a brown band. */
.filter-workbench .filter-results-section {
  background: #fffaf4;
}

/* Keep each venue cell still; only its photograph grows under the fixed crop. */
.venue-tile {
  transform: none !important;
  transition: box-shadow .52s ease, border-color .4s ease;
}
.venue-section.is-in-view .venue-tile:hover {
  transform: none !important;
}
.venue-section.is-in-view .venue-tile:hover img {
  transform: scale(1.12);
}

@media (max-width: 1120px) {
  .hero {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }
  .paper-city-map {
    left: -5%;
    top: 0;
    width: 72%;
  }

  /* On narrow screens the two date columns stack at the true centre. Their
     reveal becomes opacity-only, so no column can sit outside the viewport. */
  .split-feature {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: clip;
  }
  .split-feature .section-heading,
  .time-grid,
  .time-column {
    width: 100%;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }
  [data-split-reveal] > .time-column,
  [data-split-reveal] > .time-column:first-child,
  [data-split-reveal] > .time-column:last-child,
  [data-split-reveal].is-in-view > .time-column {
    transform: none !important;
  }

  /* Touch screens use an explicit first-tap preview. A second tap follows the
     same ticket link, matching desktop hover without accidental navigation. */
  .hero-ticket-card.is-touch-preview {
    z-index: 12;
    opacity: 1;
    box-shadow: 0 28px 62px rgba(20,14,9,.28);
  }
  .hero-ticket-slot-1.is-touch-preview {
    transform: translateY(-7px) !important;
  }
  .hero-ticket-slot-2.is-touch-preview {
    transform: rotate(-.4deg) translate(-7px,-5px) !important;
  }
  .hero-ticket-slot-3.is-touch-preview {
    transform: rotate(.5deg) translate(-10px,-5px) !important;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* ==========================================================================
   Exhibition Hub V5.0
   ========================================================================== */

/* Keep the confirmed V4.9 geometry, but move the shuffle control to the true
   upper-left corner of the collage instead of letting the narrower ticket
   stage make it appear centred. */
.hero-ticket-stage .hero-shuffle-button {
  top: -4px;
  left: -46px;
}

/* A paler oat-milk action remains readable without becoming the darkest
   object in the opening copy column. */
.hero-actions .primary-link {
  border-color: rgba(120,91,65,.18);
  background: #eadfd2;
  color: #51483f;
  box-shadow: 0 8px 20px rgba(78,58,40,.07);
}
.hero-actions .primary-link:hover {
  border-color: rgba(112,82,57,.26);
  background: #dfcfbd;
  color: #403830;
}

/* Neutral milk-tea replaces the slightly rosy cast. The grid is one step
   darker than V4.9, remaining visible only as a quiet paper texture. */
.hero {
  background-color: #f5eee3;
  background-image:
    linear-gradient(rgba(103,80,57,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,80,57,.055) 1px, transparent 1px),
    linear-gradient(90deg, #fbf7f1 0%, #f3ebdd 50%, #e8dcc7 100%);
  background-size: 30px 30px, 30px 30px, auto;
}
.hero-visual,
.hero-paper-collage {
  background:
    linear-gradient(rgba(98,75,52,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,75,52,.05) 1px, transparent 1px),
    linear-gradient(90deg, #fbf7f0 0%, #f1e7d6 58%, #e2d0b5 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

/* The selected-date/status continuation uses a deeper milk-tea sheet. Cards
   retain a lighter ivory top edge so the rail still has visual hierarchy. */
.filter-workbench .filter-results-section {
  background: linear-gradient(105deg, #f5ece1 0%, #efe2d3 56%, #e9d8c5 100%);
}
.filter-workbench .filter-results-section .exhibition-card {
  border-color: rgba(116,86,58,.14);
  background: linear-gradient(145deg, #fffaf4 0%, #f5e9dc 100%);
  box-shadow: 0 12px 28px rgba(91,65,43,.075);
}

@media (max-width: 1120px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -5px;
    left: -8px;
  }
}

@media (max-width: 820px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -7px;
    left: -8px;
  }
}

@media (max-width: 600px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -7px;
    left: -6px;
    max-width: calc(100% - 4px);
  }
}
