/* Domingo Golf · Panama
   Tokens follow the Travel with Makini design system so the two pages read as
   one family: Sand ground, Shell panels, Ink text, Teal and Palm accents,
   Marigold for the primary button with Ink text only. No radius anywhere. */

:root {
  --sand: #FEFAF5;
  --shell: #E5DBD0;
  --shell-border: #C9B9A8;
  --stone-text: #6B5D4F;
  --stone-deco: #827363;
  --ink: #131313;
  --teal: #175A6B;
  --teal-hover: #124956;
  --palm: #2E6655;
  --coral-text: #A93E2D;
  --marigold: #D58A1F;
  --marigold-hover: #C27B14;
  --muted-dark: #EBE0D4;
  --container: 1280px;
  --touch: 48px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }

*:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--sand);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.12; }
h3 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.no-margin { margin: 0; }
p { margin: 0 0 16px; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 42px; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
.narrow { max-width: 820px; }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.bg-shell { background: var(--shell); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--stone-text);
}
.eyebrow-light { color: var(--sand); }
.eyebrow-teal { color: var(--teal); }
.eyebrow-palm { color: var(--palm); }

.lead { font-size: 19px; line-height: 1.6; }
.note { color: var(--stone-text); font-size: 16px; max-width: 62ch; }
.narrow-note { margin-top: 40px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--sand); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch);
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-hover); color: var(--ink); }
.btn-large { width: 100%; padding: 18px 30px; font-size: 18px; }
@media (min-width: 600px) { .btn-large { width: auto; min-width: 280px; } }

.link-arrow {
  font-weight: 700; color: var(--sand); text-decoration: underline;
  min-height: var(--touch); display: inline-flex; align-items: center;
}
.link-arrow:hover { color: var(--muted-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--shell);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.wordmark-name { font-weight: 500; }
.wordmark-dot { color: var(--stone-deco); }
.wordmark-place { font-weight: 300; color: var(--stone-text); }
.btn-header { padding: 10px 18px; font-size: 15px; min-height: 44px; }
@media (max-width: 420px) { .btn-header { display: none; } }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; background: var(--ink); }
@media (min-width: 900px) { .hero { min-height: 640px; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-scrim {
  position: relative; width: 100%;
  background:
    linear-gradient(to right, rgba(19,19,19,0.84) 0%, rgba(19,19,19,0.62) 50%, rgba(19,19,19,0.24) 100%),
    linear-gradient(to top, rgba(19,19,19,0.72) 0%, rgba(19,19,19,0.42) 60%, rgba(19,19,19,0.2) 100%);
}
.hero-content { padding-top: 72px; padding-bottom: 40px; color: var(--sand); max-width: calc(var(--container)); }
.hero-content > * { max-width: 720px; }
.hero h1 { color: var(--sand); margin-bottom: 18px; }
.hero-lede { font-size: 16px; line-height: 1.55; margin-bottom: 14px; max-width: 56ch; }
.hero-price { font-family: var(--font-display); font-size: 19px; line-height: 1.4; margin-bottom: 20px; }
.hero-price strong { font-weight: 500; font-size: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 14px; }
.hero-fine { font-size: 14px; color: var(--muted-dark); margin: 0; }
@media (min-width: 768px) {
  .hero-content { padding-top: 120px; padding-bottom: 60px; }
  .hero-lede { font-size: 19px; }
  .hero-price { font-size: 24px; }
  .hero-price strong { font-size: 34px; }
}

/* Facts */
.facts { border-bottom: 1px solid var(--shell); }
.facts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 600px) { .facts-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; } }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); padding-top: 32px; padding-bottom: 32px; } }
.fact-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 6px; }
.fact-value { font-size: 17px; line-height: 1.45; }

/* Problem */
.pain-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--shell); }
.pain-list li { padding: 14px 0; border-bottom: 1px solid var(--shell); font-size: 18px; line-height: 1.5; }
@media (min-width: 768px) { .pain-list li { font-size: 20px; } }

/* Split layout */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

