:root {
  color-scheme: light;
  --forest: #153c30;
  --deep: #102e25;
  --moss: #326449;
  --ink: #192f27;
  --muted: #52615a;
  --sand: #f8f6ed;
  --paper: #fffef9;
  --line: #d6d9c9;
  --gold: #f0cf74;
  --gutter: clamp(1rem, 4vw, 3.25rem);
  font-family: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--sand); color: var(--ink); line-height: 1.55; }
h1, h2, h3, h4, p, figure, fieldset, legend { margin: 0; }
fieldset, legend { min-width: 0; padding: 0; border: 0; }
img { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: .085em; text-underline-offset: .19em; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b17911; outline-offset: 4px; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; z-index: 2; top: .5rem; left: var(--gutter); padding: .6rem 1rem; transform: translateY(-180%); background: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.wrap, .header-inner, .hero, .planner-layout { width: min(calc(100% - var(--gutter) * 2), 76rem); margin-inline: auto; }
.wrap :is(.header-inner, .hero, .planner-layout) { width: 100%; }
.masthead { color: var(--forest); background: var(--sand); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: .07em; align-items: baseline; color: var(--forest); font-size: 2.05rem; line-height: 1; font-weight: 900; letter-spacing: -.076em; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.brand-dot { display: inline-block; background: #bb881e; width: .2em; height: .2em; border-radius: 50%; font-size: inherit; color: transparent; }
.home-link, .site-footer a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .89rem; font-weight: 700; text-decoration: none; }
.home-link:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  margin-block: clamp(1rem, 3.3vw, 2.6rem) clamp(1.75rem, 4vw, 3.25rem);
  overflow: hidden; border-radius: 1.25rem; background: var(--forest); color: var(--paper);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem; padding: clamp(1.65rem, 4.3vw, 4rem); }
.eyebrow { color: var(--moss); font-size: .72rem; line-height: 1.4; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--gold); }
.hero .eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; }
.hero h1 { max-width: 10ch; font-size: clamp(2.75rem, 5.4vw, 5.25rem); font-weight: 660; letter-spacing: -.07em; line-height: .99; text-wrap: balance; }
.hero h1 em, .hero h1 strong, .hero h1 span { color: var(--gold); }
.hero-second-line { display: block; }
.hero h1 em { font-weight: inherit; font-style: normal; }
.hero-lede { max-width: 36ch; color: #e2e9dc; font-size: clamp(.98rem, 1.45vw, 1.13rem); }
.hero-photo { position: relative; min-height: 19rem; isolation: isolate; background: #345d47; }
.hero-photo > img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 49%; }
.hero-photo figcaption {
  position: absolute; bottom: 0; right: 0; left: 0; padding: 2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(12, 26, 19, .87)); color: #fff; font-size: .74rem; line-height: 1.5; text-align: right;
}
.hero-photo a, .card-photo a { color: inherit; }

