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

/* ── TOKENS ── */
:root {
  --red:          #C1001F;
  --red-dark:     #8B0015;
  --red-deep:     #5A000D;
  --green:        #1A6B3C;
  --gold:         #D4A847;
  --text:         #1C1B19;
  --text-dark:    #111009;
  --text-muted:   #6B6560;
  --text-light:   #9B948D;
  --bg:           #FFFFFF;
  --bg-warm:      #FAF7F2;
  --bg-muted:     #F0EAE0;
  --border:       #E5DDD2;
  --border-dark:  #C8BFB2;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  --max-w:        1140px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3 { font-family: var(--font-heading); }

/* ── LAYOUT ── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.section-sub   { font-size: 1.0625rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.65; }

/* ── HEADER ── */
.site-header {
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
    url('/images/header-bg.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 70px; }
.logo { font-size: 20px; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: -0.03em; font-family: var(--font-heading); }
.logo .accent { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.nav-link {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.85rem; border-radius: 8px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.13); }
.nav-link.wc { color: var(--gold); font-weight: 700; }
.nav-link.wc:hover { background: rgba(212,168,71,0.18); }
.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; color: #fff; }

@media (max-width: 760px) {
  .site-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #1a1714; border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 0.65rem 0.85rem; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all 0.18s; white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary  { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 2px 8px rgba(193,0,31,0.3); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 4px 16px rgba(193,0,31,0.4); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.92); color: var(--text); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: #fff; border-color: rgba(255,255,255,0.8); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.btn-white:hover { background: #FFF0F2; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── HERO ── */
.hero {
  background-color: #1a1a1a;
  background-image: url('/images/background.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
  padding: 7rem 0 6rem;
  position: relative;
}
/* Dark overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.42) 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-label {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 16px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-label::before,
.hero-label::after { content: ''; display: block; width: 24px; height: 1.5px; background: var(--gold); border-radius: 2px; }
.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; color: #fff;
  max-width: 700px; margin: 0 auto 1.25rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,0.72);
  line-height: 1.75; max-width: 500px; margin: 0 auto 2.5rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ── TRUST STRIP ── */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-strip-inner {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.trust-dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--border-dark); flex-shrink: 0; }

/* ── SECTIONS GRID (5 topics) ── */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.section-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
  position: relative;
  overflow: hidden;
}
.section-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.2s;
}
.section-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); transform: translateY(-3px); }
.section-card:hover::after { background: var(--red); }
.section-card.wc { background: #FFF5F7; border-color: #F5C0C8; }
.section-card.wc::after { background: var(--red); }
.section-card.wc:hover { border-color: #E8909E; box-shadow: 0 8px 24px rgba(193,0,31,0.12); }
.section-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--bg-warm); border-radius: 12px;
  font-size: 1.5rem; margin-bottom: 1.1rem;
  transition: transform 0.2s;
}
.section-card:hover .section-card-icon { transform: scale(1.08); }
.section-card-name  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; font-family: var(--font); }
.section-card-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.section-card.wc .section-card-name { color: var(--red); }
.section-card.wc .section-card-icon { background: #FFEAED; }

/* ── CITY CARDS ── */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.city-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.city-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--border-dark); }
.city-card-thumb {
  height: 210px;
  display: flex; align-items: flex-end; padding: 1.1rem;
  position: relative; overflow: hidden;
}
/* Soft light overlay for depth */
.city-card-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 30%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
/* Bottom gradient for legibility */
.city-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.city-card-badge {
  position: relative; z-index: 1;
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 10px; border-radius: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.city-card-body { padding: 1.25rem; }
.city-card-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; font-family: var(--font-heading); letter-spacing: -0.01em; }
.city-card-tag  { font-size: 12.5px; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.5; }
.city-card-link { font-size: 13px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.15s; }
.city-card:hover .city-card-link { gap: 0.55rem; }
.city-card-link::after { content: '→'; }

