/* High-End Restaurant Style Design System */
/* Inspired by luxury dining experiences with sophisticated typography and refined aesthetics */

/* Import premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for the luxury design system */
:root {
  /* Color Palette - Inspired by modern blue aesthetics */
  --champagne: #e0f2fe;
  --cream: #f0f9ff;
  --ivory: #f8fafc;
  --gold: #2563eb;
  --gold-light: #3b82f6;
  --gold-dark: #1d4ed8;
  --copper: #1e40af;
  --copper-light: #60a5fa;
  --burgundy: #1e3a8a;
  --burgundy-light: #2563eb;
  --charcoal: #1e293b;
  --charcoal-light: #334155;
  --slate: #475569;
  --sage: #64748b;
  --mist: #e2e8f0;
  
  /* Typography Scale */
  --font-display: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Hebrew', 'Open Sans Hebrew', sans-serif;
  --font-body: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Hebrew', 'Open Sans Hebrew', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 8px 32px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 16px 64px rgba(37, 99, 235, 0.16);
  --shadow-xl: 0 24px 96px rgba(37, 99, 235, 0.20);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme for sophisticated blue aesthetics */
.dark {
  --champagne: #0f172a;
  --cream: #020617;
  --ivory: #0f172a;
  --gold: #3b82f6;
  --gold-light: #60a5fa;
  --gold-dark: #2563eb;
  --copper: #1e40af;
  --copper-light: #3b82f6;
  --burgundy: #1e3a8a;
  --burgundy-light: #2563eb;
  --charcoal: #f8fafc;
  --charcoal-light: #e2e8f0;
  --slate: #cbd5e1;
  --sage: #94a3b8;
  --mist: #1e293b;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--champagne) 0%, var(--cream) 50%, var(--mist) 100%);
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  transition: background var(--transition-elegant), color var(--transition-elegant);
  position: relative;
  overflow-x: hidden;
}

/* Main content spacing to prevent filter drawer overlap */
.main-content {
  margin-right: 0;
  padding-right: 0;
  transition: all var(--transition-smooth);
  width: 100%;
}

/* When filter drawer is open, adjust main content */
body.offcanvas-open .main-content {
  margin-right: 500px;
  width: calc(100% - 500px);
}

/* Override Bootstrap container constraints when drawer is open */
body.offcanvas-open .container {
  max-width: none !important;
  width: 100% !important;
}

/* Ensure content inside main-content expands to fill available space */
body.offcanvas-open .main-content > * {
  width: 100%;
  max-width: none;
}

/* Responsive adjustments for mobile - moved to consolidated media queries section */

/* Background Gradients */
.background-gradients {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gradient-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  transition: opacity var(--transition-elegant);
}

.gradient-1 {
  background: linear-gradient(135deg, 
    transparent 0%, 
    var(--light-accent-2) 25%, 
    transparent 50%, 
    var(--light-accent-3) 75%, 
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.gradient-2 {
  background: linear-gradient(45deg, 
    transparent 0%, 
    var(--light-accent) 30%, 
    transparent 60%, 
    var(--light-accent-2) 90%, 
    transparent 100%
  );
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.gradient-3 {
  background: linear-gradient(225deg, 
    transparent 0%, 
    var(--sage) 40%, 
    transparent 70%, 
    var(--charcoal) 100%
  );
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.gradient-4 {
  background: linear-gradient(315deg, 
    transparent 0%, 
    var(--light-accent) 20%, 
    var(--light-accent-2) 45%, 
    transparent 70%, 
    var(--light-accent-3) 90%, 
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}

.gradient-5 {
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--sage) 15%, 
    var(--light-accent) 35%, 
    transparent 55%, 
    var(--light-accent-2) 75%, 
    var(--charcoal) 95%, 
    transparent 100%
  );
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 0 40%);
}

.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(37,99,235,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(59,130,246,0.02) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Dark theme gradient adjustments */
.dark .gradient-layer {
  opacity: 0.12;
}

.dark .gradient-1 {
  background: linear-gradient(135deg, 
    transparent 0%, 
    var(--gold-light) 25%, 
    transparent 50%, 
    var(--copper-light) 75%, 
    transparent 100%
  );
}

.dark .gradient-2 {
  background: linear-gradient(45deg, 
    transparent 0%, 
    var(--burgundy-light) 30%, 
    transparent 60%, 
    var(--charcoal-light) 90%, 
    transparent 100%
  );
}

.dark .gradient-3 {
  background: linear-gradient(225deg, 
    transparent 0%, 
    var(--mist) 40%, 
    transparent 70%, 
    var(--gold) 100%
  );
}

.dark .gradient-4 {
  background: linear-gradient(315deg, 
    transparent 0%, 
    var(--gold-light) 20%, 
    var(--copper-light) 45%, 
    transparent 70%, 
    var(--mist) 90%, 
    transparent 100%
  );
}

.dark .gradient-5 {
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--burgundy-light) 15%, 
    var(--gold-light) 35%, 
    transparent 55%, 
    var(--copper-light) 75%, 
    var(--charcoal-light) 95%, 
    transparent 100%
  );
}

.dark .texture-overlay {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(59,130,246,0.02) 1px, transparent 1px);
  opacity: 0.4;
}

/* Tablet responsive rules - moved to consolidated media queries section */

/* Mobile small responsive rules - moved to consolidated media queries section */

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-md) 0;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  transition: color var(--transition-smooth);
}