.planner-layout { display: grid; grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 3.5vw, 3.3rem); align-items: start; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.planner-form { padding: clamp(1.2rem, 2.3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 1rem; background: var(--paper); }
.planner-form h2, .results-header h2 { color: var(--forest); font-size: clamp(1.75rem, 2.7vw, 2.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.planner-form .eyebrow, .results-header .eyebrow { margin-bottom: .55rem; }
.form-intro, .results-header > p:not(.eyebrow), .empty-state p, .alt-card p { margin-top: .6rem; color: var(--muted); }
.form-grid { display: grid; gap: 1.25rem; }
.planner-form form, .planner-form .form-grid, .planner-form > .field { margin-top: 1.25rem; }
.planner-form form .form-grid:first-child { margin-top: 0; }
.field, .date-grid > label { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.field > label, .field > legend, .date-grid > label, .field-label { color: var(--forest); font-size: .91rem; font-weight: 750; }
fieldset.field > legend { margin-bottom: .5rem; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .7rem; }
.date-grid .field { grid-template-columns: minmax(0, 1fr); }
input[type="date"], input[type="search"], select {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: .6rem .7rem;
  border: 1px solid #a8b5a7; border-radius: .5rem; background-color: #fff; color: var(--ink); font-size: 1rem; font-weight: 500;
}
input[type="date"] { max-width: 100%; font-variant-numeric: tabular-nums; }
.interest-chips { display: flex; flex-wrap: wrap; gap: .43rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.chip > span { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .4rem .74rem; border: 1px solid #bcc7b7; border-radius: 2rem; background-color: var(--paper); color: var(--muted); font-size: .88rem; font-weight: 650; }
.chip > input:checked + span { border-color: var(--forest); background-color: var(--forest); color: #fff; }
.chip > input:checked + span::before { content: ""; width: .63em; height: .36em; margin-top: -.16em; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); transform: rotate(-45deg); }
.chip > input:focus-visible + span { outline: 3px solid #b17911; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; margin-top: 1.4rem; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 750; text-decoration: none; line-height: 1.3; }
.primary { width: 100%; min-height: 49px; background: var(--forest); color: #fff; }
.primary:hover { background: #22563e; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { color: var(--forest); background: #fbfcf5; border-color: #a9b5a7; font-size: .89rem; }
.secondary:hover { background: #e7eddf; }
.save-field { display: flex; align-items: center; gap: .6rem; color: var(--forest); font-weight: 650; font-size: .91rem; cursor: pointer; min-height: 44px; }
.save-field input { accent-color: var(--forest); width: 1.12rem; height: 1.12rem; margin: 0; flex: none; }
.hint, .save-status, .calendar-note { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.error { color: #8d2f20; font-weight: 650; }

.plan-output { min-width: 0; scroll-margin-block-start: 1.2rem; }
.results-header { padding-block: .4rem 1.15rem; border-bottom: 1px solid #b7c2ac; }
.result-group { margin-top: 1.5rem; }
.result-group > h3 { color: var(--forest); font-size: 1.26rem; line-height: 1.22; margin-bottom: .75rem; font-weight: 750; letter-spacing: -.03em; }
.result-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); }
.result-card + .result-card { margin-top: .75rem; }
.card-photo { position: relative; aspect-ratio: 2.8; overflow: hidden; background: #e3e7d8; }
.card-photo img, img.card-photo { width: 100%; height: 100%; object-fit: cover; }
.card-photo figcaption { position: absolute; right: 0; bottom: 0; padding: .25rem .45rem; color: #fff; background: rgba(14, 36, 27, .86); font-size: .71rem; }
.card-body { padding: clamp(1rem, 2vw, 1.5rem); min-width: 0; overflow-wrap: anywhere; }
.card-meta { margin-bottom: .4rem; color: var(--moss); font-size: .83rem; font-weight: 750; line-height: 1.5; }
.result-card h4 { color: var(--forest); font-size: clamp(1.18rem, 1.8vw, 1.55rem); font-weight: 700; letter-spacing: -.036em; line-height: 1.2; }
.result-card h4 a { color: inherit; text-decoration: none; }
.result-card h4 a:hover, .result-card h4 a:focus-visible { text-decoration: underline; }
.card-body > p:not(.card-meta):not(.calendar-note) { color: var(--muted); margin-top: .5rem; }
.card-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem .65rem; margin-top: .95rem; }
.card-actions label { display: grid; gap: .2rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.card-actions select { width: auto; max-width: 100%; min-height: 44px; font-size: 1rem; }
.calendar-note { margin-top: .55rem; }
.alt-card, .empty-state { padding: 1.25rem; background: #eff2e6; border: 1px solid #cbd5be; border-radius: .85rem; margin-top: 1.15rem; }
.alt-card h3, .empty-state h3 { color: var(--forest); font-size: 1.15rem; line-height: 1.3; }
.alt-card button, .empty-state button { margin-top: .8rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.empty-actions button { margin: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; padding: 1rem 0; }
.site-footer > .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--forest); }

@media (max-width: 55rem) {
  .planner-layout { grid-template-columns: minmax(17rem, .85fr) minmax(0, 1fr); gap: 1.3rem; }
  .hero-copy { padding: 2rem; }
  .hero-photo { min-height: 17rem; }
}
@media (max-width: 46rem) {
  .planner-layout { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.7rem; gap: .8rem; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.65rem, 8vw, 3.9rem); }
  .hero-photo { min-height: 0; aspect-ratio: 2.6; max-height: 13rem; }
  .hero-photo figcaption { padding: 1.5rem .75rem .45rem; }
  .header-inner { min-height: 3.85rem; }
  .wordmark { font-size: 1.85rem; }
}
@media (max-width: 22rem) {
  .hero-copy { padding: 1.3rem; }
  .hero { border-radius: .9rem; }
}
@media (forced-colors: active) {
  .chip > input:checked + span { outline: 2px solid SelectedItem; }
  .chip > input:checked + span::before { border-color: SelectedItem; }
}

.delivery-panel { margin-top: .95rem; padding-top: .2rem; border-top: 1px solid var(--line); }
.delivery-panel summary { display: list-item; width: fit-content; min-height: 44px; padding: .67rem .25rem .55rem 0; cursor: pointer; color: var(--forest); font-size: .91rem; font-weight: 750; }
.delivery-panel summary::marker { color: #7d751f; }
.delivery-panel > p, .delivery-panel form > p, .delivery-status, .delivery-fallback { color: var(--muted); font-size: .84rem; }
.delivery-row { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin-block: .5rem; }
.delivery-row label { display: grid; gap: .25rem; flex: 1 1 12rem; min-width: 0; color: var(--forest); font-size: .84rem; font-weight: 650; }
.delivery-row input { min-width: 0; width: 100%; min-height: 44px; padding: .6rem .7rem; background: #fff; border: 1px solid #a8b5a7; border-radius: .5rem; color: var(--ink); font-size: 1rem; font-weight: 450; }
.delivery-fallback { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-weight: 700; }
.date-presets { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .9rem; }
.date-presets button { border: 1px solid var(--line); border-radius: .45rem; min-height: 44px; padding: .4rem .83rem; font-size: .88rem; font-weight: 680; background: var(--paper); color: var(--forest); }
.date-presets button[aria-pressed="true"] { background: #e9efdf; border-color: #869980; }
.interest-field .hint { margin-top: .3rem; }
.route-day { margin-top: 1.5rem; }
.route-day > h3 { margin-bottom: .8rem; }
.stop-list { list-style: none; counter-reset: stops; margin: 0; padding: 0; }
.stop-list > li { position: relative; counter-increment: stops; padding-left: 2.2rem; padding-bottom: .7rem; }
.stop-list > li:last-child { padding-bottom: 0; }
.stop-list > li:not(:last-child)::after { content: ""; position: absolute; left: .85rem; top: 1.8rem; bottom: -.4rem; border-left: 1px solid #b4c2a7; }
.stop-list > li::before { content: counter(stops); position: absolute; inset: .65rem auto auto 0; width: 1.72rem; height: 1.72rem; display: grid; place-items: center; font-weight: 750; border-radius: 50%; font-size: .8rem; color: var(--paper); background: var(--forest); }
.card-body { padding: clamp(.9rem, 1.8vw, 1.2rem); }
.card-body > .card-meta { font-size: .78rem; line-height: 1.4; }
.card-body > p.card-venue { color: var(--forest); font-weight: 620; font-size: .88rem; margin-top: .3rem; }
.card-body > p.card-description { margin-top: .5rem; }
.card-body > p.visit-note { font-size: .83rem; font-weight: 640; color: var(--forest); }
.card-details { margin-top: .3rem; }
.card-details > summary { min-height: 44px; width: fit-content; cursor: pointer; align-content: center; padding-block: .55rem; color: var(--moss); font-size: .83rem; font-weight: 700; }
.card-details > p { margin-block: .5rem; font-size: .93rem; }
.card-details .card-photo { margin-top: .8rem; }
.card-details .listing-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; }
.extra-group > .hint { margin: -.3rem 0 .75rem; }
.extra-group .result-card { border-radius: .65rem; }
.extra-group .card-body { padding: .85rem 1rem; }
.extra-group .result-card h4 { font-size: 1.13rem; }
.email-plan { margin-top: 2rem; padding: clamp(1.1rem, 3vw, 2rem); color: var(--paper); background: var(--forest); border-top: .3rem solid var(--gold); border-radius: 1rem; }
.email-plan > h3 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.045em; }
.email-plan .hint { margin-top: .5rem; color: #e3eadd; font-size: .94rem; max-width: 45ch; }
.email-plan .delivery-row { margin: 1.1rem 0 0; }
.email-plan .delivery-row label { color: var(--paper); }
.email-plan .delivery-row input { min-height: 47px; }
.email-plan .email-send { min-height: 47px; padding: .65rem 1rem; border-radius: .5rem; border: 0; background: var(--gold); color: var(--deep); font-weight: 750; }
.email-plan .email-send:hover { background: #ffe09f; }
.email-plan .delivery-status { margin-top: .7rem; color: var(--paper); }
.email-plan .delivery-status.error { color: #ffe2b8; }
.email-plan .delivery-fallback { color: var(--gold); }
@media (max-width: 32rem) {
  .stop-list > li { padding-left: 1.8rem; }
  .stop-list > li::before { width: 1.45rem; height: 1.45rem; font-size: .75rem; }
  .stop-list > li:not(:last-child)::after { left: .72rem; }
  .email-plan .delivery-row { display: grid; }
  .email-plan .email-send { width: 100%; }
}

.planner-layout:has(> .plan-output[hidden]) { grid-template-columns: minmax(0, 44rem); justify-content: center; }
.plan-options { margin-top: .8rem; }
.plan-options summary { width: fit-content; min-height: 44px; padding: .5rem 0; color: var(--moss); cursor: pointer; font-weight: 700; }
.plan-options > .interest-field { margin-top: 1rem; }
.plan-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .65rem; }
.plan-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; }
.plan-shortcuts button { min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--moss); background: transparent; border-radius: .5rem; font-size: .9rem; font-weight: 700; color: var(--forest); }
.share-manually { display: grid; gap: .35rem; margin-top: .5rem; }
.share-manually input { width: 100%; min-height: 44px; padding: .5rem; }
.plan-shortcuts a:first-child { border-radius: .5rem; background: var(--forest); color: var(--paper); text-decoration: none; padding: .5rem .85rem; }
#results, #email-plan, #area { scroll-margin-top: 1rem; }
.plan-options > .date-grid { margin-top: 1rem; }
.plan-options > .date-grid + .hint { margin-top: .35rem; }
.plan-options > .save-field { margin-top: .9rem; }
.planner-form > .actions { margin-top: .55rem; }
.site-footer > .wrap { justify-content: flex-start; gap: .65rem; }
