:root {
  --ink: #1d2a22;
  --soft: #4f5c53;
  --faint: #66726a;
  --paper: #fffdf7;        /* card surface */
  --sand: #d6e2cb;         /* page ground: soft sage */
  --cream: #f4efe1;
  --rule: #e2dccb;
  --night: #12241b;        /* deep rainforest */
  --forest: #1f3d2c;
  --accent: #3f7a4f;       /* fern: every action on the page */
  --accent-hi: #4c8d5d;
  --accent-ink: #ffffff;
  --moss: #a8c38a;         /* light green for lines on dark ground */
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(31, 61, 44, .06), 0 10px 24px -6px rgba(31, 61, 44, .12), 0 34px 70px -24px rgba(31, 61, 44, .28);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(20px, 5vw, 104px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink); background: var(--sand) url("assets/topo.svg") 0 0 / 640px 640px; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { body { animation: drift 120s linear infinite; } }
@keyframes drift { to { background-position: 640px 320px; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.3vw, 2.75rem); }
h3 { font: 500 1.0625rem/1.35 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Pills: every action on the page */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 .875rem/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-accent:hover { background: var(--accent-hi); }
.pill-accent:active { transform: scale(.97); }
.pill-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.pill-ghost:hover { border-color: #fff; }
.pill-lg { font-size: .9375rem; padding: 13px 20px; }
.pill-block { width: 100%; padding: 14px 18px; font-size: .9375rem; }
.wa { width: 1.2em; height: 1.2em; flex: none; }
.more { align-self: flex-start; font-weight: 500; font-size: .9375rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: border-color .2s var(--ease); }
.more:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 2.4vw, 32px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: grid; gap: 3px; font: 400 1.3125rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-name small { font: 500 .6875rem/1 var(--sans); letter-spacing: .01em; opacity: .78; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 34px; font-size: .9063rem; }
.nav a { text-decoration: none; opacity: .88; transition: opacity .2s var(--ease); }
.nav a:hover { opacity: 1; }
.top-r { display: flex; gap: 8px; margin-left: auto; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 880px); display: flex; flex-direction: column; color: #fbf7eb; background: var(--night); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: -3; filter: saturate(.86) contrast(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(14, 26, 21, .86) 0%, rgba(14, 26, 21, .58) 38%, rgba(14, 26, 21, .12) 72%), linear-gradient(180deg, rgba(14, 26, 21, .5) 0%, rgba(14, 26, 21, 0) 26%, rgba(14, 26, 21, .28) 70%, rgba(14, 26, 21, .82) 100%); }
.hero-road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-road path { fill: none; stroke: var(--moss); stroke-opacity: .85; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; }
.hero-in { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 128px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 6vw, 120px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.9rem); max-width: 12ch; }
.lead { margin: 22px 0 30px; max-width: 44ch; font-size: 1.0625rem; color: rgba(251, 247, 235, .9); }
.hero-places { display: flex; overflow: hidden; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); font: 400 1.0625rem/1 var(--serif); color: rgba(251, 247, 235, .82); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 64px; padding-right: 64px; }
.marquee li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--moss); margin-right: 64px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .marquee { animation: slide 75s linear infinite; } }
@keyframes slide { to { transform: translateX(-100%); } }

