/* ============================================================
   AI Trip Planner — WORLD CLASS EDITION
   Warm Sunset · Editorial Type · Cinematic Depth
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --primary:        #FF6B35;
  --primary-dark:   #E5541F;
  --primary-glow:   rgba(255, 107, 53, 0.35);
  --accent:         #E84393;
  --accent-2:       #6C5CE7;
  --gold:           #F7931E;
  --coral:          #FF8A65;

  --gradient-warm:  linear-gradient(135deg, #FF6B35 0%, #F7931E 45%, #E84393 100%);
  --gradient-dusk:  linear-gradient(135deg, #FF6B35 0%, #E84393 55%, #6C5CE7 100%);
  --gradient-soft:  linear-gradient(135deg, rgba(255,107,53,0.10) 0%, rgba(232,67,147,0.08) 60%, rgba(108,92,231,0.06) 100%);
  --gradient-hero:  radial-gradient(1200px 700px at 15% 10%, rgba(255,138,101,0.35), transparent 55%),
                    radial-gradient(1000px 600px at 85% 20%, rgba(232,67,147,0.30), transparent 60%),
                    radial-gradient(900px 700px at 60% 90%, rgba(108,92,231,0.28), transparent 60%),
                    linear-gradient(180deg, #FFF7EE 0%, #FBEEE1 100%);
  --gradient-text:  linear-gradient(135deg, #FF6B35 0%, #E84393 60%, #6C5CE7 100%);

  --bg:              #FBF7F2;
  --bg-elevated:     #F5EEE4;
  --surface:         #FFFFFF;
  --surface-2:       #FFFBF6;
  --surface-tint:    rgba(255, 107, 53, 0.04);
  --text:            #1A1420;
  --text-secondary:  #3D2F3F;
  --text-muted:      #7A6B78;
  --border:          #EFE4D6;
  --border-strong:   #E1D2BE;

  --shadow-xs: 0 1px 2px rgba(60, 20, 10, 0.05);
  --shadow-sm: 0 2px 4px rgba(60, 20, 10, 0.05), 0 4px 12px rgba(60, 20, 10, 0.06);
  --shadow-md: 0 4px 8px rgba(60, 20, 10, 0.06), 0 12px 28px rgba(60, 20, 10, 0.09);
  --shadow-lg: 0 8px 16px rgba(60, 20, 10, 0.07), 0 24px 56px rgba(60, 20, 10, 0.12);
  --shadow-xl: 0 12px 24px rgba(60, 20, 10, 0.08), 0 40px 80px rgba(60, 20, 10, 0.16);
  --shadow-glow: 0 12px 40px var(--primary-glow);
  --shadow-glow-accent: 0 12px 40px rgba(232, 67, 147, 0.28);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 999px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:  260ms;
  --duration-slow: 420ms;

  --font-display: "Fraunces", "Plus Jakarta Sans", ui-serif, Georgia, serif;
  --font-sans:    "Plus Jakarta Sans", "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --primary:       #FF8A5B;
  --primary-dark:  #FF6B35;
  --primary-glow:  rgba(255, 138, 91, 0.42);
  --accent:        #FF6BAE;
  --accent-2:      #A78BFA;
  --gold:          #FFB959;
  --coral:         #FF9E80;

  --gradient-warm:  linear-gradient(135deg, #FF8A5B 0%, #FFB959 45%, #FF6BAE 100%);
  --gradient-dusk:  linear-gradient(135deg, #FF8A5B 0%, #FF6BAE 55%, #A78BFA 100%);
  --gradient-soft:  linear-gradient(135deg, rgba(255,138,91,0.14) 0%, rgba(255,107,174,0.12) 60%, rgba(167,139,250,0.10) 100%);
  --gradient-hero:  radial-gradient(1200px 700px at 15% 10%, rgba(255,138,91,0.28), transparent 55%),
                    radial-gradient(1000px 600px at 85% 20%, rgba(255,107,174,0.24), transparent 60%),
                    radial-gradient(900px 700px at 60% 90%, rgba(167,139,250,0.22), transparent 60%),
                    linear-gradient(180deg, #17111C 0%, #1F1626 100%);
  --gradient-text:  linear-gradient(135deg, #FFB959 0%, #FF6BAE 60%, #A78BFA 100%);

  --bg:              #120D18;
  --bg-elevated:     #1A1322;
  --surface:         #1F1728;
  --surface-2:       #251C30;
  --surface-tint:    rgba(255, 138, 91, 0.06);
  --text:            #F5EEF5;
  --text-secondary:  #D6C9D9;
  --text-muted:      #9A8AA0;
  --border:          #2E2338;
  --border-strong:   #3E2F4A;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4), 0 14px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.45), 0 28px 64px rgba(0,0,0,0.55);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.5), 0 44px 96px rgba(0,0,0,0.65);
  --shadow-glow: 0 12px 44px rgba(255, 138, 91, 0.35);
  --shadow-glow-accent: 0 12px 44px rgba(255, 107, 174, 0.30);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 800px at 100% -10%, rgba(255,107,53,0.06), transparent 50%),
    radial-gradient(1000px 700px at -10% 40%, rgba(232,67,147,0.05), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.22; }

main, section, nav, footer, .container, .container-fluid { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.08;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.display-1, .display-2 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.035em; }
.display-3           { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.03em; }
.display-4           { font-size: clamp(2.25rem, 5.5vw, 4.25rem); letter-spacing: -0.028em; }
.display-5           { font-size: clamp(2rem, 5vw, 3.5rem); }

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h5 { font-size: 1.1rem; }

.text-muted { color: var(--text-muted) !important; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 .35rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  padding: .4rem .8rem;
  border-radius: var(--radius-full);
  background: var(--surface-tint);
  border: 1px solid rgba(255,107,53,0.18);
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

/* ---------- Navbar ---------- */
.navbar-glass {
  position: sticky; top: 0;
  z-index: 1030;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.navbar-brand-custom {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  display: inline-flex; align-items: center; gap: .5rem;
}
.navbar-brand-custom::before {
  content: "";
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient-warm);
  box-shadow: var(--shadow-glow);
  display: inline-block;
  transform: rotate(-8deg);
  transition: transform var(--duration-slow) var(--ease-spring);
}
.navbar-brand-custom:hover::before { transform: rotate(8deg) scale(1.08); }

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .85rem !important;
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-link-custom:hover { color: var(--text) !important; background: var(--surface-tint); }
.nav-link-custom.active {
  color: var(--primary) !important;
  background: var(--surface-tint);
}

