/* MundoBarco — Estilos */

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

:root {
  /* Core palette — light nautical, elegant */
  --navy:       #ffffff;
  --navy-800:   #ecedf2;
  --navy-700:   #e2e4ea;
  --navy-600:   #d5d7e0;
  --navy-500:   #c8cad5;
  --ocean:      #2563eb;
  --ocean-dark: #1d4ed8;
  --ocean-light:#3b82f6;
  --ocean-10:   rgba(37,99,235,0.08);
  --ocean-15:   rgba(37,99,235,0.12);
  --ocean-20:   rgba(37,99,235,0.16);
  --teal:       #0d9488;
  --teal-light: #ccfbf1;
  --gold:       #b8860b;
  --gold-light: #fef3c7;
  --white:      #ffffff;
  --gray-50:    #f8f9fc;
  --gray-100:   #f0f1f5;
  --gray-200:   #e2e4ea;
  --gray-300:   #4b5060;
  --gray-400:   #4b5060;
  --gray-500:   #4a4f5e;
  --gray-600:   #353845;
  --gray-700:   #e2e4ea;
  --gray-800:   #f0f1f5;
  --gray-900:   #f8f9fc;

  /* Header stays dark for contrast */
  --header-bg:  #0f172a;
  --header-text: rgba(255,255,255,0.92);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Inter', -apple-system, sans-serif;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-glow:0 0 40px rgba(37,99,235,0.10);

  --glass-bg:   #ffffff;
  --glass: #ffffff;
  --glass-border: #e5e7eb;
  --glass-strong: #f3f4f6;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-hover-border: var(--ocean);

  --text-primary: #1a1d26;
  --text-secondary: #4a4f5e;
  --text-muted: #4b5060;
  --text-faint: #636878;

  --max-w: 1200px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 72px; }

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

a { color: var(--ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocean-dark); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-5); }

/* ─── Header — stays dark for brand contrast ─── */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.site-logo span { color: var(--ocean); }
.site-logo:hover { text-decoration: none; }

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

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.site-nav a.active {
  color: #fff;
  background: var(--ocean);
  font-weight: 600;
}

/* Nav dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  color: rgba(255,255,255,0.85); background: none; border: none; font-size: 0.85rem; font-weight: 500;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); cursor: pointer; display: flex;
  align-items: center; gap: 4px; transition: all var(--transition); font-family: inherit;
}
.nav-dropdown-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-dropdown-btn.active { color: #fff; font-weight: 600; }
.nav-highlight { color: var(--ocean) !important; font-weight: 600; text-decoration: none; }
.nav-highlight:hover { color: #fff !important; background: rgba(38,128,235,.12); }
.nav-highlight.active { color: #fff !important; background: var(--ocean); border-radius: 6px; padding: 6px 12px; }
.nav-dropdown-btn svg { opacity: 0.5; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 180px; z-index: 1000;
  background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  padding: var(--sp-2) 0; padding-top: calc(var(--sp-2) + 4px); box-shadow: 0 12px 36px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility 0s .15s;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .15s, visibility 0s; }
.nav-dropdown-menu a {
  display: block; padding: 8px 16px; color: rgba(255,255,255,0.85); font-size: 0.84rem; font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-dropdown-menu a.active { color: #fff; font-weight: 700; background: rgba(37,99,235,0.15); }

.lang-switch {
  margin-left: var(--sp-4);
  padding-left: var(--sp-4);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 2px;
}
.lang-switch a {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-2);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.current { color: #fff; background: var(--ocean); }

/* ─── Hero ─── */
.hero {
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(38,128,235,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(14,165,160,0.08) 0%, transparent 50%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  padding: var(--sp-24) 0 var(--sp-20);
  text-align: center;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

/* Hero with photo background */
.hero--photo {
  padding: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1);    object-position: center 30%; }
  100% { transform: scale(1.05); object-position: center 35%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.55) 0%,
      rgba(10, 22, 40, 0.45) 30%,
      rgba(10, 22, 40, 0.40) 50%,
      rgba(10, 22, 40, 0.50) 75%,
      rgba(10, 22, 40, 0.80) 100%
    ),
    radial-gradient(ellipse 60% 40% at 50% 40%, transparent 0%, rgba(10,22,40,0.20) 100%);
}

.hero--photo .hero-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-24) 0 var(--sp-16);
}

.hero--photo h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.3;
}

.hero--photo p {
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.92);
}

.hero-tagline {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero--photo .hero-desc {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-6);
}

.btn--hero {
  padding: var(--sp-3) var(--sp-8);
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.btn-outline {
  background: #fff;
  border: 1.5px solid #d1d5db;
  color: #374151;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  background: rgba(37,99,235,0.04);
}

.hero--photo .search-box {
  max-width: 560px;
}

.hero--photo .search-box input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.hero--photo .search-box input:focus {
  background: rgba(255,255,255,0.18);
  border-color: var(--ocean-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 40px rgba(38,128,235,0.2);
}

.hero--photo .stats-bar {
  margin-top: var(--sp-16);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  padding: var(--sp-5) var(--sp-8);
  display: inline-flex;
}

.hero--photo .stat-value {
  font-size: 1.5rem;
  color: #fff;
}
.hero--photo .stat-label {
  color: rgba(255,255,255,0.85);
}

/* Subtle wave texture at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ─── Category cards ─── */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-10) 0;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cat-card:hover .cat-card-img {
  transform: scale(1.06);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
}

.cat-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cat-card-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: var(--sp-1);
}

/* ─── Quick nav icons ─── */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: var(--sp-5) 0;
}
.quick-nav-grid {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}
.quick-nav-grid::-webkit-scrollbar { display: none; }
.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #4b5060;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all var(--transition);
  min-width: 80px;
}
.quick-nav-item:hover {
  background: var(--ocean-10);
  color: var(--ocean);
}
.quick-nav-item--highlight {
  color: var(--ocean);
}
.quick-nav-item--highlight .quick-nav-icon {
  background: var(--ocean);
  color: #fff;
}
.quick-nav-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  color: #4b5060;
  transition: all var(--transition);
}
.quick-nav-item:hover .quick-nav-icon {
  background: var(--ocean);
  color: #fff;
}
@media (max-width: 768px) {
  .quick-nav-grid { justify-content: flex-start; }
  .quick-nav-item { padding: var(--sp-2) var(--sp-3); min-width: 72px; font-size: 0.78rem; }
  .quick-nav-icon { width: 42px; height: 42px; }
}

/* ─── Home quick links ─── */
.home-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-8) 0 var(--sp-10);
}

.home-link-card {
  display: block;
  padding: var(--sp-5) var(--sp-6);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all var(--transition);
  color: #374151;
  text-decoration: none;
}

.home-link-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateY(-2px);
  color: #374151;
}
.home-link-card--featured {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
  color: #bfdbfe;
  border-color: #1e40af;
}
.home-link-card--featured:hover {
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.home-link-card--featured .home-link-title { color: #fff; }
.home-link-card--featured .home-link-desc { color: #93c5fd; }

.home-link-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.home-link-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ─── Value propositions ─── */
/* (unused) */

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
  line-height: 1.1;
}
.hero h1 span { color: var(--ocean-light); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 auto var(--sp-10);
  font-weight: 400;
  line-height: 1.7;
}

/* Search box */
.search-box {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-12);
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-full);
  background: #fff;
  color: #1a1d26;
  outline: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-box input::placeholder { color: #4b5060; }
.search-box input:focus {
  border-color: var(--ocean);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-autocomplete {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 50;
  box-shadow: var(--shadow-xl);
}
.ac-item {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.ac-item:hover { background: #f8f9fc; }
.ac-item strong { color: #1a1d26; margin-right: 0.3em; }
.ac-meta { color: #4b5060; font-size: 0.8rem; margin-left: 0.5em; }

.search-box svg {
  position: absolute;
  left: var(--sp-5);
  top: 50%;
  transform: translateY(-50%);
  color: #4b5060;
  width: 20px;
  height: 20px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  margin-top: var(--sp-12);
}

.stat { text-align: center; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: var(--sp-1);
}

/* ─── Section titles ─── */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: var(--sp-10) 0 var(--sp-5);
  color: #1a1d26;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e5e7eb 0%, transparent 100%);
}

/* ─── Featured brands row on home ─── */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.brand-chip:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.brand-chip-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.brand-chip-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: var(--sp-1);
}

.brand-chip--cta {
  background: var(--ocean-10);
  border-color: transparent;
  color: var(--ocean);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-5);
}
.brand-chip--cta:hover {
  background: var(--ocean-20);
  color: var(--ocean-dark);
}

/* ─── Boats Grid ─── */
.boats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
  padding-bottom: var(--sp-8);
}

/* ─── Boat Card ─── */
.boat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: #374151;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.boat-card:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
  border-color: var(--ocean);
  transform: translateY(-4px);
  text-decoration: none;
}

.boat-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0f1f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boat-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-slow);
}

.boat-card:hover .boat-card-img { transform: scale(1.04); }

/* When no image: show a subtle boat silhouette */
.boat-card-img-wrap .no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
}

.boat-card-img-wrap .no-img svg {
  width: 100px;
  height: 100px;
  opacity: 0.15;
  color: var(--text-primary);
}

