/* -------------------------------------------------------------
   Voyara Travel Agent - Design Tokens & Styles
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Outfit', sans-serif;

  /* Colors */
  --bg-main: #08090d;
  --bg-sidebar: #0e1017;
  --bg-card: rgba(18, 22, 33, 0.6);
  --bg-card-hover: rgba(26, 32, 48, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.25);

  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  --color-primary: #6366f1; /* Neon Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.4);
  --color-secondary: #14b8a6; /* Teal */
  --color-secondary-glow: rgba(20, 184, 166, 0.4);
  --color-accent: #f43f5e; /* Rose */

  /* Layout */
  --sidebar-width: 260px;
  --chat-width: 380px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
.light-theme {
  --bg-main: #f8fafc; /* Slate 50 */
  --bg-sidebar: #ffffff; /* pure white */
  --bg-card: rgba(241, 245, 249, 0.7); /* Slate 100 with blur */
  --bg-card-hover: rgba(226, 232, 240, 0.9); /* Slate 200 */
  --border-color: rgba(15, 23, 42, 0.08); /* Dark slate with low opacity */
  --border-highlight: rgba(99, 102, 241, 0.4); /* Indigo with higher opacity for light mode */

  --color-text-primary: #0f172a; /* Slate 900 */
  --color-text-secondary: #475569; /* Slate 600 */
  --color-text-muted: #64748b; /* Slate 500 */
  
  --color-primary: #4f46e5; /* slightly deeper indigo for better contrast in light mode */
  --color-primary-glow: rgba(79, 70, 229, 0.2);
  --color-secondary: #0d9488; /* deeper teal */
  --color-secondary-glow: rgba(13, 148, 136, 0.2);
}

/* Theme switching smooth transition */
body,
aside.sidebar,
main.content-area,
aside.ai-chat-panel,
.destination-card,
.search-filter-form,
.form-group input,
.form-group select,
.chat-input-form,
.btn-theme-toggle,
.suggestion-chip,
.chat-bubble {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.light-theme * {
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}
.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
.light-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  line-height: 1.5;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   Layout Structure
   ------------------------------------------------------------- */

#app-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar navigation */
aside.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .brand-name {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: #9FABBD !important;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.nav-item button {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  text-align: left;
}

.nav-item button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}

.nav-item.active button,
.nav-item button:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active button {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(20, 184, 166, 0.05));
  border: 1px solid var(--border-highlight);
  box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

.nav-item.active button svg {
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 5px var(--color-primary));
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.user-profile-summary {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-grow: 1 !important;
}

/* Theme Toggle Button Style */
.btn-theme-toggle {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important; /* Fully circular shape */
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: #94A3B8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-theme-toggle svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #C2BCF8 !important;
  color: #534AE1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(83, 74, 225, 0.12) !important;
}

.btn-theme-toggle:active {
  transform: scale(0.97) !important;
}

.btn-theme-toggle:focus-visible {
  outline: 2px solid #534AE1 !important;
  outline-offset: 2px !important;
}

/* Accessible touch target expander for mobile viewports */
@media (max-width: 767px) {
  .btn-theme-toggle::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    bottom: -2px !important;
    left: -2px !important;
    right: -2px !important;
  }
}

/* Light Theme overrides for the toggle button */
.light-theme .btn-theme-toggle {
  background: #FFFFFF !important;
  border: 1px solid #E5EAF3 !important;
  color: #64748B !important;
}

.light-theme .btn-theme-toggle:hover {
  background: #F8FAFC !important;
  border-color: #C2BCF8 !important;
  color: #534AE1 !important;
}

/* User Avatar styling */
.user-avatar {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #F1F5FB !important;
  border: 1.5px solid #C2BCF8 !important;
  color: #534AE1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.user-avatar:hover {
  background: #e9effd !important;
  box-shadow: 0 4px 10px rgba(83, 74, 225, 0.15) !important;
  transform: translateY(-1px) !important;
}

.user-avatar:focus-visible {
  outline: 2px solid #534AE1 !important;
  outline-offset: 2px !important;
}

@media (max-width: 767px) {
  .user-avatar::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    bottom: -2px !important;
    left: -2px !important;
    right: -2px !important;
  }
}

/* User Information details typography styling */
.user-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
}

.user-info .user-name {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--color-text-primary) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.user-info .user-tag {
  font-size: 14px !important;
  color: #6B7280 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* -------------------------------------------------------------
   Main Content Panel
   ------------------------------------------------------------- */

main.content-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
  background-radial-gradient: circle at 50% 0%, rgba(20, 184, 166, 0.05) 0%, transparent 50%;
}

.content-header {
  padding: 2.5rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.content-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Filter Toolbar */
.filter-toolbar {
  padding: 1rem 0 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.search-filter-form {
  display: flex;
  gap: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  max-width: 878px;
  width: 100%;
  height: 126px;
  box-sizing: border-box;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  flex-grow: 1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  margin-left: 0.5rem;
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  padding: 0 1rem;
  height: 42px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* WebMCP Form highlight */
form:tool-form-active {
  outline: 2px dashed var(--color-secondary) !important;
  background-color: rgba(20, 184, 166, 0.05) !important;
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.15) !important;
}

.btn-filter {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-glow));
  border: none;
  color: white;
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0 2rem;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  box-sizing: border-box;
}

.btn-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px var(--color-primary-glow);
}

/* -------------------------------------------------------------
   Views & Viewports
   ------------------------------------------------------------- */

