/* ThailandGolfCourses.com — Main Stylesheet
   Mobile-first, single file, no frameworks */

/* ─── Custom properties ─────────────────────────────────────── */
:root {
  --green-900: #0d3320;
  --green-800: #134f2e;
  --green-700: #1a6b3c;
  --green-600: #228b44;
  --green-500: #2ea44a;
  --green-100: #dcfce7;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --red-500:   #ef4444;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-w:     1200px;
  --gutter:    16px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 40px 0; }
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-top: -14px;
  margin-bottom: 20px;
}

/* ─── Header / Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
@media (max-width: 640px) {
  .nav-inner { gap: 8px; }
  .shortlist-label { display: none; }
  .shortlist-btn { gap: 4px; padding: 6px 10px; }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.nav-logo-dot {
  color: var(--green-600);
  font-weight: 600;
}
.nav-links {
  display: none;
  gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-100); text-decoration: none; color: var(--green-700); }
.nav-links a.active { color: var(--green-700); font-weight: 600; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shortlist-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--white);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.shortlist-btn:hover { background: var(--green-700); color: var(--white); }
.shortlist-count {
  background: var(--green-700);
  color: var(--white);
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  display: none;
}
.shortlist-count.visible { display: inline-block; }
.nav-hamburger {
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px var(--gutter) 16px;
}
.nav-mobile.open { display: block; }
.nav-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.nav-mobile-col {
  display: flex;
  flex-direction: column;
}
.nav-mobile-heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  padding: 10px 8px 4px;
}
.nav-mobile-col .nav-mobile-heading:first-child { padding-top: 4px; }
.nav-mobile a {
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-mobile a:hover { background: var(--gray-100); color: var(--green-700); text-decoration: none; }

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--gray-500);
  padding: 12px 0 0;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 45%;
  color: var(--white);
  padding: 88px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(0,38,18,.88) 0%,
    rgba(0,38,18,.72) 50%,
    rgba(0,38,18,.30) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 600px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.hero-golfer-icon {
  position: absolute;
  bottom: 0;
  right: max(16px, calc(50% - 568px));
  height: 90%;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.70;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── Region cards (homepage) ────────────────────────────────── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.region-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  display: block;
}
.region-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.region-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.region-card-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.region-card-arrow {
  float: right;
  color: var(--green-600);
  font-size: 1rem;
  line-height: 1.4;
}

/* ─── Homepage map ───────────────────────────────────────────── */
.map-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.map-section-header {
  padding-top: 28px;
  padding-bottom: 16px;
}
.map-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.map-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}
.map-section-sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}
.map-toggle-btn {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.map-toggle-btn:hover { background: var(--gray-50); }
.map-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.map-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.map-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 2px;
}
.map-filter-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.8125rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.map-filter-btn:hover { border-color: var(--green-700); color: var(--green-700); }
.map-filter-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.map-course-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
  margin-left: auto;
}
.map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
#courses-map {
  width: 100%;
  height: 420px;
}
@media (min-width: 640px) {
  #courses-map { height: 460px; }
}
/* Custom pin */
.map-pin {
  width: 14px;
  height: 14px;
  background: var(--green-700);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
/* Cluster */
.map-cluster {
  width: 36px;
  height: 36px;
  background: var(--green-700);
  color: #fff;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
/* Popup */
.map-popup { min-width: 180px; }
.map-popup-name { font-weight: 700; font-size: .9375rem; margin-bottom: 4px; }
.map-popup-name a { color: var(--gray-900); text-decoration: none; }
.map-popup-name a:hover { color: var(--green-700); }
.map-popup-meta { font-size: .8125rem; color: var(--gray-600); margin-bottom: 3px; }
.map-popup-fee { font-size: .8125rem; font-weight: 600; color: var(--green-700); margin-bottom: 2px; }
.map-popup-region { font-size: .75rem; color: var(--gray-400); margin-bottom: 8px; }
.map-popup-link {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}
.map-popup-link:hover { text-decoration: underline; }

@media (min-width: 640px) {
  #courses-map { height: 500px; }
  .map-filter-bar { flex-wrap: nowrap; gap: 12px 20px; }
}

/* ─── Region strips (homepage) ──────────────────────────────── */
.region-strip {
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--gray-100);
}
.region-strip:last-of-type { border-bottom: none; }
.region-strip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.region-strip-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 2px;
}
.region-strip-count {
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.region-strip-seeall {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.region-strip-seeall:hover { text-decoration: underline; }

/* ─── Course cards ───────────────────────────────────────────── */
.scroll-wrap {
  position: relative;
}
.scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 12px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--scroll-fade-bg, #fff));
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.scroll-wrap.has-next::after { opacity: 1; }
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, box-shadow .15s;
  padding: 0;
  color: var(--gray-700);
}
.scroll-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.scroll-btn-prev { left: -14px; }
.scroll-btn-next { right: -14px; }
.scroll-wrap.has-prev .scroll-btn-prev,
.scroll-wrap.has-next .scroll-btn-next {
  opacity: 1;
  pointer-events: auto;
}
.course-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.course-scroll-row::-webkit-scrollbar { display: none; }

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow .15s, transform .15s;
  flex-shrink: 0;
  width: 280px;
  text-decoration: none;
  display: block;
  color: inherit;
}
.course-grid .course-card { width: auto; }
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.course-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
  overflow: hidden;
}
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 8px;
}
.course-card-placeholder svg { opacity: .5; }