.boat-card-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.badge-sail { background: rgba(14,165,160,0.9); color: #fff; }
.badge-motor { background: rgba(124,58,237,0.9); color: #fff; }
.badge-catamaran { background: rgba(230,126,34,0.9); color: #fff; }
.badge-trimaran { background: rgba(211,84,0,0.9); color: #fff; }

/* Boat classification badges */
.boat-classification { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.boat-class-badge { padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.class-bluewater { background: #1e40af; color: #fff; border: 1px solid #2563eb; }
.class-racer { background: #2563eb; color: #fff; }
.class-cruise { background: #f0f1f5; color: #374151; border: 1px solid #e5e7eb; }
.class-comfort { background: #0d9488; color: #fff; }
.boat-class-desc { font-size: 0.8rem; color: var(--gray-400); }

.boat-card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.boat-card--mini { min-height: auto; }
.boat-card--mini .boat-card-body { padding: var(--sp-3) var(--sp-4); }

.boat-card-header { margin-bottom: var(--sp-3); }

.boat-card-brand {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 5px;
}
.boat-card-brand-logo { height: 14px; width: auto; opacity: 0.7; }

.boat-card-model {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1d26;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.boat-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.boat-card-spec {
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.boat-card-spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1d26;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boat-card-price { color: var(--ocean); font-size: 0.85rem; }
.boat-card-spec-label {
  font-size: 0.78rem;
  color: #4b5060;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── CTA button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ocean);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--ocean-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  color: #fff !important;
}

.btn-secondary {
  background: #f0f1f5;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.btn-secondary:hover { border-color: var(--ocean); color: var(--ocean-light); }

.cta-center {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-12);
}

/* Boat of the week — hero card */
.fotw {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl); overflow: hidden;
  text-decoration: none; color: inherit;
  margin-bottom: var(--sp-10);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fotw:hover { border-color: var(--ocean); box-shadow: 0 8px 40px rgba(0,120,180,0.15); }
.fotw-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.fotw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.fotw:hover .fotw-img img { transform: scale(1.06); }
.fotw-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,20,40,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.fotw-label {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  background: var(--ocean); color: #fff;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.fotw-body {
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  display: flex; flex-direction: column; justify-content: center;
}
.fotw-type {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--teal); margin-bottom: var(--sp-2);
}
.fotw-title {
  font-size: 1.6rem; font-weight: 800; color: #1a1d26;
  margin-bottom: var(--sp-4); line-height: 1.2;
}
.fotw-specs {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.fotw-specs span {
  background: #f0f1f5; border: 1px solid #e5e7eb;
  padding: 4px 12px; border-radius: var(--radius-sm);
  font-size: 0.8rem; color: #4b5060;
}
.fotw-specs span strong { color: #1a1d26; font-weight: 700; }
.fotw-desc {
  color: #4b5060; font-size: 0.88rem; line-height: 1.65;
  margin-bottom: var(--sp-5); flex-grow: 1;
}
.fotw-cta {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--ocean); transition: color 0.2s;
}
.fotw:hover .fotw-cta { color: var(--teal); }
@media (max-width: 768px) {
  .fotw { grid-template-columns: 1fr; }
  .fotw-img { aspect-ratio: 16/9; }
  .fotw-body { padding: var(--sp-5); }
  .fotw-title { font-size: 1.25rem; }
}

/* Famous boats grid */
.famous-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6); margin-bottom: var(--sp-10);
}
.famous-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.famous-card:hover { border-color: var(--ocean); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.famous-card-top { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-700); }
.famous-card-top img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.famous-card:hover .famous-card-top img { transform: scale(1.05); }
.famous-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
}
.famous-card-length { font-size: 2rem; font-weight: 800; color: var(--ocean); opacity: 0.5; }
.famous-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--radius-sm);
}
.famous-badge--museum { background: var(--gold); color: var(--navy-900); }
.famous-badge--sunk { background: var(--danger); color: #fff; }
.famous-card-body { padding: var(--sp-5); }
.famous-card-name { font-size: 1.1rem; font-weight: 700; color: #1a1d26; margin-bottom: var(--sp-2); }
.famous-card-meta {
  display: flex; gap: var(--sp-3); font-size: 0.8rem; color: #4b5060; margin-bottom: var(--sp-3);
}
.famous-card-meta span + span::before { content: '\00b7'; margin-right: var(--sp-3); color: #4b5060; }
.famous-card-fact { font-size: 0.82rem; color: #4b5060; line-height: 1.5; }
@media (max-width: 768px) {
  .famous-grid { grid-template-columns: 1fr; }
}

/* Newsletter */
.newsletter-section {
  margin: var(--sp-12) 0;
  padding: var(--sp-10) var(--sp-8);
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: none;
  border-radius: var(--radius-xl);
  text-align: center;
}
.newsletter-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
.newsletter-desc { color: rgba(255,255,255,.6); margin-bottom: var(--sp-6); font-size: 0.95rem; }
.newsletter-form { display: flex; gap: var(--sp-3); max-width: 440px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff;
  font-size: 0.95rem;
}
.newsletter-input::placeholder { color: var(--gray-400); }
.newsletter-input:focus { border-color: var(--ocean); outline: none; }
.newsletter-ok { color: var(--teal); font-weight: 600; }
@media (max-width: 540px) {
  .newsletter-form { flex-direction: column; }
}

/* ─── Boat Detail ─── */
.detail-header {
  background: #fff;
  padding: var(--sp-8) 0 var(--sp-6);
  color: #1a1d26;
  border-bottom: 1px solid #e5e7eb;
}

.detail-breadcrumb {
  font-size: 0.8rem;
  color: #4b5060;
  margin-bottom: var(--sp-4);
}
.detail-breadcrumb a { color: #4b5060; text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--ocean); }

.detail-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
  line-height: 1.12;
  color: #1a1d26;
}

.detail-subtitle {
  font-size: 0.9rem;
  color: #4b5060;
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--sp-2);
}
.detail-subtitle span { display: flex; align-items: center; gap: var(--sp-2); }
.detail-views { font-size: 0.78rem; color: var(--gray-400); font-weight: 500; margin-left: auto; }

.detail-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* ─── Ratios visual ─── */
.visual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin: 0 auto var(--sp-6);
  max-width: var(--max-w);
  padding: 0;
  position: relative;
}

.visual-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: var(--sp-6);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.visual-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

/* Radar Chart */
.radar-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.radar-wrap svg { width: 100%; height: auto; }

.radar-grid { fill: none; stroke: var(--gray-200); stroke-width: 0.5; }
.radar-axis { stroke: var(--gray-200); stroke-width: 0.5; }

.radar-area {
  fill: var(--ocean-15);
  stroke: var(--ocean);
  stroke-width: 2;
  transition: all 0.3s;
}
.radar-area:hover { fill: var(--ocean-20); }

.radar-dot {
  fill: var(--ocean);
  stroke: var(--white);
  stroke-width: 2;
}

.radar-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--gray-600);
}

.radar-value {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  fill: var(--gray-400);
}

/* Boat Diagram */
.boat-diagram-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.boat-diagram-wrap svg { width: 100%; height: auto; }

.boat-hull { fill: var(--navy); opacity: 0.9; }
.boat-keel { fill: var(--gray-700); }
.boat-mast { stroke: var(--gray-600); stroke-width: 1.5; }
.boat-sail { fill: var(--ocean-10); stroke: var(--ocean); stroke-width: 1; }
.boat-waterline { stroke: var(--ocean); stroke-width: 1; stroke-dasharray: 4 3; }

.dim-line { stroke: var(--gray-400); stroke-width: 0.8; }
.dim-arrow { fill: var(--gray-400); }
.dim-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; fill: var(--gray-600); }
.dim-value { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ocean); }

/* Quick legend under radar */
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.radar-legend-item {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.radar-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-good { background: var(--teal); }
.dot-mid { background: var(--gold); }
.dot-warn { background: #dc4545; }
.radar-legend-note { font-size: 0.78rem; color: var(--gray-400); text-align: center; margin-top: var(--sp-2); line-height: 1.4; }

/* ─── Spec pills ─── */
.specs-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  margin-top: var(--sp-2);
}

.spec-pill {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.spec-pill:hover { border-color: var(--ocean); box-shadow: var(--shadow); }

.spec-pill-label-top {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.spec-pill-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.spec-pill-unit {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: 2px;
  font-weight: 600;
}

/* ─── Ratios list ─── */
.ratios-list { text-align: left; }

.ratio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid #f0f1f5;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.ratio-row:last-child { border-bottom: none; }
.ratio-row:hover { background: #f8f9fc; }

.ratio-name { color: var(--gray-400); font-weight: 500; cursor: help; }
.ratio-val { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }

.ratio-good .ratio-val { color: var(--teal); }
.ratio-mid .ratio-val { color: var(--gold); }
.ratio-warn .ratio-val { color: #dc4545; }

.ratio-class-label {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.ratio-good .ratio-class-label { color: var(--teal); background: rgba(45, 212, 168, 0.1); }
.ratio-mid .ratio-class-label { color: var(--gold); background: rgba(245, 158, 11, 0.1); }
.ratio-warn .ratio-class-label { color: #dc4545; background: rgba(220, 69, 69, 0.1); }

/* Ratio tooltips */
.ratio-row { position: relative; }
.ratio-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--text-primary);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  line-height: 1.5;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.ratio-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 24px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
}
.ratio-row:hover .ratio-tooltip { display: block; }
.ratio-tooltip-title { font-weight: 700; margin-bottom: 4px; color: var(--ocean-light); }
.ratio-tooltip-formula { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray-300); margin-bottom: 6px; }
.ratio-tooltip-ranges { font-size: 0.78rem; color: var(--gray-300); }
.ratio-tooltip-ranges span { display: block; }
.ratio-tooltip-ranges .range-good { color: #5be0d0; }
.ratio-tooltip-ranges .range-mid { color: #f0d060; }
.ratio-tooltip-ranges .range-warn { color: #ff8080; }

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
  color: var(--gray-400);
  font-size: 0.95rem;
}
.empty-state-cta { color: var(--gray-400); font-size: 0.85rem; margin-top: var(--sp-2); }

/* ─── Favorites page ─── */
.boat-card--fav { position: relative; }
.btn-remove-fav {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: var(--text-primary); border: none; cursor: pointer;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.btn-remove-fav:hover { background: var(--red, #e74c3c); transform: scale(1.1); }

/* Related guides in boat detail */
.related-guides {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}
.related-guide-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg); color: #374151;
  text-decoration: none; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.related-guide-card:hover { border-color: var(--ocean); background: #f8f9fc; }
.related-guide-card svg { flex-shrink: 0; color: var(--ocean); }

/* Engine card photo */
.engine-card-photo {
  aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.engine-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Photo count badge on boat cards */
.boat-card-photos-count {
  position: absolute; bottom: var(--sp-2); right: var(--sp-2);
  background: rgba(0,0,0,0.6); color: #fff; font-size: 0.78rem;
  padding: 3px 8px; border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 4px;
}

.boat-card-fav {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  background: rgba(0,0,0,0.4); border: none; cursor: pointer;
  color: #fff; border-radius: var(--radius-full);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: all 0.2s;
  opacity: 0;
}
.boat-card:hover .boat-card-fav { opacity: 1; }
@media(hover:none){ .boat-card-fav { opacity: 0.85; } }
.boat-card-fav:hover { background: rgba(0,0,0,0.7); }
.boat-card-fav.is-fav { opacity: 1; color: #ef4444; }
.boat-card-fav.is-fav svg { fill: #ef4444; }

/* Engine optional badge */
.engine-opt-badge {
  font-size: 0.78rem; font-weight: 600; color: var(--gray-400);
  background: var(--glass-bg); padding: 1px 6px; border-radius: var(--radius-full);
  margin-left: var(--sp-1);
}

/* Listing actions */
.listing-actions { display: flex; gap: var(--sp-2); align-items: center; }

/* Brand search */
.brand-search-wrap {
  max-width: 400px; margin: 0 0 var(--sp-6);
}

/* Cost CTA card in boat detail */
.cost-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: none;
  border-radius: var(--radius-xl);
  margin: var(--sp-8) 0;
}
.cost-cta-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: var(--sp-1); }
.cost-cta-card p { color: rgba(255,255,255,.6); font-size: 0.9rem; }
@media (max-width: 640px) {
  .cost-cta-card { flex-direction: column; text-align: center; padding: var(--sp-5); }
}

/* ─── Compare ─── */
.compare-header {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  padding: var(--sp-10) 0;
  color: #fff;
  text-align: center;
}
.compare-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.compare-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: start;
  margin: var(--sp-6) 0;
}

.compare-boat-col { text-align: center; }
.compare-boat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.compare-vs {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4b5060;
  align-self: center;
  padding-top: var(--sp-12);
}

.compare-bar-section { margin-bottom: var(--sp-6); }

.compare-bar-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--glass-border);
}

.compare-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px 60px 1fr 120px;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: 0.85rem;
}

.compare-bar-label {
  grid-column: 3 / 5;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.compare-bar-v1 { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.compare-bar-v2 { text-align: left; font-family: var(--font-mono); font-weight: 600; }

.compare-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--navy-700);
  position: relative;
  overflow: hidden;
}

.compare-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.bar-left .compare-bar-fill { right: 0; background: var(--ocean); }
.bar-right .compare-bar-fill { left: 0; background: var(--teal); }

.compare-winner-text { color: var(--teal); font-weight: 700; }

/* ─── Hamburger Toggle ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ─── Footer ─── */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-20);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer .site-logo { color: #fff; }
.site-footer .site-logo span { color: var(--ocean); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .site-logo { font-size: 1.15rem; display: inline-block; margin-bottom: var(--sp-3); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 320px; }

.footer-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--sp-2);
}
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-lang { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.footer-lang a { font-size: 0.78rem; color: rgba(255,255,255,.75); text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); transition: all .15s; }
.footer-lang a:hover, .footer-lang a.current { color: var(--ocean); border-color: var(--ocean); }
.footer-bottom { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ─── 404 ─── */
.page-404 { text-align: center; padding: var(--sp-16) 0 var(--sp-8); }
.page-404-icon { color: var(--gray-300); margin-bottom: var(--sp-4); }
.page-404 h1 { font-size: 6rem; font-weight: 800; color: #e2e4ea; line-height: 1; }
.page-404 p { color: #4b5060; margin: var(--sp-4) 0 var(--sp-6); font-size: 1.1rem; }
.page-404-search { max-width: 480px; margin: 0 auto var(--sp-6); }
.page-404-links { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ─── Brand logo / monogram ─── */
.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.brand-logo-sm {
  width: 56px;
  height: 56px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.brand-logo-lg {
  width: 96px;
  height: 96px;
  font-size: 2.4rem;
  border-radius: var(--radius-xl);
}

.engine-logo { background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%); }

/* ─── Brands alphabetical index ─── */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--glass-border);
}

.alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-400);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.alpha-nav a:hover,
.alpha-nav a.active {
  background: var(--ocean-10);
  color: var(--ocean);
  text-decoration: none;
}
.alpha-nav a.active {
  background: var(--ocean);
  color: #fff;
}

.brand-letter-group { margin-bottom: var(--sp-8); }

.brand-letter {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4b5060;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--glass-border);
  letter-spacing: -0.02em;
}

.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-2);
}

.brand-list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.brand-list-item:hover {
  background: #f8f9fc;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}

.brand-list-name { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.brand-list-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }
.brand-list-count { font-size: 0.75rem; color: var(--ocean); font-weight: 700; margin-top: 2px; }

/* ─── Section divider ─── */
.section-divider {
  text-align: center;
  margin: var(--sp-16) 0 var(--sp-8);
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}
.section-divider span {
  position: relative;
  background: var(--navy-800);
  padding: 0 var(--sp-4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* ─── Section anchors (detail page) ─── */
.section-anchor {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin: var(--sp-10) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--glass-border);
}
.section-anchor:first-of-type {
  margin-top: var(--sp-4);
}

/* ─── Specs grid (boat detail) ─── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.spec-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color var(--transition);
}
.spec-section:hover { border-color: var(--ocean); }

.spec-section-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5060;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid #e5e7eb;
}

.spec-section dl { margin: 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0f1f5;
}

.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--gray-400); font-weight: 400; }
.spec-row dd { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); margin: 0; font-size: 0.85rem; }

/* ─── Detail spec sections ─── */
.detail-section {
  margin-bottom: var(--sp-6);
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.detail-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5060;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid #e5e7eb;
}

.listing-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.listing-link-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); background: #f8f9fc;
  border-radius: var(--radius); text-decoration: none; color: #374151;
  transition: background 0.2s;
}
.listing-link-row:hover { background: #e8eaf0; }
.listing-link-title { font-weight: 600; font-size: 0.88rem; flex: 1; }
.listing-link-meta { font-size: 0.75rem; color: var(--gray-400); }
.listing-link-price { font-weight: 700; color: var(--ocean); font-family: var(--font-mono); white-space: nowrap; }

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.detail-spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
}
.detail-spec-row:last-child { border-bottom: none; }
.detail-spec-label { color: var(--gray-400); }
.detail-spec-value { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }

/* ─── Similar boats row ─── */
.similar-section { margin: var(--sp-10) 0 var(--sp-12); }
.similar-section .section-anchor { margin-bottom: var(--sp-6); }

/* ─── Photo Gallery ─── */
.gallery { margin-bottom: var(--sp-8); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.gallery-grid.has-primary {
  grid-template-columns: 1fr 1fr;
}

.gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--navy-700);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.primary {
  grid-column: 1 / -1;
  max-height: 600px;
}

.gallery-item.primary img {
  max-height: 600px;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--text-primary);
  font-size: 0.75rem;
}

.gallery-no-photos {
  text-align: center;
  padding: var(--sp-10) var(--sp-4);
  background: var(--navy-700);
  border-radius: var(--radius-xl);
  color: var(--gray-400);
}

/* Upload form */
.upload-form {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-top: var(--sp-4);
}

.upload-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* ─── Reviews ─── */
.reviews-section { margin-bottom: var(--sp-6); }

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.reviews-big-score { text-align: center; }

.reviews-big-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: -0.03em;
}

.reviews-stars { color: var(--gold); font-size: 1.2rem; margin: var(--sp-1) 0; }
.reviews-count-label { font-size: 0.8rem; color: var(--gray-400); }

.reviews-bars { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }

.review-bar-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
}

.review-bar-label { width: 24px; text-align: right; color: var(--gray-400); font-weight: 600; }

.review-bar {
  flex: 1;
  height: 8px;
  background: var(--navy-700);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 0.5s;
}

.review-bar-count { width: 20px; font-size: 0.75rem; color: var(--gray-400); }

/* Breakdown by category */
.rating-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.rating-breakdown-item {
  text-align: center;
  padding: var(--sp-3);
  background: var(--navy-800);
  border-radius: var(--radius-lg);
}

.rating-breakdown-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.rating-breakdown-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Individual review card */
.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  transition: border-color var(--transition);
}
.review-card:last-child { margin-bottom: 0; }
.review-card:hover { border-color: var(--gray-300); }

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-4);
}

.review-author { font-weight: 700; color: var(--text-primary); }
.review-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: var(--sp-1); }
.review-card-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.review-card-body { font-size: 0.9rem; color: var(--gray-400); line-height: 1.8; }

.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
  font-size: 0.85rem;
}