/* Itinerary */
.itinerary { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--shell-border); }
.itinerary li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--shell-border); }
.itinerary .day { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.itinerary .plan { line-height: 1.65; }
@media (max-width: 480px) { .itinerary li { grid-template-columns: 1fr; gap: 4px; } }

/* Pricing */
.price-rows { display: grid; gap: 40px; border-top: 1px solid var(--shell); margin-bottom: 12px; }
@media (min-width: 900px) { .price-rows { grid-template-columns: 1fr 1fr; gap: 0; } }
.price-row { padding-top: 32px; }
@media (min-width: 900px) {
  .price-row:first-child { padding-right: 42px; border-right: 1px solid var(--shell); }
  .price-row:last-child { padding-left: 42px; }
}
.price-row h3 { font-size: 27px; margin-bottom: 6px; }
.price-row p:last-child { margin: 0; max-width: 46ch; }
.price { font-family: var(--font-display); font-size: 44px; line-height: 1.1; margin: 4px 0 14px; }
.price span { font-family: var(--font-sans); font-size: 15px; color: var(--stone-text); margin-left: 6px; }
.single-note { color: var(--stone-text); padding-top: 24px; border-top: 1px solid var(--shell); }

.included-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 768px) { .included-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.list-heading { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 8px; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--shell); }
.check-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--shell); position: relative; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; background: var(--teal); }
.check-list.plain li::before { background: transparent; border: 2px solid var(--shell-border); width: 8px; height: 8px; }

/* Venue */
.venue { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .venue { grid-template-columns: 1fr 1fr; gap: 64px; } }
.venue img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.venue p { max-width: 54ch; }
.rule-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--shell-border); max-width: 54ch; }
.rule-list li { padding: 12px 0; border-bottom: 1px solid var(--shell-border); line-height: 1.6; }

/* Gallery */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery-sub { margin: 12px 0 0; max-width: 54ch; }
.gallery-controls { display: flex; gap: 12px; }
.gallery-btn {
  background: var(--teal); color: var(--sand); border: 0; cursor: pointer;
  min-width: var(--touch); min-height: var(--touch); padding: 10px 20px; font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.gallery-btn:hover { background: var(--teal-hover); }
.gallery {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.gallery figure { scroll-snap-align: start; flex: 0 0 85%; margin: 0; }
@media (min-width: 700px) { .gallery figure { flex-basis: 58%; } }
@media (min-width: 1040px) { .gallery figure { flex-basis: 44%; } }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; }
.gallery figcaption { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); }

/* Why */
.why-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.why-n { font-family: var(--font-display); font-size: 40px; color: var(--stone-deco); line-height: 1; margin-bottom: 16px; }
.why-grid h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }
.why-grid p { margin: 0; line-height: 1.7; }

/* Band */
.band img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 68%; }
@media (min-width: 900px) { .band img { height: 440px; } }

/* Join */
.join-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .join-grid { grid-template-columns: 1fr 1.3fr; gap: 80px; } .join-intro { position: sticky; top: 100px; } }
.join-intro p { max-width: 52ch; }
.who { color: var(--stone-text); font-size: 16px; border-top: 1px solid var(--shell); padding-top: 18px; margin-top: 28px; }