.course-card-save {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: color .15s, background .15s;
  font-size: 1rem;
  line-height: 1;
}
.course-card-save:hover, .course-card-save.saved { color: var(--red-500); background: var(--white); }
.course-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.course-card-body { padding: 14px 14px 16px; }
.course-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 5px;
  line-height: 1.3;
}
.course-card-location {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.course-card-rating { display: flex; align-items: center; gap: 5px; }
.stars { display: flex; gap: 1px; }
.stars .star { color: var(--amber-400); font-size: 0.75rem; }
.stars .star.empty { color: var(--gray-300); }
.rating-text { font-size: 0.75rem; font-weight: 600; color: var(--gray-700); }
.rating-count { font-size: 0.75rem; color: var(--gray-500); }
.course-card-fee {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green-700);
  white-space: nowrap;
}
.course-card-fee-label { font-size: 0.6875rem; font-weight: 400; color: var(--gray-500); display: block; text-align: right; }
.course-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 99px;
}
.tag.green { background: var(--green-100); color: var(--green-700); }

/* ─── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 60px;
  z-index: 90;
  padding: 10px 0;
}
.filter-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 99px;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .12s, background .12s, color .12s;
}
.filter-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.sort-select {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

/* ─── Search bar ────────────────────────────────────────────── */
.hero-search {
  margin-top: 28px;
  position: relative;
  max-width: 480px;
  margin-left: 0;
  margin-right: 0;
}
.hero-search-input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 99px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s, background .15s;
}
.hero-search-input::placeholder { color: rgba(255,255,255,.7); }
.hero-search-input:focus {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.22);
}
.hero-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,.7);
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }
.search-result-img {
  width: 40px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-200);
}
.search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
}
.search-result-region {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1px;
}
.search-result-empty {
  padding: 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}
.hero-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 99px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background .15s;
}
.hero-search-btn:hover { background: rgba(255,255,255,.35); }

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-section { margin-top: 48px; }
.faq-section h2 { margin-bottom: 20px; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
}
.faq-question:hover { color: var(--green-700); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--gray-400);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { display: block; }

/* ── Currency converter ──────────────────────────────────── */
.currency-converter {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.currency-converter label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; }
.currency-select {
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
}
.currency-result {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-700);
}

/* ── Search results page ─────────────────────────────────── */
.search-page-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 48px 0 40px;
}
.search-page-hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
.search-page-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin-top: 16px;
}
.search-page-input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 99px;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
}
.search-page-submit {
  padding: 12px 24px;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s;
}
.search-page-submit:hover { background: var(--green-700); }
.search-results-count {
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ── Best-of / guide page shared ─────────────────────────── */
.editorial-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.editorial-hero .hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.editorial-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 700px; }
.editorial-hero .hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 600px; margin-top: 12px; }
.editorial-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}
.editorial-body h2 { margin: 36px 0 14px; font-size: 1.4rem; color: var(--green-800); }
.editorial-body h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.editorial-body p { line-height: 1.75; color: var(--gray-700); margin-bottom: 14px; }
.editorial-body ul, .editorial-body ol { line-height: 1.75; color: var(--gray-700); padding-left: 20px; margin-bottom: 14px; }
.editorial-body li { margin-bottom: 6px; }