.review-pros { color: var(--teal); font-size: .88rem; margin-bottom: var(--sp-2); }
.review-cons { color: #dc4545; font-size: .88rem; margin-bottom: var(--sp-2); }
.review-pros strong, .review-cons strong { display: inline; margin-right: var(--sp-1); }

.reviews-avg { text-align: center; min-width: 120px; }
.reviews-avg-number { font-size: 2.8rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); line-height: 1; }
.reviews-avg-stars { margin: var(--sp-1) 0; }
.reviews-avg-count { font-size: .78rem; color: var(--gray-400); }

.reviews-breakdown { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }
.reviews-breakdown-row { display: flex; align-items: center; gap: var(--sp-2); font-size: .82rem; }
.reviews-breakdown-label { width: 160px; color: var(--gray-400); font-weight: 600; flex-shrink: 0; }
.reviews-breakdown-bar { flex: 1; height: 8px; background: #f0f1f5; border-radius: var(--radius-full); overflow: hidden; }
.reviews-breakdown-bar div { height: 100%; background: var(--gold); border-radius: var(--radius-full); }
.reviews-breakdown-val { width: 32px; text-align: right; font-family: var(--font-mono); color: var(--text-primary); font-weight: 700; }

.reviews-empty { color: var(--gray-400); font-size: .9rem; text-align: center; padding: var(--sp-8) 0; }
.reviews-list { margin-bottom: var(--sp-6); }

.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.review-author strong { color: var(--text-primary); }
.review-ownership { font-size: .72rem; background: var(--ocean-10); color: var(--ocean); padding: 2px 8px; border-radius: var(--radius-full); margin-left: var(--sp-2); font-weight: 600; }
.review-years { font-size: .72rem; color: var(--gray-400); margin-left: var(--sp-2); }
.review-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-2); }
.review-body { font-size: .88rem; color: var(--gray-300); line-height: 1.7; }
.review-rating { display: flex; gap: 1px; }