.club-form fieldset { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.club-form legend {
  font-family: var(--font-display); font-size: 26px; line-height: 1.2; padding: 0; margin-bottom: 22px;
  border-bottom: 1px solid var(--shell); width: 100%; padding-bottom: 12px;
}
.field { margin-bottom: 26px; }
.field label, .field .label { display: block; font-weight: 700; margin: 0 0 8px; line-height: 1.45; }
.field .hint { font-weight: 400; color: var(--stone-text); }
.q-n { display: inline-block; min-width: 26px; color: var(--teal); font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="number"] {
  width: 100%; min-height: var(--touch); padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1px solid var(--shell-border); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field input[type="number"] { max-width: 160px; }
.field input:focus { border-color: var(--teal); }
.field.invalid input[type="text"], .field.invalid input[type="email"], .field.invalid input[type="number"] { border-color: var(--coral-text); border-width: 2px; }

.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.field label.choice, .choice {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--touch); padding: 11px 14px;
  background: #fff; border: 1px solid var(--shell-border); cursor: pointer;
  font-weight: 400 !important; margin: 0 !important; line-height: 1.4;
}
.choice:hover { border-color: var(--teal); }
.choice input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #F3F7F8; }
.field.invalid .choice { border-color: var(--coral-text); }

.error { color: var(--coral-text); font-size: 15px; margin: 8px 0 0; }
.form-error { margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.group-fields { padding: 20px 20px 4px; background: var(--shell); margin: -6px 0 26px; }
.group-fields .choice { background: var(--sand); }

.form-actions { border-top: 1px solid var(--shell); padding-top: 28px; }
.privacy { color: var(--stone-text); font-size: 15px; margin: 16px 0 0; }
.form-success { padding: 40px; background: var(--shell); border-top: 3px solid var(--teal); }
.form-success h2 { margin-bottom: 12px; }
.form-success p:last-child { margin: 0; max-width: 52ch; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--shell-border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: var(--touch);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 28px; color: var(--stone-deco); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; max-width: 62ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--sand); padding: 56px 0; }
.site-footer a { color: var(--sand); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.footer-wordmark { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.footer-wordmark span { color: var(--stone-deco); }
.footer-note { color: var(--muted-dark); font-size: 15px; }
.footer-note p:last-child { margin: 0; }

/* Sticky mobile CTA */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--sand); border-top: 1px solid var(--shell);
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Meet Panama */
.flights { margin-top: 56px; }
.flights-heading { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 16px; }
.flight-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--shell); border-left: 1px solid var(--shell); }
@media (min-width: 720px) { .flight-grid { grid-template-columns: repeat(3, 1fr); } }
.flight-grid li { padding: 18px 20px; border-right: 1px solid var(--shell); border-bottom: 1px solid var(--shell); display: flex; flex-direction: column; gap: 2px; }
.flight-grid .city { font-weight: 700; font-size: 16px; }
.flight-grid .time { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.entry-grid { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 720px) { .entry-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.entry-grid article { border-top: 1px solid var(--shell); padding-top: 20px; }
.entry-grid h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.entry-grid p { margin: 0; line-height: 1.7; }
.cap-note { color: var(--stone-text); margin: 16px 0 0; }

/* Teal section */
.bg-teal { background: var(--teal); color: var(--sand); }
.bg-teal h2 { color: var(--sand); }
.eyebrow-on-teal { color: #BFD6DC; }
.rule-list-light { border-top-color: rgba(254,250,245,0.3); max-width: none; }
.rule-list-light li { border-bottom-color: rgba(254,250,245,0.3); color: var(--sand); font-size: 18px; padding: 16px 0; }
.on-teal-note { color: var(--muted-dark); margin: 24px 0 0; max-width: 62ch; }

/* Mark */
.mark { width: 34px; height: 34px; flex: 0 0 auto; align-self: center; }
.wordmark { align-items: center; gap: 10px; }
.wordmark-name { line-height: 1; }
.footer-wordmark { display: flex; align-items: center; gap: 10px; }
.footer-wordmark .mark { width: 30px; height: 30px; }
.venue .list-heading { margin-top: 24px; }
.venue .list-heading:first-of-type { margin-top: 8px; }

/* Add ons */
.addon-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .addon-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
.addon-grid article { border-top: 1px solid var(--shell); padding-top: 18px; }
.addon-grid h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.addon-grid p { margin: 0; line-height: 1.65; font-size: 16px; }

/* Panama photos and flight map */
:root { --map-sea: #FEFAF5; --map-land: #E5DBD0; --map-border: #FEFAF5; }
.addon-photo { margin: 0; }
.addon-photo figcaption { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-text); margin-top: 10px; }
.map-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--shell); }
.flight-map { display: block; width: 100%; min-width: 640px; height: auto; }
.addon-photo { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .addon-grid { grid-template-columns: 1fr 1fr 1fr; }
  .addon-photo { grid-column: auto; }
  .addon-grid article { grid-column: auto; }
}
.addon-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.credits { font-size: 13px; color: var(--stone-deco); margin-top: 16px; line-height: 1.6; }
.credits a { color: var(--muted-dark); }

/* Meet Panama band: photo behind the text, text held to the left so the city shows on the right */
.panama-band { position: relative; background: var(--ink); color: var(--sand); overflow: hidden; }
.panama-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
.panama-band-scrim {
  position: relative; padding: 56px 0;
  background:
    linear-gradient(to right, rgba(19,19,19,0.9) 0%, rgba(19,19,19,0.8) 40%, rgba(19,19,19,0.45) 70%, rgba(19,19,19,0.15) 100%),
    linear-gradient(to top, rgba(19,19,19,0.45) 0%, rgba(19,19,19,0.05) 100%);
}
@media (min-width: 900px) { .panama-band-scrim { padding: 80px 0; } }
.panama-band-text { max-width: 640px; }
.panama-band h2 { color: var(--sand); margin-bottom: 20px; }
.panama-band .lead { color: var(--sand); }
.panama-band p { color: var(--muted-dark); max-width: 60ch; }
#flights-section .flights { margin-top: 0; }

/* Transfer photo in the teal section: a small source image, never upscaled */
.transfer-figure { margin: 32px 0 0; max-width: 360px; }
.transfer-figure img { width: 100%; height: auto; display: block; }
.transfer-figure figcaption { font-size: 14px; color: var(--muted-dark); margin-top: 10px; line-height: 1.5; }
