/* ============================================================
   Traveronto — home.css
   100% responsive homepage — bulletproof at 375px → 1440px+
   ============================================================ */

/* ─────────────────────────────── HERO ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 80px;
  color: #fff;
  /* NOTE: NO overflow:hidden — needed so counter popovers can render */
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26,26,46,0.55) 0%, rgba(26,26,46,0.84) 100%),
    url('https://picsum.photos/seed/traveronto-hero/1920/1200');
  background-size: cover;
  background-position: center;
  z-index: 0;
  border-radius: 0;
  pointer-events: none; /* never intercept clicks — navbar burger must be clickable */
}
/* Push all hero content above the bg */
.hero .container-tr { position: relative; z-index: 1; }
.hero__content { max-width: 760px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero h1 .hl { color: var(--primary); }
.hero p.lead {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
}
.hero__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero__pills span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ───────────────────────── SEARCH WIDGET ──────────────────────────── */
.search-widget {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  margin-top: 36px;
  /* NO overflow:hidden — required so counter-pop dropdowns show */
}

/* On large screens, let the search widget run wider than the 1240px
   content container (hero text stays narrower via .hero__content's
   own max-width) so the search fields have more breathing room.
   min(94vw, 1600px) caps the width to whichever is smaller — the
   widget never exceeds 94% of the viewport (no horizontal overflow)
   and never exceeds 1600px. Centered with the left:50%/translateX
   trick so it stays balanced regardless of container padding.
   Mobile/tablet (<1280px) are untouched — widget stays in-container. */
@media (min-width: 1280px) {
  .search-widget {
    width: min(75vw, 1600px);
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Tab bar */
.search-widget .nav-tabs {
  border: none;
  padding: 10px 10px 0;
  gap: 4px;
  background: var(--light);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-wrap: nowrap; /* always one row */
}
.search-widget .nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1; /* each tab takes equal share of the row */
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.search-widget .nav-tabs .nav-link.active {
  background: var(--white);
  color: var(--primary);
}
.search-widget .nav-tabs .nav-link:not(.active):hover {
  color: var(--dark);
  background: rgba(255,255,255,0.4);
}

/* Tab pane padding + visibility (explicit — do not rely on BS load order) */
.search-widget .tab-content { padding: 24px; }
.search-widget .tab-content > .tab-pane { display: none; }
.search-widget .tab-content > .tab-pane.active { display: block; }
.search-widget .tab-content > .tab-pane.fade { opacity: 0; transition: opacity .15s linear; }
.search-widget .tab-content > .tab-pane.fade.active.show { opacity: 1; }

/* ── Form fields ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1;
}
.field .control {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  width: 100%;
  background: #fff;
  min-height: 48px; /* touch-friendly */
  transition: border-color var(--transition);
  font-family: inherit;
}
.field input.control,
.field button.control { line-height: 1.45; }
.field input.control[readonly] {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  -webkit-text-fill-color: var(--dark);
  opacity: 1;
}
.hsf-date .control,
#f-dep,
#f-ret,
#h-checkin,
#h-checkout {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  min-height: 52px;
  padding: 15px 16px;
}
/* Merged check-in — check-out range input (homepage hotels tab) */
.hsf-date-range .control.date-range-inp {
  cursor: pointer;
}
#h-nat-trigger,
#h-dest-trigger,
#f-from-trigger,
#f-to-trigger,
#f-cabin-trigger,
#e-country-trigger {
  min-height: 52px;
  padding-top: 14px;
  padding-bottom: 14px;
}
/* Button-type controls (Guests, Passengers): never wrap text */
button.control {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  padding-right: 28px;
}
.field .control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231,78,53,0.12);
}

/* Icon inside input
   Markup: <div class="field"><label>…</label><div class="with-icon">
   <i …></i><input class="control" …></div></div> — .with-icon wraps
   only the icon + input (not the label), so the icon centers correctly
   within the input's height. */
.with-icon { position: relative; }
.with-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 16px;
  z-index: 1;
}
/* !important + extra specificity required: .search-widget input[type="text"]
   (below) sets padding-left: 0 !important on all text inputs at specificity
   (0,2,1), which beats the old (0,2,0) .with-icon .control rule and collapses
   this back to 0, causing the icon to overlap the placeholder text. The
   .search-widget prefix below brings this to (0,3,0) so it wins. */
.with-icon .control,
.search-widget .with-icon .control,
.search-widget .with-icon input.control[type="text"] {
  padding-left: 40px !important;
}