.review-form-details { margin-top: var(--sp-4); }
.review-form-details summary { cursor: pointer; }
.review-form-details[open] summary { margin-bottom: var(--sp-4); }
.review-form { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-xl); padding: var(--sp-6); }
.review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.review-form-field { margin-bottom: var(--sp-3); }
.review-form-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--gray-400); margin-bottom: var(--sp-1); }
.review-form-field input, .review-form-field select, .review-form-field textarea { width: 100%; padding: var(--sp-2) var(--sp-3); font-size: .88rem; border: 1px solid #d1d5db; border-radius: var(--radius-lg); background: #fff; color: #1a1d26; font-family: var(--font-sans); }
.review-form-field textarea { min-height: 80px; resize: vertical; }
.review-form-field input:focus, .review-form-field select:focus, .review-form-field textarea:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 3px var(--ocean-10); }
.review-stars-input { display: flex; gap: var(--sp-1); }
.review-stars-input label { cursor: pointer; color: var(--gray-400); }
.review-stars-input input { display: none; }
.review-stars-input input:checked ~ svg, .review-stars-input label:has(:checked) svg { fill: var(--gold); color: var(--gold); }
.review-form-note { font-size: .75rem; color: var(--gray-400); margin-top: var(--sp-3); }

.alert { padding: var(--sp-4); border-radius: var(--radius-lg); font-size: .88rem; font-weight: 600; margin-bottom: var(--sp-4); }
.alert--success { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: var(--teal); }
.alert--error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; }

/* Review form */
.review-form {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}

.star-input { display: flex; gap: var(--sp-1); cursor: pointer; }
.star-input span { font-size: 1.5rem; color: #4b5060; transition: color var(--transition); }
.star-input span.active { color: var(--gold); }

/* ─── Forms shared ─── */
.form-group { margin-bottom: var(--sp-4); }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: var(--sp-1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--navy-700);
  color: #4b5060;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px var(--ocean-10);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: var(--sp-1);
}

.form-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  background: var(--navy-700);
  color: #4b5060;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px var(--ocean-10); }

/* ─── Search H1 ─── */
.search-h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ─── Combobox / Typeahead ─── */
.filter-combobox {
  position: relative;
  flex: 0 0 auto;
}
.filter-combobox-input {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.82rem;
  width: 160px;
  font-family: var(--font-sans);
  outline: none;
  transition: all .15s;
}
.filter-combobox-input::placeholder { color: rgba(255,255,255,0.6); }
.filter-combobox-input:focus { border-color: var(--ocean); background: rgba(255,255,255,0.12); }
.filter-combobox-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 260px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
}
.filter-combobox-list.is-open { display: block; }
.filter-combobox-opt {
  padding: 8px 14px;
  font-size: .85rem;
  color: #374151;
  cursor: pointer;
  transition: background .1s;
}
.filter-combobox-opt:hover { background: #eff6ff; color: var(--ocean); }
.filter-combobox-cnt { color: #9ca3af; font-size: .75rem; }

/* ─── Search hero ─── */
.search-hero {
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(38,128,235,0.1) 0%, transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-800) 100%);
  padding: var(--sp-10) 0 var(--sp-8);
}

.search-box-page {
  max-width: 100%;
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  position: relative;
}

.search-box-page input {
  flex: 1;
  padding-right: 110px;
}

.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ocean);
  color: #fff;
  border: none;
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.search-submit:hover { background: var(--ocean-dark); box-shadow: 0 2px 8px rgba(38,128,235,0.3); }

/* ─── Search filters bar ─── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.filters-advanced {
  display: none;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid #e5e7eb;
}
.filters-advanced.is-open { display: flex; }

.filters-toggle {
  background: none; border: none; color: var(--ocean-light, #60a5fa);
  font-size: 0.78rem; cursor: pointer; margin-top: var(--sp-2);
  padding: 0; font-weight: 600;
}
.filters-toggle::after { content: ' +'; }
.filters-toggle.is-open::after { content: ' −'; }

.filter-select {
  padding: var(--sp-3) var(--sp-3);
  font-size: 0.85rem;
  min-height: 44px;
  font-family: var(--font-sans);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: #fff;
  color: #374151;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--ocean); }
.filter-select option { background: #fff; color: #1a1d26; }

.filter-checkbox {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-primary); cursor: pointer;
  white-space: nowrap;
}
.filter-checkbox input[type="checkbox"] { accent-color: var(--ocean); width: 16px; height: 16px; cursor: pointer; }

.filter-range {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #4b5060;
}

.filter-range-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.filter-range-sep { color: #4b5060; }
.filter-range-unit { color: #4b5060; font-size: 0.75rem; }

.filter-input-sm {
  width: 70px;
  padding: var(--sp-2);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: #fff;
  color: #374151;
  outline: none;
}
.filter-input-sm:focus { border-color: var(--ocean); }
.filter-input-sm::placeholder { color: #4b5060; }

.filter-clear {
  font-size: 0.75rem;
  color: #4b5060;
  text-decoration: none;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.filter-clear:hover { color: #1a1d26; border-color: #d1d5db; text-decoration: none; }

/* ─── Results meta ─── */
.results-meta {
  font-size: 0.82rem;
  color: var(--gray-400);
  padding: var(--sp-5) 0 var(--sp-3);
  font-weight: 500;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-10) 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}
.page-link:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.page-current {
  background: var(--ocean);
  color: #fff;
  border-color: var(--ocean);
}
.page-ellipsis {
  color: #636878;
  font-size: 1rem;
  padding: 0 4px;
}
.page-goto {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--sp-3);
  font-size: .82rem;
  color: #636878;
}
.page-goto-input {
  width: 52px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: .82rem;
  text-align: center;
  font-family: var(--font-mono);
}

/* ─── Compare table ─── */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin-bottom: var(--sp-8);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.compare-table th {
  font-weight: 700;
  font-size: 0.9rem;
  color: #4b5060;
  border-bottom: 2px solid var(--glass-border);
  position: sticky; top: 0; z-index: 2;
  background: var(--navy-800);
  color: var(--text-primary);
}

