:root {
  /* Light Mode */
  --bg-primary: #f4f7ff;
  --bg-secondary: #ebf1ff;
  --bg-gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  --card-bg: #ffffff;
  --text-primary: #111c38;
  --text-secondary: #2f3f5c;
  --text-muted: #5c6b86;
  --border-color: #d6e2ff;
  --accent-primary: #4f46e5;
  --accent-secondary: #0ea5e9;
  --accent-light: #dbeafe;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --text-color: var(--text-primary);
  --primary-color: var(--accent-primary);
  --shadow-color: rgba(79, 70, 229, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-icon-size: 42px;
  --header-icon-font-size: 1rem;
}

body.dark-mode {
  --bg-primary: #080f22;
  --bg-secondary: #121b34;
  --card-bg: #131f3b;
  --text-primary: #eef4ff;
  --text-secondary: #c8d5f4;
  --text-muted: #90a3d1;
  --border-color: #25355f;
  --accent-light: #1d2d52;
  --text-color: var(--text-primary);
  --primary-color: var(--accent-primary);
  --shadow-color: rgba(2, 8, 25, 0.45);
}

.section-head p,
.quick-step p,
.placeholder-state p,
.data-notice p,
.tip-card p,
.trust-subtitle,
.location-description,
.benefit-text,
.location-disclaimer,
.footer p {
  color: var(--text-secondary);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Mobile App-like Global Styles */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
  overflow-y: visible;
  margin: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Skip to Content - Accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  border-bottom: 1px solid var(--border-color);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  font-size: 1.75rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo h1 {
  margin: 0;
  font-size: 1.35rem;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.favorites-shortcut {
  position: relative;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.favorites-shortcut:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.favorites-shortcut-icon {
  font-size: var(--header-icon-font-size);
}

.favorites-shortcut-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--error);
  border: 1px solid var(--card-bg);
}

.favorites-shortcut-count.visible {
  display: inline-flex;
}

.music-player {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  max-width: 200px;
}

.music-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.music-actions {
  display: flex;
  gap: 0.35rem;
}

.music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  background: var(--bg-gradient);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--header-icon-font-size);
  line-height: 1;
  padding: 0;
  overflow: hidden;
}

.music-btn-play {
  font-size: calc(var(--header-icon-font-size) - 0.08rem);
  padding-left: 1px;
}

