/* ==========================================================================
   RAUSZEIT · CLEAN DESIGN SYSTEM (Airbnb × Komoot × MySwitzerland)
   Single unified stylesheet for 60 FPS performance, glassmorphism & nature aesthetics
   ========================================================================== */

:root {
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f3efe8;
  --forest-950: #091915;
  --forest-900: #0f2922;
  --forest-800: #163a30;
  --forest-700: #1e4d3f;
  --forest-600: #286653;
  --alpine-accent: #d97706;
  --alpine-warm: #c85a32;
  --text-main: #14221e;
  --text-muted: #566560;
  --border-soft: rgba(20, 34, 30, 0.09);
  --shadow-card: 0 10px 30px -10px rgba(15, 41, 34, 0.08), 0 4px 12px -2px rgba(15, 41, 34, 0.04);
  --shadow-card-hover: 0 22px 44px -12px rgba(15, 41, 34, 0.16), 0 8px 20px -4px rgba(15, 41, 34, 0.08);
  --shadow-float: 0 20px 50px -12px rgba(9, 25, 21, 0.25);
  --radius-card: 1.25rem;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1ede6;
}
::-webkit-scrollbar-thumb {
  background: #c5bdb0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f9688;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism surfaces */
.glass-header {
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 34, 30, 0.08);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(15, 41, 34, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Hero Section */
.hero-backdrop {
  position: relative;
  background-color: var(--forest-950);
  background-image:
    linear-gradient(180deg, rgba(9, 25, 21, 0.42) 0%, rgba(9, 25, 21, 0.65) 55%, rgba(9, 25, 21, 0.92) 100%),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=85');
  background-size: cover;
  background-position: center 38%;
}

/* Quick-Vibe Pills (Responsive Wrap - Zero Right-Edge Clipping) */
#quickVibesBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.vibe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.92rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(20, 34, 30, 0.11);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 41, 34, 0.04);
}

.vibe-pill:hover {
  transform: translateY(-2px);
  border-color: var(--forest-600);
  box-shadow: 0 8px 18px -4px rgba(15, 41, 34, 0.12);
}

.vibe-pill[aria-pressed="true"] {
  background: var(--forest-900);
  color: #ffffff;
  border-color: var(--forest-900);
  box-shadow: 0 10px 22px -6px rgba(15, 41, 34, 0.35);
}

.vibe-pill.vibe-pill-free {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: #6ee7b7;
  font-weight: 800;
}

.vibe-pill.vibe-pill-free:hover {
  border-color: #059669;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.25);
}

.vibe-pill.vibe-pill-free[aria-pressed="true"] {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 10px 24px -5px rgba(5, 150, 105, 0.45);
}

.rz-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Destination Card & 60 FPS Hover Effects */
.rz-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
  will-change: transform;
}

.rz-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(30, 77, 63, 0.24);
}

/* SmartImageResolver Container */
.smart-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #163a30 0%, #0f2922 100%);
  overflow: hidden;
  display: block;
}

.smart-image.detail-hero-img {
  aspect-ratio: 21 / 9;
  max-height: 320px;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.smart-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.25;
  pointer-events: none;
}

.smart-theme-image,
.smart-original-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.rz-card:hover .smart-theme-image,
.rz-card:hover .smart-original-image {
  transform: scale(1.05);
}

.smart-original-image {
  opacity: 0;
  z-index: 2;
}

.smart-image.has-original .smart-original-image {
  opacity: 1;
}

.smart-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 25, 21, 0.28) 0%, rgba(9, 25, 21, 0) 40%, rgba(9, 25, 21, 0.55) 100%);
  z-index: 3;
  pointer-events: none;
}

.smart-image-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  z-index: 4;
  background: rgba(9, 25, 21, 0.72);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  letter-spacing: 0.01em;
}

.smart-image.has-original .smart-image-badge {
  background: rgba(13, 122, 95, 0.88);
  border-color: rgba(255, 255, 255, 0.3);
}

.smart-image-credit {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  z-index: 4;
  font-size: 0.65rem;
  background: rgba(9, 25, 21, 0.65);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.smart-image-credit a {
  color: #fde68a;
  text-decoration: none;
}

/* Affiliate Conversion Buttons on Cards & Detail */
.affiliate-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 34, 30, 0.08);
}

.affiliate-bar.affiliate-bar-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: none;
}

@media (min-width: 640px) {
  .affiliate-bar.affiliate-bar-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.4rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}

.affiliate-bar-detail .affiliate-btn {
  padding: 0.65rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0.85rem;
}

