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

:root {
  --surface: #ffffff;
  --bg: #f5f3ef;
  --bg-alt: #ebe8e1;
  --bg-dark: #0f0f1a;
  --bg-dark-alt: #1a1a2e;
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --accent: #d4a843;
  --accent-light: #e8c86e;
  --accent-dark: #b8922e;
  --text: #0f0f1a;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e0dcd4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px -8px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px -12px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --header-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::selection {
  background: var(--primary);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  text-align: center;
  line-height: 1.3;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a0a;
}
.btn-primary:hover { background: var(--accent-dark); color: #1a1a0a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.btn-sm {
  padding: 8px 18px;
  font-size: .8125rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--bg-dark);
  color: rgba(255,255,255,.85);
}
.section-dark .section-subtitle { color: rgba(255,255,255,.6); }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: -.02em;
}
.logo:hover { color: var(--accent-light); }
.logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all .2s;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  padding: 4px;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,.95) 0%, rgba(45,106,79,.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  animation: fadeInUp .8s cubic-bezier(.22,1,.36,1);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.hero-content p {
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: .8;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.hero-search button {
  padding: 16px 32px;
  background: var(--accent);
  color: #1a1a0a;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}

.hero-search button:hover { background: var(--accent-dark); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.hero-stat { text-align: center; }

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: .8125rem;
  opacity: .6;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== COURSE CARDS ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.course-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  overflow: hidden;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.course-card-img {
  height: 180px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: #f0f2f5;
}

.course-card-body {
  padding: 20px 24px 24px;
}

.course-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  line-height: 1.3;
}

.course-card-body .location {
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.tag {
  padding: 3px 10px;
  font-size: .6875rem;
  font-weight: 600;
  background: var(--bg);
  border-radius: var(--radius-full);
  color: var(--text-light);
  letter-spacing: .01em;
}

.course-card-body p {
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.course-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-bottom: 14px;
  font-size: .8125rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.course-specs span { line-height: 1.6; display: flex; align-items: center; gap: 4px; }
.course-specs strong { color: var(--text); font-weight: 600; }

.course-card-actions {
  display: flex;
  gap: 8px;
}
.course-card-actions .btn {
  flex: 1;
  font-size: .8125rem;
  padding: 9px 16px;
  text-align: center;
}

.course-card[data-status="premier-plus"] {
  background: linear-gradient(135deg, rgba(212,168,67,.06), rgba(212,168,67,.02));
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 20px rgba(212,168,67,.12), var(--shadow);
}
.course-card[data-status="premier-plus"]::after {
  content: 'Featured';
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 12px;
  font-size: .625rem;
  font-weight: 800;
  background: var(--accent);
  color: #1a1a0a;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
}

.course-card a, .course-card button { cursor: pointer; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-item p {
  font-size: .9375rem;
  opacity: .75;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.about-preview-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-preview-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-preview-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== CTA ===== */
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.cta-content p {
  font-size: 1.0625rem;
  opacity: .85;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .8125rem; line-height: 1.7; }

.footer h4 {
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer ul li { margin-bottom: 8px; }
.footer ul a {
  color: rgba(255,255,255,.6);
  font-size: .8125rem;
  transition: color .2s;
}
.footer ul a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 100px 0 56px;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.page-header p {
  font-size: 1.0625rem;
  opacity: .7;
  max-width: 560px;
  margin: 0 auto;
}

.page-header--404 {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
}

.page-header--privacy {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
}

/* ===== ABOUT PAGES ===== */
.about-section {
  max-width: 760px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -.01em;
}

.about-section p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.about-section ul li {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-details { margin-bottom: 28px; }

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail h4 { font-size: .8125rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail p { font-size: .8125rem; color: var(--text-light); }

.contact-form {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: .9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== BROWSE REGIONS ===== */
.browse-regions {
  margin-bottom: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.browse-regions h2 { font-size: 1.125rem; margin: 0 0 4px; font-weight: 700; }
.browse-regions p { font-size: .8125rem; color: var(--text-light); margin: 0 0 16px; }
.region-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region-list li a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.region-list li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: .9375rem; margin: 0 0 4px; font-weight: 600; }
.faq-item p { font-size: .8125rem; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ===== COURSES TOOLBAR ===== */
.courses-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.courses-toolbar input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  font-size: .9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  background: var(--surface);
}

.courses-toolbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}

.courses-toolbar select {
  padding: 12px 16px;
  font-size: .9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  min-width: 180px;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}

.courses-toolbar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}

.courses-toolbar-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.courses-toolbar-row select {
  flex: 1;
  min-width: 150px;
}

.result-count {
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: none;
}
.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: .9375rem;
}

.map-toggle { margin-bottom: 16px; }
.courses-map {
  height: 350px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  z-index: 1;
}

/* ===== DETAIL PAGE ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.detail-image {
  position: relative;
  height: 280px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.detail-image--premier-plus {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 24px rgba(212,168,67,.15);
}
.detail-image img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.detail-main .card,
.detail-sidebar .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.detail-main .card h2,
.detail-sidebar .card h3 {
  margin-bottom: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.specs-list span {
  font-size: .8125rem;
  color: var(--text-light);
}
.specs-list strong {
  color: var(--text);
  display: block;
  font-size: .75rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.detail-sidebar .card h3 { margin-bottom: 14px; }
#detailContactInfo p { margin-bottom: 8px; font-size: .8125rem; }
#detailContactInfo a { color: var(--primary); }
#detailActionButtons { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#detailActionButtons .btn { text-align: center; }

.affiliate-links {
  list-style: none;
  padding: 0;
}
.affiliate-links li {
  margin-bottom: 8px;
  font-size: .8125rem;
}
.affiliate-links a {
  color: var(--primary);
  text-decoration: none;
}
.affiliate-links a:hover { text-decoration: underline; }

/* ===== HERO COMPACT ===== */
.hero-compact {
  position: relative;
}
.hero-compact-content {
  position: relative;
}

.floating-review {
  /* legacy, not used */
}

.hero-floating-reviews {
  position: absolute;
  bottom: 20px;
  right: 24px;
  pointer-events: none;
  z-index: 3;
  text-align: right;
}
.floating-review-decor {
  display: none;
}
.floating-review-slot {
  max-width: 260px;
  margin-left: auto;
}
.floating-review-slot .fr-text {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.floating-review-slot .fr-meta {
  font-size: .75rem;
}
.floating-review-slot .fr-name {
  font-weight: 700;
  color: var(--accent-light);
}
.floating-review-slot .fr-role {
  color: var(--text-muted);
  margin-left: 4px;
}
.floating-review-slot .fr-role::before {
  content: '';
  display: inline-block;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  vertical-align: middle;
  margin: 0 5px;
}
.floating-review.active {
  opacity: 1;
}
.floating-review .fr-text {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
}
.floating-review .fr-name {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-light);
}
.floating-review .fr-role {
  font-size: .6875rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.floating-review .fr-role::before {
  content: '';
  display: inline-block;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  vertical-align: middle;
  margin: 0 6px;
}



/* ===== COURSE BADGES ===== */
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.course-badge--links { background: #d1fae5; color: #065f46; }
.course-badge--parkland { background: #dbeafe; color: #1e40af; }
.course-badge--heathland { background: #fef3c7; color: #92400e; }
.course-badge--downland { background: #fce7f3; color: #9d174d; }
.course-badge--moorland { background: #ede9fe; color: #5b21b6; }

/* ===== REGISTER PAGE ===== */
.reg-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.reg-page-form { min-width: 0; }
.reg-card-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.reg-section-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.reg-section-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.reg-section-header p { font-size: .8125rem; color: var(--text-light); }
.reg-card-wrap label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.reg-req { color: #dc2626; }
.reg-card-wrap input[type="text"],
.reg-card-wrap input[type="url"],
.reg-card-wrap input[type="tel"],
.reg-card-wrap input[type="email"],
.reg-card-wrap input[type="number"],
.reg-card-wrap textarea,
.reg-card-wrap select {
  width: 100%;
  padding: 10px 14px;
  font-size: .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  background: var(--surface);
}
.reg-card-wrap input:focus,
.reg-card-wrap textarea:focus,
.reg-card-wrap select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}
.reg-card-wrap input[aria-invalid="true"],
.reg-card-wrap textarea[aria-invalid="true"] {
  border-color: #dc2626;
}
.reg-field-error {
  display: none;
  font-size: .75rem;
  color: #dc2626;
  margin-top: 4px;
}
.reg-field-error.show { display: block; }
.reg-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.reg-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.reg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.reg-chip input { display: none; }
.reg-chip:has(input:checked) {
  background: rgba(45,106,79,.1);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.reg-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.reg-toggle input { display: none; }
.reg-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 14px;
  transition: background .25s;
}
.reg-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.reg-toggle input:checked + .reg-toggle-track { background: var(--primary); }
.reg-toggle input:checked + .reg-toggle-track .reg-toggle-thumb { transform: translateX(20px); }
.reg-submit-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.reg-submit-bar .btn { width: 100%; font-size: 1rem; padding: 14px; }
.reg-form-error {
  display: none;
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .8125rem;
  margin-bottom: 16px;
}
.reg-form-error.show { display: block; }
.reg-note {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 12px;
}
.reg-consent {
  text-align: left;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.reg-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .8125rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.reg-consent-check:last-child { margin-bottom: 0; }
.reg-consent-check input { display: none; }
.reg-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-top: 2px;
  transition: all .2s;
  position: relative;
}
.reg-consent-check input:checked + .reg-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}
.reg-consent-check input:checked + .reg-checkbox::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reg-char-count {
  font-size: .75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 3px;
}
.reg-char-count.warning {
  color: #dc2626;
  font-weight: 600;
}
.reg-page-preview { position: sticky; top: 88px; }
.reg-preview-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.reg-preview-hint {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}
.reg-success {
  text-align: center;
  padding: 60px 20px;
}
.reg-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.reg-success p { color: var(--text-light); margin-bottom: 24px; }
.reg-success .btn { display: inline-block; }

/* ===== ADMIN OVERRIDES ===== */
.admin-chips .reg-chip { font-size: .75rem; padding: 6px 12px; background: var(--surface); }

/* ===== MAP PINS ===== */
.custom-pin { background:none !important; border:none !important; }
.custom-pin svg { display:block; filter:drop-shadow(0 2px 4px rgba(0,0,0,.3)); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .reg-page-layout { grid-template-columns: 1fr; }
  .reg-page-preview { position: static; }
  .reg-row-2col, .reg-row-3col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.75rem; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    background: var(--bg-dark-alt);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    gap: 2px;
    box-shadow: var(--shadow-xl);
    animation: slideDown .2s ease;
  }
  .nav.open a { width: 100%; padding: 12px 16px; color: rgba(255,255,255,.7); }
  .nav.open a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 100px 0 80px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.0625rem; }
  .hero-search { border-radius: var(--radius); }
  .hero-search input { padding: 14px 16px; }
  .hero-search button { width: auto; padding: 14px 20px; font-size: .875rem; white-space: nowrap; }
  .hero-stats { flex-direction: column; gap: 24px; margin-top: 36px; }

  .stats-grid { gap: 32px; flex-wrap: wrap; }
  .stat-item h3 { font-size: 2rem; }

  .about-preview { grid-template-columns: 1fr; gap: 32px; }
  .about-preview-image img { height: 250px; }

  .courses-grid { grid-template-columns: 1fr; }
  .course-card-img { height: 160px; }
  .course-card-body { padding: 16px 20px 20px; }
  .course-card-body p { font-size: .8125rem; }
  .course-specs { gap: 2px 12px; font-size: .75rem; }
  .course-card-actions { flex-direction: column; }
  .course-card-actions .btn { padding: 10px 16px; }
  .course-card[data-status="premier-plus"]::after { font-size: .5625rem; padding: 3px 10px; top: 8px; right: 8px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 20px; }

  .page-header { padding: 80px 0 40px; }
  .page-header h1 { font-size: 2.25rem; }

  .courses-toolbar { flex-direction: column; }
  .courses-toolbar input,
  .courses-toolbar select,
  .courses-toolbar-row select { min-width: unset; width: 100%; }
  .courses-toolbar-row { flex-direction: column; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { height: 200px; }
  .detail-main .card,
  .detail-sidebar .card { padding: 20px; }
  .specs-list { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 32px; }
  .section-subtitle { font-size: 1rem; }
  .container { padding: 0 16px; }
  .about-section p { font-size: .9375rem; }
  .about-section ul li { font-size: .9375rem; }
  .about-section h2 { font-size: 1.25rem; }

  .btn { padding: 11px 24px; font-size: .8125rem; }

  .actions-menu { right: auto; left: 0; }
}

@media (max-width: 480px) {
  .stats-grid { flex-direction: column; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 1rem; }
  .page-header h1 { font-size: 1.75rem; }
  .page-header { padding: 72px 0 36px; }
  .section-title { font-size: 1.5rem; }
  .section { padding: 36px 0; }
  .stat-item h3 { font-size: 1.75rem; }
  .course-card-img { height: 140px; }
  .header-inner { height: 56px; }
  .logo img { height: 30px; }
  .reg-card-wrap { padding: 20px 16px; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-content h1 { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }
  .course-card-img { height: 120px; }
  .contact-form { padding: 16px; }
  .detail-image { height: 180px; }
  .courses-map { height: 250px; }
}
