/* ============================================================
   TripSense — Final Upgraded Style
   Incorporates all 4 Stitch screenshots:
   - Image 1: Stat cards with icon chips + colored bottom bars
   - Image 2: Flight CTA with asymmetric hero feel
   - Image 3: Clean forecast cards, large city image header
   - Image 4: Staggered destination cards layout
   ============================================================ */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === VARIABLES === */
:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #cffafe;
  --secondary: #06b6d4;
  --bg-light: #dff0f7;
  --bg-white: #ffffff;
  --text-dark: #1a2e35;
  --text-gray: #576164;
  --shadow: 0 4px 24px rgba(8,145,178,0.08);
  --shadow-lg: 0 12px 48px rgba(8,145,178,0.14);
  --shadow-card: 0 2px 12px rgba(8,145,178,0.1), 0 8px 32px rgba(8,145,178,0.08);
  --radius: 20px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --spring: all 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

body.dark {
  --bg-light: #0c1a24;
  --bg-white: #162230;
  --text-dark: #e8f4f8;
  --text-gray: #8faab8;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.2);
}

/* === BODY === */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
body.dark { background: linear-gradient(160deg, #0c1a24 0%, #0a1520 100%); }

/* === SCROLL REVEAL — smoother than before === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Staggered via transition-delay on individual elements */

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(8,145,178,0.08);
  z-index: 1000;
  transition: var(--transition);
}
body.dark .navbar {
  background: rgba(12,26,36,0.92);
  border-color: rgba(8,145,178,0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--spring);
}
.logo:hover { transform: scale(1.02); }
.logo img { width: 42px; height: 42px; }
body.dark .logo { color: #67e8f9; }

.nav-actions { display: flex; gap: 0.5rem; align-items: center; }

.nav-btn {
  border: none;
  background: rgba(8,145,178,0.07);
  color: var(--primary);
  padding: 0.52rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--spring);
  position: relative;
}
.nav-btn:hover { background: rgba(8,145,178,0.16); transform: scale(1.1) translateY(-1px); }
.nav-btn svg { width: 18px; height: 18px; }

.fav-count {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444; color: white;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 5px; border-radius: 10px; min-width: 18px; text-align: center;
}
.fav-count.hidden { display: none; }

/* === HERO === */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.5rem 2rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #b8e8f7 0%, #daf3fb 45%, #f0faff 100%);
  z-index: 0;
}
body.dark .hero-bg-gradient {
  background: linear-gradient(160deg, #0a1e2c 0%, #0c1a24 55%, #091520 100%);
}

/* Animated glow ring */
.hero-bg-gradient::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,0.06) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  animation: glow-pulse 7s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: translate(-50%,-52%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%,-52%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 20;
  max-width: 680px; width: 100%;
  animation: hero-rise 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes hero-rise {
  from { opacity:0; transform: translateY(32px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(8,145,178,0.09);
  border: 1px solid rgba(8,145,178,0.22);
  color: var(--primary-dark);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 15px; border-radius: 50px; margin-bottom: 18px;
}
body.dark .hero-badge { background: rgba(103,232,249,0.1); border-color: rgba(103,232,249,0.25); color: #67e8f9; }

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px; line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-accent {
  background: linear-gradient(135deg, #0891b2 30%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.subtitle {
  font-size: 1.05rem; color: var(--text-gray); font-weight: 400;
  line-height: 1.65; margin-bottom: 2rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/* === SEARCH === */
.search-container {
  display: flex; gap: 0.65rem;
  max-width: 620px; margin: 0 auto 2.5rem;
  flex-wrap: wrap; justify-content: center; align-items: stretch;
  position: relative;
  z-index: 30;
}

.search-box {
  flex: 1; min-width: 260px;
  position: relative; display: flex; align-items: center;
  z-index: 30;
}

.search-icon {
  position: absolute; left: 1.1rem;
  color: var(--primary); width: 17px; height: 17px;
}

.search-box input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.7rem;
  border-radius: 50px; border: 2px solid transparent;
  background: var(--bg-white); color: var(--text-dark);
  font-family: 'Outfit', sans-serif; font-size: 0.94rem;
  outline: none; transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.1), var(--shadow-card);
}
.search-box input::placeholder { color: #a8bcc4; }

.autocomplete-dropdown { position: absolute; z-index: 9999; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-white); border: 1.5px solid rgba(8,145,178,0.2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.autocomplete-item { padding: 0.75rem 1.1rem; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s; }
.autocomplete-item:hover { background: rgba(8,145,178,0.07); }
.autocomplete-item .item-country { font-size: 0.75rem; color: var(--text-gray); margin-left: auto; }

.search-btn {
  padding: 0.95rem 1.7rem; border-radius: 50px; border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.94rem;
  cursor: pointer; display: flex; align-items: center; gap: 0.45rem;
  transition: var(--spring);
  box-shadow: 0 4px 18px rgba(8,145,178,0.35);
  white-space: nowrap;
}
.search-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 28px rgba(8,145,178,0.45); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.location-btn {
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: #10b981; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--spring);
  box-shadow: 0 4px 14px rgba(16,185,129,0.35); flex-shrink: 0;
}
.location-btn:hover { transform: translateY(-2px) rotate(20deg); box-shadow: 0 8px 22px rgba(16,185,129,0.45); }

/* === DESTINATION CARDS — Image 4 staggered layout === */
.dest-cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 14px;
  max-width: 960px; width: 100%;
  animation: hero-rise 0.9s 0.25s cubic-bezier(0.16,1,0.3,1) both;
}

.dest-card {
  position: relative; border-radius: 20px; overflow: hidden;
  cursor: pointer; transition: var(--spring);
  box-shadow: var(--shadow-card);
}
.dest-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 24px 50px rgba(8,145,178,0.18); }
.dest-card:hover img { transform: scale(1.1); }

/* Staggered heights like Image 4 */
.dest-card-tall { height: 340px; }
.dest-card-mid  { height: 280px; margin-top: 30px; }

.dest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.dest-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}

.dest-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85); text-transform: uppercase; margin-bottom: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 3px 10px; border-radius: 50px;
  display: inline-block; width: fit-content;
}

.dest-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -0.5px;
}