.view-section {
  display: none;
  padding: 0 3rem 3rem;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active-view {
  display: block;
}

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

/* Destination List View */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.destination-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.destination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.destination-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.destination-card:hover::before {
  border-color: rgba(99, 102, 241, 0.4);
}

.card-img-wrapper {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.destination-card:hover .card-img-wrapper img {
  scale: 1.05;
}

.card-badge {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  background: rgba(8, 9, 13, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease !important;
}

.card-badge.rating svg {
  fill: #FFC83D !important;
  stroke: #FFC83D !important;
  width: 14px !important;
  height: 14px !important;
  display: block !important;
}

/* Hover state interaction */
.card-badge:hover {
  background: rgba(20, 22, 28, 0.95) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-country {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-description {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.card-price-info .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.card-price-info .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.card-price-info .price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.btn-card-explore {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.destination-card:hover .btn-card-explore {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.btn-card-explore svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* -------------------------------------------------------------
   Destination Details View
   ------------------------------------------------------------- */

.detail-view-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.detail-hero-img-wrapper {
  height: 350px;
  position: relative;
}

.detail-hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-back-bar {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 5;
}

.btn-detail-back {
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-detail-back:hover {
  background: var(--bg-main);
  border-color: var(--color-primary);
}

.btn-detail-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.detail-main-content {
  padding: 2rem;
}

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-header .country {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.detail-header .tagline {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 1.5rem;
}

.detail-meta-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
}

.detail-meta-item.rating svg {
  fill: #eab308;
  stroke: #eab308;
}

.detail-desc-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Details Options: Flights & Hotels lists */
.detail-options-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.options-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.options-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.options-section h3 svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
  stroke-width: 2;
  fill: none;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-highlight);
}

.option-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.option-sub {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-sub .divider {
  width: 4px;
  height: 4px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

.option-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.option-price {
  font-weight: 800;
  font-size: 1.1rem;
}

.option-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.btn-add-option {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-add-option:hover {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* -------------------------------------------------------------
   Itinerary Planner Section
   ------------------------------------------------------------- */

.itinerary-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Timeline vertical track */
.timeline-track {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), transparent);
}

.timeline-node {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
  z-index: 2;
}

.timeline-node:nth-child(even) .timeline-marker {
  border-color: var(--color-secondary);
  box-shadow: 0 0 8px var(--color-secondary-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.timeline-day-num {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border-highlight);
  width: auto !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 10px !important;
  border-radius: var(--radius-sm);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.timeline-node:nth-child(even) .timeline-day-num {
  color: var(--color-secondary);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.25);
}

.timeline-details {
  display: flex;
  flex-direction: column;
}

.timeline-time {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.btn-remove-node {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-remove-node:hover {
  color: var(--color-accent);
  background: rgba(244, 63, 94, 0.1);
}

.btn-remove-node svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Empty State */
.planner-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.planner-empty-state svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 1.5rem;
}

.planner-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.planner-empty-state p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0 auto;
}

/* Trip Summary Sidebar card */
.trip-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 2rem;
}

.trip-summary-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.summary-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-detail-row .label {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-detail-row .label svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.summary-detail-row .val {
  font-weight: 600;
}

.summary-total-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

.summary-total-row h4 {
  margin: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
}

.summary-total-row .val {
  margin: 0 !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
}

.btn-book-trip {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-book-trip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-book-trip:disabled {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -------------------------------------------------------------
   AI Chat Assistant Sidebar Panel
   ------------------------------------------------------------- */

aside.ai-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  margin: 0;
  width: var(--chat-width);
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw;
  background: rgba(13, 15, 23, 0.95);
  border: none;
  border-left: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
  z-index: 9999;
  outline: none;
  
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Slide transition from the right */
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
}

aside.ai-chat-panel:popover-open {
  display: flex;
  transform: translateX(0);
}

@starting-style {
  aside.ai-chat-panel:popover-open {
    transform: translateX(100%);
  }
}

/* Popover Backdrop Styling */
aside.ai-chat-panel::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, opacity 0.3s ease;
}

aside.ai-chat-panel:popover-open::backdrop {
  opacity: 1;
}

@starting-style {
  aside.ai-chat-panel:popover-open::backdrop {
    opacity: 0;
  }
}

.chat-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-bot-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-secondary-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.chat-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.chat-header p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-logs {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
  animation: messageSlideIn 0.3s ease-out forwards;
}

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

.chat-bubble.bot {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: var(--radius-sm);
  align-self: flex-start;
}

.chat-bubble.user {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
  border: 1px solid var(--border-highlight);
  border-bottom-right-radius: var(--radius-sm);
  align-self: flex-end;
}

.chat-bubble code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Simulated "agent action" tool log inside the chat */
.chat-action-log {
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  max-width: 90%;
  font-family: monospace;
}

.chat-action-log svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  align-self: flex-start;
  margin-left: 0.5rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-input-bar {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.chat-input-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.chat-input-form input {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  flex-grow: 1;
  padding: 0.5rem;
  outline: none;
}

.chat-input-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.btn-chat-send {
  background: var(--color-primary);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-chat-send:hover {
  box-shadow: 0 0 10px var(--color-primary-glow);
  transform: scale(1.05);
}

.btn-chat-send svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.btn-chat-mic {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-chat-mic:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .btn-chat-mic:hover {
  background: rgba(15, 23, 42, 0.05);
}

.btn-chat-mic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-chat-mic.listening {
  color: var(--color-accent);
  animation: pulse-mic 1.5s infinite;
}

@keyframes pulse-mic {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-accent)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--color-accent)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-accent)); }
}

.btn-chat-voice-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-chat-voice-toggle:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .btn-chat-voice-toggle:hover {
  color: var(--color-text-primary);
  background: rgba(15, 23, 42, 0.05);
}

.btn-chat-voice-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Suggestion tags below input */
.chat-suggestions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border-color: var(--border-highlight);
}

/* -------------------------------------------------------------
   Booking Dialog Modal Overlay
   ------------------------------------------------------------- */

dialog.booking-modal {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #0D0E14 !important;
  color: #F8FAFC !important;
  padding: 32px !important;
  border-radius: 20px !important;
  max-width: 760px !important;
  width: 100% !important;
  margin: auto !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(25px) !important;
  outline: none !important;
  overflow-y: auto !important;
  max-height: 90vh !important;
  box-sizing: border-box !important;
}

/* Light Theme Modal Overrides */
.light-theme dialog.booking-modal {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
}

dialog.booking-modal::backdrop {
  background: rgba(8, 9, 13, 0.75) !important;
  backdrop-filter: blur(8px) !important;
}

.light-theme dialog.booking-modal::backdrop {
  background: rgba(15, 23, 42, 0.3) !important;
}

.modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
}

.modal-header h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
}

.light-theme .modal-header h2 {
  color: #0F172A !important;
}

.btn-close-modal {
  background: #232834 !important;
  border: none !important;
  color: #CBD5E1 !important;
  width: 44px !important; /* WCAG 44x44px touch target */
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.light-theme .btn-close-modal {
  background: #F1F5F9 !important;
  color: #475569 !important;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.light-theme .btn-close-modal:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

.btn-close-modal:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

.btn-close-modal svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  fill: none !important;
}

/* Modal Wizard Steps */
.wizard-steps {
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 2.5rem !important;
  position: relative !important;
}

.wizard-steps::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  z-index: 1 !important;
  transform: translateY(-50%) !important;
}

.light-theme .wizard-steps::before {
  background: #D9E1EC !important;
}

.step-indicator {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #232834 !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #F8FAFC !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.2s ease !important;
}

.light-theme .step-indicator {
  background: #F1F5F9 !important;
  border: 2px solid #D9E1EC !important;
  color: #334155 !important;
}

.step-indicator.active {
  border-color: #6D5DFB !important;
  color: #FFFFFF !important;
  background: #6D5DFB !important;
  box-shadow: 0 0 12px rgba(109, 93, 251, 0.4) !important;
}

.light-theme .step-indicator.active {
  border-color: #5B49DE !important;
  color: #FFFFFF !important;
  background: #5B49DE !important;
  box-shadow: 0 0 12px rgba(91, 73, 222, 0.3) !important;
}

.step-indicator.complete {
  border-color: var(--color-secondary) !important;
  color: #FFFFFF !important;
  background: var(--color-secondary) !important;
  box-shadow: 0 0 12px var(--color-secondary-glow) !important;
}

.light-theme .step-indicator.complete {
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  background: var(--color-primary) !important;
}

.wizard-form-step {
  display: none !important;
}

.wizard-form-step.active {
  display: block !important;
  animation: stepIn 0.3s ease-out forwards !important;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.booking-summary-box {
  background: #151821 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 20px !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
  box-sizing: border-box !important;
}

.light-theme .booking-summary-box {
  background: #F8FAFC !important;
  border: 1px solid #D9E1EC !important;
}

.booking-summary-box h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  color: var(--color-secondary) !important;
  text-align: left !important;
}

.light-theme .booking-summary-box h4 {
  color: #5B49DE !important;
}

.booking-summary-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.9rem !important;
  margin-bottom: 8px !important;
  color: #CBD5E1 !important;
}

.light-theme .booking-summary-row {
  color: #475569 !important;
}

.booking-summary-row .val {
  font-weight: 600 !important;
  color: #FFFFFF !important;
  text-align: right !important;
}

.light-theme .booking-summary-row .val {
  color: #0F172A !important;
}

.booking-summary-row.total {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.light-theme .booking-summary-row.total {
  color: #0F172A !important;
  border-top: 1px solid #D9E1EC !important;
}

.booking-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.booking-fields .row {
  display: flex !important;
  gap: 1rem !important;
}

.booking-fields label {
  text-align: left !important;
  display: block !important;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
}

.booking-fields input {
  background: #11131C !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  font-family: var(--font-primary) !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.light-theme .booking-fields input {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
}

.booking-fields input::placeholder {
  color: #94A3B8 !important;
}

.light-theme .booking-fields input::placeholder {
  color: #64748B !important;
}

.booking-fields input:focus-visible {
  border-color: #6D5DFB !important;
  outline: 2px solid #6D5DFB !important;
}

.light-theme .booking-fields input:focus-visible {
  border-color: #5B49DE !important;
  outline: 2px solid #5B49DE !important;
}

.wizard-footer {
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 2.5rem !important;
}

.btn-wizard-nav {
  font-family: var(--font-primary) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.btn-wizard-nav:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

.btn-wizard-nav.back {
  background: #232834 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #CBD5E1 !important;
}

.light-theme .btn-wizard-nav.back {
  background: #F1F5F9 !important;
  border: 1px solid #D9E1EC !important;
  color: #334155 !important;
}

.btn-wizard-nav.back:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.light-theme .btn-wizard-nav.back:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

.btn-wizard-nav.next {
  background: #6D5DFB !important;
  border: none !important;
  color: #FFFFFF !important;
}

.light-theme .btn-wizard-nav.next {
  background: #5B49DE !important;
  color: #FFFFFF !important;
}

.btn-wizard-nav.next:hover {
  box-shadow: 0 0 15px rgba(109, 93, 251, 0.4) !important;
}

.light-theme .btn-wizard-nav.next:hover {
  box-shadow: 0 0 15px rgba(91, 73, 222, 0.3) !important;
  background: #4A3AB5 !important;
}

.success-animation {
  text-align: center;
  padding: 2rem 0;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 3px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-secondary);
  box-shadow: 0 0 20px var(--color-secondary-glow);
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.success-animation h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.success-animation p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   View Transitions Support Styling
   ------------------------------------------------------------- */

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

/* Aspect ratio fix for view transitions */
::view-transition-old(hero),
::view-transition-new(hero) {
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   Responsive Layout Media Queries
   ------------------------------------------------------------- */

@media (max-width: 1200px) {
  #app-container {
    grid-template-columns: var(--sidebar-width) 1fr;
  }

  aside.ai-chat-panel {
    width: 320px;
  }
}

@media (max-width: 768px) {
  #app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  aside.sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    flex-direction: row;
    align-items: center;
  }

  .brand {
    margin-bottom: 0;
  }

  .nav-links {
    display: none; /* Can implement tab navigation overlay */
  }

  .sidebar-footer {
    display: none;
  }

  .content-header {
    padding: 1.5rem 0 0.5rem;
  }

  .filter-toolbar {
    padding: 0.5rem 0 1rem;
  }

  .search-filter-form {
    flex-direction: column;
    gap: 0.75rem;
    height: auto;
    padding: 1.25rem;
  }
  
  .btn-filter {
    width: 100%;
    align-self: stretch;
  }

  .view-section {
    padding: 0 1.5rem 1.5rem;
  }

  .detail-view-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .itinerary-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
    top: -1.25rem;
  }

  .timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-track {
    padding-left: 0;
    margin-top: 1.5rem;
  }

  aside.ai-chat-panel {
    width: 90vw;
    height: 100vh;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
  }
}

/* Floating Voice Assistant Button (always visible, fixed at bottom right) */
.floating-voice-btn {
  display: flex;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-primary-glow);
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

/* Sibling relationship rule to hide the FAB when the popover is open */
#ai-chat-panel:popover-open ~ #floating-voice-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.floating-voice-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
}

.floating-voice-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Voice Assistant Drawer Popover */
.voice-assistant-drawer {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 360px;
  height: 480px;
  max-height: 80vh;
  max-width: 90vw;
  background: rgba(13, 15, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
  z-index: 99;
  outline: none;
  
  /* Flex layout to structure content */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Popover transitions using discrete displays */
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.voice-assistant-drawer:popover-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* -------------------------------------------------------------
   Light Theme & Readability Overrides
   ------------------------------------------------------------- */

/* Headings and strong tags contrast improvement in Dark Theme */
.chat-header h3 {
  color: #ffffff;
}

.chat-bubble h4,
.chat-bubble strong {
  color: #ffffff;
}

/* Scroll wrap and break fix for long messages */
.chat-bubble {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Light Theme Overrides */
.light-theme aside.ai-chat-panel {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.08);
}

.light-theme .chat-header h3 {
  color: #0f172a;
}

.light-theme .chat-bubble h4,
.light-theme .chat-bubble strong {
  color: #0f172a;
}

.light-theme .chat-bubble.bot {
  background: #f1f5f9;
  color: #0f172a;
}

.light-theme .chat-bubble.user {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border-color: rgba(99, 102, 241, 0.3);
  color: #1e1b4b;
}

.light-theme .suggestion-chip {
  background: rgba(15, 23, 42, 0.04);
  color: var(--color-text-secondary);
}

.light-theme .suggestion-chip:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-text-primary);
  border-color: var(--border-highlight);
}

.light-theme .chat-bubble code {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.light-theme .chat-action-log {
  background: rgba(13, 148, 136, 0.05);
  border-color: rgba(13, 148, 136, 0.2);
  color: #0d9488;
}

.light-theme .btn-close-drawer:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-text-primary);
}

/* Light Theme overrides for the popover backdrop */
.light-theme aside.ai-chat-panel::backdrop {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(2px);
}

/* Skeleton Loading Animations */
@keyframes skeleton-pulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton-item {
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease infinite;
  margin-bottom: 0.75rem;
}

.light-theme .skeleton-item {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.03) 75%);
  background-size: 200% 100%;
}