/* Ranked course list for best-of pages */
.ranked-course-list { list-style: none; padding: 0; margin: 24px 0; }
.ranked-course-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ranked-course-item:last-child { border-bottom: none; }
.rank-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-500);
  min-width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.ranked-course-img {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.ranked-course-img-placeholder {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  flex-shrink: 0;
}
.ranked-course-info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ranked-course-info h3 a { color: var(--gray-900); text-decoration: none; }
.ranked-course-info h3 a:hover { color: var(--green-700); }
.ranked-course-meta { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 6px; }
.ranked-course-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
@media (max-width: 480px) {
  .ranked-course-img, .ranked-course-img-placeholder { display: none; }
}

/* Guide page tip box */
.tip-box {
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
}
.tip-box p { margin: 0; color: var(--green-900); font-size: 0.95rem; }
.tip-box strong { color: var(--green-700); }

/* Info table for guide pages */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.info-table th { text-align: left; padding: 10px 12px; background: var(--gray-50); color: var(--gray-700); font-weight: 600; border-bottom: 2px solid var(--gray-200); }
.info-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.info-table tr:last-child td { border-bottom: none; }

/* T2 hub search */
.hub-search-wrap {
  padding: 12px 0 4px;
  position: relative;
  max-width: 420px;
}
.hub-search-input {
  width: 100%;
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 99px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color .12s;
}
.hub-search-input:focus { border-color: var(--green-600); }
.hub-search-input::placeholder { color: var(--gray-400); }
.hub-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-400);
  margin-top: 6px;
}

/* ─── Results count ──────────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count { font-size: 0.875rem; color: var(--gray-500); }
.results-count strong { color: var(--gray-900); }

/* ─── Course page (T4) ───────────────────────────────────────── */
.course-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 28px 0 0;
}
.course-hero-inner { display: flex; flex-direction: column; gap: 0; }
.course-hero-text { padding: 0 0 24px; }
.course-hero h1 {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.course-hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}
.course-hero-location a { color: rgba(255,255,255,.85); text-decoration: underline; }
.course-hero-quick {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.quick-fact { text-align: center; }
.quick-fact strong { display: block; font-size: 1.1875rem; font-weight: 800; color: var(--white); }
.quick-fact span { font-size: 0.75rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }

.course-img-strip-wrap {
  position: relative;
  background: var(--gray-900);
  overflow: hidden;
}
.course-img-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 260px;
  scroll-behavior: smooth;
}
.course-img-strip::-webkit-scrollbar { display: none; }
.course-img-strip img {
  height: 260px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.img-strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  width: 40px;
  height: 56px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  padding: 0;
}
.img-strip-btn:hover { background: rgba(0,0,0,.8); }
.img-strip-prev { left: 0; border-radius: 0 4px 4px 0; }
.img-strip-next { right: 0; border-radius: 4px 0 0 4px; }
.gallery-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}

/* ─── Maps embed ─────────────────────────────────────────────── */
.map-embed {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.map-legend-item { display: flex; align-items: center; gap: 4px; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.faq-a p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.6;
}

/* ─── Fact bar ───────────────────────────────────────────────── */
.fact-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.fact-bar-inner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fact-item-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 600; }
.fact-item-value { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); }

/* ─── Green fees table ───────────────────────────────────────── */
.fees-table-wrap { overflow-x: auto; }
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.fees-table th {
  background: var(--gray-100);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
  font-weight: 700;
  border-bottom: 1px solid var(--gray-200);
}
.fees-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.fees-table tr:last-child td { border-bottom: none; }
.fees-table .fee-amount {
  font-weight: 700;
  color: var(--green-700);
  font-size: 1rem;
}
.fees-table .fee-gbp {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.fees-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 10px;
  font-style: italic;
}

/* ─── Facilities grid ────────────────────────────────────────── */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.facility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.facility-icon { font-size: 1.25rem; flex-shrink: 0; }
.facility-name { font-size: 0.875rem; font-weight: 500; color: var(--gray-800); }