.music-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.music-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.music-player.playing {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.music-icon {
  font-size: 1.1rem;
}

.music-player.playing .music-btn-play {
  display: none;
}

.music-player:not(.playing) .music-btn-pause {
  display: none;
}

.header-trust {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed var(--border-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
}

.trust-message {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

.trust-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.trust-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex: 0 0 auto;
}

.trust-badge {
  display: none;
}

.trust-cta {
  display: none;
}

.trust-ghost {
  display: none;
}

/* Location Toggle */
.location-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.location-toggle input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background-color: var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color); /* Match other pill borders */
  box-sizing: border-box;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.location-toggle input:checked + .toggle-slider {
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.location-toggle input:checked + .toggle-slider::before {
  left: 22px;
}

.location-toggle input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.location-toggle:hover input:not(:disabled) + .toggle-slider {
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.trust-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.theme-selector {
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  font-size: var(--header-icon-font-size);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
  transform: translateY(-1px);
}

/* Container & Main */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

/* Hero Section */
.hero {
  background: var(--bg-gradient);
  border-radius: 20px;
  padding: 4.5rem 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.55;
  opacity: 0.95;
}

.hero-tags {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body:not(.dark-mode) .hero-tag {
  color: #111c38 !important;
  background: rgba(79, 70, 229, 0.12) !important;
  border-color: rgba(79, 70, 229, 0.35) !important;
}

.quick-start {
  max-width: 1400px;
  margin: 1.75rem auto 0;
  padding: 0 1.5rem;
}

.quick-start h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.quick-step {
  background: var(--ux-surface, var(--card-bg));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-step:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-step-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-gradient);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body:not(.dark-mode) .quick-step-number {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5, #ec4899) !important;
}

.quick-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.quick-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-tabs {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 90;
  width: auto;
  margin: 0;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-tab {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-tab:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.page-tab.active {
  background: var(--bg-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

body:not(.dark-mode) .page-tab.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5, #ec4899) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35) !important;
}

.filters-section,
.results,
#favoritesSection,
#tipsSection {
  scroll-margin-top: calc(var(--sticky-offset, 96px) + 12px);
}

.page-tabs + .filters-section {
  margin-top: 0;
}

/* Filters Section */
.filters-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-content: end;
  min-height: calc(2.4rem + 0.5rem + 48px);
}

.filter-group {
  display: grid;
  grid-template-rows: minmax(2.4rem, auto) 48px;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: flex-end;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.required-indicator {
  color: #ef4444;
  margin-left: 0.3rem;
  font-weight: 700;
}

.filters-section select,
.filters-section input[type="number"] {
  height: 48px;
}

select, input[type="number"] {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}

select:hover, input[type="number"]:hover {
  border-color: var(--accent-primary);
}

select:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Traveler Stepper */
.traveler-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
  justify-self: center;
}

.stepper-btn {
  width: 40px;
  height: 48px;
  background: var(--accent-primary);
  color: white;
  border: 2px solid var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
}

.stepper-btn:first-child {
  border-radius: 10px 0 0 10px;
}

.stepper-btn:last-child {
  border-radius: 0 10px 10px 0;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.stepper-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.traveler-stepper input[type="number"] {
  width: 60px;
  height: 48px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: var(--card-bg);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0;
  cursor: default;
  vertical-align: middle;
  line-height: 48px;
}

.filter-actions .btn-apply,
.filter-actions .btn-reset {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.traveler-stepper input[type="number"]::-webkit-inner-spin-button,
.traveler-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-reset {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  min-width: 140px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-reset:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-reset:active {
  transform: scale(0.98);
}

.btn-reset:active {
  transform: scale(0.98);
}

.btn-apply {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  background: var(--bg-gradient);
  color: white;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apply:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-apply:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-apply::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-apply:active::before {
  width: 300px;
  height: 300px;
}

/* Loading State */
.btn-apply.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-apply.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Data Notice */
.data-notice {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 2px solid var(--accent-light);
  border-radius: 12px;
  padding: 1.25rem;
  margin: -1.5rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.data-notice p {
  margin: 0;
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Results Section */
.results {
  margin-bottom: 3rem;
}

.placeholder-state {
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 3.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.placeholder-state h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}

.placeholder-state p {
  color: var(--text-secondary);
  margin: 0;
}

/* Destination Cards */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: color-mix(in srgb, var(--ux-surface-2) 60%, transparent);
  border-radius: 10px;
  flex-wrap: wrap;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-container label {
  font-weight: 600;
  font-size: 0.9rem;
}

.sort-container select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--ux-surface);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-container select:hover {
  border-color: var(--accent-primary);
}

.sort-container select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(102, 217, 255, 0.2);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-info-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-load-more {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.btn-load-more:active {
  transform: translateY(0);
}

.destination-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destination-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.destination-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
  will-change: transform;
}

.destination-card:hover::before {
  left: 100%;
}

.destination-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.destination-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  line-height: 1.25;
  min-height: 3.75rem;
  max-height: 3.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1 1 auto;
  min-width: 0;
}

.destination-rating {
  background: var(--accent-secondary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  line-height: 1;
  min-width: 4.8rem;
  flex: 0 0 auto;
}

.destination-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.vibe-tag {
  background: var(--accent-light);
  color: var(--accent-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

body.dark-mode .vibe-tag {
  background: rgba(102, 126, 234, 0.2);
}

.destination-info {
  display: grid;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.95rem;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.destination-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.btn-favorite, .btn-view-details {
  flex: 1;
  padding: 0.7rem 1rem;
  min-height: 44px;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-favorite:hover {
  background: #ffebee;
  border-color: var(--error);
  color: var(--error);
}

.btn-favorite:active {
  transform: scale(0.95);
}

body.dark-mode .btn-favorite:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-favorite.active {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.btn-view-details:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.btn-view-details:active {
  transform: scale(0.95);
}

/* Favorites Section */
.favorites-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.favorites-section.hidden {
  display: none;
}

/* Testimonials */
.best-places-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 16px var(--shadow-color);
  overflow: visible;
  border: 1px solid var(--border-color);
}

.best-places-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.best-places-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.best-places-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.9;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0;
  scroll-padding: 1rem;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.carousel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 0;
}

.carousel-card:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 28px var(--shadow-color);
  will-change: transform;
}

.carousel-card:hover::before {
  left: 100%;
}

.carousel-place-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.carousel-details {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  position: relative;
  z-index: 1;
}

.carousel-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.carousel-detail-icon {
  font-size: 1.15rem;
  opacity: 0.9;
  min-width: 20px;
}

.carousel-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.carousel-vibe-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.carousel-btn {
  background: var(--ux-accent, var(--primary-color));
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  min-width: 44px;
}

.carousel-btn:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.carousel-btn:active {
  transform: scale(0.95);
  color: var(--accent-primary);
}

/* Tips Section */
.tips-section {
  background: var(--bg-gradient);
  border-radius: 15px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  color: white;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.tips-section .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.tip-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.tip-card p {
  margin: 0;
  opacity: 0.95;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
  width: 28px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Mobile Carousel (max-width: 768px) */
@media (max-width: 768px) {
  .carousel-container {
    overflow: hidden;
  }

  .tips-section .tips-grid {
    display: flex !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
    gap: 0;
    grid-template-columns: none !important;
  }

  .tip-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0 !important;
  }

  .carousel-dots {
    display: flex;
  }
}

/* Desktop/Laptop: always keep Travel IQ in horizontal grid */
@media (min-width: 769px) {
  .tips-section .tips-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    overflow: visible !important;
  }

  .tips-section .tip-card {
    flex: initial !important;
    margin: 0 !important;
  }

  .carousel-dots {
    display: none !important;
  }
}

/* Favorites Page */
.favorites-page {
  padding: var(--ux-section-gap) 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.favorites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--ux-surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.favorites-title-group {
  flex: 1;
  min-width: 250px;
}

.favorites-page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.favorites-page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.clear-all-btn {
  padding: 0.75rem 1.75rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.clear-all-btn:hover {
  background: var(--ux-danger-bg, #ef444420);
  border-color: var(--ux-danger, #ef4444);
  color: var(--ux-danger, #ef4444);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.clear-all-btn:active {
  transform: scale(0.98);
}

.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--ux-surface);
  border-radius: 20px;
  border: 2px dashed var(--border-color);
  min-height: 450px;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 6rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  filter: grayscale(0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.favorites-empty h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text-color);
  line-height: 1.3;
}

.favorites-empty p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
  max-width: 450px;
  line-height: 1.6;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.favorite-card {
  background: var(--ux-surface);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.favorite-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 0;
  border-radius: 14px;
}

.favorite-card:hover::before {
  left: 100%;
}

.favorite-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 12px 32px var(--shadow-color);
  border-color: var(--ux-accent, var(--primary-color));
  will-change: transform;
}

.favorite-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.favorite-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  line-height: 1.3;
  flex: 1;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}

.favorite-remove-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.favorite-remove-btn:hover {
  background: var(--ux-danger-bg, #ef444420);
  transform: scale(1.1);
  border: 1px solid var(--ux-danger, #ef4444);
}

.favorite-remove-btn:active {
  transform: scale(0.95);
}

.favorite-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: auto;
  padding-bottom: 1.25rem;
}

.favorite-detail-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
}

.favorite-detail-item:hover {
  background: var(--ux-surface-2);
  transform: translateX(6px);
  color: var(--text-color);
  border-color: var(--ux-accent, var(--primary-color));
}

.favorite-detail-icon {
  font-size: 1.15rem;
  opacity: 0.9;
  min-width: 20px;
  text-align: center;
}

.favorite-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: auto;
}

.favorite-action-btn {
  padding: 0.7rem 0.95rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.favorite-action-btn:hover {
  background: var(--ux-accent, var(--primary-color));
  border-color: var(--ux-accent, var(--primary-color));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.favorite-action-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.favorite-action-btn:active {
  transform: scale(0.98);
}

.favorite-action-btn.back-btn {
  grid-column: 1 / -1;
  background: var(--bg-gradient);
  border-color: transparent;
  color: white;
}

.favorite-action-btn.back-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(102, 217, 255, 0.08), rgba(255, 79, 216, 0.06));
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 4rem;
}

.footer p {
  margin: 0 auto;
  font-size: clamp(0.72rem, 2.8vw, 0.92rem);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  padding: 0.62rem 0.9rem;
  display: inline-block;
  max-width: calc(100vw - 2rem);
  border-radius: 10px;
  background: rgba(102, 217, 255, 0.12);
  border: 1px solid rgba(102, 217, 255, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@-webkit-keyframes slideUp {
  from {
    -webkit-transform: translateY(50px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
  50% { text-shadow: 0 0 20px rgba(102, 126, 234, 1); }
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.8rem 1.2rem;
  max-width: 600px;
  width: 90%;
  max-height: min(85vh, calc(100dvh - 2rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  animation: slideUp 0.3s ease-in-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  will-change: transform;
}

.location-modal .modal-content {
  max-width: 540px;
  border: 2px solid var(--accent-light);
  background: var(--ux-surface, var(--card-bg));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.location-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.location-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.location-modal-body h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.location-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.location-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--ux-surface-2, rgba(102, 126, 234, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.benefit-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.benefit-text {
  line-height: 1.5;
}

.location-modal-actions {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.location-modal-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.location-modal-actions button span {
  font-size: 1.1rem;
  line-height: 1;
}

.location-disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  opacity: 0.8;
}

/* Destination Detail Modal */
.dest-detail-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dest-detail-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.dest-detail-title-section h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.dest-detail-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dest-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.dest-detail-item {
  background: var(--ux-surface, var(--card-bg));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.dest-detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.dest-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.dest-detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.dest-detail-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vibe-badge {
  display: inline-block;
  background: var(--ux-accent, rgba(102, 126, 234, 0.15));
  color: var(--ux-accent, var(--primary-color));
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dest-detail-favorite-btn {
  background: var(--ux-accent, var(--primary-color));
  border: none;
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dest-detail-favorite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.dest-detail-favorite-btn:active {
  transform: scale(0.98);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.modal-close:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(90deg);
}

/* Destination Card Animations */
.destination-card-wrapper {
  animation-fill-mode: both;
}

.destination-card {
  animation: none;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Trusted Platforms Section */
.trusted-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(102, 126, 234, 0.05));
  border: 2px solid var(--accent-light);
  border-radius: 15px;
  transition: var(--transition);
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
}

.platform-card:hover {
  background: linear-gradient(135deg, var(--accent-primary), rgba(102, 126, 234, 0.2));
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.platform-card h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.platform-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Error State */
.error-state {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
  border: 2px dashed var(--error);
  padding: 3rem 1.5rem;
}

.error-state .placeholder-icon {
  font-size: 4rem;
  animation: float 4s ease-in-out infinite;
}

.results-notice {
  margin: -1rem auto 1.5rem;
  padding: 0.85rem 1.2rem;
  max-width: 900px;
  text-align: center;
  background: rgba(102, 126, 234, 0.08);
  border: 1px dashed rgba(102, 126, 234, 0.35);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.suggestions-block {
  margin-top: 2rem;
}

.suggestions-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .filters-container {
    grid-template-columns: 1fr;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .stats-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .header-right {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .trusted-platforms {
    grid-template-columns: 1fr 1fr;
  }

  .platform-icon {
    font-size: 2rem;
  }

  .btn-apply, .btn-reset {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
  }

  .header-trust {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .music-player {
    max-width: none;
  }

  .favorites-page-title {
    font-size: 1.8rem;
  }

  .favorites-page-subtitle {
    font-size: 0.95rem;
  }

  .favorites-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }

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

  .favorite-card {
    padding: 1.5rem;
  }

  .favorite-card-title {
    font-size: 1.2rem;
  }

  .favorites-empty {
    padding: 3rem 1.5rem;
    min-height: 350px;
  }

  .empty-icon {
    font-size: 4.5rem;
  }

  .favorites-empty h3 {
    font-size: 1.4rem;
  }

  .favorites-empty p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-icon-size: 36px;
    --header-icon-font-size: 0.9rem;
  }

  /* General Mobile Spacing */
  .container {
    padding: 0.75rem;
  }

  /* Header Improvements */
  .header-content {
    padding: 0.75rem 0.9rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .header-right {
    width: auto;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .logo {
    gap: 0.6rem;
  }

  .logo-icon {
    font-size: 1.25rem !important;
  }

  .logo h1 {
    font-size: 0.88rem !important;
    line-height: 1;
    letter-spacing: 0.2px;
  }

  .favorite-card-footer {
    gap: 0.7rem;
  }

  .favorite-action-btn {
    font-size: 0.84rem;
    padding: 0.62rem 0.7rem;
    min-height: 42px;
    letter-spacing: -0.01em;
  }

  .music-player {
    min-height: var(--header-icon-size);
    height: auto;
    padding: 2px 4px;
    gap: 0.24rem;
    border-radius: 999px;
    align-items: center;
  }

  .music-track {
    width: 20px;
    justify-content: center;
  }

  .music-actions {
    gap: 0.24rem;
  }

  .music-icon {
    font-size: 0.88rem;
    line-height: 1;
  }

  .music-btn,
  .theme-toggle,
  .favorites-shortcut {
    width: var(--header-icon-size);
    height: var(--header-icon-size);
    min-width: var(--header-icon-size);
    min-height: var(--header-icon-size);
    font-size: var(--header-icon-font-size);
  }

  .theme-toggle {
    font-size: var(--header-icon-font-size);
  }

  .favorites-shortcut-icon {
    font-size: var(--header-icon-font-size);
  }

  .music-btn-play {
    padding-left: 0;
    font-size: 0.82rem;
    line-height: 1;
  }

  /* Header Trust Section - Compact */
  .header-trust {
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .trust-message {
    font-size: 0.8rem;
    text-align: left;
  }

  .trust-title {
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0;
  }

  .trust-actions {
    width: auto;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .trust-status {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    flex: 0 0 auto;
    text-align: left;
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .trust-cta, .trust-ghost {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    flex: 1 1 45%;
    text-align: center;
  }

  /* Hero Section - Mobile Optimized */
  .hero {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-tags {
    margin-top: 1.1rem;
    gap: 0.5rem;
  }

  .hero-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  /* Stats Section - Single Column */
  .stats-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Filters Section - Mobile Friendly */
  .filters-section {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .quick-start {
    margin-top: 1.25rem;
  }

  .quick-step {
    padding: 1rem;
  }

  .filters-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .filters-container {
    gap: 1rem;
  }

  .filter-group {
    grid-template-rows: auto 48px;
    gap: 0.6rem;
  }

  .filter-label {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }

  select, input[type="number"] {
    font-size: 16px;
    padding: 0.75rem;
    min-height: 48px;
    border-radius: 12px;
    border-width: 2px;
  }

  .traveler-stepper {
    min-height: 48px;
    justify-self: center;
  }

  .stepper-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .traveler-stepper input[type="number"] {
    width: 70px;
    font-size: 1.1rem;
    line-height: 48px;
  }

  .filter-actions {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.75rem;
    margin-top: 0.5rem;
    min-height: 0;
  }

  .btn-apply, .btn-reset {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
    min-height: 48px;
    border-radius: 12px;
  }

  /* Data Notice */
  .data-notice {
    margin: -1rem 0 1.5rem 0;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    border-radius: 12px;
  }

  /* Results Section */
  .results-section {
    margin-bottom: 2rem;
  }

  .results-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  /* Destination Cards - Optimized for Mobile */
  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .destination-card {
    padding: 1.5rem;
    border-radius: 16px;
    border-width: 2px;
  }

  .destination-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .destination-card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    min-height: 3.25rem;
    max-height: 3.25rem;
  }

  .destination-rating {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .destination-vibes {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .vibe-tag {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 16px;
  }

  .destination-info {
    gap: 0.85rem;
  }

  .info-item {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .destination-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .destination-actions button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: 12px;
  }

  /* Placeholder States */
  .placeholder-state {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .placeholder-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .placeholder-state p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Trusted Platforms */
  .trusted-platforms {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .platform-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .platform-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .platform-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .platform-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Favorites Section */
  .favorites-section {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .favorites-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  /* Testimonials - Already optimized */
  .best-places-section {
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .best-places-header h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .carousel-track {
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .carousel-item {
    width: 260px;
  }

  .carousel-card {
    padding: 1.5rem;
    min-height: 240px;
  }

  .carousel-place-name {
    font-size: 1.2rem;
  }

  .carousel-detail-item {
    font-size: 0.88rem;
  }

  .carousel-vibe-tag {
    font-size: 0.75rem;
  }

  .carousel-nav {
    gap: 1rem;
    margin-top: 1.5rem;
  }
    border: 2px solid var(--accent-primary);
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  /* Carousel Mobile Responsive */
  .best-places-section {
    padding: 2rem 1.5rem;
  }

  .best-places-header h2 {
    font-size: 1.5rem;
  }

  .carousel-item {
    width: 280px;
  }

  .carousel-card {
    padding: 1.5rem;
    min-height: 260px;
  }

  /* Tips Section */
  .tips-section {
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .tips-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tip-card {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .tip-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .tip-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }

  .tip-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Modals - Mobile Optimized */
  .modal {
    z-index: 10000;
    padding: 1rem;
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 1.75rem;
    max-height: calc(100dvh - 2rem);
    border-radius: 16px;
    position: relative;
  }

  .modal-header h2 {
    font-size: 1.35rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .modal-body {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .modal-body h3 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .modal-body p {
    margin-bottom: 1rem;
  }

  /* Location Modal */
  .location-modal .modal-content {
    width: 92%;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .location-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .location-icon {
    font-size: 2.5rem;
  }

  .location-modal-body h2 {
    font-size: 1.3rem;
    margin: 0;
  }

  .location-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  .location-benefits {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  .benefit-item {
    font-size: 0.9rem;
    gap: 0.65rem;
  }

  .benefit-icon {
    font-size: 1.15rem;
  }

  .location-modal-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .location-modal-actions button {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .location-disclaimer {
    font-size: 0.8rem;
    margin: 0;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .page-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.5rem 1.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    top: auto;
  }

  .page-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-tab {
    white-space: nowrap;
  }

  .quick-start h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .header-right {
    flex-direction: column;
    align-items: stretch;
  }

  .music-player {
    width: 100%;
  }

  .theme-selector {
    width: 100%;
    justify-content: flex-start;
  }

  .favorites-shortcut {
    width: 40px;
    height: 40px;
  }
}

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

  .logo-icon,
  .music-player.playing,
  .placeholder-icon {
    animation: none !important;
  }
}

/* ============================================
   ULTRA REDESIGN OVERRIDES
============================================ */
:root {
  --ux-bg: radial-gradient(1100px 700px at 15% -15%, rgba(255, 0, 128, 0.20), transparent 60%),
           radial-gradient(1200px 800px at 90% -20%, rgba(0, 209, 255, 0.22), transparent 58%),
           linear-gradient(170deg, #070b1b 0%, #0d1430 42%, #101a3f 100%);
  --ux-surface: rgba(18, 28, 62, 0.72);
  --ux-surface-2: rgba(22, 36, 80, 0.92);
  --ux-card: rgba(15, 25, 58, 0.95);
  --ux-text: #f8fbff;
  --ux-muted: #a8b8e3;
  --ux-border: rgba(132, 155, 255, 0.28);
  --ux-accent: #66d9ff;
  --ux-accent-2: #ff4fd8;
  --ux-accent-gradient: linear-gradient(135deg, #66d9ff, #ff4fd8);
  --ux-shadow: 0 14px 36px rgba(2, 6, 23, 0.45);
  --ux-section-gap: 1.4rem;
  --ux-section-gap-mobile: 1rem;
  --ux-input-bg: rgba(7, 14, 40, 0.7);
  --ux-surface-strong: rgba(9, 18, 45, 0.86);
  --ux-card-text: #e6f0ff;
  --ux-hero-grad: linear-gradient(130deg, #102157 0%, #2b2f92 38%, #7a2ebc 70%, #0ea5c8 100%);
}

body:not(.dark-mode) {
  --ux-bg: radial-gradient(1100px 700px at 15% -15%, rgba(79, 70, 229, 0.12), transparent 60%),
           radial-gradient(1200px 800px at 90% -20%, rgba(14, 165, 233, 0.10), transparent 58%),
           linear-gradient(170deg, #f4f7ff 0%, #edf3ff 42%, #e7efff 100%);
  --ux-surface: rgba(255, 255, 255, 0.88);
  --ux-surface-2: rgba(248, 251, 255, 0.96);
  --ux-card: rgba(255, 255, 255, 0.98);
  --ux-text: #0f172a;
  --ux-muted: #475569;
  --ux-border: rgba(99, 102, 241, 0.2);
  --ux-accent: #4f46e5;
  --ux-accent-2: #ec4899;
  --ux-accent-gradient: linear-gradient(135deg, #4f46e5, #ec4899);
  --ux-input-bg: rgba(255, 255, 255, 0.95);
  --ux-surface-strong: rgba(241, 245, 255, 0.95);
  --ux-card-text: #1e293b;
  --ux-hero-grad: linear-gradient(130deg, #4f46e5 0%, #3b82f6 40%, #a855f7 72%, #06b6d4 100%);
}

body {
  background: var(--ux-bg) !important;
  color: var(--ux-text) !important;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(42px);
  z-index: -2;
  pointer-events: none;
}

.orb-1 {
  width: 340px;
  height: 340px;
  top: 80px;
  left: -90px;
  background: rgba(255, 79, 216, 0.35);
}

.orb-2 {
  width: 360px;
  height: 360px;
  top: 360px;
  right: -100px;
  background: rgba(84, 228, 255, 0.30);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: linear-gradient(rgba(128, 154, 255, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 154, 255, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
  mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
}

.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
  background: color-mix(in srgb, var(--ux-surface-2) 92%, transparent) !important;
  border-bottom: 1px solid var(--ux-border) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
}

.header-content,
.header-trust {
  max-width: 1340px !important;
}

.logo h1 {
  font-size: 1.62rem !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(135deg, #8be0ff, #ff88e8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.header-right {
  gap: 0.85rem !important;
}

.music-player,
.theme-toggle,
.trust-status,
.favorites-shortcut {
  background: var(--ux-surface-2) !important;
  border: 1px solid var(--ux-border) !important;
  color: var(--ux-text) !important;
}

.header-trust {
  background: linear-gradient(135deg, rgba(102, 217, 255, 0.12), rgba(255, 79, 216, 0.10)) !important;
  border-top: 1px dashed rgba(138, 161, 255, 0.35) !important;
}

.trust-title,
.trust-subtitle,
.trust-status {
  color: var(--ux-text) !important;
}

.container {
  max-width: 1340px !important;
  padding-top: 1.7rem !important;
}

.page-tabs {
  background: color-mix(in srgb, var(--ux-surface-2) 92%, transparent) !important;
  border-bottom: 1px solid rgba(133, 163, 255, 0.3) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
}

.page-tab {
  background: var(--ux-surface-2) !important;
  border: 1px solid rgba(135, 157, 250, 0.35) !important;
  color: var(--ux-text) !important;
}

.page-tab:hover {
  border-color: rgba(102, 217, 255, 0.55) !important;
}

.page-tab.active {
  background: var(--ux-accent-gradient) !important;
  color: #091331 !important;
  border-color: transparent !important;
}

.hero {
  border-radius: 28px !important;
  background: var(--ux-hero-grad) !important;
  box-shadow: 0 24px 60px rgba(3, 8, 26, 0.58) !important;
  border: 1px solid rgba(170, 193, 255, 0.3);
  padding: 3.4rem 2.5rem 2.1rem !important;
}

.hero-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(235, 244, 255, 0.92);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem) !important;
  letter-spacing: -0.035em;
  text-shadow: 0 8px 30px rgba(5, 8, 33, 0.45);
}

.hero-subtitle {
  color: rgba(235, 244, 255, 0.92) !important;
}

.hero-tag {
  background: rgba(3, 9, 35, 0.26) !important;
  border: 1px solid rgba(182, 205, 255, 0.4) !important;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  min-width: 200px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  transition: all 0.22s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
}

.hero-btn-primary {
  color: #05112f;
  background: linear-gradient(135deg, #baf2ff, #f9a6ef);
}

.hero-btn-secondary {
  color: #fff;
  background: rgba(6, 13, 42, 0.35);
  border: 1px solid rgba(188, 209, 255, 0.45);
}

body:not(.dark-mode) .hero-btn-primary {
  color: #111c38 !important;
}

body:not(.dark-mode) .hero-btn-secondary {
  color: #111c38 !important;
  background: rgba(102, 102, 255, 0.12) !important;
  border: 1.5px solid rgba(79, 70, 229, 0.35) !important;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 12, 36, 0.35);
}

.section-head {
  margin-bottom: 1.05rem;
}

.filters-section .section-head,
.results .section-head {
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  color: #f3f8ff;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--ux-muted);
  font-size: 0.95rem;
}

.page-tabs {
  background: rgba(15, 24, 56, 0.72);
  border: 1px solid var(--ux-border);
  border-radius: 16px;
  padding: 0.55rem !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--ux-shadow);
}

.page-tab {
  border-radius: 10px !important;
  background: transparent !important;
  color: #d9e7ff !important;
}

.page-tab:hover {
  background: rgba(102, 217, 255, 0.12) !important;
}

.page-tab.active {
  background: var(--ux-accent-gradient) !important;
  color: #091331 !important;
}

.filters-section,
.stats-section,
.results,
.favorites-section,
.testimonials,
.tips-section,
.data-notice {
  background: var(--ux-surface) !important;
  border: 1px solid var(--ux-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--ux-shadow) !important;
}

.filters-section,
.results,
.favorites-section,
.testimonials,
.tips-section {
  padding: 1.45rem !important;
}

.data-notice {
  margin-top: -0.55rem !important;
  background: linear-gradient(120deg, rgba(83, 226, 255, 0.16), rgba(255, 79, 216, 0.14)) !important;
  color: #d7e4ff !important;
}

.data-notice p,
.data-notice strong {
  color: #d7e4ff !important;
}

.quick-presets {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 0.08rem 0.08rem 0.36rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.quick-presets::-webkit-scrollbar {
  display: none;
}

.preset-chip {
  border: 1px solid rgba(142, 166, 255, 0.45);
  background: rgba(18, 34, 81, 0.78);
  color: #dce9ff;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  border-color: #7ce3ff;
  color: #bff3ff;
}

.preset-chip.active {
  color: #091331;
  border-color: transparent;
  background: linear-gradient(135deg, #66d9ff, #ff4fd8);
}

.filters-container {
  gap: 1rem !important;
}

.filter-group {
  background: var(--ux-surface-2);
  border: 1px solid rgba(141, 163, 255, 0.33);
  border-radius: 14px;
  padding: 0.75rem;
  justify-items: center;
}

.filter-label {
  font-size: 0.76rem !important;
  color: var(--ux-muted) !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  margin: 0 auto;
}

.filters-section select,
.filters-section input[type="number"] {
  border-radius: 12px !important;
  border: 1px solid rgba(137, 159, 246, 0.45) !important;
  background: var(--ux-input-bg) !important;
  color: var(--ux-text) !important;
  text-align: center;
  text-align-last: center;
  width: 100%;
}

.filters-section select {
  padding-left: 1rem;
  padding-right: 2rem;
}

.filters-section select option {
  background: var(--ux-surface-2);
  color: var(--ux-text);
}

.stepper-btn {
  border-radius: 10px !important;
  background: linear-gradient(135deg, #2f68ff, #a94cff) !important;
}

.filter-actions {
  align-content: stretch !important;
}

.filter-actions .btn-apply,
.filter-actions .btn-reset,
.location-modal-actions .btn-apply,
.location-modal-actions .btn-reset {
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.btn-apply {
  color: #061230 !important;
  background: var(--ux-accent-gradient) !important;
  border: none !important;
}

.btn-reset {
  background: rgba(11, 22, 54, 0.78) !important;
  color: #dce9ff !important;
  border: 1px solid rgba(139, 163, 252, 0.4) !important;
}

.stats-section {
  padding: 1rem !important;
  gap: 1rem !important;
}

.stat-card {
  background: rgba(8, 17, 44, 0.85) !important;
  border: 1px solid rgba(133, 157, 252, 0.36) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.stat-number {
  background: linear-gradient(135deg, #8de8ff, #ff82e8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.stat-label {
  color: #b8caf5 !important;
}

.placeholder-state,
.results-notice {
  background: var(--ux-surface-strong) !important;
  border: 1px dashed rgba(136, 160, 250, 0.45) !important;
  border-radius: 16px !important;
}

.placeholder-state h3,
.placeholder-state p,
.results-notice {
  color: #d9e8ff !important;
}

.destination-card {
  background: var(--ux-card) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(135, 159, 252, 0.33) !important;
  box-shadow: 0 12px 28px rgba(2, 8, 25, 0.38) !important;
}

.destination-card h3,
.info-label,
.info-value,
.destination-card p {
  color: var(--ux-card-text) !important;
}

.destination-card .info-item {
  background: var(--ux-surface-strong) !important;
  border: 1px solid var(--ux-border);
}

.destination-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(102, 217, 255, 0.65) !important;
}

.destination-rating,
.vibe-tag,
.btn-favorite,
.btn-view-details {
  border-radius: 10px !important;
}

.destination-rating {
  background: var(--ux-accent-gradient) !important;
  color: #091331 !important;
}

.vibe-tag {
  background: rgba(102, 217, 255, 0.14) !important;
  border: 1px solid rgba(133, 214, 255, 0.45) !important;
  color: #c7ebff !important;
}

.btn-favorite,
.btn-view-details {
  border: 1px solid rgba(130, 155, 250, 0.45);
  background: rgba(9, 19, 47, 0.78);
  color: #e3efff;
}

.btn-favorite.active,
.btn-view-details:hover {
  background: var(--ux-accent-gradient) !important;
  color: #091331 !important;
  border-color: transparent !important;
}

.testimonials {
  background: linear-gradient(160deg, rgba(25, 52, 122, 0.78), rgba(116, 40, 118, 0.62)) !important;
}

.testimonial-card,
.tip-card,
.platform-card {
  background: rgba(10, 20, 48, 0.84) !important;
  border: 1px solid rgba(138, 160, 249, 0.35) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

.testimonial-text,
.testimonial-author,
.tip-card h3,
.tip-card p,
.platform-card h4,
.platform-card p,
.favorites-section h2,
.tips-section h2,
.testimonials h2 {
  color: #e4f0ff !important;
}

.modal-content {
  border-radius: 18px !important;
  border: 1px solid rgba(140, 164, 255, 0.35) !important;
  background: rgba(12, 20, 49, 0.95) !important;
}

.modal-content h2,
.modal-content h3,
.modal-content p,
.modal-content td {
  color: #e4efff !important;
}

.footer {
  background: transparent !important;
  border-top: 1px solid rgba(138, 162, 255, 0.25);
  color: #b9caf3;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #66d9ff, #ff4fd8);
  color: #081231;
  font-size: 1.15rem;
  box-shadow: 0 12px 28px rgba(12, 20, 56, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 120;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 4.8rem;
  }
}

.container > .hero,
.container > .page-tabs,
.container > .filters-section,
.container > .data-notice,
.container > .stats-section,
.container > .results,
.container > .favorites-section,
.container > .testimonials,
.container > .tips-section {
  margin: 0 0 var(--ux-section-gap) 0 !important;
}

.container > .page-tabs {
  margin-top: 0.35rem !important;
  margin-bottom: calc(var(--ux-section-gap) + 0.2rem) !important;
}

.container > .quick-start {
  margin: 0 auto calc(var(--ux-section-gap) + 0.2rem) auto !important;
  padding: 0 !important;
  max-width: none !important;
}

.quick-step,
.destination-card,
.testimonial-card,
.tip-card,
.trust-status {
  overflow-wrap: anywhere;
}

.page-tab {
  min-height: 44px;
}

.filter-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(180px, 220px)) !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  margin-inline: auto;
}

.filter-actions .btn-apply,
.filter-actions .btn-reset {
  width: 100% !important;
  min-width: 180px !important;
  max-width: 220px;
  height: 48px;
  text-align: center;
  justify-content: center !important;
  align-items: center !important;
}

@media (min-width: 1180px) {
  .filters-container {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .filter-group {
    min-width: 0;
    grid-template-rows: minmax(2.4rem, auto) 48px;
  }

  .filter-label {
    min-height: 2.4rem;
    line-height: 1.25;
    align-items: center;
  }

  .filters-section select,
  .traveler-stepper,
  .traveler-stepper input[type="number"] {
    width: 100%;
  }

  .filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 220px) minmax(180px, 220px);
    justify-content: center;
    margin-top: 0.35rem;
  }
}

.section-head h2,
.quick-start h2,
.testimonials h2,
.tips-section h2,
.favorites-section h2 {
  color: #f3f8ff !important;
}

body:not(.dark-mode) .section-head h2,
body:not(.dark-mode) .quick-start h2,
body:not(.dark-mode) .testimonials h2,
body:not(.dark-mode) .tips-section h2,
body:not(.dark-mode) .favorites-section h2 {
  color: #111c38 !important;
}

body:not(.dark-mode) .tips-section {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(168, 85, 247, 0.08)) !important;
  color: #111c38 !important;
}

body:not(.dark-mode) .tip-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1.5px solid rgba(79, 70, 229, 0.2) !important;
  color: #111c38 !important;
}

body:not(.dark-mode) .tip-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(79, 70, 229, 0.35) !important;
}

body:not(.dark-mode) .tip-card p {
  color: #475569 !important;
}

body:not(.dark-mode) .carousel-dot {
  background: rgba(79, 70, 229, 0.3) !important;
}

body:not(.dark-mode) .carousel-dot.active {
  background: rgba(79, 70, 229, 0.8) !important;
}

body:not(.dark-mode) .carousel-dot:hover {
  background: rgba(79, 70, 229, 0.5) !important;
}

.section-head p,
.quick-step p,
.testimonial-text,
.data-notice p,
.placeholder-state p {
  color: var(--ux-muted) !important;
}

@media (max-width: 900px) {
  .header-content {
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .header-right {
    width: auto;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  .music-player {
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .header,
  .header-content,
  .header-trust {
    max-width: 100%;
    overflow-x: clip;
  }

  .page-tabs {
    padding: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-tab {
    min-height: 44px;
    padding: 0.55rem 0.85rem !important;
  }

  .filter-actions {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    width: 100%;
  }

  .filter-actions .btn-apply,
  .filter-actions .btn-reset {
    min-width: 0 !important;
    max-width: none;
    width: 100% !important;
  }

  .trust-actions {
    min-width: 0;
    max-width: 56vw;
  }

  .trust-status {
    min-width: 0;
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .container > .hero,
  .container > .quick-start,
  .container > .page-tabs,
  .container > .filters-section,
  .container > .data-notice,
  .container > .stats-section,
  .container > .results,
  .container > .favorites-section,
  .container > .testimonials,
  .container > .tips-section {
    margin-bottom: var(--ux-section-gap-mobile) !important;
  }

  .container > .page-tabs {
    margin-top: 0 !important;
    margin-bottom: var(--ux-section-gap-mobile) !important;
  }

  .hero {
    padding: 2.3rem 1.15rem 1.55rem !important;
  }

  .hero-btn {
    min-width: 100%;
  }

  .filters-section,
  .results,
  .favorites-section,
  .testimonials,
  .tips-section {
    padding: 1rem !important;
  }

  .filter-group {
    padding: 0.65rem;
  }

  .quick-presets {
    margin-bottom: 0.75rem;
    justify-content: center;
  }
}

/* ============================================
   MOBILE APP-LIKE ENHANCEMENTS & CROSS-BROWSER
   ============================================ */

/* Active/Touch States for Better Feedback */
.btn-apply:active:not(:disabled),
.btn-reset:active,
.btn-favorite:active,
.btn-view-details:active,
.page-tab:active,
.hero-btn:active,
.modal-close:active,
.location-modal-actions button:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Improve destination card active state */
.destination-card:active {
  transform: translateY(-4px) scale(0.99) translateZ(0);
}

/* Better focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Smooth momentum scrolling for all scrollable elements */
.modal,
.modal-content,
.testimonials-container {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Improve text selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

::-moz-selection {
  background: var(--accent-primary);
  color: white;
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
  
  .modal {
    height: -webkit-fill-available;
  }
  
  /* Fix iOS input zoom */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Landscape mobile optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-content {
    max-height: 90vh;
    margin: 1rem auto;
  }
  
  .header-content {
    padding: 0.75rem 1.5rem;
  }
  
  .hero {
    padding: 1.5rem 1rem !important;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .destination-card,
  .modal-content,
  .page-tab {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   LIGHT MODE TEXT VISIBILITY FIXES - COMPREHENSIVE
   ============================================ */

body:not(.dark-mode) .section-head h2 {
  color: #111c38 !important;
}

body:not(.dark-mode) .section-head p {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .page-tab {
  color: #111c38 !important;
}

body:not(.dark-mode) .page-tab.active {
  color: #111c38 !important;
}

body:not(.dark-mode) .hero-eyebrow {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .hero-subtitle {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .hero-tag {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  color: #2f3f5c !important;
}

body:not(.dark-mode) .data-notice {
  color: #111c38 !important;
}

body:not(.dark-mode) .data-notice p,
body:not(.dark-mode) .data-notice strong {
  color: #111c38 !important;
}

body:not(.dark-mode) .stat-label {
  color: #111c38 !important;
}

body:not(.dark-mode) .placeholder-state h3,
body:not(.dark-mode) .placeholder-state p,
body:not(.dark-mode) .results-notice {
  color: #111c38 !important;
}

body:not(.dark-mode) .quick-step p {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .destination-card h3,
body:not(.dark-mode) .info-label,
body:not(.dark-mode) .info-value,
body:not(.dark-mode) .destination-card p {
  color: #111c38 !important;
}

body:not(.dark-mode) .vibe-tag {
  background: rgba(79, 70, 229, 0.1) !important;
  border: 1px solid rgba(79, 70, 229, 0.3) !important;
  color: #2f3f5c !important;
}

body:not(.dark-mode) .btn-favorite,
body:not(.dark-mode) .btn-view-details {
  color: #111c38 !important;
}

body:not(.dark-mode) .btn-reset {
  color: #111c38 !important;
}

body:not(.dark-mode) .preset-chip {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  color: #111c38 !important;
}

body:not(.dark-mode) .testimonial-text,
body:not(.dark-mode) .testimonial-author,
body:not(.dark-mode) .tip-card h3,
body:not(.dark-mode) .tip-card p {
  color: #111c38 !important;
}

body:not(.dark-mode) .tips-section h2,
body:not(.dark-mode) .favorites-section h2,
body:not(.dark-mode) .testimonials h2,
body:not(.dark-mode) .quick-start h2 {
  color: #111c38 !important;
}

body:not(.dark-mode) .modal-content h2,
body:not(.dark-mode) .modal-content h3,
body:not(.dark-mode) .modal-content p,
body:not(.dark-mode) .modal-content td {
  color: #111c38 !important;
}

body:not(.dark-mode) .footer {
  color: #111c38 !important;
}

body:not(.dark-mode) .footer p {
  color: #111c38 !important;
  background: rgba(79, 70, 229, 0.1) !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
}

body:not(.dark-mode) .platform-card h4,
body:not(.dark-mode) .platform-card p {
  color: #111c38 !important;
}

body:not(.dark-mode) .trust-title,
body:not(.dark-mode) .trust-subtitle,
body:not(.dark-mode) .trust-status {
  color: #111c38 !important;
}

body:not(.dark-mode) .location-description,
body:not(.dark-mode) .benefit-text,
body:not(.dark-mode) .location-disclaimer {
  color: #2f3f5c !important;
}

/* Override all remaining hardcoded colors from base styles */
body:not(.dark-mode) a {
  color: #4f46e5;
}

body:not(.dark-mode) label,
body:not(.dark-mode) .tip-card p {
  color: #111c38 !important;
}

body:not(.dark-mode) input,
body:not(.dark-mode) select,
body:not(.dark-mode) textarea {
  color: #111c38 !important;
  background: #ffffff !important;
}

body:not(.dark-mode) select option {
  background: #ffffff !important;
  color: #111c38 !important;
}

body:not(.dark-mode) button,
body:not(.dark-mode) a.btn {
  color: #111c38 !important;
}

/* Location Modal - Light Mode */
body:not(.dark-mode) .location-modal-body h2 {
  color: #111c38 !important;
}

body:not(.dark-mode) .location-description {
  color: #111c38 !important;
}

body:not(.dark-mode) .benefit-item {
  color: #111c38 !important;
}

body:not(.dark-mode) .benefit-text {
  color: #111c38 !important;
}

body:not(.dark-mode) .location-disclaimer {
  color: #111c38 !important;
}

body:not(.dark-mode) .location-modal-actions button {
  color: #111c38 !important;
}

body:not(.dark-mode) .location-modal .modal-content {
  background: #ffffff !important;
}

body:not(.dark-mode) .location-benefits {
  background: rgba(79, 70, 229, 0.05) !important;
}

/* Additional text elements that might be light */
body:not(.dark-mode) .info-label,
body:not(.dark-mode) .info-value {
  color: #111c38 !important;
}

body:not(.dark-mode) .destination-card p {
  color: #111c38 !important;
}

body:not(.dark-mode) .stat-card {
  background: #ffffff !important;
}

body:not(.dark-mode) h3,
body:not(.dark-mode) h4,
body:not(.dark-mode) h5,
body:not(.dark-mode) h6 {
  color: #111c38 !important;
}

body:not(.dark-mode) p {
  color: #111c38 !important;
}

body:not(.dark-mode) span {
  color: inherit;
}

/* ============================================
   FAVORITES PAGE - LIGHT MODE ENHANCEMENTS
   ============================================ */

body:not(.dark-mode) .favorites-page {
  background: transparent;
}

body:not(.dark-mode) .favorites-header {
  background: #ffffff !important;
  border-color: #d6e2ff !important;
}

body:not(.dark-mode) .favorites-page-title {
  color: #111c38 !important;
}

body:not(.dark-mode) .favorites-page-subtitle {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .clear-all-btn {
  color: #111c38 !important;
  background: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

body:not(.dark-mode) .clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

body:not(.dark-mode) .pagination-controls {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
}

body:not(.dark-mode) .sort-container label,
body:not(.dark-mode) .pagination-info-text {
  color: #111c38 !important;
}

body:not(.dark-mode) .sort-container select {
  background: #ffffff !important;
  color: #111c38 !important;
  border-color: #d6e2ff !important;
}

body:not(.dark-mode) .sort-container select:hover {
  border-color: #4f46e5 !important;
}

body:not(.dark-mode) .sort-container select:focus {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
}

body:not(.dark-mode) .btn-load-more {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

body:not(.dark-mode) .btn-load-more:hover {
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4) !important;
}

body:not(.dark-mode) .favorites-empty {
  background: #ffffff !important;
}

body:not(.dark-mode) .favorites-empty h3 {
  color: #111c38 !important;
}

body:not(.dark-mode) .favorites-empty p {
  color: #2f3f5c !important;
}

body:not(.dark-mode) .favorite-card {
  background: #ffffff !important;
  border-color: #d6e2ff !important;
}

body:not(.dark-mode) .favorite-card-title {
  color: #111c38 !important;
}

body:not(.dark-mode) .favorite-card-header {
  border-bottom-color: #d6e2ff !important;
}

body:not(.dark-mode) .favorite-detail-item {
  background: #ebf1ff !important;
  color: #2f3f5c !important;
}

body:not(.dark-mode) .favorite-detail-item:hover {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #111c38 !important;
}

body:not(.dark-mode) .favorite-remove-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
}

body:not(.dark-mode) .favorite-action-btn {
  color: #111c38 !important;
  background: #ffffff !important;
  border-color: #d6e2ff !important;
}

body:not(.dark-mode) .favorite-action-btn:hover {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 2000;
  transition: bottom 0.3s ease;
  max-width: 90%;
  white-space: nowrap;
  text-align: center;
}

.toast-notification.show {
  bottom: 24px;
}

/* Final filter alignment guards (authoritative) */
.filters-section .filter-group {
  justify-items: center !important;
}

.filters-section .filter-label {
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.filters-section select {
  width: 100% !important;
  text-align: center !important;
  text-align-last: center !important;
  -webkit-text-align-last: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 2.1rem !important;
  padding-right: 2.1rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a9d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.78rem;
}

.filters-section select::-ms-expand {
  display: none;
}

.filters-section #travelerCount {
  text-align: center !important;
}

/* Final axis-lock for filter label/value alignment */
.filters-section .filter-group {
  justify-items: center !important;
  align-items: start !important;
}

.filters-section .filter-group > .filter-label,
.filters-section .filter-group > select,
.filters-section .filter-group > .traveler-stepper {
  width: 100% !important;
  margin-inline: auto !important;
}

/* Final Travel IQ layout guards */
@media (min-width: 1024px) {
  .tips-section .tips-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    overflow: visible !important;
  }

  .tips-section .tip-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
  }
}

@media (max-width: 768px) {
  .tips-section .tips-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: hidden !important;
    gap: 0 !important;
  }

  .tips-section .tip-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}