/* Dark mode overrides for headings */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: var(--ivory) !important;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  position: relative;
  transition: color var(--transition-smooth);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--copper) 100%);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
  color: var(--charcoal-light);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-smooth);
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.8;
  transition: color var(--transition-smooth);
}

/* Dark mode override for paragraphs */
.dark p {
  color: var(--ivory) !important;
}

/* Hero Header Styling */
.hero-header {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--slate);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: color var(--transition-smooth);
}

/* Dark mode override for hero subtitle */
.dark .hero-subtitle {
  color: var(--ivory) !important;
}



/* Step Section Styling */
.step-section {
  position: relative;
  overflow: hidden;
}

.step-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--copper) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.step-content {
  padding: var(--space-md) 0;
}

.location-options {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.divider {
  display: flex;
  align-items: center;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-text {
  padding: 0 var(--space-sm);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

/* Enhanced Button System */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ivory);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
}

.btn-secondary {
  background: var(--ivory);
  color: var(--charcoal);
  border: 2px solid var(--mist);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--mist);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  position: relative;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
  z-index: -1;
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline:hover {
  color: var(--ivory);
  border-color: var(--gold);
}



.btn-icon {
  font-size: 1.2rem;
}

/* Card styling simplified */
.card-surface {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Step Badge System */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  color: var(--ivory);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-left: var(--space-sm);
}

.step-badge::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  z-index: -1;
  opacity: 0.3;
}

/* Section Headings */
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  transition: color var(--transition-smooth);
}

.section-heading::before {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 1px;
}

/* Luxury Form Elements - moved to forms.css to avoid duplication */

/* Enhanced Alert Styling */
.info-alert {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 147, 31, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.info-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}



.alert-info {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 147, 31, 0.05) 100%);
  color: var(--charcoal);
  border-left: 4px solid var(--gold);
}

.alert-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  transition: all var(--transition-fast);
}

.alert-info a:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* Ensure links inside info-alert use luxury-link styling */
.info-alert a.luxury-link {
  color: #0066cc !important;
  text-decoration: underline !important;
  font-weight: normal !important;
  transition: color 0.2s ease !important;
}

