@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,500;0,6..96,600;1,6..96,500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #221a16;
  --muted: #594a41;
  --paper: #f1e9dc;
  --white: #fff9ef;
  --yellow: #dfb979;
  --lavender: #e4d5c2;
  --line: #bdae9b;
  --accent: #74402d;
  --card-outline: #a28c77;
  --display: 'Bodoni Moda', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-underline-offset: .18em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #8b4a31; outline-offset: 3px; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--yellow); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; left: 16px; top: 6px; z-index: 2; background: white; padding: 8px 14px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.mast { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { text-decoration: none; font: 600 1.45rem var(--display); letter-spacing: -.055em; white-space: nowrap; }
.mast nav { display: flex; gap: clamp(12px, 3vw, 36px); }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.mast nav a:hover { text-decoration: underline; }
.saved-toggle, .chip { min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; padding: 6px 15px; font-size: .875rem; font-weight: 700; }
.saved-toggle { white-space: nowrap; }
.saved-toggle:hover, .chip:hover { background: var(--lavender); }
.saved-toggle[aria-pressed=true], .chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
#saved-count { margin-left: 3px; font-variant-numeric: tabular-nums; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; background: #211713; color: var(--white); }
.hero-copy { padding: clamp(42px,6.3vw,94px) 34px 40px max(32px, calc((100vw - 1200px)/2)); min-width: 0; }
.location { color: var(--yellow); margin: 0 0 18px; font-weight: 600; font-size: .86rem; letter-spacing: .1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.065em; }
h1 { color: #f5dfbc; font-size: clamp(4.25rem,9vw,9rem); line-height: .8; }
h1 em { color: var(--yellow); }
h2 { font-size: clamp(2.65rem,5.7vw,5.2rem); }
h3 { font-size: 1.34rem; font-weight: 700; line-height: 1.18; letter-spacing: -.03em; }
.intro { max-width: 35ch; margin: 26px 0 20px; }
.hero-art { position: relative; margin: 0; min-height: 100%; background: #442c20; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 17%; }
#hero-search { display: flex; gap: 6px; padding: 5px; background: white; border-radius: 2px; max-width: 435px; }
#hero-search:focus-within, .search:focus-within { box-shadow: 0 0 0 3px #8b4a31; }
#quick-search { padding: 0 9px; border: 0; background: transparent; color: var(--ink); flex: 1; min-width: 0; }
#hero-search button { background: var(--yellow); border: 0; border-radius: 2px; min-height: 44px; padding-inline: 14px; color: var(--ink); font-weight: 700; white-space: nowrap; }
#hero-search button:hover { background: var(--lavender); }
.weekend-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.weekend-link:hover { color: var(--yellow); }

.strip { background: #743923; color: #fff4e5; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip a { text-align: center; text-decoration: none; padding: 14px 5px; font-size: .9rem; font-weight: 700; border-inline-start: 1px solid #a87b52; }
.strip a:last-child { border-inline-end: 1px solid #a87b52; }
.strip a:hover { background: #592a1c; text-decoration: underline; }
.section { padding-block: clamp(38px, 6vw, 72px); scroll-margin-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.event-controls, .filters, .chips { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.meta, .fine { font-size: .9rem; color: var(--muted); }
.meta { margin: 0 0 12px; font-weight: 700; }
.event-grid, .place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.weekend { background: #e4d4c0; }
.event { padding: 18px; background: white; border: 1px solid var(--card-outline); border-radius: 2px; }
.event-body { display: flex; align-items: start; gap: 13px; }
.date { flex: 0 0 50px; text-align: center; padding: 5px; background: var(--yellow); color: var(--ink); border-radius: 2px; font-size: .75rem; font-weight: 700; }
.date strong { display: block; font: 1.55rem var(--display); }
.event p, .card p { color: var(--muted); margin: 8px 0; font-size: .92rem; }
.event a, .card a, .itineraries a { font-size: .9rem; font-weight: 700; color: var(--accent); }
.event a:hover, .card a:hover, .itineraries a:hover { color: var(--ink); }

.directory { background: #d8c4ae; }
.directory .card { border: 1px solid var(--card-outline); border-top: 3px solid var(--accent); }
.search { display: flex; flex: 1 1 260px; max-width: 420px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 2px; background: white; }
.search input { width: 100%; min-height: 44px; border: 0; background: transparent; }
.area select { min-height: 46px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px; background: white; }
.check { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.chips { margin-top: 14px; }
.card { position: relative; display: flex; flex-direction: column; padding: 18px; min-height: 205px; background: white; border-radius: 2px; border-top: 3px solid var(--accent); }
.card h3 { margin: 9px 43px 0 0; }
.card .tag { margin: 0 45px 0 0; font-size: .82rem; font-weight: 700; color: var(--accent); }
.card .links { margin-top: auto; display: flex; gap: 16px; }
.card .links a { display: inline-flex; align-items: center; min-height: 44px; }
.heart { position: absolute; top: 11px; right: 11px; width: 44px; height: 44px; color: var(--accent); background: white; border: 1px solid var(--line); border-radius: 50%; font-size: 1.45rem; line-height: 1; }
.heart:hover, .heart[aria-pressed=true] { background: var(--lavender); }
.empty { grid-column: 1/-1; padding: 18px; background: white; border: 1px dashed var(--line); border-radius: 2px; }
.empty p { margin: 0; }
.empty button { margin-top: 10px; }
.visit-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; gap: 22px; }
.city-art { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.itineraries { display: grid; gap: 16px; }
.itineraries article { padding: 22px; border-top: 4px solid var(--accent); background: white; border-radius: 2px; }
.eyebrow { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--accent); }
footer { background: var(--ink); color: white; padding-block: 20px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot p, .foot>a:last-child { font-size: .875rem; }

@media (max-width: 920px) {
  .event-grid, .place-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .mast { flex-wrap: wrap; padding-top: 8px; gap: 0 12px; }
  .mast nav { order: 3; width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 16px 14px; }
  .hero-art { min-height: 320px; }
  .visit-layout { grid-template-columns: 1fr; }
  .city-art { min-height: 0; height: auto; aspect-ratio: 3/2; }
  .strip-inner { width: 100%; grid-template-columns: repeat(2,1fr); }
  .strip a { border-bottom: 1px solid #a87b52; padding-block: 11px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .event-grid, .place-grid, .itineraries { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .foot p { width: 100%; order: 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.route-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: clamp(22px, 4vw, 56px);
  margin-bottom: 22px;
  border-top: 3px solid var(--yellow);
}
.route-feature .eyebrow { color: var(--yellow); }
.route-intro h3 {
  font: 500 clamp(2.45rem, 5vw, 5rem)/.98 var(--display);
  letter-spacing: -.055em;
}
.route-intro h3 em { color: var(--yellow); }
.route-intro > p:last-child { max-width: 38ch; margin-bottom: 0; }
.route-stops { list-style: none; margin: 0; padding: 0; counter-reset: route; }
.route-stops li {
  counter-increment: route;
  border-top: 1px solid #79634c;
}
.route-stops li:last-child { border-bottom: 1px solid #79634c; }
.route-stops a {
  display: grid;
  grid-template-columns: 1.65rem 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 3px;
  min-height: 64px;
  font-weight: 700;
  text-decoration: none;
}
.route-stops a::before {
  content: counter(route, decimal-leading-zero);
  color: var(--yellow);
  font-size: .8rem;
}
.route-stops small { display: block; color: #d9c5af; font-weight: 500; }
.route-stops a:hover { color: var(--yellow); }
.route-stops a:focus-visible { outline-color: var(--yellow); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .route-stops a > span:last-child { transition: transform 160ms ease; }
  .route-stops a:hover > span:last-child { transform: translate(2px,-2px); }
}
@media (max-width: 670px) {
  .route-feature { grid-template-columns: 1fr; }
}

.vibe-bar, .planner-header, .planner-links, .trip-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.vibe-bar { margin-bottom: 16px; }
.vibe-bar label, .planner-header label { font-weight: 700; }
.vibe-bar select, .planner-header input {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}
.vibe-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 10px 0 5px; list-style: none; }
.vibe-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: #f4e9d8;
  color: #4d4138;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
}
.vibe-stamp svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.vibe-stamp.vibe-rust { color: #783922; background: #f5e3d9; }
.vibe-stamp.vibe-olive { color: #405440; background: #e9ecde; }
.vibe-stamp.vibe-brass { color: #6b471d; background: #f4e6ca; }
.vibe-stamp.vibe-ink { color: #423431; background: #ebe2df; }
.trip-add {
  align-self: flex-start;
  padding: 5px 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: .84rem;
  font-weight: 700;
}
.trip-add:hover, .trip-add[aria-pressed=true] { background: var(--lavender); }
.planner { background: var(--white); border: 1px solid var(--line); padding: clamp(16px, 4vw, 30px); margin-bottom: 22px; }
.planner-header { justify-content: space-between; align-items: start; }
.planner-header .fine { margin: 5px 0 0; }
.planner-header label { display: flex; align-items: center; gap: 8px; }
#trip-warning { color: var(--accent); font-weight: 700; }
#trip-warning:empty, #trip-stops:empty { display: none; }
#trip-stops { padding-inline-start: 1.45rem; }
#trip-stops li { padding: 12px 0 12px 5px; border-bottom: 1px solid var(--line); }
#trip-stops li > div { display: inline-block; vertical-align: middle; }
#trip-stops li .trip-controls { display: inline-flex; margin-left: 12px; gap: 5px; }
#trip-stops a, .planner-links a { font-weight: 700; color: var(--accent); }
#trip-stops .fine { margin: 0; }
.trip-controls button { min-height: 44px; min-width: 44px; background: transparent; border: 1px solid var(--line); border-radius: 2px; }
.trip-controls button:enabled:hover { background: var(--lavender); }
.trip-controls button:disabled { opacity: .48; cursor: default; }
.planner-links { gap: 16px; }
#add-route { margin-top: 16px; }
.route-feature button:focus-visible { outline-color: var(--yellow); }
@media (max-width: 670px) {
  #trip-stops li .trip-controls { display: flex; margin: 6px 0 0; }
}

.submission-form { display: grid; max-width: 660px; gap: 14px; background: var(--white); border: 1px solid var(--line); padding: clamp(16px, 4vw, 30px); }
.submission-fields { display: grid; gap: 14px; }
.submission-fields[hidden] { display: none; }
.submission-field { display: grid; gap: 4px; }
.submission-field small { line-height: 1.5; }
.submission-form label { display: grid; gap: 4px; font-weight: 700; }
.submission-form .ownership-check { display: flex; align-items: center; }
.submission-form input:not([type=checkbox]), .submission-form select, .submission-form textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px; font: inherit; font-weight: 400;
}
.submission-form button { justify-self: start; }
.submission-form p:empty { display: none; }
.editor-title { color: var(--ink); font-size: clamp(3rem, 8vw, 6rem); }
#review-items .trip-controls { margin-top: 12px; }

.listing-photo { margin: 0 0 13px; }
.photo-window { overflow: hidden; aspect-ratio: 16 / 9; background: var(--lavender); }
.photo-window img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.listing-photo figcaption { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.event .listing-photo a, .card .listing-photo a { color: inherit; font-size: inherit; font-weight: 600; }
.card:has(.listing-photo, .listing-cover) .heart { top: 24px; right: 24px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .photo-window { animation: photo-enter linear both; animation-timeline: view(); animation-range: entry 5% entry 95%; }
    @keyframes photo-enter {
      from { opacity: .75; transform: translateY(9px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo-window img { transition: transform 380ms cubic-bezier(.2,.6,.3,1); }
  .listing-photo:hover img { transform: scale(1.055); }
}

.listing-cover {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 145px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 16px 18px;
  margin-bottom: 13px;
  background: #30201a;
  color: #fff2dc;
  border-top: 2px solid var(--yellow);
}
.listing-cover--place {
  background: var(--accent);
  padding-right: 52px;
}
.listing-cover::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #fff2dc42;
  pointer-events: none;
}
.cover-copy { position: relative; display: grid; gap: 6px; }
.cover-detail { font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.cover-name {
  font: 600 clamp(1.45rem, 2.75vw, 2.35rem)/1.04 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cover-copy {
      animation: cover-enter ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    @keyframes cover-enter {
      from { opacity: .72; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

.listing-photo--flyer .photo-window {
  aspect-ratio: 5 / 4;
  background: var(--ink);
}
.listing-photo--flyer .photo-window img { object-fit: contain; object-position: center; }

.itinerary-shortcut:not([hidden]) {
  position: fixed;
  z-index: 3;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 3px 12px #221a1645;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.itinerary-shortcut span { color: var(--yellow); }
.itinerary-shortcut span::before { content: '·'; margin-right: 8px; }
.itinerary-shortcut:hover { background: #49332a; }
html:has(.itinerary-shortcut:not([hidden])) { scroll-padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
body:has(.itinerary-shortcut:not([hidden])) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
#planner { scroll-margin-top: 16px; }