/* Planner: the panel that floats on the hero */
.planner { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 26px; box-shadow: 0 30px 80px rgba(6, 14, 11, .45); }
.planner h2 { font-size: 1.5rem; line-height: 1.15; }
.planner-sub { color: var(--soft); font-size: .875rem; margin-top: 6px; }
.seg { border: 0; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg legend, .field label { font-weight: 500; font-size: .8125rem; margin-bottom: 7px; padding: 0; display: block; color: var(--soft); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--rule); font-size: .8125rem; line-height: 1.2; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { margin-top: 14px; min-width: 0; }
.field input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; font: 400 .9375rem var(--sans); color: var(--ink); background: #fff; }
.field input:focus { outline: 0; border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.planner .pill-block { margin-top: 18px; }
.planner-note { text-align: center; color: var(--faint); font-size: .8125rem; margin-top: 10px; }

/* Sections */
.sec { padding: clamp(14px, 1.6vw, 22px) 0; }
main > .sec:first-of-type { padding-top: clamp(28px, 3vw, 44px); }
.sec .wrap { padding-left: clamp(12px, 2.4vw, 40px); padding-right: clamp(12px, 2.4vw, 40px); }
.card { position: relative; background: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 72px); box-shadow: var(--shadow); border: 1px solid rgba(31, 61, 44, .07); overflow: hidden; }
.card-forest { background: radial-gradient(120% 140% at 100% 0%, #2b5a3e 0%, var(--forest) 45%, var(--night) 100%); color: #f3efe2; border-color: transparent; }
.card-forest .facts dd, .card-forest .closing-r { color: rgba(243, 239, 226, .78); }
.card-forest .facts div { border-top-color: rgba(243, 239, 226, .3); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.sec-head h2 { max-width: 18ch; }
.sec-head p { color: var(--soft); }

/* Services */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.svc { padding: 26px clamp(18px, 2.4vw, 36px) 4px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--rule); }
.svc:first-child { padding-left: 0; border-left: 0; }
.svc p { color: var(--soft); flex: 1; margin-bottom: 10px; }

/* Day trips: photo on the left, the list of trips on the right */
.tr-grid { position: relative; padding-left: calc(54% + clamp(20px, 3vw, 44px)); min-height: 600px; }
.tr-grid::before { content: ""; position: absolute; left: 0; top: 0; width: 54%; height: 100%; border-radius: 18px; background: var(--cream); }
.tr { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2vw, 28px); transition: border-color .3s var(--ease); }
.tr.is-open { border-left-color: var(--ink); }
.tr h3 { font: inherit; }
.tr-head { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 15px 0; font: 400 1.0625rem/1.3 var(--sans); color: var(--faint); transition: color .2s var(--ease); }
.tr-head:hover { color: var(--ink); }
.tr-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tr.is-open .tr-head { color: var(--ink); font-weight: 500; cursor: default; }
.tr-panel { padding-bottom: 26px; }
.tr-panel img { position: absolute; left: 0; top: 0; width: 54%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(18, 36, 27, .5); }
.tr-panel > p { color: var(--soft); max-width: 46ch; }
.route { list-style: none; counter-reset: stop; margin: 20px 0 24px; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; border-left: 2px dashed var(--moss); }
.route li { counter-increment: stop; position: relative; padding: 0 0 13px 38px; display: grid; font-size: .9375rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 .75rem/24px var(--sans); text-align: center; }
.route b { font-weight: 500; }
.route span { color: var(--soft); font-size: .875rem; }

/* Salvador's voice */
.leaf { position: absolute; right: clamp(-40px, -2vw, -10px); top: -30px; width: clamp(180px, 22vw, 320px); opacity: .16; pointer-events: none; }
.leaf path { fill: var(--moss); }
.leaf .vein { fill: none; stroke: var(--forest); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) { .leaf { transform-origin: 10% 90%; animation: sway 9s ease-in-out infinite alternate; } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.voice-text { position: relative; }
.voice-text { font: 300 clamp(1.6rem, 2.9vw, 2.5rem)/1.2 var(--serif); letter-spacing: -0.015em; max-width: 26em; text-wrap: pretty; }
.facts { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.facts div { border-top: 1px solid var(--ink); padding-top: 16px; }
.facts dt { font-weight: 500; margin-bottom: 6px; }
.facts dd { color: var(--soft); }

/* How booking works */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font: 300 2.5rem/1 var(--serif); margin-bottom: 26px; }
.steps p { margin-top: 6px; color: var(--soft); }

/* FAQ */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--soft); max-width: 62ch; }

/* Footer */
.foot { padding-bottom: 96px; }
.foot > .wrap:first-child { padding-left: clamp(12px, 2.4vw, 40px); padding-right: clamp(12px, 2.4vw, 40px); padding-top: clamp(14px, 1.6vw, 22px); }
.closing { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 80px); }
.closing h2, .closing-r { position: relative; }
.closing-road { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closing-road path { fill: none; stroke: var(--moss); stroke-opacity: .35; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.closing.is-in .closing-road path { transition: stroke-dashoffset 2.4s var(--ease) .2s; stroke-dashoffset: 0; }
.closing-r a { color: #fff; }
.closing-r { display: grid; gap: 12px; justify-items: end; font-size: .875rem; color: var(--soft); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(32px, 7vw, 120px); padding-top: 56px; }
.foot .brand { color: var(--ink); }
.foot .brand-mark { width: 52px; height: 52px; }
.foot-in, .credits { padding-left: calc(var(--gutter) + 8px); }
.foot .brand-name { font-size: 1.625rem; }
.foot .brand-name small { font-size: .8125rem; }
.foot-brand p { margin-top: 14px; color: var(--soft); max-width: 34ch; font-size: .9375rem; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 { font: 400 .8125rem/1 var(--sans); color: var(--faint); margin-bottom: 8px; }
.foot-col a { text-decoration: none; font: 400 1rem/1.2 var(--serif); }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { margin-top: 56px; font-size: .75rem; color: var(--faint); }
.credits summary { cursor: pointer; }
.credits p { margin-top: 8px; max-width: 90ch; }

/* Floating quote button, shown once the hero is out of view */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; box-shadow: 0 12px 30px rgba(20, 32, 27, .28); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease); }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Motion: one entrance on load, plus the open trip fading in. Nothing else moves by itself. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .planner { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .planner { animation-delay: .22s; }
  .hero-road path { animation: draw 1.8s .35s var(--ease) both; }
  .tr.is-open .tr-panel > :not(img) { animation: rise .45s var(--ease) both; }
  .tr.is-open .tr-panel img { animation: fade .5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* Cards rise into place the first time they enter the screen */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: perspective(1400px) translateY(48px) rotateX(7deg) scale(.98); transform-origin: 50% 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card.is-in { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
  .nav { display: none; }
  .top { gap: 12px; }
  .top-r { margin-left: auto; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 26, 21, .72) 0%, rgba(14, 26, 21, .6) 40%, rgba(14, 26, 21, .9) 100%); }
  .hero-road { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 112px; padding-bottom: 40px; gap: 36px; }
  .planner { max-width: 480px; }
  .hero-places { font-size: .9375rem; }
  .marquee { gap: 36px; padding-right: 36px; }
  .marquee li::before { margin-right: 36px; }
  .sec-head, .faq-in { grid-template-columns: 1fr; gap: 16px; }
  .svc-list, .facts, .steps { grid-template-columns: 1fr; }
  .svc, .svc:first-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .facts, .steps { gap: 28px; }
  .steps li::before { margin-bottom: 14px; }
  .card { border-radius: 22px; }
  .leaf { width: 150px; }
  .tr-grid { padding-left: 0; min-height: 0; }
  .tr-grid::before { display: none; }
  .tr-panel img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 16px; }
  .closing { align-items: flex-start; flex-direction: column; }
  .closing-r { justify-items: start; }
  .foot-in, .credits { padding-left: var(--gutter); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .top .pill { padding: 9px 12px; font-size: .8125rem; }
  .top .brand-name { font-size: 1.0625rem; }
  .top .brand-name small { display: none; }
  .top .brand-mark { width: 34px; height: 34px; }
  .top .pill-accent span { display: none; }
  .fab { left: 14px; right: 14px; bottom: 14px; }
  .closing .pill-lg { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Headline colour: a soft forest-to-fern gradient on headings only; body text stays plain */
.card h2, .steps li::before {
  background: linear-gradient(100deg, var(--forest) 0%, #2f6b45 40%, #7fae4f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 {
  background: linear-gradient(180deg, #fffdf4 30%, #cfe0b4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-forest h2, .card-forest .voice-text {
  background: linear-gradient(100deg, #f6f1e2 0%, #f6f1e2 35%, #c3dc9f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc h3, .facts dt, .steps h3, .tr.is-open .tr-head { color: var(--accent); }
.card-forest .facts dt { color: var(--moss); }
@media (forced-colors: active) {
  .card h2, .hero h1, .card-forest h2, .card-forest .voice-text, .steps li::before { background: none; color: CanvasText; }
}

/* Sub-headers (services, booking steps): larger serif so each block reads as its own heading */
.svc h3, .steps h3 {
  font: 400 clamp(1.45rem, 2vw, 1.75rem)/1.15 var(--serif); letter-spacing: -0.015em;
  background: linear-gradient(100deg, var(--forest) 0%, #2f6b45 55%, #6f9a4e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc { gap: 14px; }
@media (forced-colors: active) { .svc h3, .steps h3 { background: none; color: CanvasText; } }

/* Day trip tabs: each closed trip is its own clear, tappable row */
.tr { border-left: 0; padding-left: 0; }
.tr + .tr { border-top: 1px solid var(--rule); }
.tr-head {
  position: relative; padding: 18px 44px 18px 16px; border-radius: 14px;
  font: 400 clamp(1.25rem, 1.7vw, 1.5rem)/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tr-head::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.tr:not(.is-open) .tr-head:hover { background: var(--cream); color: var(--accent); }
.tr.is-open .tr-head {
  font-weight: 400; padding-bottom: 10px;
  background: linear-gradient(100deg, var(--forest) 0%, #2f6b45 55%, #6f9a4e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tr.is-open .tr-head::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--accent); }
.tr-panel { padding: 0 16px 26px; }
@media (forced-colors: active) { .tr.is-open .tr-head { background: none; color: CanvasText; } }

/* Under the day trips: more trips menu + custom trip */
.trip-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.pill-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.pill-outline:hover { background: var(--accent); color: #fff; }
.mt-toggle::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.mt-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.mt-panel[hidden] { display: none; }
.mt-panel { flex-basis: 100%; margin-top: 10px; }
.mt-panel > p { color: var(--soft); margin-bottom: 16px; }
.mt-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mt-grid a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 10px 10px 18px; border-radius: 16px; background: var(--cream); border: 1px solid var(--rule); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.mt-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(31, 61, 44, .35); }
.mt-grid b { font: 400 1.2rem/1.2 var(--serif); color: var(--forest); }
.mt-grid .mt-desc { color: var(--soft); font-size: .9063rem; padding: 0 10px; }
.mt-grid b { padding: 4px 10px 0; }
@media (prefers-reduced-motion: no-preference) { .mt-panel:not([hidden]) .mt-grid li { animation: rise .45s var(--ease) both; } .mt-panel .mt-grid li:nth-child(n+3) { animation-delay: .05s; } .mt-panel .mt-grid li:nth-child(n+5) { animation-delay: .1s; } }

/* Photos on the "more day trips" cards: two per trip, crossfading on their own */
.mt-photos { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 11px; overflow: hidden; margin-bottom: 8px; background: var(--rule); }
.mt-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mt-photos img + img { opacity: 0; }
.mt-grid a:hover .mt-photos img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .mt-panel:not([hidden]) .mt-photos img + img { animation: swap 10s var(--d, 0s) ease-in-out infinite; }
}
@keyframes swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* The map: Costa Rica in line drawing; tap a place, the route from San José draws itself */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.map-stage { position: relative; width: 100%; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-land { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-shade { fill: none; stroke: var(--ink); stroke-width: 1; stroke-opacity: .22; stroke-dasharray: 3 5; }
.map-sea { font: italic 300 22px var(--serif); fill: var(--faint); text-anchor: middle; }
.map-sea-r { text-anchor: start; }
.map-route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.map-route-reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-pin { all: unset; position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; z-index: 1; }
.map-pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.map-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); position: relative; }
.map-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.map-pin.is-home .map-dot { border-radius: 3px; transform: rotate(45deg); }
.map-pin:hover .map-dot { transform: scale(1.25); border-color: var(--accent); }
.map-pin.is-home:hover .map-dot { transform: rotate(45deg) scale(1.25); }
.map-pin.is-on { z-index: 2; }
.map-pin.is-on .map-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.map-pin.is-home.is-on .map-dot { transform: rotate(45deg) scale(1.35); }
.map-label { position: absolute; left: 50%; bottom: calc(100% - 2px); transform: translateX(-50%) translateY(4px); padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .75rem/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.map-pin:hover .map-label, .map-pin.is-on .map-label, .map-pin:focus-visible .map-label { opacity: 1; transform: translateX(-50%); }
.map-pin.is-on .map-label { background: var(--accent); }
.map-panels { min-width: 0; }
.map-panel[hidden] { display: none; }
.map-panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(18, 36, 27, .5); }
.map-panel h3 { margin-top: 20px; font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--serif); letter-spacing: -0.015em; background: linear-gradient(100deg, var(--forest) 0%, #2f6b45 55%, #6f9a4e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map-panel p { margin: 8px 0 18px; color: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .map .reveal .map-land { stroke-dashoffset: 1; }
  .js .map .reveal.is-in .map-land { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
  .js .map .reveal .map-pin, .js .map .reveal .map-sea, .js .map .reveal .map-shade, .js .map .reveal .map-route { opacity: 0; }
  .js .map .reveal.is-in .map-pin, .js .map .reveal.is-in .map-sea, .js .map .reveal.is-in .map-shade, .js .map .reveal.is-in .map-route { opacity: 1; transition: opacity .6s var(--ease) calc(1.6s + var(--i, 0) * 70ms); }
  .map-dot::after { animation: ping 3.2s calc(var(--i, 0) * 280ms) ease-out infinite; }
  .map-route-reveal.is-drawing { animation: draw 1.1s var(--ease) both; }
  .map-panel:not([hidden]) > * { animation: rise .45s var(--ease) both; }
}
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 60%, 100% { transform: scale(1.5); opacity: 0; } }
@media (forced-colors: active) { .map-panel h3 { background: none; color: CanvasText; } }
@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-sea { font-size: 40px; }
  .map-land { stroke-width: 3; }
  .map-label { font-size: .6875rem; padding: 4px 8px; }
}

/* Map heading: the hint sits right under the headline */
.sec-head-stack { grid-template-columns: 1fr; gap: 14px; justify-items: start; }
.sec-head-stack h2 { max-width: none; }
.sec-head-stack p { max-width: 60ch; }

/* More day trips: always open, with its own heading */
.mt-panel { margin-top: 0; }
.mt-title { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 8px; background: linear-gradient(100deg, var(--forest) 0%, #2f6b45 55%, #6f9a4e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.trip-actions > .pill-outline { margin-top: 8px; }
@media (forced-colors: active) { .mt-title { background: none; color: CanvasText; } }

/* Mobile pass (2026-11-18): comfortable tap targets and a bigger map on phones */
@media (max-width: 980px) {
  .top .pill { min-height: 44px; }
  .top .pill-accent { min-width: 44px; padding-left: 12px; padding-right: 12px; }
  .more { padding: 10px 0 8px; }
  .map-stage { width: calc(100% + 36px); margin: 0 -18px; }
  .map-pin { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .map-label { font-size: .75rem; }
  .map-grid { gap: 28px; }
  .tr-head { padding-left: 4px; padding-right: 36px; }
  .tr-head::after { right: 8px; }
  .tr-panel { padding-left: 4px; padding-right: 4px; }
  .sec-head h2 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
}
@media (max-width: 520px) {
  .card { padding: 28px 20px; }
  .map-stage { width: calc(100% + 24px); margin: 0 -12px; }
  .seg span { font-size: .8125rem; }
  .planner { padding: 22px 18px; }
}

@media (max-width: 980px) { .pill { min-height: 44px; } }

/* Photo logo: a real sloth in a circle */
.brand-mark { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.foot .brand-mark { box-shadow: 0 0 0 2px var(--paper), 0 4px 12px rgba(31, 61, 44, .25); }