.info-alert a.luxury-link:hover {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* Dark mode form controls - moved to forms.css to avoid duplication */

/* Additional text visibility fixes for dark mode */
.dark label,
.dark .form-label,
.dark .form-check-label {
  color: var(--ivory) !important;
}

/* Dark mode text rules moved to theme.css for consolidation */

.dark .navbar-nav .nav-link {
  color: var(--ivory) !important;
}

.dark .navbar-brand {
  color: var(--gold-light) !important;
}

/* FAQ accordion styling moved to dedicated faq.css file */

/* Dark mode button styling moved to theme.css for consolidation */



/* Theme toggle button specific styling for dark mode */
.dark #themeToggle,
.dark .btn-outline-secondary.btn-sm,
.dark [data-bs-theme="dark"] #themeToggle,
.dark [data-bs-theme="dark"] .btn-outline-secondary.btn-sm {
  background: var(--gold) !important;
  color: var(--ivory) !important;
  border-color: var(--gold) !important;
}

.dark #themeToggle:hover,
.dark .btn-outline-secondary.btn-sm:hover,
.dark [data-bs-theme="dark"] #themeToggle:hover,
.dark [data-bs-theme="dark"] .btn-outline-secondary.btn-sm:hover {
  background: var(--gold-light) !important;
  color: var(--ivory) !important;
  border-color: var(--gold-light) !important;
}

/* Dark mode form labels */
.dark .form-label {
  color: var(--ivory) !important;
  font-weight: 600 !important;
}

/* Dark mode text elements moved to theme.css for consolidation */

/* Ensure text elements are visible in dark mode without breaking buttons */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6,
.dark p, .dark .hero-subtitle, .dark .divider-text, .dark .section-heading,
.dark .form-control, .dark .form-select, .dark label, .dark .form-label,
.dark .text-muted, .dark .text-secondary {
  color: var(--ivory) !important;
}

/* Keep buttons readable in dark mode */
.dark .btn {
  color: var(--ivory) !important;
}

/* Dark mode step badge rules moved to theme.css for consolidation */

/* Dark mode info alerts moved to theme.css for consolidation */

/* Dark mode alert info rules moved to theme.css for consolidation */

/* Dark mode overrides for luxury-link inside info-alert */
.dark .info-alert a.luxury-link {
  color: #0066cc !important;
  text-decoration: underline !important;
  font-weight: normal !important;
}

.dark .info-alert a.luxury-link:hover {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* Simple Link Styling */
.luxury-link {
  color: #0066cc;
  text-decoration: underline;
  font-weight: normal;
  transition: color 0.2s ease;
}

.luxury-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Highlight text styling removed for simplicity */

/* FAQ styles moved to dedicated faq.css file */

/* FAQ Accordion styles moved to dedicated faq.css file */

/* Responsive Design - moved to consolidated media queries section */

/* Luxury Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Reduced Motion Support */
@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;
  }
}

/* Card animations removed */

.step-section:nth-child(1) { animation-delay: 0.1s; }
.step-section:nth-child(2) { animation-delay: 0.2s; }
.step-section:nth-child(3) { animation-delay: 0.3s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--mist);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--copper-light) 100%);
}

/* Navbar and Bootstrap element fixes for dark mode */
.dark .navbar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.dark .navbar-light {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
}

.dark .navbar-light .navbar-nav .nav-link {
  color: var(--ivory) !important;
}

.dark .navbar-light .navbar-brand {
  color: var(--gold-light) !important;
}