/* Premium Checkout Styling */
.checkout-stepper-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.stepper-step.active {
  color: var(--color-primary);
}

.stepper-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

.stepper-step.active .stepper-num {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr 380px;
    gap: 3rem;
  }
}

.checkout-main-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.checkout-sidebar {
  position: sticky;
  top: 6.5rem;
}

.checkout-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.summary-divider.subtotal {
  border-top-style: dashed;
}

.summary-row, .price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.summary-row .label, .price-row span:first-child {
  color: var(--color-text-secondary);
}

.summary-row .val, .price-row span:last-child {
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: right;
}

.price-row.grand-total {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.price-row.grand-total span:last-child {
  color: var(--color-secondary);
}

/* Modifiers styles */
.checkout-form-group {
  margin-bottom: 1.5rem;
}

.checkout-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-form-group input[type="text"],
.checkout-form-group input[type="email"],
.checkout-form-group input[type="date"],
.checkout-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.light-theme .checkout-form-group input[type="text"],
.light-theme .checkout-form-group input[type="email"],
.light-theme .checkout-form-group input[type="date"] {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

.checkout-form-group input:focus,
.checkout-form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Counter */
.btn-counter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-counter:hover {
  background: rgba(255, 255, 255, 0.15);
}

.light-theme .btn-counter {
  background: rgba(0, 0, 0, 0.03);
}

.light-theme .btn-counter:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Toggles */
.checkout-form-group.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.toggle-label-desc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toggle-label-desc .label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.toggle-label-desc .desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.checkout-form-group.toggle-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Promo row */
.btn-apply-promo {
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-apply-promo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.light-theme .btn-apply-promo {
  background: rgba(0, 0, 0, 0.03);
}

.light-theme .btn-apply-promo:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Ticket Voucher */
.ticket-voucher {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-width: 500px;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.light-theme .ticket-voucher {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.005));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ticket-header {
  background: var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.ticket-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.ticket-col {
  margin-bottom: 0.75rem;
}

.ticket-col .label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ticket-col .val {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.ticket-qrcode-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-xs);
  width: 90px;
  height: 90px;
  color: #000;
}

/* Success layout rows */
.success-actions-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-success-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-success-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
}

.light-theme .btn-success-action {
  background: rgba(15, 23, 42, 0.03);
}

.light-theme .btn-success-action:hover {
  background: rgba(15, 23, 42, 0.08);
}

/* Wallet buttons */
.wallet-passes-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.wallet-button:hover {
  transform: translateY(-2px);
}

.wallet-button.apple {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.wallet-button.google {
  background: #1a73e8;
  color: #fff;
}

/* Premium Centered Auth Dialog */
.auth-modal-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 440px;
  width: 90%;
  box-shadow: none;
  outline: none;
  overflow: visible;
  margin: auto;
}

.auth-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(16px) !important;
}

.auth-modal-dialog[open] {
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-modal-content {
  position: relative;
  width: 100%;
}

.btn-close-auth {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 10;
}

.btn-close-auth:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.light-theme .btn-close-auth {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.12);
}

.light-theme .btn-close-auth:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
}