/* Trip-type radio toggle */
.trip-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.trip-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.trip-toggle input { accent-color: var(--primary); }
.trip-toggle label:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(231,78,53,0.07);
}

/* ── Counter popover ── */
/* Parent field needs relative positioning — set via class */
.field-rel { position: relative; }

.counter-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(26,26,46,0.18);
  padding: 14px 16px;
  z-index: 200; /* above hero content, below navbar (1030) */
  display: none;
}
.counter-pop.open { display: block; }

/* Keep popover within viewport on small screens */
@media (max-width: 575px) {
  .counter-pop {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.counter-row + .counter-row { border-top: 1px solid var(--border); }
.counter-row .lbl strong { display: block; font-size: 15px; color: var(--dark); font-weight: 700; }
.counter-row .lbl span { font-size: 13px; color: var(--text-muted); }
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.stepper button:hover { border-color: var(--primary); background: rgba(231,78,53,0.06); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper .val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
}

/* Search button in widget */
.search-btn-wrap { display: flex; align-items: flex-end; }
.search-btn-wrap .btn-tr {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

/* ──────────────────────── TRUST BAR ─────────────────────────────── */
.trust-bar { background: var(--light); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-item .ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(231,78,53,0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.trust-item .num {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}
.trust-item .lbl {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ──────────────────────── WHY CARDS ─────────────────────────────── */
.why-card { padding: 32px; height: 100%; }
.why-card .ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { margin: 0; }

/* ────────────── FEATURED HOTELS (horizontal scroll) ─────────────── */
.h-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-track { background: transparent; }
.h-scroll::-webkit-scrollbar-thumb { background: #d0d0db; border-radius: 999px; }

/* Responsive card width: never wider than ~80vw on small screens */
.hotel-mini {
  flex: 0 0 clamp(240px, 76vw, 300px);
  scroll-snap-align: start;
}
.hotel-mini .photo {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.hotel-mini .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hotel-mini:hover .photo img { transform: scale(1.04); }
.hotel-mini .photo .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.hotel-mini .body { padding: 18px; }
.hotel-mini h3 { font-size: 17px; margin: 4px 0; }
.hotel-mini .city { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.hotel-mini .stars { color: var(--gold); font-size: 14px; }
.hotel-mini .price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
  flex-wrap: wrap;
}
.hotel-mini .price {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}
.hotel-mini .price small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.scroll-ctrls { display: flex; gap: 8px; }
.scroll-ctrls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.scroll-ctrls button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ──────────────────── DESTINATIONS GRID ─────────────────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75));
}
.dest-card:hover img { transform: scale(1.08); }
.dest-card .meta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}
.dest-card .meta h3 {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 0 0 2px;
}
.dest-card .meta span { font-size: 13px; opacity: 0.88; }
.dest-card.tall { grid-row: span 2; }

/* ──────────────────────── eSIM PROMO ────────────────────────────── */
.esim-promo {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.esim-promo::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.esim-promo h2 { color: #fff; max-width: 560px; margin-bottom: 8px; }
.esim-promo p { color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 0; }

/* ───────────────────────────── FAQ ──────────────────────────────── */
.tr-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.tr-accordion .accordion-header {
  margin-bottom: 0;
}
.tr-accordion .accordion-button {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  line-height: 1.25;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-size: clamp(18px, 1.8vw, 22px);
  padding: 16px 20px;
  background: #fff;
}
.tr-accordion .accordion-button:not(.collapsed) {
  background: rgba(231,78,53,0.06);
  color: var(--primary);
  box-shadow: none;
}
.tr-accordion .accordion-button:focus { box-shadow: none; }
.tr-accordion .accordion-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 18px;
}

/* ─────────────────────────── NEWSLETTER ─────────────────────────── */
.newsletter {
  background: var(--dark);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.75); }
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 0;
}
.newsletter input {
  flex: 1;
  min-width: 0; /* prevents flex overflow */
  border-radius: 10px;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
}
.newsletter input:focus { outline: 2px solid var(--primary); }

/* ── Hotel search flex — base layout (desktop-first) ── */
.hsf-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
/* Destination: largest field */
.hsf-dest       { flex: 4 1 240px; min-width: 220px; }
/* Dates: second largest */
.hsf-date-range { flex: 3 1 220px; min-width: 200px; }
.hsf-date       { flex: 2 1 160px; min-width: 140px; }
/* Guests */
.hsf-guests     { flex: 2 1 190px; min-width: 180px; }
/* Nationality */
.hsf-nat        { flex: 2 1 170px; min-width: 150px; }
/* Search button: never shrink */
.hsf-btn        { flex: 0 0 auto; }

/* ── Hotel search flex — responsive breakpoints ── */
/* Mobile (< 576px): everything stacks full-width */
@media (max-width: 575px) {
  .hsf-dest, .hsf-date, .hsf-date-range, .hsf-guests, .hsf-nat {
    flex: 1 1 100% !important; min-width: 0;
  }
  .hsf-btn { flex: 1 1 100% !important; }
  .hsf-btn .btn-tr { width: 100%; justify-content: center; }
}
/* Small tablet (576px–767px): destination full row, dates full row, guests+nat+btn pair */
@media (min-width: 576px) and (max-width: 767px) {
  .hsf-dest   { flex: 1 1 100% !important; }
  .hsf-date   { flex: 1 1 calc(50% - 5px) !important; }
  .hsf-date-range { flex: 1 1 100% !important; }
  .hsf-guests { flex: 1 1 calc(55% - 5px) !important; }
  .hsf-nat    { flex: 1 1 calc(35% - 5px) !important; }
  .hsf-btn    { flex: 0 0 auto !important; align-self: flex-end; }
}
/* Medium tablet (768px–1099px): 2 rows — [dest+dates] / [guests+nat+btn] */
@media (min-width: 768px) and (max-width: 1099px) {
  .hsf-dest   { flex: 0 0 calc(40% - 8px) !important; }
  .hsf-date   { flex: 0 0 calc(28% - 8px) !important; }
  .hsf-date-range { flex: 0 0 calc(35% - 8px) !important; }
  .hsf-guests { flex: 1 1 calc(52% - 8px) !important; }
  .hsf-nat    { flex: 1 1 calc(32% - 8px) !important; }
  .hsf-btn    { flex: 0 0 auto !important; align-self: flex-end; }
}

/* ═══════════════════════════ BREAKPOINTS ═══════════════════════════ */

/* ── Large tablet / small desktop (< 1024px) ── */
@media (max-width: 1023px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop (>= 1100px): destination and dates get more breathing
   room so the calendar icon never overlaps the placeholder text;
   Guests & Rooms gets enough width to show "2 Guests · 1 Room" in
   full; Nationality is trimmed slightly since country names still
   fit comfortably at this width. ── */
@media (min-width: 1100px) {
  .hsf-dest       { flex: 4 1 260px !important; }
  .hsf-date-range { flex: 3 1 230px !important; }
  .hsf-guests     { flex: 2 1 200px !important; }
  .hsf-nat        { flex: 2 1 160px !important; }
}

/* ── Tablet (< 992px) ── */
@media (max-width: 991px) {
  .hero { padding-top: 108px; }
}

/* ── Mobile landscape / tablet (< 768px) ── */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 56px;
  }
  .hero p.lead { font-size: 16px; }
  .search-widget { margin-top: 28px; }
  .search-widget .tab-content { padding: 18px 16px; }
  .esim-promo { padding: 36px 24px; }
  .newsletter { padding: 40px 24px; }
  .newsletter form { flex-direction: column; }
}

/* ── Small mobile (< 576px) — tabs stay horizontal, just tighter padding ── */
@media (max-width: 575px) {
  .search-widget .nav-tabs { padding: 8px 8px 0; gap: 2px; }
  .search-widget .nav-tabs .nav-link { padding: 11px 8px; font-size: 13px; gap: 5px; }
  .search-widget .tab-content { padding: 14px 12px; }
}

/* ── Small mobile (< 560px) ── */
@media (max-width: 559px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-item .ic { width: 44px; height: 44px; font-size: 20px; }
  .trust-item .num { font-size: 22px; }
  .dest-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .dest-card.tall { grid-row: span 1; }
}

/* ── Tiny (< 400px) ── */
@media (max-width: 399px) {
  .trust-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .hero__pills span { font-size: 12px; padding: 6px 10px; }
}

/* ================================================================
   SEARCH WIDGET — Override Mytravel inner-form styles
   Scope: everything inside .search-widget so nothing else breaks
   ================================================================ */

/* ── Trip-type buttons (One Way / Round Trip / Multi City) ── */
.search-widget .flight_search_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin: 0 4px 12px;
}
.search-widget .flight_search_btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.search-widget .flight_search_btn.active1 {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Primary submit button (Search) — replaces btn-blue-1 ── */
.search-widget .btn-blue-1,
.search-widget .btn.btn-blue-1 {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  transition: background var(--transition), border-color var(--transition) !important;
}
.search-widget .btn-blue-1:hover,
.search-widget .btn.btn-blue-1:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* ── Field labels ── */
.search-widget .text-black,
.search-widget span.d-block.text-black,
.search-widget label {
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
}

/* ── Input lines: replace Mytravel's bottom-border style ── */
.search-widget .border-bottom-1 {
  border-bottom: 1.5px solid var(--border) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}
.search-widget input.form-control,
.search-widget .form-control.hero-form,
.search-widget input[type="text"],
.search-widget input[type="date"],
.search-widget select.form-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  font-family: inherit !important;
  padding-left: 0 !important;
}
.search-widget input.form-control:focus,
.search-widget input[type="text"]:focus,
.search-widget input[type="date"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ── Icon accent colour ── */
.search-widget .flaticon-pin-1::before,
.search-widget .flaticon-calendar::before {
  color: var(--primary) !important;
}
.search-widget .fa-exchange { color: #fff !important; }
.search-widget .btn-primary.flight_swap_button {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ── Passenger / class dropdowns ── */
.search-widget .select2-container .select2-selection--single {
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  height: 38px !important;
}
.search-widget .select2-container .select2-selection__rendered {
  font-weight: 600 !important;
  color: var(--dark) !important;
  padding-left: 0 !important;
  line-height: 38px !important;
}
.search-widget .select2-container .select2-selection__arrow {
  top: 6px !important;
}

/* ── Section padding clean-up inside widget ── */
.search-widget .g-field-search,
.search-widget .hotel-search-width-list { width: 100%; }
.search-widget .g-button-submit { text-align: center; padding: 16px 0 8px; }

/* ── Field boxes: turn Mytravel underline inputs into Traveronto controls ── */
.search-widget .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.search-widget .item .mb-4,
.search-widget .item .form-content {
  margin-bottom: 0 !important;
}
.search-widget .input-group,
.search-widget .item .border-bottom,
.search-widget .item .form-content,
.search-widget .u-datepicker {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  min-height: 48px;
  align-items: center !important;
}
.search-widget .input-group .form-control,
.search-widget .input-group input,
.search-widget .date-wrapper {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}
.search-widget .select2-container--default .select2-selection--single {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  min-height: 48px !important;
  padding: 6px 10px !important;
  background: #fff !important;
}
.search-widget .select2-container--default .select2-selection__rendered {
  line-height: 34px !important;
  padding-left: 4px !important;
}
.search-widget .select2-container--default .select2-selection__arrow {
  top: 10px !important;
}

/* ── Hotel search form overrides (same scope) ── */
.search-widget .bravo_form .text-primary { color: var(--primary) !important; }

.search-widget .bravo_form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
.search-widget .hotel-search-width-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
.search-widget .g-field-search {
  flex: 1 1 100%;
}
.search-widget .g-field-search .nav-select {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 0 !important;
}
.search-widget .g-field-search .nav-select > [class*="col-"] {
  flex: 1 1 140px;
  max-width: none;
  width: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}
.search-widget .g-button-submit {
  flex: 0 0 auto;
  align-self: flex-end;
  padding: 0 !important;
  margin: 0 !important;
}
.search-widget .g-button-submit .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  min-height: 48px;
}
.search-widget .g-button-submit .btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}


/* ================================================================
   MISSING FROM ORIGINAL home.css — added from NEW-THEME inline styles
   ================================================================ */

/* ── Flatpickr brand colors ── */
.flatpickr-calendar { font-family:'Inter',sans-serif !important; border-radius:14px !important; box-shadow:0 16px 48px rgba(26,26,46,0.18) !important; border:1px solid #e7e7ec !important; }
.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover { background:#E74E35 !important; border-color:#E74E35 !important; color:#fff !important; }
.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange) { background:rgba(231,78,53,0.1) !important; color:#E74E35 !important; }
.flatpickr-day.today { border-color:#E74E35 !important; font-weight:700; }
.flatpickr-day.today:hover { background:rgba(231,78,53,0.1) !important; color:#E74E35 !important; }
.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg { fill:#E74E35 !important; }


@media (max-width: 767px) {
  .flatpickr-calendar {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-months .flatpickr-month,
  .flatpickr-calendar .flatpickr-months .flatpickr-month {
    width: 100% !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-innerContainer,
  .flatpickr-calendar.multiMonth .flatpickr-rContainer,
  .flatpickr-calendar.multiMonth .dayContainer,
  .flatpickr-innerContainer,
  .flatpickr-rContainer,
  .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Hide every month after the first when a stale 2-month instance
     is still active at this viewport size */
  .flatpickr-calendar.multiMonth .flatpickr-months .flatpickr-month ~ .flatpickr-month,
  .flatpickr-calendar .flatpickr-days > .dayContainer ~ .dayContainer {
    display: none !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-days {
    width: 100% !important;
  }
}

/* ── Nationality / searchable dropdown ── */
.nat-wrap { position:relative; }
.nat-trigger { display:flex !important; align-items:center !important; justify-content:space-between !important; overflow:visible !important; gap:8px; }
.nat-trigger span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nat-globe { font-size:16px; flex-shrink:0; color:var(--primary); }
.nat-chev { font-size:11px; flex-shrink:0; color:#aaa; transition:transform .2s; }
.nat-trigger[aria-expanded="true"] .nat-chev { transform:rotate(180deg); }
.nat-drop { position:absolute; top:calc(100% + 4px); left:0; right:0; min-width:250px; background:#fff; border-radius:12px; box-shadow:0 8px 32px rgba(26,26,46,0.16); border:1px solid #e7e7ec; z-index:9999; display:none; }
.nat-drop.open { display:block; }
.nat-search-row { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #f0f0f5; position:sticky; top:0; background:#fff; border-radius:12px 12px 0 0; }
.nat-search-row i { color:#bbb; font-size:14px; flex-shrink:0; }
.nat-search-inp {
    border:none; outline:none; width:100%; font-size:14px; font-family:inherit;
    background:transparent; color:#1A1A2E;
    -webkit-appearance:none; appearance:none;
}
.nat-search-inp::placeholder { color:#ccc; }
/* type="search" reset — used to suppress the browser's native address
   autofill suggestions, which otherwise visually cover our own dropdown */
.nat-search-inp::-webkit-search-decoration,
.nat-search-inp::-webkit-search-cancel-button,
.nat-search-inp::-webkit-search-results-button,
.nat-search-inp::-webkit-search-results-decoration { display:none; }
.nat-list { max-height:210px; overflow-y:auto; }
.nat-opt { padding:10px 14px; cursor:pointer; font-size:14px; font-weight:500; color:#1A1A2E; border-bottom:1px solid #f3f3f7; transition:background .15s,color .15s; display:flex; align-items:center; gap:6px; }
.nat-opt:last-child { border-bottom:none; }
.nat-opt:hover,.nat-opt.sel { background:rgba(231,78,53,0.07); color:#E74E35; font-weight:600; }
.nat-empty { padding:12px 14px; font-size:13px; color:#8a8fa3; }

/* ── Counter trigger display fix ── */
.counter-trigger { display:flex; align-items:center; gap:10px; }
.counter-trigger .ctr-ic { color:var(--primary); font-size:17px; flex-shrink:0; }
/* The summary text fills remaining space and truncates instead of overflowing */
.counter-trigger [data-counter-summary] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── "Done" button inside counter-pop ── */
.counter-pop .btn-done { width:100%; background:var(--primary); color:#fff; border:none; border-radius:10px; padding:12px; font-size:15px; font-weight:700; cursor:pointer; margin-top:14px; transition:background var(--transition); }
.counter-pop .btn-done:hover { background:var(--primary-dark); }

/* ── Stepper button shape override (round variant from NEW-THEME inline) ── */
.stepper button { border-radius:50% !important; border:2px solid var(--primary) !important; color:var(--primary) !important; }
.stepper button:hover { background:var(--primary) !important; color:#fff !important; }
.stepper button:disabled { border-color:#ddd !important; color:#ddd !important; background:#fff !important; }

/* ── bg-light-tr utility ── */
.bg-light-tr { background-color: var(--light) !important; }

/* ================================================================
   SEARCH FORM — typeahead inputs, Tom Select, icon wrappers,
   validation errors, flatpickr padding fixes
   ================================================================ */

/* ── Icon-wrapped input container ── */
.control-icon-wrap {
  position: relative;
  display: block;
}
.control-icon-wrap .control-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 16px;
  z-index: 1;
}
.control-icon-wrap .control {
  padding-left: 42px !important;
}

/* ── #hotel-loc-drop — suggestion dropdown for location_id ────────────
   Sits inside .search-widget so we need to override the broad widget
   rules that reset color/font on child elements.
   ─────────────────────────────────────────────────────────────────── */
#hotel-loc-drop {
  background: #fff !important;
  border: 1px solid #e7e7ec !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(26,26,46,0.16) !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  padding: 4px 0 !important;
}
#hotel-loc-drop .nat-opt {
  color: #1A1A2E !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f3f3f7 !important;
}
#hotel-loc-drop .nat-opt:last-child { border-bottom: none !important; }
#hotel-loc-drop .nat-opt:hover,
#hotel-loc-drop .nat-opt:focus {
  background: rgba(231,78,53,0.07) !important;
  color: #E74E35 !important;
}

/* ── #location_id — destination typeahead input ──────────────────────
   The broad .search-widget input[type="text"] rule strips all borders.
   These rules use ID specificity to win that fight.
   ─────────────────────────────────────────────────────────────────── */
.search-widget #location_id,
.search-widget input#location_id,
.search-widget input#location_id[type="text"] {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 13px 16px 13px 42px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  background: #fff !important;
  box-shadow: none !important;
  min-height: 48px !important;
  width: 100% !important;
  font-family: inherit !important;
  transition: border-color var(--transition) !important;
  text-align: left !important;
  display: block !important;
}
.search-widget #location_id:focus,
.search-widget input#location_id:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231,78,53,0.12) !important;
  outline: none !important;
}
.search-widget #location_id::placeholder,
.search-widget input#location_id::placeholder {
  color: #b0b4c5 !important;
  font-weight: 400 !important;
}

/* ── Smart-search-location text inputs look like .control ── */
input.smart-search-location {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 13px 16px 13px 42px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  width: 100% !important;
  background: #fff !important;
  min-height: 48px !important;
  font-family: inherit !important;
  transition: border-color var(--transition) !important;
  display: block !important;
}
input.smart-search-location:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231,78,53,0.12) !important;
}
input.smart-search-location::placeholder {
  color: #b0b4c5;
  font-weight: 400;
}

/* Bootstrap 3 typeahead dropdown */
.twitter-typeahead { width: 100% !important; display: block !important; }
.typeahead.dropdown-menu {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(26,26,46,0.16) !important;
  border: 1px solid #e7e7ec !important;
  padding: 6px 0 !important;
  font-family: inherit !important;
  z-index: 9999 !important;
  min-width: 280px !important;
  max-height: 260px !important;
  overflow-y: auto !important;
}
.typeahead.dropdown-menu > li > a {
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1A1A2E !important;
}
.typeahead.dropdown-menu > li.active > a,
.typeahead.dropdown-menu > li > a:hover {
  background: rgba(231,78,53,0.07) !important;
  color: #E74E35 !important;
}

/* ── Flatpickr inputs — stop text touching border ── */
/* These overrides ensure the placeholder and typed text have proper padding */
#h-checkin, #h-checkout, #f-dep, #f-ret {
  padding: 14px 16px 14px 12px !important;
  line-height: 1.45 !important;
}
.control-icon-wrap #h-checkin,
.control-icon-wrap #h-checkout,
.control-icon-wrap #f-dep,
.control-icon-wrap #f-ret {
  padding: 14px 16px 14px 42px !important;
}
/* Flatpickr injects its own input wrapper; make sure placeholder shows correctly */
.flatpickr-input::placeholder { color: #b0b4c5; font-weight: 400; }

/* ── Cabin class field — prevent label touching top border ── */
.field label { margin-bottom: 0; }
.field { gap: 7px; }

/* ── Validation error span ── */
.field-error {
  font-size: 12px;
  color: #e63535;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.field-error-border .control,
.field-error-border input.smart-search-location {
  border-color: #e63535 !important;
}

/* ── Tom Select — nationality dropdown styling ── */
.ts-wrapper.single .ts-control {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 13px 40px 13px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  background: #fff !important;
  min-height: 48px !important;
  font-family: inherit !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.ts-wrapper.single.focus .ts-control {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231,78,53,0.12) !important;
}
.ts-wrapper .ts-dropdown {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(26,26,46,0.16) !important;
  border: 1px solid #e7e7ec !important;
  font-family: inherit !important;
  z-index: 9999 !important;
}
.ts-wrapper .ts-dropdown .option {
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1A1A2E !important;
}
.ts-wrapper .ts-dropdown .option:hover,
.ts-wrapper .ts-dropdown .option.active {
  background: rgba(231,78,53,0.07) !important;
  color: #E74E35 !important;
}
.ts-wrapper .ts-dropdown-content { max-height: 220px !important; }
.ts-wrapper.single .ts-control::after { border-color: #aaa transparent transparent !important; }

/* Hide the original <select> entirely (Tom Select replaces it) */
#select-state + .ts-wrapper ~ select,
select#select-state { display: none !important; }

/* ── Hotel search button — #hotel-search-btn is the clickable button itself ── */
#hotel-search-btn.g-button-submit {
  /* btn-tr already provides all styling — do not override it */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: 2px solid var(--primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 11px 24px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  min-height: 48px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  gap: 8px !important;
}
#hotel-search-btn.g-button-submit:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(231,78,53,0.28) !important;
}

/* ── Typeahead loading indicator ── */
.typeahead-loading {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #eee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ── Bootstrap 4 accordion collapse animation (accordion-button collapse state) ── */
.tr-accordion .accordion-button.collapsed { background: #fff; color: var(--dark); }
.tr-accordion .accordion-button::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.tr-accordion .accordion-button:not(.collapsed)::after { transform: rotate(180deg); color: var(--primary); }

/* ── gap utility (BS4 doesn't have gap-3) ── */
.gap-3 { gap: 1rem !important; }

/* ── Bootstrap 4 row gutter aliases ── */
.g-3 { margin-left: -0.5rem; margin-right: -0.5rem; }
.g-3 > [class*="col"] { padding-left: 0.5rem; padding-right: 0.5rem; }
.g-4 { margin-left: -0.75rem; margin-right: -0.75rem; }
.g-4 > [class*="col"] { padding-left: 0.75rem; padding-right: 0.75rem; }
.g-lg-5 { }
@media (min-width: 992px) {
  .g-lg-5 { margin-left: -1.25rem; margin-right: -1.25rem; }
  .g-lg-5 > [class*="col"] { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── FAQ section layout ── */
.tr-accordion { width: 100%; }
.tr-accordion .accordion-item { width: 100%; box-sizing: border-box; }
.tr-accordion .accordion-button { justify-content: space-between; }

/* Why cards — equal height fill */
.why-card { height: 100%; box-sizing: border-box; }

/* Remove the broken g-4/g-3 negative margin from the row itself */
.search-widget .row.g-3 { margin-left: -8px; margin-right: -8px; }
.search-widget .row.g-3 > [class*="col"] { padding-left: 8px; padding-right: 8px; }

.field input[style*="border-color: rgb(231, 78, 53)"],
.field input[style*="border-color:#E74E35"] {
  box-shadow: 0 0 0 2px rgba(231,78,53,0.15);
}

/* ── Form validation errors — floating popover (Priceline-style) ──
   Anchored to the .field (position:relative) and positioned absolutely
   so it never shifts surrounding layout. Appears just below the control
   with a small arrow pointing back up at the field. */
.field { position: relative; }
.tr-field-error {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  background: #E74E35;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(231,78,53,0.28);
  white-space: normal;
  box-sizing: border-box;
}
.tr-field-error.show { display: flex; }
.tr-field-error::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #E74E35;
  transform: rotate(45deg);
  border-radius: 2px;
}


/* Trip type toggle */
.home-flight-form-wrap .trip-toggle { background: var(--light); border: 1px solid var(--border); }
.home-flight-form-wrap .tt-btn { color: var(--text-muted); }
.home-flight-form-wrap .tt-btn:hover:not(.active) { background: rgba(231,78,53,0.06); color: var(--primary); }
.home-flight-form-wrap .tt-btn.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(231,78,53,0.25); }

/* Search bar surface */
.home-flight-form-wrap .hdr-search { background: transparent; border: none; padding: 0; }
.home-flight-form-wrap .hdr-search-multi { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }

/* Field labels */
.home-flight-form-wrap .hdr-field label { color: var(--text-muted); }


.home-flight-form-wrap .hdr-field > input,
.home-flight-form-wrap .hdr-field > select {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--dark) !important;
  padding: 11px 13px !important;
  box-shadow: none !important;
}
.home-flight-form-wrap .hdr-field > input::placeholder { color: #aaa; }
.home-flight-form-wrap .hdr-field > input:focus,
.home-flight-form-wrap .hdr-field > select:focus { border-color: var(--primary) !important; }


.home-flight-form-wrap .hdr-city-inp-wrap .hdr-city-inp,
.home-flight-form-wrap .hdr-field .hdr-city-inp-wrap input.hdr-city-inp {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 11px 10px !important;
  color: var(--dark) !important;
  font-size: 14px !important;
}

/* City autocomplete inputs */
.home-flight-form-wrap .hdr-city-inp-wrap,
.home-flight-form-wrap .hdr-city-btn,
.home-flight-form-wrap .pax-btn {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--dark) !important;
}

/* Merged Depart — Return date-range field (same wrapper pattern as
   .hdr-city-inp-wrap, needs the same light-theme override) */
.home-flight-form-wrap .hdr-dates-inp-wrap {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
}
.home-flight-form-wrap .hdr-dates-inp-wrap .hdr-dates-icon {
  color: var(--primary) !important;
}
.home-flight-form-wrap .hdr-dates-inp-wrap .hdr-dates-inp,
.home-flight-form-wrap .hdr-field .hdr-dates-inp-wrap input.hdr-dates-inp {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 11px 13px 11px 10px !important;
  color: var(--dark) !important;
  font-size: 14px !important;
}
.home-flight-form-wrap .hdr-dates-inp::placeholder { color: #aaa; }
.home-flight-form-wrap .hdr-city-inp::placeholder { color: #aaa; }
.home-flight-form-wrap .hdr-city-btn .chev,
.home-flight-form-wrap .pax-btn .pax-chev { color: var(--text-muted); }

/* The From/To trigger input IS the searchable field (typing filters the
   dropdown directly) - hide the chevron so it doesn't read as a <select>,
   and hide the redundant secondary search box inside the dropdown so
   there's only one place to type. */
.home-flight-form-wrap .hdr-city-inp-wrap .chev { display: none; }
.home-flight-form-wrap .city-drop-search { display: none; }

/* Swap button */
.home-flight-form-wrap .hdr-swap-btn {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--primary) !important;
}
.home-flight-form-wrap .hdr-swap-btn:hover { background: rgba(231,78,53,0.08) !important; }
/* .search-widget .fa-exchange sets color:#fff !important (Mytravel-era
   rule for the old dark swap button) - override it here so the icon is
   visible (primary-orange) on the new light swap button. */
.home-flight-form-wrap .hdr-swap-btn .fa-exchange { color: var(--primary) !important; }
.home-flight-form-wrap .hdr-swap-btn:hover .fa-exchange { color: var(--primary) !important; }

/* Multi-city remove / add buttons */
.home-flight-form-wrap .multi-seg-add-btn {
  background: #fff !important;
  border: 1.5px dashed var(--border) !important;
  color: var(--text-muted) !important;
}
.home-flight-form-wrap .multi-seg-add-btn:hover {
  background: rgba(231,78,53,0.06) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
.home-flight-form-wrap .multi-seg-remove {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-muted) !important;
}
.home-flight-form-wrap .multi-seg-remove:hover {
  background: rgba(231,78,53,0.1) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Search button - match Hotels tab CTA height */
.home-flight-form-wrap .hdr-search-btn { min-height: 48px; }

/* Responsive: stack fields full-width on small screens */
@media (max-width: 767px) {
  .home-flight-form-wrap .hdr-field { flex: 1 1 100% !important; }
  .home-flight-form-wrap .hdr-search-btn { width: 100%; justify-content: center; }
  .home-flight-form-wrap .hdr-field.hdr-half { flex: 1 1 calc(50% - 5px) !important; min-width: 0; }
  .home-flight-form-wrap .hdr-swap-btn { display: none; }
}
@media (max-width: 480px) {
  .home-flight-form-wrap .trip-toggle { display: flex; width: 100%; }
  .home-flight-form-wrap .tt-btn { flex: 1 1 0; justify-content: center; padding: 9px 8px; }
  .home-flight-form-wrap .hdr-field.hdr-half { flex: 1 1 100% !important; }
}


/* ══════════════════════════════════════════════════════════
   HOTEL GRID — Featured Hotels block (homepage)
   ══════════════════════════════════════════════════════════ */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .hotel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hotel-grid { grid-template-columns: 1fr; } }

/* Card */
.hotel-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  color: inherit;
  text-decoration: none;
}

/* Image */
.hotel-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8e8;
}
.hotel-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.hotel-card:hover .hotel-card__img img { transform: scale(1.04); }

/* Wishlist */
.hotel-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark, #1a1a2e);
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.hotel-card__wish:hover,
.hotel-card__wish.active { color: var(--primary); background: #fff; }

/* Body */
.hotel-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.hotel-card__stars { color: #f4a300; font-size: 12px; letter-spacing: 1px; }
.hotel-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark, #1a1a2e);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hotel-card__location {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hotel-card__location i { margin-right: 3px; }
.hotel-card__price { margin-top: auto; padding-top: 8px; }
.hotel-card__from { font-size: 12px; color: #6b7280; }
.hotel-card__amount { font-size: 18px; font-weight: 700; color: var(--primary); margin: 0 2px; }
.hotel-card__night { font-size: 12px; color: #6b7280; }