/* ─── Reviews ────────────────────────────────────────────────── */
.review-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-author { font-size: 0.875rem; font-weight: 700; color: var(--gray-900); }
.review-source { font-size: 0.75rem; color: var(--gray-500); }
.review-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Opening hours ──────────────────────────────────────────── */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}
.hours-row:nth-child(odd) { background: var(--gray-50); }
.hours-day { font-weight: 500; color: var(--gray-800); }
.hours-time { color: var(--gray-600); }
.hours-closed { color: var(--red-500); font-weight: 500; }

/* ─── Getting there ──────────────────────────────────────────── */
.getting-there-grid {
  display: grid;
  gap: 12px;
}
.distance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.distance-icon { font-size: 1.25rem; }
.distance-info { flex: 1; }
.distance-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.distance-value { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); }

/* ─── CTA / buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); color: var(--white); }
.btn-outline { background: var(--white); color: var(--green-700); border: 2px solid var(--green-600); }
.btn-outline:hover { background: var(--green-700); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-save {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color .12s, color .12s, background .12s;
}
.btn-save:hover, .btn-save.saved { border-color: var(--red-500); color: var(--red-500); }
.btn-save.saved { background: #fff5f5; }

/* ─── Official website link ──────────────────────────────────── */
.official-site-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--green-100);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--green-800);
  transition: background .12s;
}
.official-site-link:hover { background: #bbf7d0; text-decoration: none; }
.official-site-link svg { flex-shrink: 0; }

/* ─── Nearby courses strip ───────────────────────────────────── */
.nearby-section { padding: 32px 0; }

/* ─── Nearby places (hotels / restaurants / landmarks) ──────── */
.nearby-places-section { padding: 32px 0; border-top: 1px solid var(--gray-200); }
.np-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.np-scroll-row::-webkit-scrollbar { display: none; }
.np-card-wrap {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
}
.np-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--gray-200);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
  display: block;
}
.np-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.np-save-btn {
  width: 100%;
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
}
.np-save-btn:hover { background: var(--green-50, #f0fdf4); }
.np-save-btn.saved { background: var(--green-700); color: var(--white); }
.np-card-img { height: 140px; overflow: hidden; background: var(--gray-100); }
.np-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--green-100) 0%, var(--gray-200) 100%); }
.np-card-body { padding: 12px; }
.np-card-name { font-size: .875rem; font-weight: 600; color: var(--gray-900); margin: 0 0 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-card-meta { font-size: .75rem; color: var(--gray-500); margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.np-stars { color: var(--yellow-400, #facc15); letter-spacing: -1px; }
.np-rating { font-weight: 600; color: var(--gray-700); }
.np-price { color: var(--green-700); font-weight: 600; }
.np-dist { color: var(--gray-400); }

/* ─── Editorial text ─────────────────────────────────────────── */
.editorial {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
}
.editorial p { margin-bottom: 1rem; }
.editorial p:last-child { margin-bottom: 0; }
.editorial h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 1.5rem 0 .75rem; }
.editorial h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin: 1.25rem 0 .5rem; }

/* ─── Page header (utility pages) ───────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0 28px;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.page-header p { font-size: 1rem; color: var(--gray-600); }

/* ─── Content page (utility pages) ──────────────────────────── */
.content-page {
  max-width: 720px;
  padding: 40px 0 64px;
}
.content-page h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 2rem 0 .75rem; }
.content-page h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin: 1.5rem 0 .5rem; }
.content-page p { margin-bottom: 1rem; color: var(--gray-700); line-height: 1.75; }
.content-page ul, .content-page ol { margin: 0 0 1rem 1.5rem; }
.content-page li { margin-bottom: .4rem; color: var(--gray-700); line-height: 1.7; list-style: disc; }
.content-page a { color: var(--green-700); text-decoration: underline; }
.content-page strong { color: var(--gray-900); }

/* ─── Contact form ───────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .12s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--green-600);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.75);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  margin-bottom: 32px;
}
.footer-brand {
  grid-column: 1 / -1;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.footer-logo .nav-logo-dot { color: rgba(255,255,255,.55); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-bottom p { font-size: 0.8125rem; }
.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal-links a { font-size: 0.8125rem; color: rgba(255,255,255,.6); }
.footer-legal-links a:hover { color: var(--white); text-decoration: none; }

/* ─── Cookie banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--white);
  padding: 16px var(--gutter);
  z-index: 200;
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -4px 12px rgba(0,0,0,.2);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { font-size: 0.875rem; flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner p a { color: var(--amber-400); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--green-600);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* ─── AdSense slots ──────────────────────────────────────────── */
.ad-slot {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 24px 0;
}

