:root {
  color-scheme: light;
  --cream: #f6efe2;
  --paper: #fffaf1;
  --card: #fffdf8;
  --espresso: #2b1710;
  --charcoal: #101820;
  --muted: #6e6156;
  --line: rgba(43, 23, 16, 0.14);
  --gold: #c79a45;
  --teal: #2f7c73;
  --sage: #dfe9df;
  --foam: #f0dfc5;
  --danger: #a34a38;
  --shadow: 0 20px 60px rgba(43, 23, 16, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--espresso);
  background:
    linear-gradient(180deg, rgba(199, 154, 69, 0.16), transparent 390px),
    var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 52px);
  color: var(--paper);
  background: rgba(16, 24, 32, 0.94);
  border-bottom: 1px solid rgba(255, 250, 241, 0.13);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.footer nav {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 250, 241, 0.12);
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 250, 241, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.nav-links {
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.07);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.84);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--paper);
  background: rgba(255, 250, 241, 0.12);
}

.hero {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 76px) clamp(16px, 4vw, 52px) clamp(34px, 6vw, 86px);
}

.hero-copy {
  min-height: 560px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.parent-brand,
.eyebrow {
  width: fit-content;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1,
.detail-copy h1 {
  max-width: 880px;
  font-size: clamp(46px, 7.4vw, 100px);
  line-height: 0.94;
}

.hero-copy p:not(.parent-brand),
.page-heading p,
.section-heading p,
.submit-strip p,
.detail-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.58;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
}

.button.primary {
  color: var(--charcoal);
  background: var(--gold);
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 241, 0.24);
  background: var(--charcoal);
}

.button.ghost {
  color: var(--espresso);
  border-color: var(--line);
  background: var(--card);
}

.button.small {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
}

.hero-card {
  min-height: 560px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card-image,
.photo-strip,
.detail-photo {
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.08), rgba(16, 24, 32, 0.5)),
    url("/assets/findmyquest-hero.png") center / cover;
}

.hero-card > div:last-child {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.hero-card h2 {
  font-size: 31px;
  line-height: 1.1;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section,
.page-shell,
.detail-page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 84px) clamp(16px, 4vw, 52px);
}

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

.section-heading,
.page-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2,
.submit-strip h2,
.quick-panel h2,
.quick-results h2,
.detail-card h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
}

.row-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.text-link,
.venue-card a:not(.button),
.mini-result a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--teal);
  font-weight: 950;
}

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

.quest-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.quest-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--espresso);
  background: var(--foam);
}

.quest-card h3,
.venue-card h3 {
  font-size: 22px;
  line-height: 1.12;
}

.quest-card p,
.venue-card p,
.detail-card p {
  color: var(--muted);
  line-height: 1.52;
}

.quest-card > span:last-child {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 950;
}

.quick-panel,
.submit-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(43, 23, 16, 0.94), rgba(16, 24, 32, 0.94)),
    var(--espresso);
  box-shadow: var(--shadow);
}

.quick-panel .eyebrow,
.submit-strip .eyebrow {
  color: var(--gold);
}

.quick-panel p,
.submit-strip p {
  color: rgba(255, 250, 241, 0.76);
  margin-top: 10px;
}

.mini-result {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.08);
}

.mini-result strong {
  color: var(--paper);
  font-size: 20px;
}

.mini-result span {
  color: rgba(255, 250, 241, 0.76);
  line-height: 1.5;
}

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

.venue-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.photo-strip {
  min-height: 142px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
}

.photo-strip span,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--espresso);
  background: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.badge.gold {
  background: var(--gold);
}

.venue-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.venue-topline,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.venue-topline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.venue-topline .open {
  color: var(--teal);
}

.venue-topline .closed {
  color: var(--danger);
}

.badge-row,
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-notes {
  display: grid;
  gap: 8px;
}

.card-notes div {
  display: grid;
  gap: 2px;
}

.card-notes dt,
.field span,
.fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-notes dd {
  color: var(--espresso);
  font-size: 14px;
  line-height: 1.42;
}