/* === ERROR === */
.error-msg {
  position: relative; z-index: 1;
  margin-top: 1rem; padding: 0.85rem 1.3rem;
  background: #fee2e2; border: 1.5px solid #fca5a5; color: #991b1b;
  border-radius: 14px; display: flex; align-items: center; gap: 0.5rem;
  max-width: 560px; margin-left: auto; margin-right: auto; font-size: 0.9rem;
}

/* === LOADER === */
.loading-spinner { text-align: center; padding: 4rem 2rem; }
.spinner {
  width: 46px; height: 46px;
  border: 3px solid rgba(8,145,178,0.12); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--text-gray); font-size: 0.9rem; }

/* === RESULTS === */
.results-section { padding: 2.5rem 1rem 5rem; }
.container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.3rem; }

/* === MAIN CARD === */
.main-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(8,145,178,0.07);
  transition: var(--transition);
}

.city-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem;
}
.city-title-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

.city-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; color: var(--text-dark);
}

.favorite-btn, .share-btn {
  background: rgba(8,145,178,0.07); border: 1.5px solid rgba(8,145,178,0.18);
  color: var(--primary); padding: 0.5rem; border-radius: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--spring);
}
.favorite-btn:hover, .share-btn:hover {
  background: var(--primary); color: white;
  transform: scale(1.12); box-shadow: 0 4px 14px rgba(8,145,178,0.35);
}
.favorite-btn.active { background: #ef4444; border-color: #ef4444; color: white; }

.weather-desc { font-size: 0.95rem; color: var(--text-gray); margin-top: 4px; text-transform: capitalize; }
.weather-icon { width: 80px; height: 80px; }

/* === CURRENT CONDITIONS LABEL (Image 1) === */
.conditions-label {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 1.2rem;
}
.conditions-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-gray);
}
.conditions-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text-dark);
  letter-spacing: -0.3px;
}

/* Traveler Rating Strip */
.traveler-rating-strip { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: rgba(8,145,178,0.04); border-radius: 12px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.rating-stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.rating-text { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); flex: 1; }
.rating-badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }

/* === STATS GRID — Image 1 style with icon chips + bottom bars === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid rgba(8,145,178,0.15);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1rem;
  position: relative;
  overflow: hidden;
  transition: var(--spring);
  box-shadow: var(--shadow-card);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Colored accent gradients per card */