.auth-card-container {
  width: 100%;
  max-width: 440px;
}

.auth-glass-card {
  background: #1e293b !important;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.light-theme .auth-glass-card {
  background: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0.5rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.auth-tab-btn.active {
  color: var(--color-primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* Auth forms elements */
.subtitle {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 1.75rem;
}

.password-input-wrapper {
  position: relative;
}

.btn-toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.auth-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--color-primary);
  cursor: pointer;
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: none;
}

.btn-link-action:hover {
  text-decoration: underline;
}

.auth-inline-error {
  color: var(--color-accent);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  display: none;
  line-height: 1.4;
}

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: transform 0.2s, filter 0.2s;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Password Strength Indicator */
.strength-meter {
  height: 4px;
  background-color: var(--border-color);
  margin-top: 0.5rem;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.2s;
}

.strength-meter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.3s, background-color 0.3s;
}

.strength-meter.weak::before {
  width: 33%;
  background-color: var(--color-accent);
}

.strength-meter.medium::before {
  width: 66%;
  background-color: var(--color-warning, #f59e0b);
}

.strength-meter.strong::before {
  width: 100%;
  background-color: var(--color-secondary);
}

/* Social Login Button */
.social-btn {
  transition: background-color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--color-primary) !important;
}

.light-theme .social-btn:hover {
  background-color: rgba(15, 23, 42, 0.04) !important;
}

/* Toast Notifications */
.toast-notification {
  min-width: 280px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(10px);
}

.light-theme .toast-notification {
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.toast-notification.success {
  border-left-color: var(--color-secondary);
}

.toast-notification.error {
  border-left-color: var(--color-accent);
}

.toast-message {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-primary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-5px); }
}

/* Profile menu custom styling overrides */
.profile-dropdown-menu .menu-links button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary) !important;
}

.light-theme .profile-dropdown-menu .menu-links button:hover {
  background: rgba(15, 23, 42, 0.04);
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Premium Form Input Icons & Styling */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-wrapper input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  color: var(--color-text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input-wrapper input[type="text"],
.auth-input-wrapper input[type="email"],
.auth-input-wrapper input[type="password"] {
  padding-left: 3rem !important;
  padding-right: 3.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.02);
}

.light-theme .auth-input-wrapper input[type="text"],
.light-theme .auth-input-wrapper input[type="email"],
.light-theme .auth-input-wrapper input[type="password"] {
  background: rgba(15, 23, 42, 0.02) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
}

.auth-input-wrapper input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.18) !important;
  background-color: transparent !important;
}

.auth-input-wrapper .input-icon-svg {
  position: absolute;
  left: 1.1rem;
  width: 21px;
  height: 21px;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input-wrapper:focus-within .input-icon-svg {
  color: var(--color-primary);
}

.auth-input-wrapper .btn-toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  outline: none;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-input-wrapper .btn-toggle-password:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .auth-input-wrapper .btn-toggle-password:hover {
  background: rgba(15, 23, 42, 0.04);
}

.auth-input-wrapper .eye-icon-svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

/* Accessible Contrast, Placeholders, and Spacing Hierarchy */
.auth-glass-card label {
  color: var(--color-text-primary) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.auth-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.light-theme .auth-input-wrapper input::placeholder {
  color: rgba(15, 23, 42, 0.45) !important;
}

.auth-view-panel h3 {
  margin-bottom: 0.75rem !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
}

.auth-view-panel .subtitle {
  margin-bottom: 2rem !important;
  font-size: 0.9rem !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.46;
}

.checkout-form-group {
  margin-bottom: 1.5rem !important;
}

.auth-options-row {
  margin-top: 1.25rem !important;
  margin-bottom: 1.75rem !important;
}

.social-auth-block {
  margin-top: 2rem !important;
}

.social-btn {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  font-weight: 600 !important;
}

.light-theme .social-btn {
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  background: rgba(15, 23, 42, 0.02) !important;
}

/* OAuth Simulator Dialog Style Rules */
#oauth-simulator-dialog .auth-modal-content {
  background: #1e293b !important;
  border-radius: 16px;
  border: 1px solid var(--border-color) !important;
}

.light-theme #oauth-simulator-dialog .auth-modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08) !important;
}

.simulator-account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-align: left;
}

.simulator-account-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
}

.light-theme .simulator-account-row {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}

.light-theme .simulator-account-row:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--color-primary);
}