.dark .navbar-light .navbar-toggler {
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.dark .navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(59, 130, 246, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure icons and images are visible in dark mode */
.dark .navbar img,
.dark .navbar svg,
.dark .navbar .icon,
.dark .navbar .navbar-brand img,
.dark .navbar .navbar-brand svg {
  filter: brightness(0) invert(1) !important;
}

/* Card and container fixes for dark mode */
.dark .card,
.dark .card-body,
.dark .card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
  color: var(--ivory) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

.dark .bg-light {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
}

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

/* Additional text visibility fixes for dark mode */
.dark .text-black,
.dark .text-body,
.dark .text-body-secondary {
  color: var(--ivory) !important;
}

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

/* Additional Bootstrap utility class fixes for dark mode */
.dark .bg-white {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

.dark .bg-light {
  background-color: rgba(59, 130, 246, 0.12) !important;
}

.dark .bg-dark {
  background-color: rgba(59, 130, 246, 0.15) !important;
}

.dark .border {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

/* Comprehensive dark mode text styling for all elements */
.dark .text-muted,
.dark .text-secondary,
.dark .text-body-secondary {
  color: var(--charcoal-light) !important;
}

.dark .text-dark,
.dark .text-black,
.dark .text-body {
  color: var(--ivory) !important;
}

/* Dark mode utility colors moved to theme.css for consolidation */

/* Dark mode table styling */
.dark .table {
  color: var(--ivory) !important;
}

.dark .table th {
  color: var(--ivory) !important;
  background-color: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.dark .table td {
  color: var(--ivory) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.dark .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(59, 130, 246, 0.08) !important;
}

.dark .table-striped > tbody > tr:nth-of-type(even) > td {
  background-color: rgba(59, 130, 246, 0.12) !important;
}

.dark .table-bordered {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.dark .table-hover > tbody > tr:hover > td {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

/* Dark mode caption styling */
.dark caption,
.dark .text-muted {
  color: var(--charcoal-light) !important;
}

/* Dark mode for any remaining text elements */
.dark span,
.dark div,
.dark td,
.dark th,
.dark caption,
.dark label,
.dark small,
.dark strong,
.dark em,
.dark b,
.dark i {
  color: var(--ivory) !important;
}

/* Exception for buttons and interactive elements */
.dark .btn,
.dark .btn-primary,
.dark .btn-secondary,
.dark .btn-outline,
.dark .btn-outline-primary,
.dark .btn-outline-secondary {
  color: var(--ivory) !important;
}

/* Dark mode step badge rules moved to theme.css for consolidation */

/* Dark mode for form elements */
.dark input,
.dark select,
.dark textarea,
.dark option {
  color: var(--ivory) !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Dark mode for any custom text classes */
.dark [class*="text-"] {
  color: var(--ivory) !important;
}

/* Keep specific utility colors visible */
/* Additional dark mode utility colors moved to theme.css for consolidation */

/* Exception for gradient text elements */
.dark h1,
.dark .hero-title {
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Also apply to html.dark for maximum specificity */
html.dark h1,
html.dark .hero-title {
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Dark mode rules moved to theme.css for consolidation */

/* Additional dark mode rules moved to theme.css for consolidation */

/* Filter drawer styles moved to filter_drawer.css for complete decoupling */

/* Ensure luxury-link maintains blue color in dark mode */
html.dark .luxury-link {
  color: #0066cc !important;
  text-decoration: underline !important;
}

html.dark .luxury-link:hover {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* HTML.dark overrides for luxury-link inside info-alert */
html.dark .info-alert a.luxury-link {
  color: #0066cc !important;
  text-decoration: underline !important;
  font-weight: normal !important;
}

html.dark .info-alert a.luxury-link:hover {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* ======================================== */
/* CONSOLIDATED MEDIA QUERIES SECTION */
/* ======================================== */

/* Tablet and Mobile Large (max-width: 768px) */
@media (max-width: 768px) {
  /* Main content adjustments */
  .main-content {
    margin-right: 0;
    padding-right: 0;
    width: 100%;
  }

  /* Filter drawer mobile adjustments */
  body.offcanvas-open .main-content {
    margin-right: 0;
    width: 100%;
  }

  body.offcanvas-open .main-content > * {
    width: 100%;
    max-width: none;
  }

  /* Background gradient adjustments */
  .gradient-layer {
    opacity: 0.06;
  }
  
  .dark .gradient-layer {
    opacity: 0.09;
  }
  
  .texture-overlay {
    background-size: 40px 40px, 25px 25px;
  }

  /* Typography adjustments */
  h1 { font-size: 2.5rem; }
  .hero-title { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  /* Component adjustments */
  .card-surface {
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }
  
  .location-options {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .divider {
    flex-direction: row;
  }
  
  .divider::before,
  .divider::after {
    width: 20px;
  }
  
  body {
    padding: var(--space-md);
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  /* Background gradient adjustments */
  .gradient-layer {
    opacity: 0.04;
  }
  
  .dark .gradient-layer {
    opacity: 0.07;
  }
  
  .texture-overlay {
    background-size: 30px 30px, 20px 20px;
  }

  /* Typography adjustments */
  h1 { font-size: 2rem; }
  .hero-title { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  
  /* Component adjustments */
  .card-surface {
    padding: var(--space-xs);
  }
  
  .step-badge {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .hero-header {
    padding: var(--space-lg) 0;
  }
}