.compare-table td:first-child { color: var(--gray-400); font-weight: 500; }
.compare-table td:not(:first-child) { font-family: var(--font-mono); font-weight: 600; }
.compare-winner { color: var(--teal); font-weight: 700; }
.compare-detail-links { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin: var(--sp-8) 0; }

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; color: white;
  font-size: 2.5rem; padding: 8px 16px; cursor: pointer;
  border-radius: var(--radius); opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: var(--sp-3); }
.lightbox-next { right: var(--sp-3); }
.lightbox-counter {
  position: absolute; bottom: var(--sp-4);
  left: 50%; transform: translateX(-50%);
  color: var(--gray-400); font-size: 0.85rem;
}

/* ─── Article body ─── */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: var(--sp-10) 0 var(--sp-3);
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4b5060;
  margin: var(--sp-6) 0 var(--sp-2);
}

.article-body p { margin-bottom: var(--sp-4); line-height: 1.8; color: #374151; }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-4) var(--sp-6); }
.article-body li { margin-bottom: var(--sp-1); line-height: 1.7; }

.article-body img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  margin: var(--sp-6) 0;
  box-shadow: var(--shadow-md);
}

.article-body blockquote {
  border-left: 3px solid var(--ocean);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
  color: var(--gray-400);
  font-style: italic;
  background: var(--navy-800);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--navy-700);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero--photo { min-height: auto; }
  .hero--photo h1 { font-size: 2rem; }
  .hero--photo .hero-content { padding: var(--sp-12) 0 var(--sp-8); }
  .hero--photo .stats-bar { padding: var(--sp-3); gap: 0; flex-wrap: wrap; display: grid; grid-template-columns: 1fr 1fr; }
  .hero--photo .stat-value { font-size: 1rem; }
  .hero--photo .stats-bar .stat { padding: var(--sp-2) 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero::after { height: 30px; }
  .stats-bar { gap: var(--sp-6); flex-wrap: wrap; }
  .stat-value { font-size: 1.3rem; }
  .cat-cards { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .cat-card { aspect-ratio: 4 / 3; }
  .home-links { grid-template-columns: 1fr; gap: var(--sp-3); }
  /* value-props removed */
  .hero-ctas { flex-direction: column; align-items: center; gap: var(--sp-2); }
  .boats-grid { grid-template-columns: 1fr; }
  .visual-section { grid-template-columns: 1fr; }
  .detail-title { font-size: 1.5rem; }
  .detail-header { padding: var(--sp-5) 0 var(--sp-4); }
  .detail-subtitle { flex-direction: column; gap: var(--sp-2); }
  .specs-visual { grid-template-columns: repeat(2, 1fr); }
  .compare-bar-row { grid-template-columns: 1fr; text-align: center; }
  .compare-visual { grid-template-columns: 1fr; }
  .compare-vs { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .brands-list { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .site-header .container { height: 60px; }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--header-bg);
    flex-direction: column;
    padding: 80px var(--sp-6) var(--sp-6);
    gap: var(--sp-1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav.open { right: 0; }

  /* Backdrop overlay when nav is open */
  .site-nav::before {
    content: '';
    position: fixed;
    top: 0; left: -100vw; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
  }
  .site-nav.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1rem;
    padding: 14px var(--sp-4);
    border-radius: var(--radius);
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Mobile dropdown menus */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn {
    font-size: 1rem; padding: 14px var(--sp-4); width: 100%; justify-content: space-between;
    border-radius: var(--radius); min-height: 48px;
  }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: hidden; pointer-events: none; background: none; border: none; box-shadow: none;
    padding: 0 0 0 var(--sp-4); margin: 0; min-width: 0; max-height: 0; overflow: hidden; transition: max-height .2s, visibility 0s .2s;
  }
  .nav-dropdown.open .nav-dropdown-menu { visibility: visible; pointer-events: auto; max-height: 500px; transition: max-height .3s, visibility 0s; }
  .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: hidden; pointer-events: none; }
  .nav-dropdown.open:hover .nav-dropdown-menu { visibility: visible; pointer-events: auto; }
  .nav-dropdown-menu a {
    font-size: 0.92rem; padding: 12px var(--sp-4) 12px calc(var(--sp-4) + 8px); border-radius: var(--radius);
    color: rgba(255,255,255,0.8); min-height: 44px;
  }
  .nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }

  .site-nav .lang-switch {
    margin-left: 0;
    margin-top: var(--sp-4);
    padding-left: 0;
    padding-top: var(--sp-4);
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    justify-content: flex-start;
  }

  .specs-grid { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; }
  .review-pros-cons { grid-template-columns: 1fr; }
  .upload-form .form-grid { grid-template-columns: 1fr; }
  .filters-bar { gap: var(--sp-2); }
  .filter-select { flex: 1; min-width: 120px; }
  .search-box-page input { padding-right: 90px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid.has-primary { grid-template-columns: 1fr; }
  .compare-bar-row { grid-template-columns: 1fr; font-size: 0.75rem; }
  .brands-row { gap: var(--sp-2); }
}

@media (max-width: 480px) {
  .specs-visual { grid-template-columns: 1fr 1fr; }
  .boat-card-specs { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { gap: var(--sp-4); }
  .stat { min-width: 60px; }
  .boat-card-img-wrap { aspect-ratio: 3 / 2; }
  .boats-grid { gap: var(--sp-3); }
  .hero--photo { min-height: auto; padding: var(--sp-10) 0 var(--sp-6); }
  .cat-cards { grid-template-columns: 1fr 1fr; }
  .cat-card { aspect-ratio: 1; }
  .filter-input-sm { width: 100%; min-height: 44px; font-size: 0.85rem; }
  .filter-select { width: 100%; min-width: 0; }
  .filters-bar { flex-direction: column; }
  /* Boat detail mobile fixes */
  .container { padding: 0 var(--sp-4); }
  .visual-section { grid-template-columns: 1fr; gap: var(--sp-4); }
  .visual-card { padding: var(--sp-4); }
  .section-anchor { margin: var(--sp-6) 0 var(--sp-3); font-size: 0.85rem; }
  .detail-nav a { padding: 10px 14px; min-height: 44px; display: flex; align-items: center; font-size: 0.78rem; }
  .detail-actions { gap: var(--sp-2); }
  .detail-actions .btn { min-height: 44px; padding: var(--sp-2) var(--sp-3); font-size: 0.78rem; flex: 1; text-align: center; justify-content: center; }
  .boat-card-body { padding: var(--sp-3) var(--sp-4); }
  .similar-section .section-anchor { margin-bottom: var(--sp-4); }
  .boat-classification { flex-wrap: wrap; }
  .boat-class-desc { font-size: 0.78rem; }
}

/* ─── Brand page extras ─── */
.brand-header-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand-website-link {
  color: var(--ocean-light);
  font-weight: 600;
}
.brand-website-link:hover { color: var(--text-primary); }

.brand-key-specs { margin: var(--sp-6) 0; }

.brand-description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4a4f5e;
  max-width: 780px;
  margin-bottom: var(--sp-6);
}

.brand-prose {
  font-size: 1rem;
  line-height: 1.9;
  color: #374151;
  max-width: 780px;
}

.spec-pill-value--text {
  font-size: 1rem;
  font-family: var(--font-sans);
}

.detail-section--highlight {
  background: var(--ocean-10);
  border-color: var(--ocean-15);
}
.detail-section--highlight .detail-section-title { color: var(--ocean); }

.brand-social {
  display: flex;
  gap: var(--sp-3);
  margin: var(--sp-8) 0;
  flex-wrap: wrap;
}

/* ─── Marina cards ─── */
.marina-filters {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.filter-select-light {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--navy-700);
  color: var(--gray-300);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select-light:focus { border-color: var(--ocean); }

.filter-clear-light {
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.filter-clear-light:hover { color: var(--ocean); }

.marina-zone-group { margin-bottom: var(--sp-10); }

.marina-zone-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--glass-border);
  letter-spacing: -0.02em;
}

.marina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-4);
}

.marina-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-decoration: none;
  color: #374151;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.marina-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.marina-card--sm { padding: var(--sp-5); }

.marina-card-type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 2px;
}

.marina-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1d26;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.marina-card-location {
  font-size: 0.85rem;
  color: #4b5060;
  margin-top: 3px;
}

.marina-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid #e5e7eb;
}

.marina-card-stat { text-align: center; }
.marina-card-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1d26;
  font-family: var(--font-mono);
}
.marina-card-stat-label {
  font-size: 0.78rem;
  color: #4b5060;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.marina-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marina-svc {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  background: #f0f1f5;
  color: #4b5060;
  border-radius: var(--radius-full);
}

/* Marina detail */
.marina-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}

.marina-svc-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.marina-svc-check {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.marina-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-2);
}

.marina-map-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.marina-map-link { display: block; }