.simulator-account-row .avatar-circle {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.simulator-account-row .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.simulator-account-row .email {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------
   Redesigned Travel Planner Section Styles
   ------------------------------------------------------------- */
.planner-tabs-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.planner-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.planner-tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.light-theme .planner-tab-btn:hover {
  background: rgba(15, 23, 42, 0.03);
}

.planner-tab-btn.active {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}

.light-theme .planner-tab-btn.active {
  background: rgba(99, 102, 241, 0.05);
}

.planner-main-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.planner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.planner-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-custom label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group-custom input,
.form-group-custom select {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.btn-planner-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-planner-primary:hover {
  opacity: 0.9;
}

.btn-planner-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-planner-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.light-theme .btn-planner-secondary {
  background: rgba(15, 23, 42, 0.03);
}

.light-theme .btn-planner-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
}

.card-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.btn-card-edit {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-card-edit:hover {
  text-decoration: underline;
}

.budget-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.budget-stat-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.budget-stat-box .label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.budget-stat-box .val {
  font-size: 1.5rem;
  font-weight: 800;
}

.budget-stat-box .val.spent-color {
  color: var(--color-primary);
}

.budget-stat-box .val.remaining-color {
  color: var(--color-secondary);
}

.budget-breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.docs-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.doc-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.btn-wallet-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.btn-wallet-add.google {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-wallet-add.apple {
  background: #000;
  color: #fff;
}

.trip-summary-sidebar {
  position: sticky;
  top: 2rem;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

.summary-pricing-rows {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------
   Premium Redesigned Destination Details & Rich Modal Styles
   ------------------------------------------------------------- */

/* Base container resets for Detail View viewport layout */
#detail-view {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: none;
}

#detail-view.active-view {
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Outer padding/margins configuration per breakpoint */
@media (min-width: 1280px) {
  #detail-view {
    padding: 32px 24px !important; /* 32px top/bottom, 24px horizontal on desktop */
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  #detail-view {
    padding: 32px 20px !important; /* 32px top/bottom, 20px horizontal on laptop */
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #detail-view {
    padding: 32px 20px !important; /* 32px top/bottom, 20px horizontal on tablet */
  }
}
@media (max-width: 767px) {
  #detail-view {
    padding: 32px 16px !important; /* 32px top/bottom, 16px horizontal on mobile */
  }
}

/* Inline Back to Explore Button alignment and styling */
.detail-back-bar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.btn-detail-back {
  background: rgba(8, 9, 13, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid var(--border-color) !important;
  color: white !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  font-family: var(--font-primary) !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: var(--transition-smooth) !important;
  min-height: 44px !important; /* Touch target minimum */
}

.btn-detail-back:hover {
  background: var(--bg-main) !important;
  border-color: var(--color-primary) !important;
}

.btn-detail-back:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Fluid, responsive grid layouts */
.detail-view-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.detail-columns-wrapper {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

.detail-left-col {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.detail-right-col {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.detail-right-col * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.detail-cta-wrapper {
  display: none !important;
}

.continue-booking-cta {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: 48px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px var(--color-primary-glow) !important;
  margin: 0 !important;
  transform: none !important;
  position: static !important;
}

.sidebar-continue-btn {
  height: 52px !important;
}

/* Breakpoint 1: Desktop (1280px and above) */
@media (min-width: 1280px) {
  .detail-columns-wrapper {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
    gap: 24px !important;
  }
  .detail-right-col {
    position: sticky !important;
    top: 32px !important;
    align-self: start !important;
  }
  .sidebar-continue-btn {
    display: flex !important;
  }
  .detail-cta-wrapper {
    display: none !important;
  }
}

/* Breakpoint 2: Laptop (1024px–1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .detail-columns-wrapper {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
    gap: 20px !important;
  }
  .detail-right-col {
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
  }
  .sidebar-continue-btn {
    display: flex !important;
  }
  .detail-cta-wrapper {
    display: none !important;
  }
}

/* Breakpoint 3: Tablet (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .detail-columns-wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .detail-right-col {
    position: static !important;
  }
  .sidebar-continue-btn {
    display: flex !important;
  }
  .detail-cta-wrapper {
    display: none !important;
  }
}

/* Breakpoint 4: Mobile (767px and below) */
@media (max-width: 767px) {
  .detail-view-container {
    height: auto !important;
    overflow: visible !important;
  }
  .detail-columns-wrapper {
    flex-direction: column !important;
    gap: 24px !important;
    height: auto !important;
    overflow: visible !important;
  }
  .detail-left-col {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .detail-right-col {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .sidebar-continue-btn {
    display: none !important;
  }
  .detail-map-card {
    height: 380px !important;
    margin-top: 0 !important;
    border-radius: 24px !important;
    margin-bottom: 24px !important;
  }
  .detail-hotels-card {
    margin-bottom: 120px !important; /* space for fixed bottom floating CTA */
  }
  .detail-cta-wrapper {
    display: flex !important;
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    z-index: 1000 !important;
    background: var(--bg-main) !important;
    padding: 8px !important;
    border-radius: 999px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0 !important;
  }
}

/* Proportional Hero Image Scaling */
.detail-hero-img-wrapper {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: var(--radius-lg) !important;
  height: 380px !important;
}

.detail-hero-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 1023px) {
  .detail-hero-img-wrapper {
    height: 280px !important;
  }
}

@media (max-width: 767px) {
  .detail-hero-img-wrapper {
    height: 200px !important;
    border-radius: 12px !important;
  }
}

/* Favorite Circle Button */
.btn-favorite-circle {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-favorite-circle svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s;
}

.btn-favorite-circle:hover {
  transform: scale(1.1) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

.btn-favorite-circle.active svg {
  fill: #f43f5e !important;
  stroke: #f43f5e !important;
}

.btn-favorite-circle:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Fluid Typography and Padding scale tweaks */
.detail-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
  font-weight: 800 !important;
}

.detail-desc-text {
  font-size: clamp(0.875rem, 1.5vw, 0.95rem) !important;
  line-height: 1.6 !important;
}

@media (max-width: 767px) {
  .detail-main-content {
    padding: 1.25rem !important;
  }
  .options-section h3 {
    font-size: 1.15rem !important;
  }
}

.detail-meta {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 1.25rem !important;
  margin-top: 0.5rem !important;
}

.btn-meta-link {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0.25rem 0 !important;
  font-family: var(--font-primary) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  transition: color 0.2s, text-decoration 0.2s !important;
  text-decoration: none !important;
}

.btn-meta-link:hover {
  color: var(--color-primary-light) !important;
  text-decoration: underline !important;
}

.btn-meta-link:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}

/* Glassmorphic Weather Overlay inside Hero Image */
.weather-hero-overlay {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  z-index: 4 !important;
}

.weather-overlay-icon {
  font-size: 1rem !important;
}

.weather-overlay-text {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* Editable Trip Duration Pill Component */
.duration-editor-row {
  margin-top: 1.5rem !important;
  width: 100% !important;
}

.duration-editor-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  height: 56px !important;
  max-height: 56px !important;
  box-sizing: border-box !important;
}

.duration-editor-pill .label-text {
  color: var(--color-text-secondary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.duration-controls-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.btn-duration-adjust {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(91, 73, 222, 0.1) !important;
  border: 1px solid rgba(91, 73, 222, 0.2) !important;
  color: #5B49DE !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-duration-adjust svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #5B49DE !important;
  stroke-width: 3 !important;
  fill: none !important;
  transition: stroke 0.2s !important;
}

.btn-duration-adjust:hover {
  background: rgba(91, 73, 222, 0.2) !important;
  border-color: rgba(91, 73, 222, 0.4) !important;
}

.btn-duration-adjust:hover svg {
  stroke: #4635c2 !important;
}

.btn-duration-adjust:active {
  transform: scale(0.92) !important;
}

.btn-duration-adjust:disabled {
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.btn-duration-adjust:focus-visible {
  outline: 2px solid #5B49DE !important;
  outline-offset: 2px !important;
}

/* Expanding accessibility target area to 44x44px */
.btn-duration-adjust::after {
  content: '' !important;
  position: absolute !important;
  top: -6px !important;
  bottom: -6px !important;
  left: -6px !important;
  right: -6px !important;
}

.duration-display {
  font-weight: 700 !important;
  color: var(--color-primary-light) !important;
  min-width: 60px !important;
  text-align: center !important;
  font-size: 0.95rem !important;
}

/* Stays cards styling refinements */
.stay-card-rich {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 24px !important; /* Premium card radius */
  overflow: hidden !important;
  padding: 16px !important; /* Consistent internal card padding */
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  height: 100% !important;
}

.stay-card-rich:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.stay-card-rich:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

.stay-img-rich {
  height: 180px !important;
  position: relative !important;
  border-radius: 16px !important; /* Slightly smaller image radius */
  overflow: hidden !important;
  width: 100% !important;
}

.stay-img-rich img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 300ms ease !important;
}

.stay-card-rich:hover .stay-img-rich img {
  transform: scale(1.03) !important; /* Subtle image zoom */
}

.badge-free-cancel {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  background: rgba(20, 184, 166, 0.9) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  z-index: 2 !important;
}

/* Rating badge overlay on image */
.stay-img-rich .card-badge.rating {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 3 !important;
}

.stay-details-rich {
  padding: 16px 0 0 0 !important; /* Aligns with card grid, spacing of 16px below image */
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important; /* Spacing of 12px between content groups */
  flex-grow: 1 !important;
}

.stay-details-rich .option-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

/* Light Theme override for Hotel Name */
.light-theme .stay-details-rich .option-name {
  color: #000000 !important;
}

.stay-subtitle-row {
  font-size: 0.85rem !important;
  color: var(--color-text-secondary) !important;
  margin-top: 8px !important; /* Spacing of 8px between title and location */
  margin-bottom: 0 !important;
}

.stay-badges-row {
  display: flex !important;
  gap: 0.5rem !important;
}

.stay-badge {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 4px !important;
}

.stay-badge.breakfast {
  background: rgba(99, 102, 241, 0.15) !important;
  color: var(--color-primary-light) !important;
}

.stay-badge.availability {
  background: rgba(20, 184, 166, 0.15) !important;
  color: var(--color-secondary) !important;
}

.stay-amenities-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

.amenity-pill {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  font-size: 0.75rem !important;
  color: var(--color-text-secondary) !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 4px !important;
}

.stay-pricing-footer {
  margin-top: 0.75rem !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 0.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.stay-rate .price-val {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
}

.stay-total-est {
  font-size: 0.8rem !important;
  color: var(--color-text-secondary) !important;
}

.stay-total-est strong {
  color: var(--color-secondary) !important;
}

.stay-actions-rich {
  padding: 0 !important; /* Aligns with card grid sides */
  margin-top: auto !important; /* Forces the button to be anchored to the bottom */
  padding-top: 24px !important; /* Spacing of 24px before CTA */
  width: 100% !important;
}

.stay-actions-rich .btn-add-option {
  width: 100% !important;
  height: 48px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
}

.stay-actions-rich .btn-add-option:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(91, 73, 222, 0.2) !important;
  border-color: #5B49DE !important;
}

.stay-actions-rich .btn-add-option:active {
  transform: scale(0.97) !important;
}

.stay-actions-rich .btn-add-option:focus-visible {
  outline: 2px solid #5B49DE !important;
  outline-offset: 2px !important;
}

/* Premium Flight Card Refinements */
.flight-card-rich {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important; /* 24px padding around card */
  gap: 0 !important;
  box-sizing: border-box !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.flight-card-rich:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.flight-card-rich:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Row 1: Header styling */
.flight-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin-bottom: 16px !important; /* Header -> 16px spacing */
  width: 100% !important;
}

.flight-brand-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.flight-airline {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  line-height: 1.2 !important;
}

.flight-number {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--color-text-secondary) !important;
}

.flight-price {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--color-secondary) !important;
  line-height: 1 !important;
}

/* Row 2: Flight Info styling */
.flight-info-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 20px !important; /* Flight Info -> 20px spacing */
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
}

.flight-info-row .divider {
  color: rgba(255, 255, 255, 0.2) !important;
}

.light-theme .flight-info-row .divider {
  color: rgba(0, 0, 0, 0.1) !important;
}

/* Row 3: Action Button styling */
.flight-actions-row {
  width: 100% !important;
}

.flight-action-btn {
  width: 100% !important;
  height: 48px !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.flight-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(91, 73, 222, 0.2) !important;
  border-color: #5B49DE !important;
}

.flight-action-btn:active {
  transform: scale(0.97) !important;
}

.flight-action-btn:focus-visible {
  outline: 2px solid #5B49DE !important;
  outline-offset: 2px !important;
}

/* Stacking and wrapping options list on mobile devices */
@media (max-width: 480px) {
  .option-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .option-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
  }
  .btn-add-option {
    flex-grow: 1 !important;
    text-align: center !important;
    padding: 0.75rem !important;
    min-height: 44px !important;
  }
}

/* Details Modal dialog structure & drawer configuration on mobile */
.hotel-modal-dialog {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  max-width: 1100px !important;
  width: 90% !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  outline: none !important;
}

.hotel-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(16px) !important;
}

.hotel-modal-content {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  position: relative !important;
  color: #F8FAFC !important;
}

.btn-modal-close {
  position: absolute !important;
  top: 1rem !important;
  right: 1.25rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  width: 44px !important; /* Accessible touch target size */
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transition: background-color 0.2s, outline 0.2s !important;
}

.btn-modal-close:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

.hotel-modal-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  height: 90vh !important;
  max-height: 800px !important;
}

.modal-gallery-column {
  background: #0b0f19 !important;
  display: flex !important;
  flex-direction: column !important;
}

.gallery-hero-wrapper {
  flex-grow: 1 !important;
  overflow: hidden !important;
}

.gallery-hero-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.gallery-thumbs-row {
  display: flex !important;
  gap: 0.5rem !important;
  padding: 1rem !important;
  background: #0f172a !important;
  overflow-x: auto !important;
}

.thumb-btn {
  width: 80px !important;
  height: 60px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  padding: 0 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.thumb-btn.active {
  border-color: var(--color-primary) !important;
}

.thumb-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.modal-info-column {
  padding: 32px !important; /* side padding 32px desktop */
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Vertically center content */
  align-items: center !important;     /* Horizontally center content */
  background: #0f172a !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
}

.modal-info-inner {
  width: 100% !important;
  max-width: 640px !important; /* Constrain content width */
  display: flex !important;
  flex-direction: column !important;
  margin-top: auto !important;   /* Balanced top/bottom spacing */
  margin-bottom: auto !important;
}

.modal-header-section {
  margin-bottom: 24px !important; /* Location -> Description: 24px spacing */
}

.modal-header-section h2 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin-bottom: 12px !important; /* Hotel Name -> Location: 12px spacing */
}

.modal-header-section .hotel-modal-subtitle {
  font-size: 0.9rem !important;
  color: #CBD5E1 !important;
}

.modal-section {
  margin-bottom: 32px !important; /* Spacing between major sections: 32px */
}

/* Policies -> Primary Booking Action: 40px spacing */
.modal-info-inner > .modal-section:nth-last-of-type(1) {
  margin-bottom: 40px !important;
}

.modal-section h4 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--color-secondary) !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.modal-section p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #F8FAFC !important;
}

.modal-section strong {
  color: #FFFFFF !important;
}

.modal-amenities-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  font-size: 0.9rem !important;
  color: #CBD5E1 !important;
}

