/**
 * TTDIQC Design System — Modern, Compact, Content-Rich
 * Primary: Fleur-de-lys Blue | Secondaries: Punchy Google-style palette
 */

/* ============================================================================
   1. RESET & VARIABLES
   ============================================================================ */

:root {
  /* Magenta / Purple / Deep Blue palette */
  --magenta: #CD0067;
  --magenta-light: #E6007E;
  --magenta-soft: #FFF0F7;
  --purple: #993399;
  --purple-light: #B044B0;
  --purple-soft: #F5E6F5;
  --blue: #003399;
  --blue-light: #1A4DBF;
  --blue-soft: #E8EEFF;

  /* Accent aliases */
  --primary: var(--magenta);
  --secondary: var(--purple);
  --tertiary: var(--blue);

  /* Legacy compat */
  --red: #EA4335;
  --yellow: #FBBC04;
  --green: #00C853;
  --orange: #FF6D3A;
  --teal: #06B6D4;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;
  --black: #111111;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --bg-dark: var(--black);
  --bg-dark-alt: #1A1A2E;
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-on-dark: #F1F3F5;
  --border: var(--gray-200);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1440px;
  --nav-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 400ms;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--magenta); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--magenta-light); }

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

/* ============================================================================
   2. NAVIGATION — Clean, modern, sticky
   ============================================================================ */

/* Main Navigation Container */
.site-nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
  height: var(--nav-height);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--duration);
}

.nav-logo:hover {
  color: var(--purple);
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 25px 1.5rem;
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--duration);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration);
}

.nav-links > li > a:hover::after {
  transform: scaleX(1);
}

.nav-links > li > a:hover {
  color: var(--magenta);
}

/* Mega Menu Panel Container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100vw;
  max-width: 1400px;
  background: var(--black);
  border-top: 3px solid var(--magenta);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration), visibility var(--duration), transform var(--duration);
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem 2rem;
  z-index: 200;
}

.nav-links > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  align-items: start;
}

/* Mega Menu Column */
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--magenta);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(205, 0, 103, 0.3);
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration), padding-left var(--duration);
  padding-left: 0;
  display: inline-block;
}

.mega-col-links a:hover {
  color: var(--magenta);
  padding-left: 0.5rem;
}

/* Featured Item with Image */
.mega-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(205, 0, 103, 0.2);
  overflow: hidden;
  min-height: 200px;
  transition: all var(--duration);
}

.mega-featured:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(205, 0, 103, 0.5);
  transform: translateY(-4px);
}

.mega-featured-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  opacity: 0.85;
  transition: opacity var(--duration);
}

.mega-featured:hover .mega-featured-image {
  opacity: 1;
}

.mega-featured-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.mega-featured-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #b0b0b0;
  margin: 0;
  line-height: 1.4;
}

/* Regions Grid (for Regions mega-menu) */
.mega-regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.mega-region-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(205, 0, 103, 0.15);
  text-align: center;
  transition: all var(--duration);
  cursor: pointer;
}

.mega-region-item:hover {
  background: rgba(205, 0, 103, 0.15);
  border-color: var(--magenta);
  transform: scale(1.05);
}

.mega-region-item a {
  color: #e0e0e0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--duration);
  display: block;
}

.mega-region-item:hover a {
  color: var(--magenta);
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--duration);
  display: flex;
  align-items: center;
}

.nav-search-btn:hover {
  color: var(--magenta);
}

.nav-search-btn svg { width: 20px; height: 20px; }

.nav-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--magenta);
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration);
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 0, 103, 0.3);
}

/* Mobile Menu Toggle */
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--black);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--duration);
  z-index: 101;
}

.nav-menu-toggle:hover {
  color: var(--magenta);
}

.nav-menu-toggle.active {
  color: var(--magenta);
}

/* Mobile Drawer Navigation */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  overflow-y: auto;
  z-index: 99;
  transform: translateX(-100%);
  transition: transform var(--duration);
  padding: 2rem 1.5rem;
}

.nav-drawer.active {
  transform: translateX(0);
}

.nav-drawer-group {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(205, 0, 103, 0.2);
  padding-bottom: 1.5rem;
}

.nav-drawer-group-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--magenta);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
}

.nav-drawer-group-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer-group-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color var(--duration), padding-left var(--duration);
}

.nav-drawer-group-links a:hover {
  color: var(--magenta);
  padding-left: 0.5rem;
}

/* Overlay for Mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--duration);
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Legacy hamburger support */
.nav-hamburger {
  display: none;
}