/* ---------- Buttons ---------- */
.btn { transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease); }
.btn:focus, .btn:active { box-shadow: none !important; }

.btn-gradient {
  background: var(--gradient-warm);
  color: #fff !important;
  border: none;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-gradient::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-dusk);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease);
  z-index: -1;
}
.btn-gradient::after {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.7s var(--ease-out);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.35);
  color: #fff !important;
}
.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:hover::after { left: 130%; }
.btn-gradient:active { transform: translateY(0); }

.btn-outline-custom {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  padding: .65rem 1.3rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}
.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--surface-tint);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: none;
  font-weight: 600;
  padding: .6rem 1rem;
  border-radius: var(--radius-full);
}
.btn-ghost:hover { color: var(--primary) !important; background: var(--surface-tint); }

.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

.theme-toggle-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--duration) var(--ease-spring), border-color var(--duration) var(--ease);
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.05); border-color: var(--primary); }

/* ---------- Cards & surfaces ---------- */
.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
/* FIX: sheen limited to top strip only + never blocks interaction */
.card-glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
[data-theme="dark"] .card-glass::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
/* Ensure card content sits above the sheen */
.card-glass > * { position: relative; z-index: 1; }

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--gradient-warm);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
  transform: rotate(-6deg);
  transition: transform var(--duration-slow) var(--ease-spring);
}
.card-glass:hover .feature-icon { transform: rotate(6deg) scale(1.08); }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: .5rem;
}

.avatar-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 9rem);
  background: var(--gradient-hero);
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: -1;
  animation: floatOrb 18s ease-in-out infinite;
}
.hero-section::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,107,53,0.55), transparent 65%);
  top: -120px; left: -80px;
}
.hero-section::after {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(232,67,147,0.45), transparent 65%);
  bottom: -180px; right: -120px;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -40px) scale(1.08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  margin-top: -70px;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(20px);
}
.hero-search-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--gradient-warm);
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

/* ============================================================
   FORMS — HARDENED (fixes triangle/pattern overlay bug)
   ============================================================ */
.form-label {
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .4rem;
  letter-spacing: 0.005em;
}

/* Base input/select/textarea — no decorative bg, text always on top */
.form-control-custom {
  background-color: var(--surface-2) !important;
  background-image: none !important;   /* kill any inherited pattern */
  background-repeat: no-repeat;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1.05rem;
  color: var(--text);
  font-size: .98rem;
  position: relative;
  z-index: 2;                          /* sit above card ::before sheen */
  isolation: isolate;                  /* block ancestor pseudo overlays */
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.form-control-custom::placeholder { color: var(--text-muted); }
.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface) !important;
  box-shadow: 0 0 0 4px var(--surface-tint);
}