.modal-room-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  color: #CBD5E1 !important;
}

.modal-room-row strong {
  color: #FFFFFF !important;
}

.modal-room-row p {
  color: #94A3B8 !important;
}

.room-status.green {
  color: #14B8A6 !important; /* Bright teal for dark mode */
  background: rgba(20, 184, 166, 0.1) !important;
  border: 1px solid rgba(20, 184, 166, 0.25) !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
}

.room-status.red {
  color: #FCA5A5 !important; /* Light red for dark mode */
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
}

.modal-footer-cta {
  margin-top: auto !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  color: #F8FAFC !important;
}

.modal-footer-cta .price-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.modal-footer-cta .rate {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
}

.modal-footer-cta .total {
  font-size: 0.95rem !important;
  color: #CBD5E1 !important;
}

.modal-footer-cta .total strong {
  color: var(--color-secondary) !important;
}

/* Light Theme Overrides for Modal */
.light-theme .hotel-modal-dialog {
  color: #0F172A !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15) !important;
}

.light-theme .hotel-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4) !important;
}

.light-theme .hotel-modal-content {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
}

.light-theme .btn-modal-close {
  background: #F1F5F9 !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
}

.light-theme .btn-modal-close:hover {
  background: #E2E8F0 !important;
}

.light-theme .modal-gallery-column {
  background: #F8FAFC !important;
}