.page-heading.narrow {
  max-width: 860px;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.55fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--espresso);
  background: var(--paper);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 124, 115, 0.14);
}

.toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 900;
  white-space: nowrap;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.chip-group {
  grid-column: 1 / -1;
}

.chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--espresso);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.chip.active {
  color: var(--paper);
  border-color: var(--teal);
  background: var(--teal);
}

.chip .icon {
  width: 14px;
  height: 14px;
}

.results-panel {
  display: grid;
  gap: 14px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-head strong {
  font-size: 18px;
}

.view-toggle,
.segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.view-toggle button,
.segmented button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.view-toggle button.active,
.segmented button.active {
  color: var(--paper);
  background: var(--espresso);
}

.map-placeholder {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
}

.map-grid {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 124, 115, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(47, 124, 115, 0.12) 1px, transparent 1px),
    var(--sage);
  background-size: 58px 58px;
}

.map-pin {
  position: absolute;
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.map-pin span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--espresso);
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.map-pin strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-1 { left: 12%; top: 14%; }
.pin-2 { left: 52%; top: 18%; }
.pin-3 { left: 30%; top: 34%; }
.pin-4 { left: 68%; top: 42%; }
.pin-5 { left: 16%; top: 54%; }
.pin-6 { left: 47%; top: 62%; }
.pin-7 { left: 74%; top: 70%; }
.pin-8 { left: 28%; top: 78%; }
.pin-9 { left: 57%; top: 84%; }

.map-note,
.empty-state,
.detail-card,
.quick-form,
.quick-results,
.submit-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.map-note,
.empty-state {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.map-note p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.quick-flow {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.quick-form,
.quick-results,
.submit-form,
.detail-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.quick-form h2 {
  font-size: 18px;
}

.segmented {
  flex-wrap: wrap;
}

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

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

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

.score {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.score strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
}

.score span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score i {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  width: var(--score);
  background: var(--teal);
}

.backup-list {
  display: grid;
  gap: 10px;
}

.backup-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.backup-list span {
  color: var(--muted);
  line-height: 1.45;
}

.detail-page {
  display: grid;
  gap: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 540px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.detail-photo {
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.detail-photo span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--espresso);
  background: var(--paper);
  font-weight: 900;
}

.detail-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 64px);
}

.detail-copy p {
  color: rgba(255, 250, 241, 0.78);
}

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

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

.fact {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fact strong {
  color: var(--espresso);
  line-height: 1.42;
}

.review-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper);
}

.submit-form {
  max-width: 860px;
}

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

.form-status {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--foam);
}

.form-status span {
  color: var(--muted);
}

.about-page .detail-card p {
  font-size: 17px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 52px);
  color: var(--paper);
  background: var(--charcoal);
}

.footer nav {
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 850;
}

.footer a {
  color: rgba(255, 250, 241, 0.84);
}

@media (max-width: 1120px) {
  .hero,
  .quick-panel,
  .submit-strip,
  .map-placeholder,
  .quick-flow,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card {
    min-height: 0;
  }

  .hero-card-image,
  .detail-photo {
    min-height: 280px;
  }

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

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

@media (max-width: 740px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero,
  .section,
  .page-shell,
  .detail-page {
    padding-inline: 14px;
  }

  .hero h1,
  .page-heading h1,
  .detail-copy h1 {
    font-size: 43px;
  }

  .hero-actions,
  .card-actions,
  .detail-actions,
  .review-placeholder,
  .footer,
  .row-heading {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .quest-grid,
  .venue-row,
  .venue-grid,
  .filter-bar,
  .segmented.multi,
  .score-grid,
  .score-grid.wide,
  .fact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    top: 67px;
    max-height: calc(100vh - 80px);
    overflow: auto;
  }

  .photo-strip {
    min-height: 128px;
  }

  .map-grid,
  .map-placeholder {
    min-height: 500px;
  }

  .map-pin {
    max-width: 145px;
  }
}