.affiliate-btn.website {
  background: var(--forest-900);
  color: #ffffff;
  border-color: var(--forest-900);
  box-shadow: 0 4px 12px rgba(15, 41, 34, 0.2);
}
.affiliate-btn.website:hover {
  background: var(--forest-700);
  color: #ffffff;
  border-color: var(--forest-700);
  transform: translateY(-1px);
}

.affiliate-btn.ticket {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.affiliate-btn.ticket:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.affiliate-btn.hotel {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.affiliate-btn.hotel:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.affiliate-btn.restaurant {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}
.affiliate-btn.restaurant:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

/* Split Screen Layout */
.split-view-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .split-view-container.is-split {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.sticky-map-box {
  position: sticky;
  top: 5.25rem;
  height: calc(100vh - 6.5rem);
  min-height: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

/* Custom Leaflet Map Pins */
.rz-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--forest-900);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(9, 25, 21, 0.35);
  font-size: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.rz-pin:hover,
.rz-pin.is-highlighted {
  transform: scale(1.25);
  background: var(--alpine-accent);
  z-index: 999 !important;
}

/* Modal Backdrop & Smooth Entry */
.rz-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 70 !important;
  background: rgba(9, 25, 21, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important; /* p-4 on all devices as requested */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.rz-modal-backdrop.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.rz-modal-panel,
#detailModal .rz-modal-panel,
.rz-detail-modal-panel {
  position: relative;
  margin: auto !important;
  width: 100% !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  background: var(--bg-surface);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-float);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.rz-modal-backdrop.is-open .rz-modal-panel {
  transform: translateY(0) scale(1) !important;
}

@media (max-width: 640px) {
  .rz-modal-backdrop {
    padding: 0.75rem !important;
    align-items: center !important;
  }
  .rz-modal-panel,
  #detailModal .rz-modal-panel,
  .rz-detail-modal-panel {
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 1.25rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Toast Notification */
#rzToast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

#rzToast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PRO HEADER NAVIGATION (Minimalist Vector SVGs + Label Underneath)
   ========================================================================== */
.nav-tab-pro {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-width: 5.25rem;
  padding: 0.42rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #44534e;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.nav-tab-pro svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-tab-pro:hover {
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(20, 34, 30, 0.08);
}

.nav-tab-pro:hover svg {
  transform: translateY(-1px);
  color: var(--forest-700);
}

.nav-tab-pro.is-active {
  background: var(--forest-900);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(15, 41, 34, 0.38);
}

.nav-tab-pro.is-active svg {
  color: #fcd34d;
}

.nav-badge-pill {
  position: absolute;
  top: 0.2rem;
  right: 0.55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   MODERN LANGUAGE DROPDOWN WITH CRISP SVG FLAGS
   ========================================================================== */
.lang-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 12.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(20, 34, 30, 0.12);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -12px rgba(9, 25, 21, 0.22);
  padding: 0.35rem;
  z-index: 80;
}

.lang-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.lang-option-btn:hover {
  background: #f3efe8;
}

.lang-option-btn.is-selected {
  background: var(--forest-900);
  color: #ffffff;
}

.flag-svg {
  width: 1.15rem;
  height: 0.85rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  object-fit: cover;
}

/* ==========================================================================
   DYNAMIC CATEGORY SUBMENU BAR
   ========================================================================== */
.submenu-drawer {
  background: linear-gradient(180deg, #f3efe8 0%, #faf8f5 100%);
  border-top: 1px solid rgba(20, 34, 30, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: 1rem;
  animation: submenuSlideDown 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(20, 34, 30, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.subcat-pill:hover {
  border-color: var(--forest-700);
  background: #f2f7f5;
}

.subcat-pill.is-active {
  background: var(--forest-800);
  color: #ffffff;
  border-color: var(--forest-800);
  box-shadow: 0 4px 12px rgba(15, 41, 34, 0.22);
}

/* ==========================================================================
   REALISTIC ITINERARY TIMELINE CONNECTOR
   ========================================================================== */
.plan-leg-connector {
  position: relative;
  margin-left: 1.5rem;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-left: 2px dashed #b4a896;
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media print {
  header, .no-print, #rzToast {
    display: none !important;
  }
}

/* ==========================================================================
   SEASON & TRAVEL DATE SWITCHER PILLS
   ========================================================================== */
.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.78rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(20, 34, 30, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.season-pill:hover {
  border-color: var(--forest-700);
  background: #f2f7f5;
  color: var(--forest-900);
}

.season-pill.is-active {
  background: var(--forest-900);
  color: #ffffff;
  border-color: var(--forest-900);
  box-shadow: 0 4px 12px rgba(15, 41, 34, 0.22);
}



/* Respect the hidden attribute even on elements with display utilities (filter drawer, map column, modals) */
[hidden] { display: none !important; }

/* Curated tours accordion */
.tours-accordion > summary { list-style: none; cursor: pointer; }
.tours-accordion > summary::-webkit-details-marker { display: none; }
.tours-accordion[open] .tours-chevron { transform: rotate(180deg); }
.tours-chevron { transition: transform .2s ease; }

/* ==========================================================================
   SLIDE-OVER MENU DRAWER (☰ Hamburger Menü von rechts)
   ========================================================================== */
.menu-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 25, 21, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  z-index: 90;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-drawer.is-open {
  transform: translateX(0);
}

.menu-nav-item {
  color: #1e293b;
  border-left: 3px solid transparent;
  transition: all 0.16s ease;
}

.menu-nav-item:hover {
  background: #f1f5f3;
  color: #0f2922;
  border-left-color: var(--forest-700);
}

.menu-nav-item.is-active {
  background: #f1f5f3;
  color: var(--forest-900);
  border-left-color: var(--forest-900);
}

.menu-nav-item .nav-badge-pill {
  position: static;
  margin-left: auto;
  font-size: 0.7rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  background: var(--forest-900);
  color: #ffffff;
}

/* Winter season pill in blue styling */
.season-pill.season-pill-winter {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.season-pill.season-pill-winter:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

.season-pill.season-pill-winter.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

/* ==========================================================================
   FARBSCHEMA & THEME DROPDOWN
   ========================================================================== */
.theme-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  width: 140px;
  background: #ffffff;
  border: 1px solid rgba(20, 34, 30, 0.12);
  border-radius: 1rem;
  padding: 0.35rem;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1c1917;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-option-btn:hover {
  background: #f5f5f4;
}

.theme-option-btn.is-selected {
  background: var(--forest-900) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   DARK MODE SYSTEM (Hell / Dunkel / System)
   Swiss Alpine Forest Aesthetic (#091915 / #0f2922)
   ========================================================================== */
html.dark {
  --bg-page: #091915;
  --bg-surface: #0f2922;
  --bg-subtle: #163a30;
  --forest-950: #050d0b;
  --forest-900: #091915;
  --forest-800: #0f2922;
  --forest-700: #163a30;
  --forest-600: #1e4d3f;
  --text-main: #f5f5f4;
  --text-muted: #a8a29e;
  --border-soft: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-float: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

html.dark body {
  background-color: #091915 !important;
  color: #f5f5f4 !important;
}

/* Glass Header in Dark Mode */
html.dark .glass-header {
  background: rgba(9, 25, 21, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark #brandHomeBtn span.block.font-extrabold {
  color: #ffffff !important;
}

/* Header Buttons in Dark Mode */
html.dark #langDropdownBtn,
html.dark #themeDropdownBtn {
  background-color: #0f2922 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark .lang-dropdown-panel,
html.dark .theme-dropdown-panel {
  background-color: #0f2922 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
}

html.dark .lang-option-btn,
html.dark .theme-option-btn {
  color: #f5f5f4 !important;
}

html.dark .lang-option-btn:hover,
html.dark .theme-option-btn:hover {
  background-color: #163a30 !important;
}

html.dark .theme-option-btn.is-selected {
  background-color: #286653 !important;
  color: #ffffff !important;
}

/* Calm Bar & Categories Section */
html.dark section.bg-\[\#faf8f5\] {
  background-color: #091915 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Vibe Pills in Dark Mode */
html.dark .vibe-pill {
  background: #0f2922 !important;
  color: #e7e5e4 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

html.dark .vibe-pill:hover {
  background: #163a30 !important;
  border-color: #286653 !important;
}

html.dark .vibe-pill[aria-pressed="true"] {
  background: #286653 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
}

html.dark .vibe-pill.vibe-pill-free {
  background: #064e3b !important;
  color: #6ee7b7 !important;
  border-color: #059669 !important;
}

html.dark .vibe-pill.vibe-pill-free[aria-pressed="true"] {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Season Pills & Filter Controls */
html.dark .season-pill {
  background: #0f2922 !important;
  color: #e7e5e4 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark .season-pill:hover {
  background: #163a30 !important;
}

html.dark .season-pill[aria-pressed="true"] {
  background: #286653 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
}

html.dark #toggleFiltersBtn,
html.dark #shuffleSixBtn,
html.dark #sortSelect,
html.dark #mobileSplitToggleBtn {
  background-color: #0f2922 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark #viewGridBtn,
html.dark #viewSplitBtn {
  color: #e7e5e4 !important;
}

html.dark #viewGridBtn.bg-\[\#0f2922\],
html.dark #viewSplitBtn.bg-\[\#0f2922\] {
  background-color: #286653 !important;
  color: #ffffff !important;
}

/* Filter Drawer */
html.dark #filterDrawer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark #filterDrawer .bg-white {
  background-color: #0f2922 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark #filterDrawer select,
html.dark #travelDateInput {
  background-color: #163a30 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark #filterDrawer select option {
  background-color: #0f2922 !important;
  color: #f5f5f4 !important;
}

html.dark #dynamicSubmenuBar {
  background: #0f2922 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Cards & Grid */
html.dark .rz-card {
  background: #0f2922 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html.dark .rz-card:hover {
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
}

html.dark .rz-card h3 button {
  color: #f5f5f4 !important;
}

html.dark .rz-card h3 button:hover {
  color: #6ee7b7 !important;
}

html.dark .rz-card p.text-stone-600 {
  color: #a8a29e !important;
}

html.dark .rz-card .bg-stone-100 {
  background-color: #163a30 !important;
  color: #e7e5e4 !important;
}

html.dark .rz-card .text-stone-500 {
  color: #a8a29e !important;
}

html.dark .rz-card .text-emerald-800 {
  color: #34d399 !important;
}

html.dark .rz-card button[data-toggle-plan] {
  background-color: #163a30 !important;
  color: #f5f5f4 !important;
}

html.dark .rz-card button[data-toggle-plan]:hover {
  background-color: #286653 !important;
}

html.dark .rz-card button[data-open-detail] {
  background-color: #163a30 !important;
  color: #f5f5f4 !important;
}

html.dark .rz-card button[data-open-detail]:hover {
  background-color: #1e4d3f !important;
}

/* Affiliate Buttons */
html.dark .affiliate-btn {
  background: #163a30 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .affiliate-btn:hover {
  background: #286653 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
}

/* Curated Tours Accordion */
html.dark #curatedToursSection {
  background: #0f2922 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark #curatedToursSection summary {
  color: #f5f5f4 !important;
}

html.dark #curatedToursGrid > div {
  background: #163a30 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark #curatedToursGrid h4 {
  color: #f5f5f4 !important;
}

html.dark #curatedToursGrid p {
  color: #d6d3d1 !important;
}

/* Modals in Dark Mode */
html.dark .rz-modal-panel,
html.dark .rz-detail-modal-panel {
  background: #0f2922 !important;
  color: #f5f5f4 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark .rz-modal-panel h2,
html.dark .rz-modal-panel h3,
html.dark .rz-modal-panel h4 {
  color: #f5f5f4 !important;
}

html.dark .rz-modal-panel .border-stone-200 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .rz-modal-panel .bg-stone-50,
html.dark .rz-modal-panel .bg-stone-100 {
  background-color: #163a30 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .rz-modal-panel .bg-white {
  background-color: #12221c !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .rz-modal-panel input,
html.dark .rz-modal-panel textarea,
html.dark .rz-modal-panel select {
  background-color: #163a30 !important;
  color: #f5f5f4 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Menu Drawer in Dark Mode */
html.dark .menu-drawer {
  background: #0f2922 !important;
  color: #f5f5f4 !important;
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .menu-drawer .bg-\[\#faf8f5\] {
  background-color: #091915 !important;
}

html.dark .menu-drawer .border-stone-200,
html.dark .menu-drawer .border-stone-200\/80 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .menu-nav-item {
  color: #e7e5e4 !important;
}

html.dark .menu-nav-item:hover {
  background-color: #163a30 !important;
  color: #ffffff !important;
}

html.dark #menuUserCard {
  background-color: #163a30 !important;
}

html.dark #menuUserName {
  color: #ffffff !important;
}

/* Headings & Texts in Main */
html.dark #sectionHeading {
  color: #ffffff !important;
}

html.dark #sectionSubheading {
  color: #a8a29e !important;
}

html.dark #resultsCountPill {
  background-color: rgba(52, 211, 153, 0.15) !important;
  color: #6ee7b7 !important;
}

html.dark footer {
  background-color: #050d0b !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #a8a29e !important;
}