.marina-map-fallback {
  background: var(--navy-700);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.marina-map-coords {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

.marina-marker { background: none !important; border: none !important; }

/* Leaflet dark theme overrides */
.leaflet-control-zoom a {
  background: var(--navy-800) !important;
  color: #6b7080 !important;
  border-color: var(--glass-border) !important;
}
.leaflet-control-zoom a:hover { background: var(--navy-700) !important; }
.leaflet-control-attribution {
  background: rgba(10,22,40,0.8) !important;
  color: var(--gray-400) !important;
  font-size: 0.78rem !important;
}
.leaflet-control-attribution a { color: var(--ocean-light) !important; }

/* ─── Cost calculator ─── */
.cost-calculator {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.cost-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.cost-form-field {}

.cost-result {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.cost-result-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.cost-result-zone {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  padding: var(--sp-1) var(--sp-3);
  background: var(--ocean-10);
  border-radius: var(--radius-full);
}

.cost-result-loa {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

.cost-result-total {
  text-align: center;
  padding: var(--sp-6) 0;
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--glass-border);
}

.cost-result-total-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: var(--sp-2);
}

.cost-result-total-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cost-result-total-sub {
  font-size: 1rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: var(--sp-2);
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cost-item {}

.cost-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-1);
}

.cost-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
}

.cost-item-amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.cost-item-bar {
  height: 8px;
  background: var(--navy-700);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cost-item-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.cost-item-pct {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 2px;
}

.cost-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--glass-border);
  font-style: italic;
}

/* ─── Zone comparison cards ─── */
.zone-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.zone-compare-card {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color var(--transition);
}
.zone-compare-card:hover { border-color: var(--ocean); }

.zone-compare-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: var(--sp-3);
}

.zone-compare-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.zone-compare-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: var(--sp-2);
}

.zone-compare-range {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

.zone-compare-count {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: var(--sp-2);
}

/* ─── Listings / Marketplace ─── */
.listing-stats-bar {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-2) 0;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
  padding-bottom: var(--sp-8);
}

.listing-card {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.listing-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-slow);
}
.listing-card:hover .listing-card-img { transform: scale(1.04); }

.listing-badge-reduced {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #dc4545;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listing-photo-count {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.6);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}
.listing-photo-count::before { content: 'Fotos: '; font-weight: 500; }

.listing-video-badge {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: rgba(220,69,69,0.9);
  color: var(--text-primary);
  text-transform: uppercase;
}

.listing-source-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listing-card-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
}
.listing-card-meta span { display: flex; align-items: center; gap: 4px; }
.listing-card-meta span:not(:last-child)::after { content: '·'; margin-left: var(--sp-1); color: var(--gray-300); }

.listing-zone {
  font-weight: 600;
  color: var(--ocean);
}

.listing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--glass-border);
}

.listing-price-block { display: flex; flex-direction: column; gap: 2px; }

.listing-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.listing-price--ask { color: var(--gray-400); font-size: 0.9rem; }

.listing-price-old {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.listing-vat {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .listings-grid { grid-template-columns: 1fr; }
  .listing-card-img-wrap { aspect-ratio: 3 / 2; }
  .listing-stats-bar { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
}

@media (max-width: 768px) {
  .marina-grid { grid-template-columns: 1fr; }
  .marina-services-grid { grid-template-columns: 1fr; }
  .cost-form-row { grid-template-columns: 1fr; }
  .zone-compare-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Engine brand page ─── */
.engine-brand-header {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.engine-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--glass);
  padding: var(--sp-3);
  flex-shrink: 0;
}
/* Engine detail hero: photo + key specs side by side */
.engine-hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: var(--sp-6);
  align-items: start;
  margin-bottom: var(--sp-8);
}
.engine-hero--no-photo {
  grid-template-columns: 1fr;
}
.engine-photo-wrap {
  background: var(--glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.engine-photo {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.engine-hero .engine-specs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  align-content: start;
}
.engine-hero--no-photo .engine-specs-hero {
  grid-template-columns: repeat(4, 1fr);
}
.engine-hero .spec-pill {
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.engine-hero .spec-pill-label-top {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.engine-hero .spec-pill-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.engine-hero .spec-pill-unit {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-top: 2px;
}

.detail-ext-link {
  color: var(--ocean-light) !important;
  font-weight: 600;
}
.detail-ext-link:hover { color: var(--white) !important; }

/* ─── Engine cards ─── */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.engine-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #4b5060;
  transition: all var(--transition);
  box-shadow: none;
}

.engine-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  color: #4b5060;
}

.engine-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4) 0;
  gap: var(--sp-2);
}

.engine-card-type-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
}

.badge-diesel {
  background: rgba(14,165,160,0.10);
  color: var(--teal);
}

.badge-gasoline {
  background: rgba(200,164,78,0.12);
  color: #a88830;
}

.badge-electric {
  background: rgba(38,128,235,0.10);
  color: var(--ocean);
}

.engine-card-app {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.engine-card-body {
  padding: var(--sp-4) var(--sp-5);
  flex: 1;
}

.engine-card-model {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.engine-card-desc {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.engine-card-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--glass-border);
  padding: var(--sp-4) var(--sp-5);
  gap: var(--sp-3);
}

.engine-card-spec {
  text-align: center;
}

.engine-card-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.engine-card-spec-lbl {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 2px;
}

.engine-card-extra {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.engine-card-extra span {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

/* ─── Engine brands listing grid ─── */
.engine-brands-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: var(--sp-8) 0 var(--sp-10);
}

.engine-brand-card {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: #4b5060;
  transition: all var(--transition);
}

.engine-brand-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  color: #4b5060;
}

.engine-brand-card-logo {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-3);
}

.engine-brand-card-logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.engine-brand-card-monogram {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

.engine-brand-card-body {
  flex: 1;
  min-width: 0;
}

.engine-brand-card-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.engine-brand-card-country {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.engine-brand-card-desc {
  font-size: 0.82rem;
  color: var(--gray-300);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.engine-brand-card-count {
  flex-shrink: 0;
  text-align: center;
  padding-left: var(--sp-5);
  border-left: 1px solid var(--glass-border);
  min-width: 70px;
}

.engine-brand-card-count-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ocean);
  font-family: var(--font-mono);
  line-height: 1;
}

.engine-brand-card-count-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-hero-desc {
  font-size: 0.95rem;
  color: #4b5060;
  margin-top: var(--sp-2);
}

/* ─── Marina card logo ─── */
.marina-card-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.marina-card-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.marina-card-monogram {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
}

.marina-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

@media (max-width: 768px) {
  .engine-brands-grid { flex-direction: column; }
  .engine-brand-card { flex-direction: column; text-align: center; }
  .engine-brand-card-logo { width: 80px; height: 80px; }
  .engine-brand-card-logo img { width: 60px; height: 60px; }
}

.engine-specs-hero {
  margin: var(--sp-6) 0;
}

.btn-secondary {
  background: var(--navy-700);
  border: 1px solid var(--glass-border);
  color: var(--gray-300);
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--ocean);
  box-shadow: var(--shadow-sm);
  color: var(--ocean-light);
}

.engine-docs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.engine-similar-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.engine-similar-hp {
  color: var(--gray-400);
  font-size: 0.8rem;
  margin-left: var(--sp-2);
}

@media (max-width: 768px) {
  .engine-hero,
  .engine-hero--no-photo { grid-template-columns: 1fr; }
  .engine-photo-wrap { min-height: 180px; }
  .engine-hero .engine-specs-hero,
  .engine-hero--no-photo .engine-specs-hero { grid-template-columns: 1fr 1fr; }
  .engine-hero .spec-pill-value { font-size: var(--text-xl); }
  .engine-grid { grid-template-columns: 1fr; }
  .engine-brand-header { gap: var(--sp-3); }
  .engine-brand-logo { width: 64px; height: 64px; }
  .engine-card-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Price chart ─── */
.price-chart-wrap {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.price-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

/* ─── Upload form ─── */
.upload-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ocean);
}

.upload-inner {
  margin-top: var(--sp-5);
}

/* ─── Brand prose ─── */
.brand-prose {
  max-width: 720px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: var(--sp-6);
  font-size: 1rem;
}

/* ─── Detail spec meta ─── */
.detail-spec-meta {
  color: var(--gray-400);
}

/* ─── Articles ─── */
.detail-header--compact { padding: var(--sp-8) 0; }

.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.article-cat-count {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.article-grid { margin-bottom: var(--sp-8); }
.article-grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.article-excerpt {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: var(--sp-2);
  line-height: 1.5;
}

.article-count {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: var(--sp-4) 0;
}

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-6);
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #374151;
}

.article-tags {
  max-width: 780px;
  margin: var(--sp-6) auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.article-tag {
  background: var(--navy-700);
  color: var(--gray-400);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.article-related {
  max-width: 780px;
  margin: var(--sp-8) auto;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-8) 0;
}

/* ─── Engine logo in specs ─── */
.spec-engine-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--glass-border);
}

.spec-engine-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--navy-800);
  padding: 4px;
}

.spec-engine-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ocean);
}

