:root {
  /* brand green page background, sampled from the official logo exports */
  --bg: #13563e;
  --bg-deep: #0a2e20;
  --ink: #fbfaf8;
  --pink: #fa3f5e;
  --line: rgba(251, 250, 248, 0.16);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* faint grain texture over the whole page for a less flat, more printed feel */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the coastal course photo, fixed behind every page — a green tint (baked
   into the same background-image as a gradient layer) plus a blur keeps
   it from ever fighting with the white text sitting on top of it.
   z-index MUST be negative: at 0 a positioned layer paints above all the
   page's normal-flow text. The negative inset hides the blur's soft edge
   so no pale halo rings the viewport. */
body::before {
  content: "";
  position: fixed;
  inset: -30px;
  z-index: -1;
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* the front page: the photo is the whole point, so it stays the most visible here */
body.home::before {
  background-image: linear-gradient(rgba(10, 40, 28, 0.6), rgba(10, 40, 28, 0.6)), url("assets/hero-bg.jpg");
  filter: blur(2px);
}

/* every other page: same photo, just faded almost all the way into the
   green so it reads as texture, not a distraction from the guide itself */
body:not(.home)::before {
  background-image: linear-gradient(rgba(19, 86, 62, 0.92), rgba(19, 86, 62, 0.92)), url("assets/hero-bg.jpg");
  filter: blur(5px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(19, 86, 62, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark-img {
  height: 26px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* vertical padding is what gives these a ~44px touch target.
   scoped to direct children so the pink underline never reaches the
   Book Now dropdown links nested below (their own styles handle hover) */
.header-nav > a {
  position: relative;
  padding: 12px 0 16px;
}

.header-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width 0.25s ease;
}

.header-nav > a:hover::after { width: 100%; }

.header-nav > a.is-active::after { width: 100%; }

/* ---------- Book Now dropdown (golfscape affiliate) ---------- */

.nav-book { position: relative; }

.nav-book summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 16px;
  color: var(--pink);
  font-weight: 600;
}

.nav-book summary::-webkit-details-marker { display: none; }
.nav-book summary::marker { content: ""; }

.nav-book-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.nav-book[open] .nav-book-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-book-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.nav-book-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-book-menu a:hover {
  background: rgba(250, 63, 94, 0.12);
  color: var(--pink);
}

/* "Anywhere" sits apart from the destination list */
.nav-book-menu a.nav-book-any {
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  padding-bottom: 12px;
}

.nav-book-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 18px 4px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.45);
}

.nav-book-note img { height: 13px; width: auto; }

/* ---------- town ticker ---------- */

.ticker {
  position: sticky;
  top: 73px;
  z-index: 9;
  background: var(--bg-deep);
  overflow: hidden;
}

/* fade the names out at both edges instead of clipping them dead */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), rgba(10, 46, 32, 0));
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), rgba(10, 46, 32, 0));
}

/* the track holds two identical groups, so -50% lands exactly on a seam */
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.92);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ticker-link:hover,
.ticker-link:focus-visible {
  color: var(--pink);
}

.ticker-loc {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(251, 250, 248, 0.45);
  transition: color 0.2s ease;
}

.ticker-link:hover .ticker-loc,
.ticker-link:focus-visible .ticker-loc {
  color: var(--pink);
}

.ticker-dot {
  width: 5px;
  height: 5px;
  margin: 0 28px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker::before, .ticker::after { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  /* the ::before glow is a fixed 900px circle — without this it spills past
     the viewport on narrow screens and gives the page a horizontal scroll */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250, 63, 94, 0.10) 0%, rgba(250, 63, 94, 0) 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  /* .hero is a flex container, so without this the wrap shrink-wraps to its
     content and self-centers, pulling the hero off the page's gutter */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* the wordmark is built from the real logo lettering, sliced out of the
   brand PNG — sized in em so the whole lockup scales as one unit */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.14em;
  max-width: 100%;
  font-size: clamp(34px, 7vw, 76px);
}

.hero-logo-flag {
  height: 0.78em;
  width: auto;
  flex-shrink: 0;
  margin-right: -0.02em;
}

.hero-logo-word {
  height: 0.78em;
  width: auto;
  flex-shrink: 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  opacity: 0.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.hero-cta span { transition: transform 0.2s ease; }

.hero-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-cta:hover span { transform: translateX(4px); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* the booking CTA is the money link — filled pink so it reads as primary */
.hero-cta--book {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.hero-cta--book:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink);
}

.about-link span { transition: transform 0.2s ease; }
.about-link:hover span { transform: translateX(4px); }

/* ---------- shared section chrome ---------- */

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

/* ---------- about ---------- */

.about {
  border-top: 1px solid var(--line);
  padding: 120px 0;
  /* the sticky header (73px) + sticky ticker (~42px) sit on top of the
     page — without this, jumping to #about tucks its first line behind them */
  scroll-margin-top: 130px;
}

.about-lede {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 760px;
}

.about-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(251, 250, 248, 0.7);
  max-width: 560px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-mark {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0;
}

/* padding keeps a comfortable tap target while the icons sit close together */
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: rgba(251, 250, 248, 0.62);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 13px;
  color: rgba(251, 250, 248, 0.55);
}