.light-theme .gallery-thumbs-row {
  background: #FFFFFF !important;
  border-top: 1px solid #D9E1EC !important;
}

.light-theme .thumb-btn {
  background: #FFFFFF !important;
}

.light-theme .modal-info-column {
  background: #F8FAFC !important;
  border-left: 1px solid #D9E1EC !important;
  color: #0F172A !important;
}

.light-theme .modal-header-section h2 {
  color: #0F172A !important;
}

.light-theme .modal-header-section .hotel-modal-subtitle {
  color: #475569 !important;
}

.light-theme .modal-section h4 {
  color: var(--color-primary) !important;
}

.light-theme .modal-section p {
  color: #475569 !important;
}

.light-theme .modal-section strong {
  color: #0F172A !important;
}

.light-theme .modal-amenities-grid {
  color: #475569 !important;
}

.light-theme .attractions-checklist {
  color: #475569 !important;
}

.light-theme .modal-room-row {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
  color: #475569 !important;
}

.light-theme .modal-room-row strong {
  color: #0F172A !important;
}

.light-theme .modal-room-row p {
  color: #64748B !important;
}

.light-theme .room-status.green {
  color: #0D9488 !important; /* Accessible teal */
  background: rgba(13, 148, 136, 0.08) !important;
  border: 1px solid rgba(13, 148, 136, 0.2) !important;
}

.light-theme .room-status.red {
  color: #B42318 !important; /* Darker red for contrast */
  background: rgba(180, 35, 24, 0.08) !important;
  border: 1px solid rgba(180, 35, 24, 0.2) !important;
}

.light-theme .modal-footer-cta {
  border-top: 1px solid #D9E1EC !important;
  color: #475569 !important;
}

.light-theme .modal-footer-cta .rate {
  color: #0F172A !important;
}

.light-theme .modal-footer-cta .total {
  color: #475569 !important;
}

.light-theme .modal-footer-cta .total strong {
  color: var(--color-primary) !important;
}

/* Map Popup styles overrides */
.leaflet-popup-content-wrapper {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.leaflet-popup-tip {
  background: #0F172A !important;
}

.light-theme .leaflet-popup-content-wrapper {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #D9E1EC !important;
}

.light-theme .leaflet-popup-tip {
  background: #FFFFFF !important;
}

/* Mobile responsive full screen overrides */
@media (max-width: 768px) {
  .hotel-modal-dialog {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .hotel-modal-content {
    height: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hotel-modal-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
  }
  .modal-gallery-column {
    height: 300px !important;
    flex-shrink: 0 !important;
  }
  .modal-info-column {
    padding: 20px !important; /* side padding 20px mobile */
    border-left: none !important;
    overflow-y: visible !important;
    background: inherit !important;
    display: block !important; /* Remove flex centering on mobile */
  }
  .modal-info-inner {
    max-width: 100% !important;
    display: block !important; /* Normal document flow */
    margin: 0 !important;
  }
  .btn-modal-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1000 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }
  .light-theme .btn-modal-close {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #0F172A !important;
    border: 1px solid #D9E1EC !important;
  }
}

/* Tablet Overrides */
@media (min-width: 769px) and (max-width: 1024px) {
  .hotel-modal-dialog {
    width: 95% !important;
  }
  .hotel-modal-grid {
    grid-template-columns: 1fr 1.1fr !important;
  }
  .modal-info-column {
    padding: 24px !important; /* side padding 24px tablet */
  }
  .modal-info-inner {
    max-width: 100% !important;
  }
}

/* Fixed Voice Assistant button placement coordinates mapping */
.floating-voice-btn {
  bottom: 24px !important;
  right: 24px !important;
}

@media (max-width: 1023px) {
  .floating-voice-btn {
    bottom: 20px !important;
    right: 20px !important;
  }
}

@media (max-width: 767px) {
  .floating-voice-btn {
    bottom: 16px !important;
    right: 16px !important;
  }
}

/* Animation modal transitions */
.hotel-modal-dialog[open] {
  animation: modalShow 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes modalShow {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Voice status light transition states */
.chat-bot-indicator {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* 🎤 Listening: purple pulse */
.chat-bot-indicator.listening {
  background-color: #5B49DE !important;
  box-shadow: 0 0 14px rgba(91, 73, 222, 0.7) !important;
  animation: listeningPulse 1s infinite alternate !important;
}

/* 🧠 Thinking: cyan fast-pulse */
.chat-bot-indicator.thinking {
  background-color: #00D2FF !important;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.7) !important;
  animation: thinkingPulse 0.6s infinite alternate !important;
}

/* 🗣 Speaking: green active pulse waves */
.chat-bot-indicator.speaking {
  background-color: #00E676 !important;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.7) !important;
  animation: speakingPulse 0.8s infinite alternate !important;
}

/* ✓ Finished / Standard */
.chat-bot-indicator.finished {
  background-color: #00E676 !important;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4) !important;
  animation: none !important;
}

@keyframes listeningPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

@keyframes thinkingPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 1; }
}

@keyframes speakingPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 1; }
}