/* ─── Designer photo ─── */
.designer-photo {
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Favorites button ─── */
.detail-title-row {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.detail-title-row .detail-title { flex: 1; }
.btn-fav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-lg);
  background: #f0f1f5; border: 1px solid #e5e7eb;
  color: #4b5060; cursor: pointer; font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-fav:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-fav.fav-active { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #ef4444; }
.btn-fav.fav-active svg { fill: #ef4444; }

/* Detail actions row */
.detail-actions {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4); flex-wrap: wrap;
  padding-top: var(--sp-3);
}
.btn-sm { font-size: 0.8rem; padding: 6px 14px; }

/* Footer social */
.footer-social {
  display: flex; gap: var(--sp-3); margin-top: var(--sp-3);
}
.footer-social a {
  color: var(--gray-400); transition: color 0.2s;
}
.footer-social a:hover { color: var(--ocean); }

/* Better no-image placeholder */
.no-img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f1f5, #e5e7eb);
  color: #d1d5db; width: 100%; height: 100%; min-height: 180px;
  font-size: 3rem;
}
.no-img svg { width: 48px; height: 48px; opacity: 0.3; }

/* Sticky detail nav (anchor links within boat page) */
.detail-nav {
  display: flex; gap: var(--sp-2); padding: var(--sp-3) 0;
  border-bottom: 1px solid #e5e7eb; margin-bottom: var(--sp-6);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.detail-nav a {
  padding: 8px 16px; border-radius: var(--radius); font-size: 0.8rem;
  white-space: nowrap; color: #4b5060; transition: all 0.2s;
}
.detail-nav a:hover { color: #1a1d26; background: #f0f1f5; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #1e293b; border-top: 1px solid #334155;
  padding: var(--sp-3) var(--sp-4); display: flex; align-items: center;
  justify-content: center; gap: var(--sp-4); font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.cookie-banner.hidden { display: none; }
.cookie-banner button {
  padding: 6px 20px; border-radius: var(--radius);
  border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.cookie-accept { background: var(--ocean); color: white; }
.cookie-reject { background: #f0f1f5; color: #4b5060; border: 1px solid #e5e7eb !important; }

/* ─── Autocomplete ─── */
.autocomplete-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.autocomplete-wrap.open { display: block; }
.autocomplete-item {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f0f1f5;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #f0f1f5; color: #1a1d26; }
.autocomplete-item strong { color: #1a1d26; }
.ac-meta { color: var(--gray-400); font-size: 0.8rem; margin-left: 4px; }

/* ─── Compare form ─── */
.compare-form {
  max-width: 700px; margin: var(--sp-6) auto;
  text-align: center;
}
.compare-selectors {
  display: flex; align-items: center; gap: var(--sp-4);
  flex-wrap: wrap; justify-content: center;
}
.compare-selector {
  flex: 1; min-width: 200px;
}
.compare-selector label {
  display: block; font-size: 0.8rem; color: var(--gray-400);
  margin-bottom: var(--sp-1); text-transform: uppercase; letter-spacing: 0.05em;
}
.compare-selector input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-lg);
  background: var(--navy-700); border: 1px solid var(--navy-600);
  color: var(--text-primary); font-size: 0.95rem;
}
.compare-selector input:focus {
  outline: none; border-color: var(--ocean);
}
.compare-vs {
  font-weight: 800; font-size: 1.2rem; color: var(--ocean);
  padding-top: 20px;
}
.compare-form .btn { margin-top: var(--sp-4); }
.compare-popular {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  justify-content: center;
}

/* ─── Footer 5 columns ─── */
.footer-grid {
  grid-template-columns: 2fr repeat(4, 1fr);
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .compare-selectors { flex-direction: column; }
  .compare-vs { padding-top: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Legal pages ─── */
.legal-page {
  max-width: 700px; color: var(--gray-300); line-height: 1.8;
  padding-bottom: var(--sp-8);
}
.legal-page h2 {
  color: var(--text-primary); margin-top: var(--sp-6); margin-bottom: var(--sp-2);
  font-size: 1.1rem;
}
.legal-page p, .legal-page ul { margin-bottom: var(--sp-3); }
.legal-page ul { padding-left: var(--sp-5); }
.legal-page a { color: var(--ocean); }
.legal-table {
  width: 100%; border-collapse: collapse; margin: var(--sp-4) 0;
  font-size: 0.85rem;
}
.legal-table th, .legal-table td {
  padding: 8px 12px; border: 1px solid var(--navy-600);
  text-align: left;
}
.legal-table th { background: var(--navy-700); color: var(--text-primary); }

/* ─── Skip to content (a11y) ─── */
.skip-link {
  position: absolute; top: -100px; left: 0;
  padding: 8px 16px; background: var(--ocean); color: white;
  z-index: 9999; font-size: 0.85rem; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── Back to top button ─── */
.back-to-top {
  position: fixed; bottom: 60px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ocean); color: white; border: none;
  cursor: pointer; display: none; align-items: center;
  justify-content: center; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}
.back-to-top.visible { display: flex; }
.back-to-top svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES — applies to main content area
   Header (.site-header) and Footer (.site-footer) stay dark.
   ══════════════════════════════════════════════════════════════ */

/* ─── Main content: light background ─── */
#main-content {
  background: #ffffff;
}

/* ─── Global text overrides for light bg ─── */
#main-content,
#main-content * {
  --white: #1a1d26;
}

/* ─── Hero stays dark (has its own bg) ─── */
.hero, .hero *, .hero--photo, .hero--photo * {
  --white: #ffffff;
}
.hero--photo h1, .hero h1 { color: #fff; }
.hero p, .hero .hero-desc, #main-content .hero p, #main-content .hero-desc { color: rgba(255,255,255,0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero .hero-tagline, #main-content .hero-tagline { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero::after { background: #fff; }

/* Category cards overlay text stays white */
.cat-card, .cat-card * { --white: #ffffff; }
.cat-card-title, .cat-card-count { color: #fff; }

/* ─── Cards: white bg with subtle border ─── */
#main-content .boat-card,
#main-content .brand-card,
#main-content .engine-card,
#main-content .article-card,
#main-content .listing-card,
#main-content .topic-card,
#main-content .marina-card,
#main-content .anchorage-card,
#main-content .designer-card,
#main-content .famous-card,
#main-content .route-card {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

#main-content .boat-card:hover,
#main-content .brand-card:hover,
#main-content .engine-card:hover,
#main-content .article-card:hover,
#main-content .listing-card:hover,
#main-content .topic-card:hover,
#main-content .marina-card:hover,
#main-content .anchorage-card:hover,
#main-content .designer-card:hover,
#main-content .famous-card:hover,
#main-content .route-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

/* ─── Glass components → white in light theme ─── */
#main-content [style*="glass-bg"],
.detail-section,
.detail-section--highlight,
.stats-bar,
#main-content .search-box,
.filter-panel,
.chart-controls,
.cost-summary {
  background: #fff !important;
  border-color: #e5e7eb !important;
}

/* ─── Section titles ─── */
#main-content .section-title,
#main-content h1, #main-content h2, #main-content h3 {
  color: #1a1d26;
}

/* ─── Text colors ─── */
#main-content p,
#main-content span,
#main-content li,
#main-content td,
#main-content th,
#main-content label,
#main-content .boat-card-meta,
#main-content .boat-card-specs,
#main-content .detail-value {
  color: #374151;
}

#main-content .boat-card-title,
#main-content .brand-name,
#main-content .detail-label {
  color: #1a1d26;
}

/* ─── Pagination light theme ─── */
.page-link {
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
}
.page-link:hover {
  border-color: var(--ocean);
  color: var(--ocean);
}
.page-current {
  background: var(--ocean);
  color: #fff;
  border-color: var(--ocean);
}

/* ─── Spec pills / badges ─── */
#main-content .spec-pill,
#main-content .detail-pill,
#main-content .badge {
  background: #f0f1f5;
  border-color: #e2e4ea;
  color: #374151;
}

/* ─── Buttons ─── */
.btn-primary, .btn--hero.btn-primary {
  background: var(--ocean);
  color: #fff !important;
  border: none;
}
.btn-primary:hover {
  background: var(--ocean-dark);
  color: #fff !important;
}

#main-content .btn-outline {
  background: #fff;
  border: 1.5px solid #d1d5db;
  color: #374151;
}
#main-content .btn-outline:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  background: rgba(37,99,235,0.04);
}

/* Hero buttons stay white */
.hero .btn-outline, .hero--photo .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.hero .btn-outline:hover, .hero--photo .btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* ─── Breadcrumbs ─── */
#main-content .detail-breadcrumb,
#main-content .detail-breadcrumb a {
  color: #4b5060;
}
#main-content .detail-breadcrumb a:hover {
  color: var(--ocean);
}

/* ─── Tables ─── */
#main-content table {
  background: #fff;
}
#main-content th {
  background: #f8f9fc;
  color: #1a1d26;
  border-color: #e5e7eb;
}
#main-content td {
  border-color: #f0f1f5;
}
#main-content tr:hover td {
  background: #f8f9fc;
}

/* ─── Input / forms ─── */
#main-content input,
#main-content select,
#main-content textarea {
  background: #fff;
  border-color: #d1d5db;
  color: #1a1d26;
}
#main-content input:focus,
#main-content select:focus,
#main-content textarea:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#main-content input::placeholder {
  color: #4b5060;
}

/* Hero search stays glassmorphism */
.hero input, .hero--photo input {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.20) !important;
  color: #fff !important;
}
.hero input::placeholder, .hero--photo input::placeholder {
  color: rgba(255,255,255,0.7) !important;
}
.hero .search-box svg, .hero--photo .search-box svg {
  color: rgba(255,255,255,0.7);
}