/* affiliate partner credit */
.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(251, 250, 248, 0.6);
  transition: color 0.2s ease;
}

.footer-partner img { height: 15px; width: auto; }

.footer-partner b { font-weight: 600; color: rgba(251, 250, 248, 0.85); }

.footer-partner:hover, .footer-partner:hover b { color: var(--ink); }

/* ---------- generic page hero (guides index, contact, thank-you) ---------- */

.page-hero {
  padding: 100px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero--tall {
  padding: 160px 0;
  border-bottom: none;
}

/* cap the text, not the container — the container has to stay full .wrap width
   or its own max-width would re-center it off the page gutter */
.page-hero-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 640px;
}

.page-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(251, 250, 248, 0.7);
  margin-bottom: 8px;
  max-width: 640px;
}

.page-hero--tall .hero-cta { margin-top: 24px; }

/* ---------- guides listing ---------- */

.guide-grid-section { padding: 72px 0 140px; }

.guide-country + .guide-country { margin-top: 56px; }

.guide-country-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* kill the native disclosure triangle in every engine */
.guide-country-title::-webkit-details-marker { display: none; }
.guide-country-title::marker { content: ""; }

.guide-country-title:hover {
  color: var(--pink);
  border-color: rgba(250, 63, 94, 0.4);
}

.guide-country-title:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.guide-country-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.guide-country[open] .guide-country-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a.guide-card:hover {
  border-color: var(--pink);
  background: rgba(250, 63, 94, 0.04);
  transform: translateY(-2px);
}

.guide-card--soon {
  opacity: 0.55;
  cursor: default;
}

.guide-card-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.guide-card--soon .guide-card-status {
  color: rgba(251, 250, 248, 0.45);
}

.guide-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
}

.guide-card-teaser {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 250, 248, 0.65);
}

.guide-card-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- individual guide page ---------- */

.guide-hero {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(251, 250, 248, 0.6);
  margin-bottom: 24px;
}

.breadcrumb:hover { color: var(--pink); }

.guide-hero-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
  margin: 6px 0 14px;
}

.guide-hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  opacity: 0.75;
  max-width: 700px;
}

.placeholder-note {
  margin: 40px 0 0;
  padding: 20px 24px;
  border: 1px dashed rgba(250, 63, 94, 0.5);
  background: rgba(250, 63, 94, 0.08);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 250, 248, 0.8);
}

.guide-section { padding: 56px 0; }

.guide-section--alt { background: rgba(0, 0, 0, 0.16); }


.guide-section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 18px;
}

.guide-section-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(251, 250, 248, 0.8);
  max-width: 720px;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
}

.guide-list-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
}

/* small uppercase tag under a name — a location, for eats/bars.
   Always its own line so long place names never wrap unpredictably
   mid-line — same layout at every screen size. */
.guide-list-tag {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.45);
}

/* green fee for a course — stays inline to the right of the name.
   Prices are short and uniform enough not to wrap awkwardly. */
.guide-list-price {
  display: inline;
  margin-top: 0;
  margin-left: 6px;
  vertical-align: middle;
}

.guide-list-detail {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251, 250, 248, 0.7);
}

.guide-list-pick {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 250, 248, 0.8);
}

.pick-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-right: 5px;
}

/* ---------- contact form ---------- */

.contact-section { padding: 72px 0 140px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}

.hp-field { display: none; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.6);
}

.form-input {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251, 250, 248, 0.3);
  padding: 10px 2px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--pink);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid rgba(251, 250, 248, 0.3);
  border-radius: 4px;
  padding: 12px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-submit:hover {
  color: var(--ink);
  background: var(--pink);
  border-color: var(--pink);
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .about { padding: 80px 0; }
  /* four nav items + logo on a ~360px screen: tighten to fit one row */
  .header-nav { gap: 13px; font-size: 13px; }
  .guide-grid { grid-template-columns: 1fr; }
  .page-hero, .guide-hero { padding-top: 72px; }
  /* 70px of fade each side would swallow a third of a phone screen */
  .ticker::before, .ticker::after { width: 28px; }
  .ticker-dot { margin: 0 18px; }
  .guide-country-title { font-size: 21px; }
  /* smaller so long course names + a price tag have a better shot at
     staying on one line instead of wrapping the price underneath */
  .guide-list-name { font-size: 15px; }
  /* portrait crop of the landscape photo: pull the frame toward the
     flag (~30% from the left) so the focal point survives the crop */
  body::before { background-position: 30% 55%; }
}

@media (max-width: 400px) {
  .hero-logo { font-size: 7.2vw; }
  /* four nav items leave zero breathing room next to the logo at 360px */
  .header-nav { gap: 10px; font-size: 12px; }
}