/* Kill any accidental decorative pseudo-elements ON the field itself */
.form-control-custom::before,
.form-control-custom::after { content: none !important; }

/* Select — arrow ONLY on the right, nothing tiled across the field */
.form-select.form-control-custom,
select.form-control-custom {
  background-color: var(--surface-2) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'><path fill='%23FF6B35' d='M5.5 7.5 10 12l4.5-4.5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 14px !important;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-select.form-control-custom:focus,
select.form-control-custom:focus {
  background-color: var(--surface) !important;
}

/* If a form field lives inside a card, make sure no ancestor
   pseudo-element (sheen, pattern) paints over its glyphs */
.card-glass .form-control-custom,
.card-glass select,
.card-glass textarea,
.card-glass input {
  position: relative;
  z-index: 2;
}

.form-text { color: var(--text-muted); font-size: .82rem; }

/* ---------- Festival cards ---------- */
.festival-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease);
}
.festival-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.festival-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.festival-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}
.festival-card:hover .festival-img-wrapper img { transform: scale(1.08); filter: saturate(1.1); }
.festival-img-wrapper::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,20,32,0.55) 100%);
  pointer-events: none;
}
.festival-month-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-weight: 700;
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.badge-category {
  background: var(--gradient-warm);
  color: #fff;
  border-radius: var(--radius-full);
  padding: .35rem .85rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: var(--shadow-glow);
}

/* ---------- Footer ---------- */
.footer-custom {
  margin-top: 6rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--surface-tint));
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-custom a { color: var(--text-secondary); font-weight: 500; }
.footer-custom a:hover { color: var(--primary); }

/* ---------- Calendar ---------- */
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-weight: 700; font-size: .78rem;
  color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
  padding: .5rem 0 .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid transparent;
  padding: .5rem;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: all var(--duration) var(--ease);
  display: flex; flex-direction: column;
}
.calendar-cell:hover { background: var(--surface-tint); border-color: var(--primary); transform: translateY(-2px); }
.calendar-cell-empty { background: transparent; cursor: default; }
.calendar-cell-empty:hover { transform: none; background: transparent; border-color: transparent; }
.calendar-cell-today {
  background: var(--gradient-warm);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}
.calendar-cell-today:hover { background: var(--gradient-warm); color: #fff; }
.calendar-cell-has-trip::after {
  content: "";
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.calendar-cell-today.calendar-cell-has-trip::after { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.8); }

/* ---------- Spinner overlay ---------- */
.spinner-overlay {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn var(--duration-slow) var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Toast ---------- */
.toast-container-custom { z-index: 2100; }
.toast { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--border) !important; }

/* ---------- Utility animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .55s var(--ease-out) both; }
.fade-up-delay-1 { animation: fadeUp .55s var(--ease-out) .1s both; }
.fade-up-delay-2 { animation: fadeUp .55s var(--ease-out) .2s both; }
.fade-up-delay-3 { animation: fadeUp .55s var(--ease-out) .3s both; }

.marquee {
  display: flex; gap: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .6rem;
}
.marquee-item::before {
  content: "✦"; color: var(--primary); font-size: .8rem;
}

.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
}

.divider-label {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin: 2rem 0;
}
.divider-label::before, .divider-label::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.day-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}
.day-block:hover { box-shadow: var(--shadow-md); }
.day-block h5 {
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

.navbar-toggler:focus { box-shadow: none; }
[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

.auth-page-wrap {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1rem;
  position: relative;
}
.auth-hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  z-index: -1;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero-search-card { margin-top: -40px; padding: 1.1rem; }
  .festival-img-wrapper { height: 180px; }
  .card-glass { border-radius: var(--radius); }
}

/* ---------- Budget input group ---------- */
.budget-input-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.budget-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--surface-tint);
}
.currency-select {
  width: 110px;
  flex-shrink: 0;
  border: none !important;
  border-right: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  background-color: var(--surface-tint) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'><path fill='%23FF6B35' d='M5.5 7.5 10 12l4.5-4.5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 12px 12px !important;
  padding: .8rem .7rem;
  padding-right: 1.6rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}
.currency-select:focus {
  outline: none;
  box-shadow: none;
}
.budget-amount {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  padding-left: 1rem;
}
.budget-amount:focus {
  box-shadow: none !important;
  background-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