/* ─── 404 page ───────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 16px;
}
.error-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.06em;
}
.error-page h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.error-page p { color: var(--gray-600); margin-bottom: 28px; }

/* ─── Fix visited link color inside buttons ──────────────────── */
a.btn:visited { color: inherit; }
a.btn-primary:visited { color: var(--white); }
a.btn-outline:visited { color: var(--green-700); }

/* ─── Shortlist page ─────────────────────────────────────────── */
.shortlist-page { padding: 0 0 48px; }

/* Empty state */
.shortlist-empty {
  text-align: center;
  padding: 48px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.shortlist-empty svg { display: block; margin: 0 auto 16px; }
.shortlist-empty-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.shortlist-empty-nav .btn {
  display: flex;
  width: 100%;
  justify-content: center;
}
.shortlist-empty-nav .sl-explore-btn,
.shortlist-empty-nav .btn-primary {
  grid-column: 1 / -1;
  color: var(--white) !important;
  background: var(--green-700);
}

/* Dashboard */
.sl-dashboard {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.sl-dash-stat {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.sl-dash-stat:last-child { border-right: none; }
.sl-dash-num {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1.2;
}
.sl-dash-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.sl-session-banner {
  background: var(--green-100);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--green-700);
  margin-bottom: 16px;
}
.sl-section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 12px;
}
.sl-regions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.sl-regions-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.sl-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.sl-region-pill {
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 99px;
  font-size: 0.8rem;
}
.sl-region-pill strong { font-weight: 700; }

/* Share panel */
.sl-share-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.sl-share-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.sl-share-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.sl-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  transition: border-color .12s, background .12s, color .12s;
}
.sl-share-btn:hover, .sl-share-btn:visited { color: var(--gray-700); text-decoration: none; }
.sl-share-btn:hover { border-color: var(--gray-500); background: var(--gray-50); }
.sl-wa-btn { border-color: #25d366; color: #128c44; }
.sl-wa-btn:hover, .sl-wa-btn:visited { color: #128c44; background: #f0fef5; }
.sl-sms-btn { border-color: #6b7280; }

/* Courses section */
.sl-courses-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.sl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gray-100);
}
.sl-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.sl-type-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 99px;
  padding: 1px 8px;
  margin-left: 6px;
}
.sl-type-section { margin-bottom: 8px; }
.sl-type-breakdown {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0 0 14px;
}
.sl-clear-btn {
  font-size: 0.8rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
}
.sl-clear-btn:hover { color: var(--red-500); }
.sl-course-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.sl-course-row:last-child { border-bottom: none; }
.sl-course-thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  display: block;
}
.sl-course-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
}
.sl-course-thumb-placeholder { width: 72px; height: 54px; background: var(--gray-200); }
.sl-course-info { flex: 1; min-width: 0; }
.sl-course-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-course-name:hover { color: var(--green-700); }
.sl-course-name:visited { color: var(--gray-900); }
.sl-course-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sl-rating { color: var(--amber-500); font-weight: 600; }
.sl-vote-wrap {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.sl-vote-btn {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: border-color .12s, background .12s;
}
.sl-vote-btn:hover { border-color: var(--gray-400); background: var(--gray-50); }
.sl-vote-btn.active { border-color: var(--green-600); background: var(--green-100); }
.sl-remove-btn {
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: color .12s;
}
.sl-remove-btn:hover { color: var(--red-500); }

/* Leaderboard */
.sl-leaderboard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}
.sl-leader-type { margin-top: 20px; }
.sl-leader-type:first-child { margin-top: 0; }
.sl-leader-type-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-100);
}
.vote-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.vote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.vote-table thead th {
  background: var(--gray-50);
  padding: 9px 10px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.vote-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
}
.vote-table tbody tr:last-child { border-bottom: none; }
.vt-row-up   { background: #f0fdf4; }
.vt-row-down { background: #fef2f2; }
.vt-rank {
  padding: 10px 10px;
  font-size: 1.1rem;
  white-space: nowrap;
  width: 48px;
  text-align: center;
}
.vt-rank-num {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 600;
}
.vt-name {
  padding: 10px 8px;
  font-weight: 600;
  color: var(--gray-800);
}
.vt-name a { color: inherit; text-decoration: none; }
.vt-name a:hover { color: var(--green-700); }
.vt-votes {
  padding: 10px 8px;
  text-align: center;
  width: 52px;
}
.vt-group-rank {
  padding: 10px 8px;
  width: 72px;
  white-space: nowrap;
}
.vt-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 2px 8px;
}
.vt-badge-up   { background: var(--green-100); color: var(--green-700); }
.vt-badge-down { background: #fef2f2; color: #dc2626; }
.vt-badge-none { color: var(--gray-300); font-size: 0.9rem; }
.vt-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
}
.vt-status-in        { background: var(--green-100); color: var(--green-700); }
.vt-status-out       { background: #fef2f2; color: #dc2626; }
.vt-status-undecided { background: var(--gray-100); color: var(--gray-400); }

/* Member greeting */
.sl-member-greet {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.sl-member-greet strong { color: var(--gray-700); }

/* Fave stat — wraps long names */
.sl-dash-fave { flex: 1.5; }
.sl-fave-names {
  white-space: normal;
  line-height: 1.35;
  font-size: 0.75rem;
}

/* ─── Capture modal ──────────────────────────────────────────── */
.sl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sl-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: sl-modal-in .18s ease;
  margin: auto;
}
@keyframes sl-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sl-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 1.4rem; color: var(--gray-400);
  cursor: pointer; line-height: 1;
}
.sl-modal-close:hover { color: var(--gray-700); }
.sl-modal-icon { font-size: 2rem; margin-bottom: 8px; }
.sl-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.sl-modal-sub {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.sl-modal-form { text-align: left; }
.sl-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 400px) { .sl-modal-row { grid-template-columns: 1fr; } }
.sl-modal-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.sl-modal-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.sl-modal-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  outline: none;
  transition: border-color .12s;
}
.sl-modal-input:focus { border-color: var(--green-600); }
.sl-modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.45;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: normal;
}
.sl-modal-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green-700);
  cursor: pointer;
}
.sl-modal-check a { color: var(--green-700); text-decoration: underline; }
.sl-required-mark {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 4px;
}
.sl-opt-mark {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 4px;
}
.sl-modal-check-opt { color: var(--gray-700); }
.sl-check-error { color: var(--red-500); }
.sl-check-error input[type="checkbox"] { outline: 2px solid var(--red-500); border-radius: 2px; }
.sl-modal-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .hero-golfer-icon { height: 60%; right: -4%; opacity: 0.35; }
  .sl-dashboard { flex-wrap: wrap; }
  .sl-dash-stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .sl-dash-stat:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .sl-dash-stat:last-child { border-bottom: none; }
  .sl-dash-fave { min-width: 100%; border-right: none !important; }
  .sl-course-thumb { width: 56px; height: 42px; }
  .sl-course-thumb img { width: 56px; height: 42px; }
}

/* ─── Utilities ──────────────────────────────────────────────── */
.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;
}
.text-muted { color: var(--gray-500); }
.text-green { color: var(--green-700); }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }
.no-results { text-align: center; padding: 48px 20px; color: var(--gray-500); display: none; }
.no-results.visible { display: block; }

/* ─── Responsive: tablet (≥ 640px) ──────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-golfer-icon { height: 82%; right: 8%; opacity: 0.50; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .getting-there-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Responsive: desktop (≥ 1024px) ────────────────────────── */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .hero { padding: 96px 0 88px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-golfer-icon { height: 94%; }
  .region-grid { grid-template-columns: repeat(4, 1fr); }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .facilities-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.625rem; }
  .course-hero { padding: 36px 0 0; }
  .course-hero h1 { font-size: 2.25rem; }
  .course-hero-inner { flex-direction: row; align-items: flex-start; gap: 0; }
  .course-hero-text { flex: 1; padding-right: 32px; }
  .course-img-strip { height: 340px; }
  .course-img-strip img { height: 340px; }
  .content-page { padding: 56px 0 80px; }
  .getting-there-grid { grid-template-columns: repeat(3, 1fr); }
}