/* Speak active bubble highlighting */
.chat-bubble.bot.speaking-active {
  box-shadow: 0 0 20px rgba(91, 73, 222, 0.18) !important;
  border: 1.5px solid #5B49DE !important;
  transform: translateY(-2px);
  transition: all 0.25s ease;
}

/* Destination Details Refinement CSS */

/* Top Action Bar & Sticky states */
.detail-back-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--bg-main) !important;
  padding-top: 32px !important;
  padding-bottom: 16px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.light-theme .detail-back-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.top-continue-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0.75rem 1.5rem !important;
  min-height: 44px !important;
  font-size: 0.9rem !important;
  border-radius: 99px !important;
}

/* Detail status bar and dynamic badges */
.detail-status-bar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 12px 0 16px 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
  margin-bottom: 24px !important;
}

.booking-progress-tracker {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  margin-right: 12px !important;
}

.progress-title {
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
}

.progress-step {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.progress-step.done {
  color: #10B981 !important;
  font-weight: 600 !important;
}

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

.status-badge-pill.success {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  height: 32px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  gap: 6px !important;
}

/* Selected Flight / Stay indicator tag */
.selected-card-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 10px !important;
  height: 24px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  margin-right: auto !important;
}

/* Collapsible headers, chevrons, animations */
.options-section {
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
}

.options-section-header {
  width: 100% !important;
  background: none !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1.25rem 1.5rem !important;
  cursor: pointer !important;
  text-align: left !important;
  min-height: 48px !important;
  transition: background-color 0.2s ease !important;
}

.options-section-header:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.light-theme .options-section-header:hover {
  background-color: rgba(0, 0, 0, 0.01) !important;
}

.options-section-header h3 {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.chevron-icon {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--color-text-secondary) !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: transform 0.25s ease !important;
  transform: rotate(180deg) !important; /* Open (expanded) by default */
}

.chevron-icon.collapsed {
  transform: rotate(0deg) !important; /* Closed (collapsed) */
}

.options-section-content {
  max-height: 1500px !important;
  overflow: hidden !important;
  transition: max-height 0.25s ease-out, opacity 0.25s ease-out !important;
  opacity: 1 !important;
}

.options-section-content.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Remove button destructive styling overrides */
.btn-remove-option {
  background: transparent !important;
  color: #EF4444 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-remove-option:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
  transform: translateY(-1px) !important;
}

/* Responsive behavior overrides */
@media (max-width: 767px) {
  .top-continue-btn {
    display: none !important;
  }
  .detail-cta-wrapper {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .top-continue-btn {
    display: inline-flex !important;
  }
  .detail-cta-wrapper {
    display: none !important;
  }
}
/* Duration Stepper Styling */
.stepper-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  transition: all 0.2s !important;
  padding: 0 !important;
  outline: none !important;
}

.stepper-btn:hover {
  background: var(--bg-main) !important;
  border-color: var(--color-primary) !important;
}

.stepper-btn:focus-visible {
  outline: 2px solid var(--color-primary) !important;
}

.stepper-btn:active {
  transform: scale(0.95) !important;
}

#hotel-nights-input {
  width: 48px !important;
  height: 44px !important;
  text-align: center !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-main) !important;
  color: var(--color-text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  outline: none !important;
}

#hotel-nights-input:focus-visible {
  border-color: var(--color-primary) !important;
  outline: 2px solid var(--color-primary) !important;
  outline-offset: -2px !important;
}

#hotel-nights-input::-webkit-outer-spin-button,
#hotel-nights-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#hotel-nights-input {
  -moz-appearance: textfield !important;
}

/* Stepper Responsive behavior */
@media (max-width: 480px) {
  .stay-duration-stepper-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Room Options Selector Cards */
.modal-room-options-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.room-option-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 16px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Light Theme Room Option Card */
.light-theme .room-option-card {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
}

.room-option-card:hover:not(.sold-out) {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  border-color: var(--color-secondary) !important;
}

.light-theme .room-option-card:hover:not(.sold-out) {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  border-color: var(--color-primary) !important;
}

.room-option-card:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Selected State */
.room-option-card.selected {
  border-color: #5B49DE !important;
  background: rgba(91, 73, 222, 0.08) !important;
}

.light-theme .room-option-card.selected {
  border-color: #5B49DE !important;
  background: rgba(91, 73, 222, 0.04) !important;
}

/* Sold Out State */
.room-option-card.sold-out {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.light-theme .room-option-card.sold-out {
  border-color: #E2E8F0 !important;
}

.room-card-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}

.room-card-header {
  flex: 1 !important;
  text-align: left !important;
}

.room-card-header strong {
  font-size: 1rem !important;
  color: #FFFFFF !important;
}

.light-theme .room-card-header strong {
  color: #0F172A !important;
}

.room-card-header p {
  color: #94A3B8 !important;
  margin: 0 !important;
}

.light-theme .room-card-header p {
  color: #64748B !important;
  margin: 0 !important;
}

.room-card-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
  min-width: 120px !important;
}

.room-price-info {
  font-size: 0.95rem !important;
  color: #CBD5E1 !important;
}

.light-theme .room-price-info {
  color: #475569 !important;
}

.room-price-info strong {
  font-size: 1.1rem !important;
  color: #FFFFFF !important;
}

.light-theme .room-price-info strong {
  color: #0F172A !important;
}

/* Checkmark selection badge */
.room-status.green.selected-badge {
  background: #5B49DE !important;
  color: #FFFFFF !important;
  border: 1px solid #5B49DE !important;
}

/* Hotel Carousel / Slider layout classes */
.hotels-slider-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

.hotels-track-wrapper {
  overflow: hidden !important;
  width: 100% !important;
}

.hotels-track {
  display: flex !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
}

.slider-hotel-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  border-radius: 16px !important;
}

.slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  width: 44px !important; /* 44px accessible size */
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.slider-arrow:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

.slider-arrow.prev {
  left: 8px !important;
}

.slider-arrow.next {
  right: 8px !important;
}

.slider-dots-row {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.slider-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.slider-dot.active {
  background: var(--color-primary) !important;
  transform: scale(1.2) !important;
}

.slider-dot:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Light Theme overrides for Slider */
.light-theme .slider-hotel-card {
  background: #FFFFFF !important;
  border: 1px solid #D9E1EC !important;
}

.light-theme .slider-arrow {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #D9E1EC !important;
  color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.light-theme .slider-arrow:hover {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
}

.light-theme .slider-dot {
  background: rgba(15, 23, 42, 0.15) !important;
}

.light-theme .slider-dot.active {
  background: var(--color-primary) !important;
}

/* Mobile responsive carousel swipe snapping overrides */
@media (max-width: 768px) {
  .hotels-track-wrapper {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .hotels-track {
    transform: none !important; /* Disable JS transform on mobile to allow native snap scroll */
  }
  .slider-hotel-card {
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }
  .slider-arrow {
    display: none !important; /* Hide arrows on mobile touch screens */
  }
}