/* ============================================================================
   3. SEARCH OVERLAY
   ============================================================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 90%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.search-box input {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: none;
  font-size: 1.125rem;
  font-family: var(--font-sans);
}

.search-box input:focus {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
}

.search-results {
  max-height: 50vh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-item .result-type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--white);
}

.result-type.restaurant { background: var(--magenta); }
.result-type.activity { background: var(--purple); }
.result-type.history { background: var(--blue); }
.result-type.article { background: var(--blue); }

.search-result-item .result-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.search-result-item .result-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================================================
   4. HERO — Large, photo-driven with overlay text
   ============================================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

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

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, rgba(153,51,153,0.3) 70%, rgba(0,51,153,0.4) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-3xl);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-xl);
  max-width: 550px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-search {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
}

.hero-search input {
  flex: 1;
  padding: var(--space-md) var(--space-xl);
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  min-width: 0;
}

.hero-search input:focus {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(205, 0, 103, 0.15);
}

.hero-search button {
  padding: var(--space-md) var(--space-xl);
  background: var(--magenta);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration) var(--ease);
}

.hero-search button:hover {
  background: var(--magenta-light);
}

/* Hero for sub-pages — big photo, shorter */
.hero-compact {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-compact .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.hero-compact .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-compact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, rgba(153,51,153,0.25) 100%);
  z-index: 1;
}

.hero-compact .container {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-2xl);
}