/* City thumb photos */
.thumb-marrakech   { background: #6b5a4e url('/images/Marrakech.webp') center/cover no-repeat; }
.thumb-gueliz      { background: #7a6a52 url('/images/Gueliz1.webp') center/cover no-repeat; }
.thumb-medina      { background: #6b4e3d url('/images/Medina.webp') center/cover no-repeat; }
.thumb-fes-medina  { background: #7c5c3e url('/images/Fes.webp') center/cover no-repeat; }
.thumb-casablanca  { background: #4a5568 url('/images/Casablanca.webp') center/cover no-repeat; }
.thumb-fes         { background: #7c5c3e url('/images/Fez.webp') center/cover no-repeat; }
.thumb-rabat       { background: #4a6b5a url('/images/Rabat.webp') center/cover no-repeat; }
.thumb-agadir      { background: #5a8060 url('/images/Agadir%20city.webp') center/cover no-repeat; }
.thumb-tangier     { background: #4a6078 url('/images/Tangiers.webp') center/cover no-repeat; }
.thumb-chefchaouen { background: #3d6b8a url('/images/Chefchaouen.webp') center/cover no-repeat; }
.thumb-essaouira   { background: #4a6b7a url('/images/Essaouira.webp') center/cover no-repeat; }
.thumb-merzouga    { background: #c4956a url('/images/Merzouga.webp') center/cover no-repeat; }
.thumb-food        { background: #7a4a2e url('/images/Food.webp') center/cover no-repeat; }
.thumb-hammam      { background: #5c3d2e url('/images/hammam%20header.webp') center/cover no-repeat; }
.thumb-surf        { background: #2a5a7a url('/images/Surf.webp') center/cover no-repeat; }
.thumb-sahara-trek { background: #c4956a url('/images/trek.webp') center/cover no-repeat; }
.thumb-atlas-hiking { background: #6b7a5a url('/images/hiking.webp') center/cover no-repeat; }
.thumb-transport   { background: #2a3d52 url('/images/transportations.webp') center/cover no-repeat; }
.thumb-phrasebook  { background: #3d2a1a url('/images/Darija.webp') center/cover no-repeat; }

/* ── ALL-CITIES GUIDE GRID ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.guide-grid-2 { grid-template-columns: repeat(2, 1fr); }
.guide-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .guide-grid-2, .guide-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .guide-grid-2, .guide-grid-3 { grid-template-columns: 1fr; }
}

/* ── WC BANNER ── */
.wc-banner {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-dark) 40%, var(--red) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(193,0,31,0.25);
}
/* Large "2030" watermark */
.wc-banner::before {
  content: '2030';
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: 9rem; font-weight: 900; font-family: var(--font-heading);
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  pointer-events: none; user-select: none;
  line-height: 1;
}
/* Decorative circle */
.wc-banner::after {
  content: '';
  position: absolute;
  top: -60px; right: 280px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.wc-banner-text { flex: 1; min-width: 220px; position: relative; z-index: 1; }
.wc-banner-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; margin-bottom: 0.65rem; }
.wc-banner-title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.6rem; line-height: 1.2; font-family: var(--font-heading); }
.wc-banner-sub   { font-size: 14px; opacity: 0.82; line-height: 1.65; }

/* ── EMAIL SIGNUP ── */
.signup-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 0;
  position: relative; overflow: hidden;
}
.signup-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,0,31,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.signup-title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.signup-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.signup-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); outline: none; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-form input[type="email"]:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,0,31,0.1); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--bg-warm);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(193,0,31,0.04);
  pointer-events: none;
}
.breadcrumb {
  font-size: 12px; color: var(--text-light); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--text); }
.page-title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.7rem; line-height: 1.15; }
.page-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 560px; line-height: 1.75; }

/* ── COMING SOON ── */
.coming-soon { text-align: center; padding: 5rem 1rem; }
.coming-soon-icon  { font-size: 2.75rem; margin-bottom: 1.25rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.coming-soon-title { font-size: 1.65rem; font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.coming-soon-sub   { font-size: 15px; color: var(--text-muted); margin-bottom: 2rem; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ── WC2030 PAGE ── */
.wc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.stat-card {
  background: var(--green); border: 1px solid var(--green); border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); background: #14532D; border-color: #14532D; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.4rem; font-family: var(--font-heading); }
.stat-label  { font-size: 15px; color: rgba(255,255,255,0.88); line-height: 1.5; }
.host-cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.host-city-card {
  background: var(--green); border: 1px solid var(--green); border-radius: var(--radius);
  padding: 1.35rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.host-city-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); background: #14532D; border-color: #14532D; }
.host-city-num   { font-size: 1.6rem; font-weight: 900; color: #fff; opacity: 0.5; flex-shrink: 0; line-height: 1; font-family: var(--font-heading); }
.host-city-name  { font-size: 17px; font-weight: 700; margin-bottom: 0.25rem; font-family: var(--font-heading); color: #fff; }
.host-city-tag   { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 0.4rem; line-height: 1.5; }
.host-city-note  { font-size: 13px; color: rgba(255,255,255,0.78); }
.wc-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.wc-section-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.wc-section-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green); }
.wc-section-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font); color: var(--green); }
.wc-section-card p  { font-size: 15px; color: var(--text-muted); line-height: 1.65; }
.wc-section-card p a { color: var(--red); }

/* ── WC2030 hub: full green theme (scoped via body.wc-theme) ── */
body.wc-theme .section { background: var(--green) !important; }
body.wc-theme .section-title { color: #fff; }
body.wc-theme .section-sub { color: rgba(255,255,255,0.85); }
body.wc-theme .stat-card,
body.wc-theme .host-city-card { background: #14532D; border-color: rgba(255,255,255,0.16); }
body.wc-theme .stat-card:hover,
body.wc-theme .host-city-card:hover { background: #0F3D22; border-color: rgba(255,255,255,0.28); }
body.wc-theme .centenary-note { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
body.wc-theme .centenary-note h3,
body.wc-theme .centenary-note p { color: #fff; }
body.wc-theme details { border-color: rgba(255,255,255,0.22) !important; }
body.wc-theme details summary,
body.wc-theme details summary span { color: #fff !important; }
body.wc-theme details p { color: rgba(255,255,255,0.9) !important; }
body.wc-theme .section [style*="border-top"] { border-color: rgba(255,255,255,0.28) !important; }
.centenary-note {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem;
}
.centenary-note-icon { font-size: 1.5rem; flex-shrink: 0; }
.centenary-note h3   { font-size: 17px; font-weight: 700; margin-bottom: 0.35rem; }
.centenary-note p    { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ── PROSE (about / privacy) ── */
.prose { max-width: 680px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.85rem; letter-spacing: -0.02em; }
.prose p  { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.1rem; }
.prose p strong { color: var(--text); }
.prose ul { margin: 0 0 1.1rem 1.25rem; font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.prose ul li { margin-bottom: 0.4rem; }
.prose a { color: var(--red); }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3.5rem; align-items: start; }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.65rem; }
.contact-info p  { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.35rem; }
.contact-info a  { color: var(--red); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input, .form-textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); color: var(--text); background: #fff; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.form-input:focus, .form-textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,0,31,0.1); }
.form-textarea { resize: vertical; min-height: 130px; }

/* ── FOOTER ── */
.site-footer { background: #161412; color: rgba(255,255,255,0.65); padding: 3.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .logo { color: #fff; margin-bottom: 0.85rem; display: block; }
.footer-brand .logo .accent { color: var(--red); }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a   { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner   { grid-template-columns: 1fr 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero        { padding: 4rem 0 3.5rem; }
  .section     { padding: 3rem 0; }
  .wc-banner   { padding: 2rem 1.5rem; }
  .wc-banner::before { font-size: 5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sections-grid { grid-template-columns: 1fr 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
}

/* ── LOAD ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-label  { animation: fadeUp 0.5s ease 0.05s both; }
  .hero-title  { animation: fadeUp 0.5s ease 0.15s both; }
  .hero-sub    { animation: fadeUp 0.5s ease 0.25s both; }
  .hero-actions { animation: fadeUp 0.5s ease 0.35s both; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MEGA-MENU (cities dropdown) ── */
.nav-item { position: relative; }
.has-dropdown > .nav-link::after {
  content: ''; display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle; margin-left: 4px;
  opacity: 0.55; transition: transform 0.2s;
}
.has-dropdown:hover > .nav-link::after { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: calc(100% + 10px); left: -16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.1rem; min-width: 460px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200; pointer-events: none;
}
.mega-menu::before {
  content: ''; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mega-menu-header {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.75rem;
  padding-bottom: 0.55rem; border-bottom: 1px solid var(--border);
}
.mega-cities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
.mega-city-card {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  transition: background 0.15s; color: var(--text);
}
.mega-city-card:hover { background: var(--bg-warm); }
.mega-city-swatch { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.mega-city-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.mega-city-tag  { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.mega-menu-footer {
  margin-top: 0.75rem; padding-top: 0.65rem;
  border-top: 1px solid var(--border); display: flex; justify-content: flex-end;
}
.mega-menu-footer a {
  font-size: 12.5px; font-weight: 600; color: var(--red);
  display: flex; align-items: center; gap: 0.3rem; transition: gap 0.15s;
}
.mega-menu-footer a:hover { gap: 0.5rem; }
.mega-menu-footer a::after { content: '→'; }

/* Region swatches (mega-menu) */
.swatch-atlas    { background: #6b7a5a url('/images/Atlas.webp') center/cover no-repeat; }
.swatch-sahara   { background: #b8926a url('/images/Sahara.webp') center/cover no-repeat; }
.swatch-atlantic { background: #4a6b7a url('/images/Atlantic.webp') center/cover no-repeat; }
.swatch-rif      { background: #5a7a5a url('/images/Rif.webp') center/cover no-repeat; }

/* Practical-info swatches (mega-menu) */
.swatch-food       { background: #b8926a url('/images/Food.webp') center/cover no-repeat; }
.swatch-transport  { background: #4a6b7a url('/images/taxi.webp') center/cover no-repeat; }
.swatch-hammam     { background: #8a6b7a url('/images/hammam.webp') center/cover no-repeat; }
.swatch-phrasebook { background: #6b6a8a url('/images/Darija.webp') center/cover no-repeat; }
.swatch-budget     { background: #5a7a5a url('/images/numbers.webp') center/cover no-repeat; }

/* Region hero thumbs */
.thumb-atlas    { background: #6b7a5a url('/images/Atlas.webp') center/cover no-repeat; }
.thumb-sahara   { background: #b8926a url('/images/Sahara.webp') center/cover no-repeat; }
.thumb-atlantic { background: #4a6b7a url('/images/Atlantic.webp') center/cover no-repeat; }
.thumb-rif      { background: #5a7a5a url('/images/Rif.webp') center/cover no-repeat; }

@media (max-width: 760px) {
  .mega-menu { display: none; }
  .has-dropdown > .nav-link::after { display: none; }
}

/* ── FEATURED CITIES (asymmetric home layout) ── */
.cities-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.city-card.city-featured { grid-row: span 2; }
.city-card.city-featured .city-card-thumb { height: 310px; }

@media (max-width: 720px) {
  .cities-featured { grid-template-columns: 1fr; }
  .city-card.city-featured { grid-row: span 1; }
  .city-card.city-featured .city-card-thumb { height: 210px; }
}

/* ── ARTICLE HERO (city/guide pages) ── */
.article-hero {
  position: relative;
  background-color: #1a1a1a;
  padding: 5.5rem 0 4.5rem; color: #fff;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  pointer-events: none;
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.article-hero-label::before {
  content: ''; display: block; width: 20px; height: 1.5px;
  background: var(--gold); border-radius: 2px;
}
.article-hero .breadcrumb { color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.article-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.article-hero .breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.article-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  color: #fff; margin-bottom: 1rem;
}
.article-hero-sub { font-size: 1.0625rem; color: rgba(255,255,255,0.8); max-width: 540px; line-height: 1.75; }

/* ── AT-A-GLANCE BOX ── */
.at-a-glance {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 2.25rem; box-shadow: var(--shadow-sm);
}
.at-a-glance-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.glance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.glance-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.25rem;
}
.glance-value { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; }

/* ── GUIDE LAYOUT (article + sidebar) ── */
.guide-layout {
  display: grid; grid-template-columns: 1fr 270px;
  gap: 4rem; align-items: start; padding: 1.5rem 0 3rem;
}

/* Article body */
.guide-article h2 {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2;
  margin: 2.75rem 0 1rem; padding-top: 2.25rem;
  border-top: 1px solid var(--border); scroll-margin-top: 88px;
}
.guide-article h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.guide-article h3 {
  font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.6rem;
  letter-spacing: -0.015em;
}
.guide-article p {
  font-size: 17px; line-height: 1.85; color: var(--text-muted); margin-bottom: 1.1rem;
}
.guide-article p strong { color: var(--text); font-weight: 600; }
.guide-article ul, .guide-article ol {
  margin: 0 0 1.1rem 1.4rem; font-size: 17px; line-height: 1.85; color: var(--text-muted);
}
.guide-article li { margin-bottom: 0.4rem; }

/* Tip box */
.tip-box {
  background: #FFFBEF; border: 1px solid #DEC96A;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin: 1.5rem 0; display: flex; gap: 0.75rem; align-items: flex-start;
}
.tip-box-icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.tip-box-body { font-size: 14px; color: #5A4715; line-height: 1.7; }
.tip-box-body strong { color: #3A2E05; }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--red); margin: 2rem 0; padding: 0.65rem 1.5rem;
  font-family: var(--font-heading); font-size: 1.2rem; font-style: italic;
  color: var(--text); line-height: 1.55;
}

/* Photo placeholder */
.photo-placeholder {
  background: var(--bg-muted); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-light); font-size: 13px; text-align: center;
  margin: 1.5rem 0;
}
.photo-placeholder-icon { font-size: 2rem; opacity: 0.4; }
.photo-placeholder.ph-tall  { height: 360px; }
.photo-placeholder.ph-med   { height: 240px; }
.photo-placeholder.ph-short { height: 160px; }

/* Guide article photos */
.guide-photo { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.guide-photo img { width: 100%; height: auto; display: block; }

/* ── GUIDE NAVIGATION (prev/next at bottom of practical articles) ── */
.guide-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.guide-nav .btn-secondary {
  background: #fff;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.guide-nav .btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: none;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .guide-nav { flex-direction: column; }
  .guide-nav a { text-align: center; }
}

/* ── TOC SIDEBAR ── */
.guide-sidebar { position: sticky; top: 80px; grid-column: 2; grid-row: 1; }
.guide-article { grid-column: 1; grid-row: 1; }
.toc {
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem;
}
.toc-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.85rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.toc-list a {
  font-size: 13px; color: var(--text-muted); display: block;
  padding: 0.35rem 0.65rem; border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.toc-list a:hover { background: var(--bg-muted); color: var(--text); }
.toc-list a.active { color: var(--red); border-left-color: var(--red); background: #FFF0F2; font-weight: 600; }

/* Related guides row */
.related-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-sidebar {
    position: static; margin-bottom: 0;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
    grid-column: auto; grid-row: auto;
  }
  .guide-article { grid-column: auto; grid-row: auto; }
  .guide-layout > .guide-sidebar { order: -1; }
  .guide-layout > .guide-article { padding-top: 2rem; }
  .toc { display: none; }
  .at-a-glance { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .article-hero { padding: 3rem 0 2.25rem; }
  .article-hero h1 { font-size: clamp(1.75rem, 8vw, 2.6rem); }
  .article-hero-sub { font-size: 0.9375rem; }
  .glance-grid  { grid-template-columns: 1fr 1fr; }
  .guide-article h2 { margin: 1.75rem 0 0.75rem; padding-top: 1.5rem; }
  .guide-article p, .guide-article ul, .guide-article ol { font-size: 16px; }
  .tip-box { padding: 0.85rem 1rem; }
  .pull-quote { font-size: 1.05rem; padding: 0.5rem 1.1rem; }
}

/* ── ZELLIGE PATTERN BACKGROUND ── */
/* Subtle diamond-lattice used on content sections for Moroccan texture */
.zellige-bg {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(193,0,31,0.03) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(193,0,31,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── MOROCCO IN NUMBERS ── */
.morocco-numbers {
  background: linear-gradient(135deg, #1C1B19 0%, #2A2722 100%);
  padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.morocco-numbers::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(212,168,71,0.04) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(212,168,71,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.morocco-numbers-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 2rem; text-align: center;
  position: relative; z-index: 1;
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem; position: relative; z-index: 1;
}
.number-item { text-align: center; padding: 0.25rem 0.5rem; }
.number-value {
  display: block;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 900; font-family: var(--font-heading);
  color: var(--gold); letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 0.55rem;
}
.number-label {
  font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600;
  line-height: 1.45; text-transform: uppercase; letter-spacing: 0.07em;
}

/* ── SCROLL-TRIGGERED ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity  0.5s ease var(--delay, 0ms),
      transform 0.5s ease var(--delay, 0ms);
    will-change: opacity, transform;
  }
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
}

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(to right, var(--red), var(--gold));
  z-index: 101; pointer-events: none;
  transition: width 0.08s linear;
}

/* ── STUB SECTIONS PREVIEW (coming-soon city pages) ── */
.stub-sections { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }
.stub-section-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.stub-section-item:hover { border-color: var(--border-dark); }
.stub-section-icon { font-size: 1.2rem; flex-shrink: 0; width: 32px; text-align: center; }
.stub-section-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; font-family: var(--font); }
.stub-section-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.stub-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-light); background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.stub-wc-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.1rem; margin-bottom: 0.5rem;
  background: #FFF5F7; border: 1px solid #F5C0C8; border-radius: var(--radius-sm);
}
.stub-subscribe {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; margin-top: 0.5rem;
}
.stub-subscribe h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font); }
.stub-subscribe p  { font-size: 14px; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── MOBILE HORIZONTAL CITY SCROLL ── */
@media (max-width: 600px) {
  .guide-grid {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .guide-grid::-webkit-scrollbar { display: none; }
  .guide-grid .city-card {
    flex: 0 0 78vw; max-width: 300px;
    scroll-snap-align: start;
  }
}

/* ── HEADER SHRINK ON SCROLL ── */
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.13); }
.header-inner { transition: height 0.3s; }
.site-header.scrolled .header-inner { height: 56px; }

/* ── HERO ENTRANCE ANIMATION ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── WC COUNTDOWN ── */
.countdown-strip {
  background:
    linear-gradient(135deg, #1a0005 0%, #6B0010 50%, #A8001A 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.countdown-strip::before {
  content: '2030';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: 14rem; font-weight: 900; font-family: var(--font-heading);
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  pointer-events: none; user-select: none; line-height: 1;
}
.countdown-strip::after {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 60px solid rgba(212,168,71,0.06);
  pointer-events: none;
}
.countdown-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
  position: relative; z-index: 1;
}
.countdown-heading {
  text-align: center;
}
.countdown-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.countdown-heading h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.025em; color: #fff; line-height: 1.2;
}
.countdown-units {
  display: flex; align-items: stretch; gap: 1rem;
}
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 110px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.countdown-unit::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.countdown-num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900; font-family: var(--font-heading);
  line-height: 1; letter-spacing: -0.04em;
  color: #fff;
}
.countdown-unit-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold);
  margin-top: 0.5rem; font-weight: 600;
}
.countdown-sep {
  font-size: 3rem; font-weight: 300;
  opacity: 0.3; align-self: center; margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .countdown-units { gap: 0.6rem; }
  .countdown-unit { padding: 1.1rem 1.1rem; min-width: 74px; }
  .countdown-num  { font-size: 2.25rem; }
  .countdown-sep  { font-size: 2rem; }
}

/* ── Trip planner ───────────────────────────────────────── */
.planner-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.planner-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.planner-step-num {
  width: 32px; height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.planner-step-title { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); }
.planner-step-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 0.2rem; }
.planner-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.planner-cards { display: flex; flex-direction: column; gap: 0.4rem; }
.planner-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  user-select: none;
}
.planner-card:hover { border-color: var(--red); }
.planner-card.in-itinerary { border-color: var(--red); background: #fff5f5; }
.planner-card.in-itinerary:hover { border-color: var(--red); }
.planner-card.dragging { opacity: 0.35; }
.planner-card-icon { font-size: 1.3rem; width: 1.8rem; text-align: center; flex-shrink: 0; }
.planner-card-body { flex: 1; min-width: 0; }
.planner-card-name { display: block; font-weight: 600; font-size: 14.5px; color: var(--text-dark); }
.planner-card-tag { display: block; font-size: 12px; color: var(--text-muted); margin-top: 0.1rem; }
.planner-card-days {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.planner-card.in-itinerary .planner-card-days { color: var(--red); }

#planner-body { transition: background 0.15s; }
#planner-body.drag-over { background: #fff8f8; }

.planner-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  align-self: start;
}
.planner-panel-header {
  background: var(--text-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 14px 14px 0 0;
}
.planner-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.planner-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.planner-empty p { font-size: 14px; line-height: 1.5; }

.planner-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.planner-total-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.planner-total-days { font-size: 1.25rem; font-weight: 700; color: var(--red); }

.planner-list { padding: 0.5rem 0; }
.planner-list-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.planner-list-item:last-child { border-bottom: none; }
.planner-list-item.drag-target { background: #fff5f5; border-left: 3px solid var(--red); padding-left: calc(1.25rem - 3px); }
.planner-list-item.dragging { opacity: 0.35; }
.planner-drag-handle { color: #ccc; font-size: 1rem; flex-shrink: 0; cursor: grab; line-height: 1; }
.planner-list-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.planner-list-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-dark); text-decoration: none; }
.planner-list-name:hover { color: var(--red); }
.planner-list-days { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.planner-list-remove {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0 0 0.3rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.planner-list-remove:hover { color: var(--red); }

.planner-order-note { padding: 0 1.25rem 0.75rem; }
.planner-tips-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.5rem; margin-top: 0.75rem; }
.planner-tip { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.4rem; }

.planner-email-block {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  background: var(--bg-warm);
  border-radius: 0 0 14px 14px;
}
.planner-panel.has-items .planner-email-block { display: block; }
.planner-email-label { font-weight: 700; font-size: 14px; margin-bottom: 0.3rem; color: var(--text-dark); }
.planner-email-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.5; }
.planner-email-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.planner-email-row .form-input { flex: 1; min-width: 0; font-size: 14px; }
.planner-email-row .btn { white-space: nowrap; }
.planner-email-success {
  font-size: 14px;
  font-weight: 600;
  color: #1A6B3C;
  padding: 0.75rem 0;
}

@media (max-width: 960px) {
  .planner-layout { grid-template-columns: 1fr; }
  .planner-panel { position: static; }
}

/* ── Budget calculator ──────────────────────────────────── */
.budget-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.budget-controls { position: sticky; top: 80px; }
.budget-control-group { margin-bottom: 2rem; }
.budget-control-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.style-selector { display: flex; flex-direction: column; gap: 0.5rem; }
.style-btn {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: center;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.style-btn:hover { border-color: var(--red); }
.style-btn.active { border-color: var(--red); background: #fff5f5; }
.style-icon { grid-row: 1 / 3; font-size: 1.4rem; line-height: 1; }
.style-name { font-weight: 700; font-size: 14.5px; color: var(--text-dark); }
.style-desc { font-size: 12px; color: var(--text-muted); }
.duration-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dur-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text-dark);
}
.dur-btn:hover { border-color: var(--red); background: #fff5f5; }
#dur-display, #ppl-display {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 2ch;
  text-align: center;
}
.dur-label { font-size: 14px; color: var(--text-muted); }

.budget-total-card {
  background: var(--red);
  color: #fff;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}
.budget-total-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.budget-total-range {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.budget-range-sep { opacity: 0.6; margin: 0 0.2rem; }
.budget-total-sub { font-size: 14px; opacity: 0.85; margin-bottom: 0.5rem; }
.budget-total-currency { font-size: 11.5px; opacity: 0.65; }

.budget-breakdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.breakdown-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dark);
}
.breakdown-style-tag {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-cat { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.breakdown-range { font-weight: 700; font-size: 14px; color: var(--red); white-space: nowrap; }
.breakdown-unit { font-weight: 400; font-size: 11px; color: var(--text-muted); }
.breakdown-note { font-size: 12.5px; color: var(--text-muted); grid-column: 1 / -1; margin-top: 0.15rem; }

.budget-note-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-context { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.budget-context h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.budget-context > p { color: var(--text-muted); margin-bottom: 1.25rem; }

@media (max-width: 900px) {
  .budget-layout { grid-template-columns: 1fr; }
  .budget-controls { position: static; }
}
@media (max-width: 600px) {
  .budget-total-range { font-size: 1.5rem; }
}

/* ── Distance table ─────────────────────────────────────── */
.distance-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 14.5px;
}
.distance-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.distance-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-muted);
}
.distance-table tr:last-child td { border-bottom: none; }
.distance-table tbody tr:hover td { background: var(--bg-warm); }
.distance-table td:first-child { font-weight: 600; color: var(--text-dark); }
@media (max-width: 600px) {
  .distance-table { font-size: 13px; }
  .distance-table th, .distance-table td { padding: 0.5rem 0.4rem; }
}

/* ── Back to top ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.15s;
  z-index: 900;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: #a0001a; }
@media (max-width: 600px) {
  #back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* ── Reading time badge ──────────────────────────────────── */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}
.reading-time svg { opacity: 0.7; flex-shrink: 0; }

/* ── Print styles ────────────────────────────────────────── */
@media print {
  #back-to-top, #progress-bar, .site-header, .site-nav,
  .nav-toggle, .countdown-strip, .guide-sidebar,
  .related-guides, section.section,
  footer, .breadcrumb, .article-hero-label { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }

  .article-hero {
    background: none !important;
    padding: 1.5rem 0 1rem;
    color: #000;
    min-height: 0;
  }
  .article-hero h1 { font-size: 22pt; color: #000; }
  .article-hero-sub { color: #333; font-size: 11pt; }
  .reading-time { color: #666; }

  .guide-layout { display: block; }
  .guide-article {
    max-width: 100%;
    padding: 0;
    font-size: 11pt;
    line-height: 1.6;
  }
  .guide-article h2 { font-size: 15pt; page-break-after: avoid; }
  .guide-article h3 { font-size: 13pt; page-break-after: avoid; }
  .guide-article p, .guide-article li { orphans: 3; widows: 3; }

  .guide-photo { page-break-inside: avoid; }
  .guide-photo img { max-width: 100%; max-height: 280px; object-fit: cover; }

  .tip-box {
    border: 1px solid #ccc;
    background: #f9f9f9 !important;
    page-break-inside: avoid;
  }
  .tip-box-body, .pull-quote { color: #000; }
  .pull-quote { border-left: 3px solid #ccc; color: #444; }

  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }

  @page { margin: 2cm; }
}