/* ─── Stats bar on light bg ─── */
#main-content .stats-bar {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
/* Stats text readable on white */
#main-content .stat-label {
  color: #4b5060;
}
/* But hero stats keep glass */
.hero .stats-bar, .hero--photo .stats-bar {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
.hero .stat-label, .hero--photo .stat-label {
  color: rgba(255,255,255,0.85);
}

/* ─── Detail sections ─── */
#main-content .detail-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
#main-content .detail-section--highlight {
  background: #fff;
  border: 1px solid #e5e7eb;
}

/* ─── Filter tags / pills ─── */
#main-content .filter-tag,
#main-content .topic-tag {
  background: #f0f1f5;
  color: #374151;
  border-color: #e2e4ea;
}
#main-content .filter-tag:hover,
#main-content .filter-tag.active,
#main-content .topic-tag.active {
  background: rgba(37,99,235,0.08);
  color: var(--ocean);
  border-color: var(--ocean);
}

/* ─── Cookie banner ─── */
.cookie-banner {
  background: #1e293b;
  color: #e2e8f0;
}

/* ─── Back to top ─── */
.back-to-top {
  background: var(--ocean);
  color: #fff;
}

/* ─── Exam pages light overrides ─── */
#main-content .exam-hero,
#main-content .ccaa-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}
#main-content .exam-hero *, #main-content .ccaa-hero * {
  --white: #ffffff;
}
#main-content .exam-hero h1, #main-content .ccaa-hero h1 { color: #fff; }
#main-content .exam-hero p, #main-content .ccaa-hero p { color: rgba(255,255,255,0.7); }

/* Exam glass components */
#main-content .year-card,
#main-content .conv-card,
#main-content .ccaa-info,
#main-content .ccaa-pill {
  background: #fff;
  border-color: #e5e7eb;
}
#main-content .year-card:hover,
#main-content .conv-card:hover {
  border-color: var(--ocean);
}
#main-content .ccaa-pill:hover,
#main-content .ccaa-pill.active {
  border-color: var(--ocean);
  color: var(--ocean);
  background: rgba(37,99,235,0.06);
}

/* Exam topic cards */
#main-content .topic-card {
  background: #fff;
  border-color: #e5e7eb;
}

/* Exam landing card badges stats */
#main-content .ccaa-stat-val,
#main-content .year-card-year {
  color: var(--ocean);
}
#main-content .ccaa-stat-lbl,
#main-content .year-card-meta,
#main-content .conv-meta {
  color: #4b5060;
}
#main-content .conv-name { color: #1a1d26; }
#main-content .conv-badge { color: var(--ocean); }

/* ─── Exam test page — already has its own light override ─── */
.exam-wrap { background: #f5f6fa; }

/* ─── Brand prose & description — dark-theme leftover fix ─── */
#main-content .brand-description {
  color: #4a4f5e;
}
#main-content .brand-prose {
  color: #374151;
}

/* ─── Article body ─── */
#main-content .article-body {
  color: #374151;
}
#main-content .article-body h2 {
  color: #1a1d26;
}

/* ─── Search filters — readable on light bg ─── */
#main-content .filter-select {
  background: #fff;
  color: #374151;
  backdrop-filter: none;
}
#main-content .filter-select option {
  background: #fff;
  color: #1a1d26;
}
#main-content .filter-input-sm {
  background: #fff;
  color: #374151;
  backdrop-filter: none;
}
#main-content .filter-input-sm::placeholder {
  color: #4b5060;
}
#main-content .filter-range {
  color: #4b5060;
}
#main-content .filter-range-sep {
  color: #4b5060;
}
#main-content .filter-range-unit {
  color: #4b5060;
}
#main-content .filter-clear {
  color: #4b5060;
}
#main-content .filter-clear:hover {
  color: #1a1d26;
  border-color: #d1d5db;
}
#main-content .filters-advanced {
  border-color: #e5e7eb;
}
#main-content .filter-checkbox {
  color: #374151;
}

/* ─── Cost page overrides ─── */
#main-content .cost-cta-card p {
  color: rgba(255,255,255,.6);
}
#main-content .cost-calculator,
#main-content .cost-result {
  background: #fff;
  border-color: #e5e7eb;
}
#main-content .cost-item-name {
  color: #374151;
}
#main-content .cost-item-bar {
  background: #f0f1f5;
}

/* ─── Results meta ─── */
#main-content .results-meta {
  color: #4b5060;
}

/* ─── Map pages keep their own styling ─── */
#map, .leaflet-container { color: #333; }

/* ─── Mobile table overflow ─── */
.article-body table,
.brand-prose table,
.detail-section table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ─── Mobile text readability ─── */
@media (max-width: 768px) {
  .brand-prose,
  .brand-description,
  .article-body {
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-section {
    padding: var(--sp-4);
    margin-bottom: var(--sp-5);
  }
  .detail-nav {
    margin-bottom: var(--sp-4);
    padding: var(--sp-2) 0;
    gap: var(--sp-1);
  }
  .detail-nav a {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .section-anchor {
    margin: var(--sp-8) 0 var(--sp-4);
    padding-bottom: var(--sp-2);
  }
  .gallery-grid {
    gap: var(--sp-3);
  }
  .specs-visual {
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
  }
  .specs-grid {
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
  }
  .review-card {
    padding: var(--sp-5);
    margin-bottom: var(--sp-3);
  }
  .similar-section {
    margin: var(--sp-8) 0 var(--sp-10);
  }
  .spec-pill-value {
    font-size: 1.3rem;
  }
  .spec-pill-value--text {
    font-size: 0.85rem;
  }
  .brand-header-row {
    gap: var(--sp-3);
  }
  .brand-header-row h1 {
    font-size: 1.3rem;
  }
  .brand-social {
    justify-content: center;
  }
  .detail-actions {
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
  }
  .detail-actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.8rem;
    padding: 10px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .article-content {
    padding: 0 var(--sp-2);
  }
}

.boat-card-polar-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(37,99,235,0.9); color: #fff;
  font-family: var(--ff-mono); font-size: .65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .5px;
  z-index: 2;
}

/* ── ORC Polar Diagram ── */
.polar-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: var(--sp-4); }
.orc-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.orc-specs-group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 700; margin-bottom: var(--sp-2); }
.orc-measured-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.orc-spec-pill { display: flex; align-items: baseline; gap: 5px; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-lg); padding: 5px 10px; font-size: .78rem; }
.orc-spec-label { color: var(--gray-400); font-weight: 600; text-transform: uppercase; font-size: .65rem; letter-spacing: .04em; }
.orc-spec-value { color: var(--text-primary); font-family: var(--font-mono); font-weight: 700; }
@media (max-width: 640px) { .orc-specs-grid { grid-template-columns: 1fr; } }
.polar-gph { background: #1e40af; color: #dbeafe; padding: 2px 10px; border-radius: 12px; font-family: var(--ff-mono); font-size: .8rem; margin-left: .5rem; }
.polar-wrapper { display: flex; gap: var(--sp-6); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.polar-wrapper canvas { border-radius: var(--radius-lg); max-width: 100%; height: auto; }
.polar-legend { display: flex; flex-direction: column; gap: 6px; padding-top: var(--sp-2); }
.polar-legend-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-secondary); font-family: var(--ff-mono); }
.polar-legend-item span { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.polar-table-wrap { overflow-x: auto; margin-bottom: var(--sp-4); }
.polar-table { width: 100%; border-collapse: collapse; font-family: var(--ff-mono); font-size: .8rem; }
.polar-table th { background: #1e3a5f; color: #dbeafe; padding: 6px 10px; text-align: center; font-weight: 600; border: 1px solid #1e40af; }
.polar-table td { padding: 5px 10px; text-align: center; border: 1px solid var(--border); }
.polar-table tr:nth-child(even) td { background: var(--bg-secondary); }
.polar-row-label { text-align: left !important; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
@media (max-width: 600px) {
  .polar-wrapper { flex-direction: column; align-items: center; }
  .polar-wrapper canvas { width: 100%; max-width: 360px; }
  .polar-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ─── Newsletter CTA ─── */
.newsletter-cta { background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 100%); border-radius: var(--radius-xl); padding: var(--sp-6) var(--sp-5); text-align: center; margin: var(--sp-8) 0; }
.newsletter-cta h2 { color: #fff; font-size: 1.3rem; margin-bottom: var(--sp-2); }
.newsletter-cta p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: var(--sp-4); max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: var(--sp-2); max-width: 440px; margin: 0 auto; }
.newsletter-form input[type=email] { flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.9rem; min-height: 44px; }
.newsletter-form input[type=email]::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-form button { padding: 12px 24px; background: var(--ocean); color: #fff; border: none; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; cursor: pointer; min-height: 44px; white-space: nowrap; transition: background .15s; }
.newsletter-form button:hover { background: var(--ocean-dark); }
.newsletter-ok { color: #34d399; font-weight: 600; display: none; margin-top: var(--sp-2); }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

/* ─── Print ─── */
@media print {
  .site-header, .site-footer, .search-box, .upload-form, .review-form, .nav-toggle, .cookie-banner, .back-to-top { display: none; }
  body { background: white; }
  .boat-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