.hero-compact h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-compact p {
  opacity: 0.95;
  margin-top: var(--space-sm);
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ============================================================================
   4b. FULL-BLEED IMAGE SECTIONS
   ============================================================================ */

.image-section {
  position: relative;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.image-section .image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(205,0,103,0.6) 0%, rgba(0,51,153,0.7) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.image-section .container {
  position: relative;
  z-index: 2;
}

.image-section h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.image-section p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 550px;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* Split image + text section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-img {
  position: relative;
  overflow: hidden;
}

.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.split-section:hover .split-img img {
  transform: scale(1.03);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl);
}

.split-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.split-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* Image card — larger format card with photo emphasis */
.card-lg {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.card-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card-lg:hover img {
  transform: scale(1.05);
}

.card-lg-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: var(--white);
}

.card-lg-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.card-lg-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ============================================================================
   5. CONTAINER & LAYOUT
   ============================================================================ */

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

.section {
  padding: var(--space-3xl) 0;
}

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

/* Dark sections — black backgrounds with white text */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header .see-all {
  color: var(--magenta-light);
}

.section-dark .card {
  background: var(--bg-dark-alt);
  border-color: rgba(255,255,255,0.08);
}

.section-dark .card:hover {
  border-color: rgba(205,0,103,0.3);
  box-shadow: 0 4px 20px rgba(205,0,103,0.15);
}

.section-dark .card-body h3 {
  color: var(--white);
}

.section-dark .card-body p {
  color: rgba(255,255,255,0.6);
}

.section-dark .card-meta {
  color: rgba(255,255,255,0.5);
}

/* Dark-alt section — deep navy */
.section-dark-alt {
  background: var(--bg-dark-alt);
  color: var(--text-on-dark);
}

.section-dark-alt .section-header h2 {
  color: var(--white);
}

.section-dark-alt .section-header .see-all {
  color: var(--magenta-light);
}

.section-dark-alt .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.section-dark-alt .card:hover {
  border-color: rgba(153,51,153,0.4);
  box-shadow: 0 4px 20px rgba(153,51,153,0.15);
}

.section-dark-alt .card-body h3 {
  color: var(--white);
}

.section-dark-alt .card-body p {
  color: rgba(255,255,255,0.6);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.section-header .see-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.section-header .see-all:hover {
  gap: var(--space-sm);
}

/* ============================================================================
   6. CARDS — Compact, content-rich
   ============================================================================ */

/* Standard card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.card-body p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Tag badges */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-magenta { background: var(--magenta-soft); color: var(--magenta); }
.tag-purple-new { background: var(--purple-soft); color: var(--purple); }
.tag-red { background: #FFEAEA; color: var(--red); }
.tag-green { background: #E6F7EC; color: var(--green); }
.tag-yellow { background: #FFF8E1; color: #E6A500; }
.tag-orange { background: #FFF0EB; color: var(--orange); }
.tag-purple { background: #F3EEFF; color: var(--purple); }
.tag-teal { background: #E0F7FA; color: #0891B2; }

/* Price dots */
.price-dots { color: var(--magenta); font-weight: 700; font-size: 0.8125rem; }
.price-dots .inactive { color: var(--gray-300); }

/* Rating */
.rating { color: var(--yellow); font-size: 0.8125rem; }

/* Featured card - wider */
.card-featured {
  border: 2px solid var(--magenta);
}

.card-featured::before {
  content: 'Featured';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--magenta);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* ============================================================================
   7. GRID LAYOUTS
   ============================================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: var(--space-xl); }

/* ============================================================================
   8. HORIZONTAL SCROLL ROW — like Netflix/Airbnb
   ============================================================================ */

.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-row > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.scroll-row .card {
  width: 380px;
}

/* ============================================================================
   9. FILTERS — Pill-style, compact
   ============================================================================ */

.filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.filter-btn.active {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}

/* Search input inline */
.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  transition: border-color var(--duration) var(--ease);
}

.filter-search:focus {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
  border-color: var(--magenta);
}

/* ============================================================================
   10. BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--magenta-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(205,0,103,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--magenta);
  border: 1.5px solid var(--magenta);
}

.btn-outline:hover {
  background: var(--magenta);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--magenta);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  background: var(--magenta-soft);
}

.btn-sm {
  padding: 4px var(--space-md);
  font-size: 0.8125rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1rem;
}

/* ============================================================================
   11. QUICK LINKS GRID — large square image cards (Discover categories)
   ============================================================================ */

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.quick-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.quick-link:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-link-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease);
}

.quick-link:hover .quick-link-bg {
  transform: scale(1.06);
}

.quick-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.quick-link-label {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  width: 100%;
}

.quick-link-label span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.quick-link-label .quick-link-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================================================
   12. PROMO BANNER
   ============================================================================ */

.promo-banner {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.promo-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.promo-banner p {
  opacity: 0.9;
  margin-top: var(--space-xs);
  max-width: 500px;
}

.promo-banner .btn {
  background: var(--white);
  color: var(--magenta);
  font-weight: 700;
}

.promo-banner .btn:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* ============================================================================
   13. STATS ROW
   ============================================================================ */

.stats-row {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  padding: var(--space-2xl) 0;
}

.stat {
  min-width: 120px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--magenta);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

/* ============================================================================
   14. FOOTER
   ============================================================================ */

.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.8125rem;
  padding: 3px 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  text-align: center;
  font-size: 0.75rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ============================================================================
   15. SCROLL ANIMATIONS
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   16. ACCORDION (FAQ, etc)
   ============================================================================ */

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
}

.accordion-trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gray-500);
  transition: transform var(--duration) var(--ease);
}

.accordion-item.open .accordion-trigger::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.accordion-content-inner {
  padding: 0 0 var(--space-lg) 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================================
   17. BACK TO TOP
   ============================================================================ */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--magenta);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 90;
  box-shadow: 0 4px 15px rgba(205,0,103,0.3);
  transition: all var(--duration) var(--ease);
}

.back-to-top:hover {
  background: var(--magenta-light);
  transform: translateY(-2px);
}

.back-to-top.show {
  display: flex;
}

/* ============================================================================
   18. UTILITIES
   ============================================================================ */

.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-md { gap: var(--space-md); }

/* ============================================================================
   19. RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: block; }
  .nav-drawer { display: block; }
  .nav-overlay { display: block; }
  .mega-menu { display: none; }
  .nav-hamburger { display: none; }

  .hero { height: 60vh; min-height: 380px; }
  .hero h1 { font-size: 2rem; }
  .hero-compact { height: 35vh; min-height: 250px; }
  .hero-compact h1 { font-size: 1.75rem; }
  .image-section { height: 40vh; min-height: 300px; }
  .image-section h2 { font-size: 1.75rem; }
  .split-section { grid-template-columns: 1fr; min-height: auto; }
  .split-img { min-height: 300px; }
  .split-content { padding: var(--space-2xl) var(--space-lg); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .section { padding: var(--space-2xl) 0; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .promo-banner {
    padding: var(--space-xl);
    flex-direction: column;
    text-align: center;
  }

  .stats-row { gap: var(--space-lg); }
  .stat-number { font-size: 1.5rem; }

  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .quick-link-label span { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-row .card { width: 300px; }
}

/* ============================================================================
   20. PRINT
   ============================================================================ */

@media print {
  .site-nav, .back-to-top, .nav-drawer, .nav-overlay, .search-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .hero-compact { background: #eee !important; color: #000 !important; }
}

/* ============================================================================
   21. REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════ */

/* Skip navigation link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--magenta, #CD0067);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove outline:none overrides - replace with proper focus */
.search-box input:focus,
.filter-search:focus,
.hero-search input:focus {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(205, 0, 103, 0.15);
}

/* Filter button focus & active states */
.filter-btn:focus-visible {
  outline: 3px solid var(--magenta, #CD0067);
  outline-offset: 2px;
}
.filter-btn[aria-pressed="true"],
.filter-btn.active {
  background: var(--magenta, #CD0067);
  color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   21. BLOG / ARTICLE PAGES
   ============================================================================ */

.article-hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-2xl);
  width: 100%;
}

.article-badge {
  display: inline-block;
  background: var(--magenta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

.article-meta span { white-space: nowrap; }

.article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.article-body {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--magenta);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 4px solid var(--magenta);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--magenta-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 0;
}

.article-body a {
  color: var(--magenta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--magenta-light); }

.article-photo {
  margin: 2rem -1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.article-photo figcaption {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  padding: 0.5rem var(--space-md);
  font-style: italic;
}

.article-back {
  text-align: center;
  margin-top: var(--space-xl);
}

.article-back a {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}

.article-back a:hover { background: var(--gray-200); }

/* Blog cards on homepage */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.blog-card-footer .read-more {
  color: var(--magenta);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-hero { height: 320px; }
  .article-body { padding: var(--space-lg); }
  .article-body h2 { font-size: 1.35rem; }
  .article-photo { margin: 1.5rem -0.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .filter-btn.active,
  .filter-btn[aria-pressed="true"] {
    border: 2px solid ButtonText;
  }
  .skip-nav:focus {
    outline: 3px solid ButtonText;
  }
}
