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

:root {
  --primary:       #0057FF;
  --primary-dark:  #003FCC;
  --primary-light: #4D8AFF;
  --accent:        #FF6B2B;
  --bg-dark:       #0A0E1A;
  --bg-card:       #ffffff;
  --text-dark:     #0A0E1A;
  --text-light:    #ffffff;
  --text-muted:    #6B7A99;
  --border:        #E2E8F0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.2);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: #f4f7ff;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  /* Better tap highlighting on mobile */
  -webkit-tap-highlight-color: rgba(0, 87, 255, 0.1);
}









/* ===========================
   HEADER / NAVBAR
=========================== */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transform: rotate(-30deg);
  filter: drop-shadow(0 0 8px rgba(255,107,43,0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:#e8e8e8;
  overflow: hidden;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.clouds { position: absolute; inset: 0; pointer-events: none; }

.cloud {
  position: absolute;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
}

.cloud-1 { width: 300px; height: 60px; top: 25%; left: -100px; animation: driftCloud 18s linear infinite; }
.cloud-2 { width: 200px; height: 40px; top: 55%; left: -60px;  animation: driftCloud 24s linear infinite 6s; }
.cloud-3 { width: 250px; height: 50px; top: 40%; left: -80px;  animation: driftCloud 21s linear infinite 12s; }

@keyframes driftCloud {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}

.hero-content {
  position: relative;
  z-index: 10;
  
  padding: 0px 120px 0px;
  width: 100%;
  
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.15;
  margin-bottom: 50px;
  animation: fadeUp 0.7s ease both;
}

.hero-subtitle {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.15s both;
}

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

/* ===========================
   SEARCH CARD
=========================== */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  animation: fadeUp 0.7s ease 0.25s both;
  text-align: left;
}

.trip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trip-tab {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  min-height: 38px;
}

.trip-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.trip-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Origin-Dest Wrapper — Desktop: side by side, Mobile: stacked */
.origin-dest-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.origin-dest-wrapper .field { flex: 1; }

.swap-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.swap-line {
  width: 1px;
  height: 14px;
  background: var(--border);
  display: none;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.field-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  /* 16px prevents iOS auto-zoom on focus */
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
}

.field-input::placeholder { color: #bcc5d6; }

select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A99' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.swap-btn {
  background: var(--bg-dark);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-bottom: 2px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.swap-btn:hover { background: var(--primary); transform: rotate(180deg); }

.search-btn {
  width: 100%;
  background: #2d2c29;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(0,87,255,0.35);
  min-height: 54px;
}


/* ===========================
   HEADER / NAVBAR
=========================== */














/* ===========================
   FOOTER
=========================== */
.footer { background: #f6f7f8; color: rgba(255,255,255,0.5); padding: 28px 24px 40px; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-logo i { color: var(--accent); transform: rotate(-30deg); }

.footer-copy { font-size: 0.82rem; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
  padding: 4px 2px;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-links span { color: rgba(255,255,255,0.2); }


/* =====================================================
   TABLET  (max-width: 1024px)
===================================================== */
@media (max-width: 1024px) {
  .hero-content { padding: 110px 20px 52px; }
  .destinations-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}


/* =====================================================
   TABLET PORTRAIT  (max-width: 768px)
===================================================== */
@media (max-width: 768px) {

  /* Header */
  .logo-text   { font-size: 1.2rem; }
  .nav-link    { font-size: 0.8rem; padding: 6px 14px; }

  /* Hero */
  .hero        { min-height: auto; }
  .hero-content{ padding: 100px 16px 40px; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 24px; }

  /* Search card */
  .search-card {
    padding: 20px 16px 18px;
    border-radius: var(--radius-md);
    margin: 0 4px;
  }

  /* Trip tabs: horizontal scroll */
  .trip-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .trip-tabs::-webkit-scrollbar { display: none; }
  .trip-tab { flex-shrink: 0; }

  /* From / To stacked */
  .origin-dest-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .origin-dest-wrapper .field { width: 100%; }

  .swap-row {
    flex-direction: row;
    width: 100%;
    gap: 8px;
    padding: 6px 0;
  }

  .swap-line {
    display: block;
    width: auto;
    flex: 1;
    height: 1px;
  }

  .swap-btn {
    transform: rotate(90deg);
    width: 36px; height: 36px;
    flex-shrink: 0;
  }

  .swap-btn:hover { transform: rotate(270deg); }

  /* Dates + Pax: 2-column grid */
  .dates-pax {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dates-pax .field { flex: unset; }

  /* Destinations */
  .destinations        { padding: 48px 0 60px; }
  .destinations-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dest-img            { height: 150px; }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px 18px;
    gap: 12px;
  }
  .cookie-actions { justify-content: center; width: 100%; }
  .cookie-accept  { flex: 1; max-width: 160px; }
}


/* =====================================================
   MOBILE  (max-width: 480px)
===================================================== */
@media (max-width: 480px) {

  /* Header */
  .header       { padding: 14px 0; }
  .nav-container{ padding: 0 16px; }
  .logo-icon    { font-size: 1.2rem; }
  .logo-text    { font-size: 1.1rem; }
  .nav-link     { font-size: 0.76rem; padding: 5px 12px; }

  /* Hero */
  .hero-content  { padding: 90px 12px 32px; }
  .hero-title    { font-size: 1.75rem; line-height: 1.2; margin-bottom: 30px; }
  .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; }

  /* Search card */
  .search-card   { padding: 16px 14px 16px; border-radius: 16px; margin: 0; }

  .trip-tab      { font-size: 0.76rem; padding: 6px 12px; min-height: 36px; gap: 5px; }

  /* Dates: single column */
  .dates-pax     { grid-template-columns: 1fr !important; gap: 10px; }

  .field-input   { padding: 12px; border-radius: 8px; min-height: 50px; }
  .field label   { font-size: 0.68rem; }

  .search-btn    { padding: 16px; font-size: 0.95rem; min-height: 54px; border-radius: 10px; }

  /* Destinations */
  .destinations        { padding: 36px 0 50px; }
  .container           { padding: 0 16px; }
  .section-title       { font-size: 1.4rem; margin-bottom: 24px; }
  .destinations-grid   { grid-template-columns: 1fr; gap: 14px; }
  .dest-img            { height: 160px; }
  .dest-info           { padding: 14px 16px; }
  .dest-info h3        { font-size: 1rem; }

  /* Footer */
  .footer              { padding: 24px 16px 36px; }
  .footer-links        { gap: 8px; font-size: 0.78rem; }

  /* iPhone home bar safe area */
  .cookie-banner       { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}


/* =====================================================
   VERY SMALL  (max-width: 360px)
===================================================== */
@media (max-width: 360px) {
  .hero-title    { font-size: 1.5rem; }
  .search-card   { padding: 14px 12px; }
  .trip-tab      { font-size: 0.72rem; padding: 5px 10px; }
  .logo-text     { font-size: 1rem; }
  /* Hide nav text, keep logo */
  .nav-links     { display: none; }
  .dest-img      { height: 140px; }
}


/* =====================================================
   LANDSCAPE MOBILE
===================================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-content  { padding: 80px 20px 30px; }
  .hero-title    { font-size: 1.6rem; margin-bottom: 8px; }
  .hero-subtitle { margin-bottom: 16px; }

  /* 4-column date/pax row in landscape */
  .dates-pax { grid-template-columns: repeat(4, 1fr) !important; }

  .destinations-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =====================================================
   SAFE AREAS  (notch / Dynamic Island)
===================================================== */
@supports (padding: max(0px)) {
  .header {
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .nav-container {
    padding-left:  max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .cookie-banner {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}


/* =====================================================
   TOUCH DEVICES  (no hover, coarse pointer)
===================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove desktop hover lifts — use :active instead */
  .dest-card:hover    { transform: none; box-shadow: var(--shadow-sm); }
  .dest-card:hover .dest-img { transform: none; }
  .search-btn:hover   { transform: none; box-shadow: 0 4px 20px rgba(0,87,255,0.35); }
  .swap-btn:hover     { transform: rotate(90deg); background: var(--bg-dark); }
  .swap-btn:active    { background: var(--primary); }

  /* Touch feedback */
  .dest-card:active   { transform: scale(0.97); box-shadow: var(--shadow-md); }
  .search-btn:active  { transform: scale(0.98); background: linear-gradient(135deg, var(--primary-dark) 0%, #002caa 100%); }
  .trip-tab:active    { background: rgba(0,87,255,0.1); border-color: var(--primary-light); }
}


/* =====================================================
   REDUCED MOTION  (accessibility)
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cloud-1, .cloud-2, .cloud-3 { display: none; }
}





.tpwl-footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.tpwl-footer__links a {
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
}
.tpwl-footer__links a:hover { text-decoration: underline; }

/* ===========================
   INLINE SEARCH CARD (screenshot style)
=========================== */
.search-card-inline {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.13);
  padding: 0;
  overflow: visible;
  animation: fadeUp 0.7s ease 0.25s both;
  position: relative;
}

.search-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.multi-city-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.multi-city-link:hover { text-decoration: underline; }

.lang-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.82rem;
}
.lc-divider { color: var(--border); }

/* Main search row */
.search-row {
  display: flex;
  align-items: center;
  padding: 10px 12px 10px;
  gap: 0;
  min-height: 64px;
}

.sr-field {
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
  position: relative;
  min-height: 52px;
}
.sr-field:hover { background: #f4f7ff; }

/* Origin field */
.sr-origin { flex: 1.6; gap: 8px; }
.sr-field-inner { display: flex; align-items: center; gap: 10px; }
.sr-city { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.sr-code {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #f0f4ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.sr-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Swap button */
.sr-swap-wrap { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.sr-divider { width: 1px; height: 28px; background: var(--border); }
.sr-swap-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
  flex-shrink: 0;
  margin: 0 6px;
}
.sr-swap-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(180deg); }

/* Destination */
.sr-dest { flex: 1.6; }
.sr-input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: transparent;
  width: 100%;
  min-width: 120px;
}
.sr-input::placeholder { color: #bcc5d6; }

/* Vertical separator */
.sr-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; margin: 0 4px; }

/* Date fields */
.sr-date { flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 8px 14px; }
.sr-date-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-bottom: 1px; display: block; }
.sr-date-input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: transparent;
  width: 130px;
  cursor: pointer;
}
.sr-cal-icon { color: var(--primary); font-size: 0.9rem; margin-right: 6px; flex-shrink: 0; }

/* Passengers */
.sr-pax {
  flex: 1.2;
  gap: 8px;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.sr-pax-text { display: flex; flex-direction: column; gap: 1px; }
.sr-pax-main { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.sr-pax-sub { font-size: 0.78rem; color: var(--text-muted); }
.sr-chevron { font-size: 0.7rem; color: var(--text-muted); transition: transform var(--transition); }
.sr-pax.open .sr-chevron { transform: rotate(180deg); }

/* Pax dropdown */
.pax-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 16px;
  min-width: 220px;
  z-index: 200;
  animation: fadeUp 0.2s ease both;
}
.pax-dropdown.open { display: block; }
.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.pax-row:last-of-type { border-bottom: none; }
.pax-counter { display: flex; align-items: center; gap: 12px; }
.pax-counter button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--primary);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.pax-counter button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pax-counter span { font-weight: 600; min-width: 16px; text-align: center; }
.pax-class-select { margin-top: 12px; }
.pax-class-select select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  background: #fff;
}
.pax-done {
  width: 100%;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.pax-done:hover { background: var(--primary-dark); }

/* Search button */
.sr-search-btn {
  background: #2d2c29;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  min-height: 48px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.sr-search-btn:hover { background: #111; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.sr-search-btn:active { transform: scale(0.98); }

/* Bottom bar */
.search-bottom-bar {
  padding: 8px 20px 14px;
  display: flex;
  justify-content: flex-end;
}
.show-hotels-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
}
.show-hotels-toggle input { display: none; }
.toggle-box {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.65rem;
}

/* Responsive for inline search */
@media (max-width: 900px) {
  .search-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .sr-field { min-width: 45%; border: 1.5px solid var(--border); border-radius: 8px; }
  .sr-sep { display: none; }
  .sr-swap-wrap { display: none; }
  .sr-search-btn { width: 100%; margin: 8px 0 0; border-radius: 8px; justify-content: center; }
}

@media (max-width: 600px) {
  .sr-field { min-width: 100%; }
  .search-top-bar { padding: 10px 14px 0; }
  .lang-currency { display: none; }
}

/* ===========================
   DATE TRIGGER BUTTONS
=========================== */
.sr-date-btn {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 52px;
  transition: background var(--transition), outline var(--transition);
  position: static;
}
.sr-date-btn:hover { background: #f4f7ff; }
.sr-date-btn.active { outline: 2px solid var(--primary); background: #f0f5ff; }
.sr-date-btn.no-return .sr-date-val { color: var(--text-muted); font-style: italic; }

.sr-date-content { display: flex; flex-direction: column; gap: 1px; }
.sr-date-label-top { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.sr-date-val { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; }

/* ===========================
   CALENDAR POPUP
=========================== */
.cal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(0,0,0,0.2);
}
.cal-overlay.open { display: block; }

.cal-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 300;
  width: 760px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  animation: calDrop 0.22s cubic-bezier(0.34,1.56,0.64,1) both;
}
.cal-popup.open { display: block; top: 315px !important;}

@keyframes calDrop {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.cal-header-row {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
}

.cal-no-return {
  background: #f0f4ff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 24px;
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.cal-no-return:hover { background: var(--primary); color: #fff; }

.cal-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 8px 24px;
  position: relative;
}

.cal-nav {
  background: #f4f7ff;
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  align-self: center;
  margin: 0 4px;
}
.cal-nav:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.cal-months {
  display: flex;
  flex: 1;
  gap: 0;
}

.cal-month {
  flex: 1;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.cal-month:last-child { border-right: none; }

.cal-month-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 14px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0 8px;
  letter-spacing: 0.04em;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
  padding: 0;
  width: 100%;
}
.cal-day:hover:not(.past):not(.selected) { background: #e8efff; color: var(--primary); }
.cal-day.today { font-weight: 700; color: var(--primary); }
.cal-day.past { color: #ccc; cursor: not-allowed; }
.cal-day.selected { background: var(--primary); color: #fff; font-weight: 700; z-index: 1; }
.cal-day.depart-sel { border-radius: 50% 0 0 50%; }
.cal-day.return-sel { border-radius: 0 50% 50% 0; }
.cal-day.in-range { background: #dce9ff; border-radius: 0; color: var(--primary-dark); }

@media (max-width: 700px) {
  .cal-popup {
	  
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    animation: calSlideUp 0.28s cubic-bezier(0.34,1.2,0.64,1) both !important;
  }
  
  
  .cal-popup.open { display: block; top: 0px !important;}
  
  
  
  @keyframes calSlideUp {
    from { transform: translateY(100%) !important; }
    to   { transform: translateY(0) !important; }
  }
  .cal-overlay.open { background: rgba(0,0,0,0.45); }
  .cal-months { flex-direction: column; overflow-y: auto; max-height: 70vh; }
  .cal-month { border-right: none; border-bottom: 1px solid var(--border); }
  .cal-month:last-child { border-bottom: none; }
  .cal-nav { display: none; }
  .cal-day { font-size: 0.84rem; }
}