.aqi-card      { background: linear-gradient(135deg, #b2e8f7, #d4f3fc); }
.temp-card     { background: linear-gradient(135deg, #ffd7aa, #ffe8cc); }
.humidity-card { background: linear-gradient(135deg, #b3cfff, #d4e4ff); }
.time-card     { background: linear-gradient(135deg, #fef3c7, #fde68a); }

body.dark .aqi-card      { background: linear-gradient(160deg, #0a2535, #0c3040); }
body.dark .temp-card     { background: linear-gradient(160deg, #2a1500, #3d1f00); }
body.dark .humidity-card { background: linear-gradient(160deg, #0a1535, #0e1f50); }
body.dark .time-card     { background: linear-gradient(160deg, #3d2a00, #5c3f00); }

/* Top row: icon chip + badge */
.stat-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1rem;
}

/* Icon chip — Image 1 style square rounded icon */
.stat-icon-chip {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-chip svg { width: 18px; height: 18px; }

.aqi-chip      { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.temp-chip     { background: linear-gradient(135deg, #fb923c, #f97316); color: white; }
.humidity-chip { background: linear-gradient(135deg, #60a5fa, #3b82f6); color: white; }
.time-chip     { background: linear-gradient(135deg, #34d399, #10b981); color: white; }
.uv-chip       { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }

/* Status badge pill — top right */
.stat-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 50px; white-space: nowrap;
}
.aqi-card      .stat-badge { background: #dcfce7; color: #166534; }
.temp-card     .stat-badge { background: #fff7ed; color: #9a3412; }
.humidity-card .stat-badge { background: #eff6ff; color: #1d4ed8; }
.time-card     .stat-badge { background: #fef3c7; color: #92400e; }

body.dark .aqi-card      .stat-badge { background: rgba(22,101,52,0.35); color: #86efac; }
body.dark .temp-card     .stat-badge { background: rgba(154,52,18,0.35); color: #fed7aa; }
body.dark .humidity-card .stat-badge { background: rgba(29,78,216,0.35); color: #bfdbfe; }
body.dark .time-card     .stat-badge { background: rgba(146,64,14,0.35); color: #fde68a; }

.stat-label-small {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-gray);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--text-dark); letter-spacing: -1px; line-height: 1;
  margin-bottom: 4px;
}
.stat-value.small { font-size: 1.2rem; }

.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-top: 2px; }
.stat-sublabel { font-size: 0.82rem; color: var(--text-gray); margin-top: 2px; }

/* Colored bottom bar — Image 1 style */
.stat-card-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; border-radius: 0 0 18px 18px;
}
.aqi-bar      { background: linear-gradient(90deg, #06b6d4, #0891b2); width: 40%; }
.temp-bar     { background: linear-gradient(90deg, #fb923c, #f97316); width: 65%; }
.humidity-bar { background: linear-gradient(90deg, #60a5fa, #3b82f6); width: 50%; }
.time-bar     { background: linear-gradient(90deg, #34d399, #10b981); width: 80%; }

/* Best Time to Visit Banner */
.best-time-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(8,145,178,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(8,145,178,0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.best-time-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.best-time-icon svg { width: 20px; height: 20px; }

.best-time-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  flex: 1;
}

.best-time-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-gray);
  width: 100%;
}

.best-time-months {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.best-time-reason {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}

body.dark .best-time-banner {
  background: linear-gradient(135deg, rgba(8,145,178,0.15), rgba(6,182,212,0.1));
  border-color: rgba(8,145,178,0.2);
}

/* === HEALTH, FORECAST, HOTELS SHARED BASE === */
.health-card,
.forecast-card,
.hotels-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(8,145,178,0.07);
  transition: var(--transition);
}
.health-card:hover,
.forecast-card:hover,
.hotels-section:hover { box-shadow: var(--shadow-lg); }

.card-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 0.9rem; color: var(--text-dark); letter-spacing: -0.3px;
}
.card-title svg { width: 18px; height: 18px; color: var(--primary); }

.health-text { font-size: 0.97rem; color: var(--text-gray); line-height: 1.7; }

/* === MAP CARD === */
.map-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); border: 1px solid rgba(8,145,178,0.07); }
.map-container { border-radius: 14px; overflow: hidden; height: 300px; margin-top: 0.5rem; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* === FORECAST — Image 3 style === */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem; margin-top: 0.5rem;
}

.forecast-item {
  background: #fff; border: 1px solid rgba(8,145,178,0.08);
  padding: 1.3rem 0.7rem; border-radius: 18px;
  text-align: center; transition: var(--spring); cursor: default;
  box-shadow: var(--shadow-card);
}
.forecast-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-lg); border-color: rgba(8,145,178,0.2);
}
body.dark .forecast-item { background: rgba(255,255,255,0.04); border-color: rgba(8,145,178,0.12); }

.forecast-day {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary); margin-bottom: 8px;
}
.forecast-icon { width: 42px; height: 42px; margin: 0 auto 8px; }
.forecast-temp {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: var(--text-dark);
}
body.dark .forecast-temp { color: #67e8f9; }
.forecast-desc {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-gray); margin-top: 3px;
}
.forecast-feels { font-size: 0.65rem; color: var(--text-gray); margin-top: 2px; }

/* === HOTELS === */
.hotels-subtitle { font-size: 0.88rem; color: var(--text-gray); margin-bottom: 1.1rem; line-height: 1.6; }

/* Featured Booking.com Card */
.featured-hotel-card {
  background: linear-gradient(135deg, #003580, #0071c2);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0,113,194,0.3);
  transition: var(--spring);
}

.featured-hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,113,194,0.4);
}

.featured-hotel-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-hotel-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.featured-hotel-icon svg { width: 24px; height: 24px; color: white; }

.featured-hotel-text h4 {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.featured-hotel-text p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin: 0;
}

.featured-hotel-cta {
  padding: 0.75rem 1.25rem;
  background: white;
  color: #003580;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--spring);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.featured-hotel-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-arrow { transition: transform 0.3s ease; }
.featured-hotel-cta:hover .cta-arrow { transform: translateX(3px); }

/* Smaller Platform Pills */
.platform-grid-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.platform-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  background: rgba(8,145,178,0.05);
  border: 1.5px solid rgba(8,145,178,0.12);
  border-radius: 50px;
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--spring);
}

.platform-pill:hover {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8,145,178,0.25);
}

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }

.platform-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0.85rem 1rem;
  background: rgba(8,145,178,0.05); border: 1.5px solid rgba(8,145,178,0.12);
  border-radius: 14px; color: var(--primary-dark);
  font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: var(--spring); cursor: pointer;
}
.platform-btn:hover {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white; border-color: transparent;
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(8,145,178,0.3);
}

/* === FLIGHT CTA — Image 2 style === */
.flight-card {
  background: linear-gradient(135deg, rgba(8,145,178,0.06) 0%, rgba(6,182,212,0.03) 100%);
  border: 1.5px solid rgba(8,145,178,0.14);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  transition: var(--transition); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
/* subtle globe bg like Image 2 */
.flight-card::after {
  content: '';
  position: absolute; right: -60px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(8,145,178,0.05);
  pointer-events: none;
}
.flight-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(8,145,178,0.28); }

.flight-card-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem; margin-bottom: 0.7rem;
}

.flight-left { display: flex; align-items: center; gap: 1.1rem; }

.flight-icon-wrap {
  width: 60px; height: 60px; border-radius: 18px;
  background: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(8,145,178,0.12); flex-shrink: 0; color: var(--primary);
}
.flight-icon-wrap .material-symbols-outlined { font-size: 28px; transform: rotate(-12deg); }
body.dark .flight-icon-wrap { background: rgba(255,255,255,0.08); }

.flight-card h3, #flightTitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem; font-weight: 800; color: var(--text-dark);
  letter-spacing: -0.5px; margin-bottom: 3px;
}
.flight-subtitle { font-size: 0.9rem; color: var(--text-gray); }

.flight-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 1.8rem; border-radius: 50px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.97rem;
  text-decoration: none; transition: var(--spring);
  box-shadow: 0 4px 18px rgba(8,145,178,0.35); white-space: nowrap;
}
.flight-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 28px rgba(8,145,178,0.45); }
.flight-btn .material-symbols-outlined { font-size: 18px; transition: transform 0.3s ease; }
.flight-btn:hover .material-symbols-outlined { transform: translateX(4px); }

.flight-note { font-size: 0.78rem; color: var(--text-gray); }

/* === MODALS === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,15,25,0.65); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }

.modal-content {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 1.8rem; width: 100%; max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  animation: modal-rise 0.38s cubic-bezier(0.34,1.56,0.64,1);
  border: 1px solid rgba(8,145,178,0.1);
}
@keyframes modal-rise {
  from { opacity:0; transform: translateY(24px) scale(0.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.modal-header h3 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text-dark); }

.close-btn {
  background: rgba(0,0,0,0.06); border: none; color: var(--text-gray);
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.close-btn:hover { background: rgba(0,0,0,0.12); color: var(--text-dark); }
.close-btn svg { width: 15px; height: 15px; }

.modal-subtitle { color: var(--text-gray); margin-bottom: 1.3rem; font-size: 0.88rem; }

.city-choices { display: flex; flex-direction: column; gap: 0.65rem; }
.city-option {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #e0f7ff, #f0fdff);
  border: 2px solid transparent; border-radius: 14px;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 0.8rem;
}
body.dark .city-option { background: linear-gradient(135deg, #0c3040, #0e4a5e); }
.city-option:hover { border-color: var(--primary); transform: translateX(5px); }
.city-option i { color: var(--primary); flex-shrink: 0; }
.city-info { flex: 1; }
.city-option .city-name { font-weight: 700; font-size: 0.97rem; color: var(--text-dark); margin-bottom: 2px; }
.city-option .city-location { font-size: 0.82rem; color: var(--text-gray); }
.country-option { background: linear-gradient(135deg, #fef3c7, #fde68a) !important; border: 2px solid #f59e0b !important; }
body.dark .country-option { background: linear-gradient(135deg, #78350f, #92400e) !important; }
.country-option i { color: #f59e0b !important; }

.favorites-list { display: flex; flex-direction: column; gap: 0.65rem; }
.favorite-item {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 2px solid transparent; border-radius: 14px;
  cursor: pointer; transition: var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}
body.dark .favorite-item { background: linear-gradient(135deg, #831843, #9f1239); }
.favorite-item:hover { border-color: #ec4899; transform: translateX(5px); }
.favorite-info { flex: 1; }
.favorite-name { font-weight: 700; font-size: 0.97rem; color: var(--text-dark); }
.remove-fav-btn {
  background: rgba(239,68,68,0.09); border: none; color: #ef4444;
  padding: 0.42rem; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--spring);
}
.remove-fav-btn:hover { background: #ef4444; color: white; transform: scale(1.1); }
.empty-favorites { text-align: center; padding: 2.5rem 1rem; color: var(--text-gray); }
.empty-favorites i { width: 52px; height: 52px; margin-bottom: 1rem; opacity: 0.38; }

/* === SHARE MODAL === */
.share-modal { max-width: 400px; }
.share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.share-option {
  padding: 1rem; border-radius: 14px; border: 2px solid transparent;
  cursor: pointer; transition: var(--spring);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.83rem;
}
.share-option svg, .share-option i { width: 26px; height: 26px; }
.share-option.whatsapp { background: #e7f7ef; color: #25d366; }
.share-option.whatsapp:hover { background: #25d366; color: white; transform: translateY(-3px); }
.share-option.twitter { background: #e8f5fe; color: #000; }
.share-option.twitter:hover { background: #000; color: white; transform: translateY(-3px); }
.share-option.facebook { background: #e7f3ff; color: #1877f2; }
.share-option.facebook:hover { background: #1877f2; color: white; transform: translateY(-3px); }
.share-option.copy { background: var(--bg-light); color: var(--primary); }
.share-option.copy:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.share-success {
  margin-top: 0.9rem; padding: 0.85rem;
  background: #dcfce7; color: #166534;
  border-radius: 12px; display: flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.88rem; animation: modal-rise 0.3s ease;
}
body.dark .share-success { background: #065f46; color: #d1fae5; }

/* === FOOTER === */
footer {
  margin-top: auto; text-align: center; padding: 1.3rem;
  background: linear-gradient(135deg, #0891b2, #06b6d4); color: white; font-size: 0.88rem;
}

/* === UTILITY === */
.hidden { display: none !important; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(8,145,178,0.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(8,145,178,0.42); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 5.5rem 1rem 1.5rem; }
  .hero h1 { letter-spacing: -1px; }
  .dest-cards { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .dest-card-tall { height: 180px; }
  .dest-card-mid  { height: 150px; margin-top: 18px; }
  .dest-name { font-size: 1rem; }
  .search-container { flex-direction: row; gap: 0.55rem; max-width: 100%; }
  .search-box { min-width: 0; flex: 1; }
  .search-btn { padding: 0.95rem 1.1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .main-card, .health-card, .forecast-card, .hotels-section, .flight-card { padding: 1.3rem; }
  .city-header h2 { font-size: 1.75rem; }
  .flight-card-inner { flex-direction: column; align-items: flex-start; }
  .flight-btn { width: 100%; justify-content: center; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 0.7rem 1rem; }
}

@media (max-width: 480px) {
  .dest-cards { grid-template-columns: 1fr 1fr; }
  .dest-card:last-child { display: none; }
  .dest-card-tall, .dest-card-mid { height: 170px; margin-top: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .forecast-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .search-btn span { display: none; }
  .flight-left { flex-direction: column; align-items: flex-start; }
  .share-options { grid-template-columns: 1fr; }
}

/* ============================================================
   ENHANCEMENTS — from Updates.txt
   ============================================================ */

/* === 1. ANIMATED SHIMMER HERO ACCENT === */
.hero-accent {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 40%, #67e8f9 50%, #06b6d4 60%, #0891b2 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 4s ease-in-out infinite;
}
@keyframes shimmer-text {
  0%,100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* === 2. SCROLL-AWARE NAVBAR === */
.navbar { transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.4s ease; }
.navbar.scrolled { padding: 0.5rem 2rem; box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.navbar.scrolled .logo img { width: 34px; height: 34px; }

/* === 3. COMPARE BUTTON === */
.compare-btn {
  padding: 0.52rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(8,145,178,0.2);
  background: rgba(8,145,178,0.06);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: var(--spring); white-space: nowrap;
}
.compare-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.compare-btn svg { width: 15px; height: 15px; }

/* === 4. RECENT SEARCHES === */
.recent-searches {
  position: relative; z-index: 1;
  max-width: 620px; margin: -0.8rem auto 0;
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; animation: hero-rise 0.3s ease;
}
.recent-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-gray);
}
.recent-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.recent-chip {
  padding: 0.32rem 0.8rem; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 0.76rem; font-weight: 600;
  background: rgba(8,145,178,0.07); color: var(--primary-dark);
  border: 1px solid rgba(8,145,178,0.15);
  cursor: pointer; transition: var(--spring);
  display: flex; align-items: center; gap: 0.3rem;
}
.recent-chip:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }

/* === 5. SKELETON LOADING === */
.skeleton-section { padding: 2.5rem 1rem 5rem; }

.skeleton-main-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card); margin-bottom: 1.3rem;
}
.skeleton-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1.5rem;
}
.skeleton-line, .skeleton-circle, .skeleton-stat, .skeleton-health, .skeleton-forecast-item {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(8,145,178,0.05) 25%, rgba(8,145,178,0.12) 50%, rgba(8,145,178,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-title { width: 220px; height: 32px; }
.skeleton-circle { width: 64px; height: 64px; border-radius: 50%; }
.skeleton-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.skeleton-stat { height: 160px; border-radius: 18px; }
.skeleton-health { height: 80px; border-radius: var(--radius-lg); margin-bottom: 1.3rem; }
.skeleton-forecast-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.skeleton-forecast-item { height: 140px; border-radius: 18px; }

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 768px) {
  .skeleton-stats-grid { grid-template-columns: 1fr 1fr; }
  .skeleton-forecast-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .skeleton-stats-grid { grid-template-columns: 1fr; }
  .skeleton-forecast-row { grid-template-columns: repeat(2, 1fr); }
}

/* === 6. TRAVEL SCORE RING === */
.travel-score { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: rgba(8,145,178,0.1); stroke-width: 3; }
.score-ring-fill {
  fill: none; stroke: #10b981; stroke-width: 3; stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(0.4,0,0.2,1), stroke 0.3s ease;
}
.score-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.72rem;
  color: var(--text-dark);
}
.score-label-text {
  font-size: 0.72rem; font-weight: 700; margin-top: 2px; letter-spacing: 0.04em;
}

/* === 7. LOCAL TIME + SUN CARD === */
.time-info-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem; box-shadow: var(--shadow-card);
  border: 1px solid rgba(8,145,178,0.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.2rem;
}
.local-time-section { display: flex; align-items: center; gap: 1rem; }
.local-time-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  display: flex; align-items: center; justify-content: center; color: white;
}
.local-time-icon svg { width: 22px; height: 22px; }
.local-time-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-gray); }
.local-time-value { font-family: 'Manrope', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; }
.sun-times { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.sun-item { display: flex; align-items: center; gap: 0.55rem; }
.sun-item svg { width: 20px; height: 20px; color: #f59e0b; }
.sun-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-gray); }
.sun-value { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--text-dark); }

/* === 10. TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.55rem; pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.85rem 1.3rem; border-radius: 14px;
  font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  animation: toast-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 340px; transition: opacity 0.35s, transform 0.35s;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; }
.toast-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.toast-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.toast-info    { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1e40af; }
body.dark .toast-error   { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
body.dark .toast-success { background: #052e16; border-color: #166534; color: #86efac; }
body.dark .toast-info    { background: #172554; border-color: #1e40af; color: #93c5fd; }
@keyframes toast-in {
  from { opacity:0; transform: translateX(60px) scale(0.9); }
  to   { opacity:1; transform: translateX(0) scale(1); }
}

/* === 11. COMPARE MODAL === */
.compare-modal-content { max-width: 560px; }
.compare-inputs { display: flex; align-items: center; gap: 0.7rem; }
.compare-input {
  flex: 1; padding: 0.85rem 1.1rem; border-radius: 14px;
  border: 2px solid rgba(8,145,178,0.12); background: var(--bg-light);
  color: var(--text-dark); font-family: 'Outfit', sans-serif; font-size: 0.9rem; outline: none;
  transition: var(--transition);
}
.compare-input:focus { border-color: var(--primary); }
.compare-vs { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.82rem; color: var(--text-gray); flex-shrink: 0; }
.compare-results {
  margin-top: 1.4rem; display: grid;
  grid-template-columns: 1fr auto 1fr; gap: 0.5rem 0.8rem; align-items: center;
}
.compare-city-header { font-family:'Manrope',sans-serif; font-weight:800; font-size:1rem; color:var(--text-dark); text-align:center; padding:0.4rem; }
.compare-row-label { grid-column:2; font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-gray); text-align:center; padding:0.35rem 0; }
.compare-cell { padding:0.7rem 0.9rem; border-radius:12px; text-align:center; background:rgba(8,145,178,0.03); }
.compare-cell-value { font-family:'Manrope',sans-serif; font-weight:800; font-size:1.1rem; color:var(--text-dark); }
.compare-cell-sub { font-size:0.72rem; color:var(--text-gray); margin-top:2px; }
.compare-winner { background:rgba(16,185,129,0.08); border:1.5px solid rgba(16,185,129,0.25); }

/* Compare Dark Mode Support */
body.dark .compare-cell {
  background: rgba(8,145,178,0.1);
}

body.dark .compare-winner {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
}

/* === 12. HAPTIC PRESS FEEDBACK === */
.search-btn:active, .platform-btn:active, .location-btn:active, .search-btn:active {
  transform: scale(0.95) !important; transition-duration: 0.1s !important;
}

/* === 13. ACCESSIBILITY — prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   AI TRIP ASSISTANT CHATBOT - THEME INDEPENDENT
   ============================================================ */

/* Chatbot Widget Container */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  font-family: 'Outfit', sans-serif;
}

/* Viby Glassmorphism Toggle Button */
.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(8,145,178,0.5);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

/* Pulsing ring animation */
.chatbot-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(8,145,178,0.4);
  border-radius: 50%;
  animation: ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(8,145,178,0.6);
}

/* Animated gradient border effect */
.chatbot-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0891b2, #06b6d4, #8b5cf6, #0891b2);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-rotate 4s linear infinite;
  opacity: 0.8;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Inner glow effect */
.chatbot-toggle::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(139,92,246,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 
    0 16px 48px rgba(8,145,178,0.35),
    0 8px 24px rgba(139,92,246,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 0 1px rgba(8,145,178,0.15);
}

.chatbot-toggle:hover::after {
  opacity: 1;
}

.chatbot-toggle:active {
  transform: scale(0.95) rotate(0deg);
  transition-duration: 0.1s;
}

.chatbot-toggle-icon {
  width: 26px;
  height: 26px;
  color: #0891b2;
  transition: transform 0.3s ease;
  z-index: 1;
}

.chatbot-toggle:hover .chatbot-toggle-icon {
  transform: scale(1.1);
  color: #0e7490;
}

/* Badge with glass effect */
.chatbot-toggle-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
  z-index: 2;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Chatbot Container - Fixed light theme (unaffected by dark mode) */
.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-height: 480px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05);
  border: 1px solid rgba(8,145,178,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Dark Mode Support */
body.dark .chatbot-container {
  background: rgba(15, 28, 40, 0.95);
  border-color: rgba(8,145,178,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.chatbot-container.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #0e7490 100%);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.chatbot-avatar svg { width: 22px; height: 22px; }

.chatbot-title h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.chatbot-status {
  font-size: 0.72rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.chatbot-header-actions {
  display: flex;
  gap: 0.4rem;
}

.chatbot-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-action-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.chatbot-action-btn svg { width: 16px; height: 16px; }

/* Messages Area - Fixed light theme */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  background: #f0f9ff;
  scrollbar-width: thin;
  scrollbar-color: rgba(8,145,178,0.3) transparent;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(8,145,178,0.3);
  border-radius: 4px;
}

body.dark .chatbot-messages {
  background: transparent;
}

/* Messages */
.chat-message {
  display: flex;
  gap: 0.75rem;
  max-width: 90%;
  animation: message-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

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

.bot-message { align-self: flex-start; }
.user-message { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.message-avatar svg { width: 16px; height: 16px; }

.user-message .message-avatar {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.message-content {
  background: rgba(8,145,178,0.08);
  padding: 0.9rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1a2e35;
  border: 1px solid rgba(8,145,178,0.15);
}

.user-message .message-content {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  border-radius: 18px 18px 4px 18px;
  border: none;
}

body.dark .bot-message .message-content {
  background: rgba(8,145,178,0.1);
  border-color: rgba(8,145,178,0.2);
  color: #e2e8f0;
}

.message-content p { margin: 0 0 0.5rem; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul { margin: 0.5rem 0; padding-left: 1.2rem; }
.message-content li { margin: 0.25rem 0; }

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #0891b2;
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite both;
}

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

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Suggestions - Fixed light theme */
.chatbot-suggestions {
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  border-top: 1px solid rgba(8,145,178,0.06);
}

.suggestion-chip {
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(8,145,178,0.2);
  background: rgba(8,145,178,0.08);
  color: #0e7490;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.suggestion-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

body.dark .chatbot-suggestions {
  background: transparent;
  border-color: rgba(8,145,178,0.15);
}

body.dark .suggestion-chip {
  background: rgba(8,145,178,0.1);
  border-color: rgba(8,145,178,0.25);
  color: #67e8f9;
}

/* Input Area - Fixed light theme */
.chatbot-input-area {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(8,145,178,0.06);
}

.chatbot-input-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: #f0f9ff;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(8,145,178,0.25);
  transition: all 0.2s ease;
}

.chatbot-input-wrapper:focus-within {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

#chatbotInput {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #1a2e35;
  outline: none;
}

#chatbotInput::placeholder { color: #94a3b8; }

body.dark .chatbot-input-wrapper input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(8,145,178,0.3);
  color: #e2e8f0;
}

body.dark .chatbot-input-wrapper input::placeholder {
  color: rgba(255,255,255,0.35);
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(8,145,178,0.35);
}

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

.chatbot-send-btn svg { width: 18px; height: 18px; }

.chatbot-disclaimer {
  font-size: 0.7rem;
  color: var(--text-gray);
  margin: 0.6rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.8;
}

body.dark .chatbot-disclaimer {
  color: rgba(255,255,255,0.45);
}

body.dark .chatbot-input-area {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(8,145,178,0.15);
}

/* Error Message */
.chat-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  .chatbot-toggle {
    width: 56px;
    height: 56px;
  }
  
  .chatbot-container {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    bottom: 70px;
    max-height: 70vh;
  }
  
  .chatbot-messages {
    max-height: 40vh;
  }
}

/* Note: Chatbot is theme-independent - maintains light theme in both modes */