/* =====================================================
   B2B SEARCH — landing search (template/search.php) and modify search on
   every result page (Modules/* /modify-search.php). Same markup in both:
   .search-form > .flight-type (trip radios) > form > *-search-wrapper > .row > col > .form-group
   Every field is its own bordered box; popups (autocomplete, datepicker,
   dropdowns) always open on top of the page.
   Uses theme.css tokens only.
===================================================== */

/* -----------------------------------------------------
   1. HERO (landing pages)
----------------------------------------------------- */
.b2b .hero-section {
  position: relative;
  z-index: 3; /* above the sections below, so open popups are never behind them */
  overflow: visible;
  padding: 30px 0 34px;
  background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-dark) 60%, var(--primary) 140%);
}

/* slider image is a clipped background layer (the section itself must not clip popups) */
.b2b .hero-section .banner-sliders {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.b2b .hero-section .slider-item,
.b2b .hero-section .Search_banner {
  height: 100%;
  min-height: 100%;
  padding: 0;
}

.b2b .hero-section .slider-item::before,
.b2b .hero-section .Search_banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary-deep) 70%, transparent) 0%,
      color-mix(in srgb, var(--primary-deep) 35%, transparent) 45%,
      color-mix(in srgb, var(--primary-deep) 60%, transparent) 100%);
}

.b2b .hero-section .Search_banner {
  background: url("../img/tour-banner.jpg") center 70% / cover no-repeat;
}

.b2b .hero-section .Search_banner::before {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary-deep) 92%, transparent) 0%,
      color-mix(in srgb, var(--primary-dark) 82%, transparent) 60%,
      color-mix(in srgb, var(--primary) 70%, transparent) 100%);
}

.b2b .hero-section .slider-text {
  display: none;
}

.b2b .search_form_section {
  position: relative;
  left: auto;
  bottom: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
}

.b2b-hero-head {
  margin-bottom: 18px;
  text-align: center;
  color: #fff;
}

.b2b-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.b2b .b2b-hero-head h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.b2b-hero-head p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* module tabs */
.b2b .hero-section .search_form_section .search-wrapper {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.b2b .hero-section .search-header {
  display: block;
}

.b2b .hero-section .search-nav {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 0 -22px;
  padding: 0 20px;
  background: none;
}

.b2b .hero-section .search_tabs {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.b2b .hero-section .search_tabs::-webkit-scrollbar {
  display: none;
}

.b2b .hero-section .search_tabs li a {
  width: 84px;
  height: 64px;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 24px -18px rgba(6, 14, 30, 0.6);
  transition: transform .15s ease, color .15s ease;
}

.b2b .hero-section .search_tabs li i {
  font-size: 18px;
  color: var(--primary);
}

.b2b .hero-section .search_tabs li a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.b2b .hero-section .search_tabs li a.current {
  color: var(--on-primary);
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 14px 26px -14px var(--primary);
}

.b2b .hero-section .search_tabs li a.current i {
  color: var(--on-primary);
}

/* the white search panel */
.b2b .hero-section .search-wrapper > .tab-content {
  position: relative;
  padding: 36px 20px 16px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 30px 60px -34px rgba(6, 14, 30, 0.6);
}

/* -----------------------------------------------------
   2. MODIFY SEARCH (result pages)
----------------------------------------------------- */
.b2b .modify-area {
  position: relative;
  z-index: 3;
  margin: 0 0 18px;
  padding: 16px 0 18px;
  background:
    radial-gradient(700px 240px at 90% 0%, color-mix(in srgb, var(--secondary), transparent 85%), transparent 70%),
    linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-dark) 65%, var(--primary) 140%);
}

.b2b .modify-area .search-wrapper {
  margin: 0 !important;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.b2b .modify-area .search-wrapper > .tab-content,
.b2b .modify-area .tab-content {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 0 !important;
  border-radius: 16px;
  box-shadow: 0 20px 44px -30px rgba(6, 14, 30, 0.6);
}

.b2b .modify-area .tab-content .tab-content {
  padding: 0;
  box-shadow: none;
}

/* -----------------------------------------------------
   3. TRIP TYPE ROW (flight / car radios) — segmented pills
----------------------------------------------------- */
.b2b :is(.hero-section, .modify-area) .search-form .flight-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .search-check {
  display: contents;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-label:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-input:checked + .form-check-label {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-input:checked + .form-check-label::before {
  background: currentColor;
  border-color: currentColor;
  opacity: 1;
}

.b2b :is(.hero-section, .modify-area) .search-form .flight-type .form-check-input:focus-visible + .form-check-label {
  box-shadow: 0 0 0 3px var(--primary-ring, var(--primary-soft-2));
}

.b2b-search-tagline {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* -----------------------------------------------------
   4. FIELD ROW — boxed fields + search button
----------------------------------------------------- */
.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .row,
.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .flight-search-content,
.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .flight-mult-city {
  flex: 1 1 0;
  min-width: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
  align-items: stretch;
}

.b2b :is(.hero-section, .modify-area) .search-form .row.g-3 {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

@media (min-width: 992px) {
  .b2b :is(.hero-section, .modify-area) .search-form .row {
    flex-wrap: nowrap;
    --bs-gutter-y: 0;
  }

  .b2b :is(.hero-section, .modify-area) .search-form .row > [class*="col"] {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  /* depart | return pair and car from | to pair get extra room */
  .b2b :is(.hero-section, .modify-area) .search-form .row > [class*="col"]:has(.search-form-date > .search-form-journey + .search-form-journey:not(.hide)),
  .b2b :is(.hero-section, .modify-area) .search-form .row > [class*="col"]:has(.search-form-return) {
    flex-grow: 1.6;
  }
}

/* the field box */
.b2b :is(.hero-section, .modify-area) .search-form .form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 62px;
  margin: 0;
  padding: 8px 12px;
  line-height: 1.2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group:hover {
  border-color: color-mix(in srgb, var(--primary), var(--border) 55%);
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group:focus-within,
.b2b :is(.hero-section, .modify-area) .search-form .form-group:has(.show) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring, var(--primary-soft-2));
}

/* a box that only wraps a nested field box (passenger dropdowns) */
.b2b :is(.hero-section, .modify-area) .search-form .form-group .form-group {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--text-muted);
}

.b2b :is(.hero-section, .modify-area) .search-form .form-control {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.b2b :is(.hero-section, .modify-area) .search-form input.form-control:not([readonly]) {
  cursor: text;
}

.b2b :is(.hero-section, .modify-area) .search-form select.form-control,
.b2b :is(.hero-section, .modify-area) .search-form .form-select {
  padding-right: 18px;
  font-size: 15px;
  font-weight: 700;
  background-position: right 0 center;
  background-size: 12px;
}

.b2b :is(.hero-section, .modify-area) .search-form .form-control::placeholder {
  font-weight: 600;
  color: color-mix(in srgb, var(--text-muted), #fff 25%);
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group p.flight_text_p,
.b2b :is(.hero-section, .modify-area) .search-form .passenger-class-name {
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group p.flight_text_p:empty {
  display: none;
}

/* decorative icons are dropped; single-field search keeps its leading icon */
.b2b :is(.hero-section, .modify-area) .search-form .form-group-icon {
  position: relative;
}

.b2b :is(.hero-section, .modify-area) .search-form .form-group-icon > i,
.b2b :is(.hero-section, .modify-area) .search-form .form-group > i {
  display: none;
}

.b2b :is(.hero-section, .modify-area) .search-form .row > .col-lg-12:only-child .form-group-icon > i {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-flex;
  font-size: 16px;
  color: var(--primary);
  transform: translateY(-50%);
}

.b2b :is(.hero-section, .modify-area) .search-form .row > .col-lg-12:only-child .form-control {
  padding-left: 26px;
}

/* paired fields inside one box: depart | return, car from | to, pickup | drop */
.b2b :is(.hero-section, .modify-area) .search-form-date {
  display: flex;
  gap: 0;
  height: 100%;
}

.b2b :is(.hero-section, .modify-area) .search-form-date > * {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form-date > .hide {
  display: none !important;
}

.b2b :is(.hero-section, .modify-area) .search-form-date > :is(.search-form-journey, .search-form-return) + :is(.search-form-journey, .search-form-return) {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.b2b :is(.hero-section, .modify-area) .search-form-return {
  cursor: pointer;
}

/* the half that carries the swap button needs room for it */
.b2b :is(.hero-section, .modify-area) .search-form-date > .search-form-journey:has(> .search-form-swap) {
  padding-left: 24px;
}

/* swap button sits on the gap between From and To */
.b2b :is(.hero-section, .modify-area) .search-form-swap {
  position: absolute;
  top: 50%;
  left: -21px;
  right: auto;
  z-index: 3;
  margin: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.b2b :is(.hero-section, .modify-area) .search-form-journey > .search-form-swap {
  left: -16px;
}

.b2b :is(.hero-section, .modify-area) .search-form-swap.hide {
  display: none;
}

.b2b :is(.hero-section, .modify-area) .search-form-swap i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 12px !important;
  line-height: 1;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 4px 10px -6px rgba(15, 27, 51, 0.45);
  transition: transform .3s ease, color .2s ease, background .2s ease;
}

.b2b :is(.hero-section, .modify-area) .search-form-swap:hover i {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
}

/* travellers / rooms summary */
.b2b :is(.hero-section, .modify-area) .search-form .passenger-class,
.b2b :is(.hero-section, .modify-area) .search-form .traveller-btn {
  cursor: pointer;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-total,
.b2b :is(.hero-section, .modify-area) .search-form .travellerText {
  padding: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--heading);
}

.b2b :is(.hero-section, .modify-area) .search-form .travellerText {
  font-size: 12px;
  white-space: normal;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-total-amount,
.b2b :is(.hero-section, .modify-area) .search-form .passenger-total-room,
.b2b :is(.hero-section, .modify-area) .search-form .passenger-total b,
.b2b :is(.hero-section, .modify-area) .search-form .passenger-total strong {
  margin-right: 1px;
  font-size: 16px;
  font-weight: 800;
}

/* search button */
.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .search-btn,
.b2b :is(.hero-section, .modify-area) .car-search form > .search-btn {
  display: flex;
  flex: 0 0 150px;
  align-items: stretch;
  margin: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .search-btn .theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 0 16px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 26px -16px var(--primary);
  transition: transform .15s ease, background .15s ease;
}

.b2b :is(.hero-section, .modify-area) .search-form .search-btn .theme-btn span {
  margin: 0;
  font-size: 14px;
}

.b2b :is(.hero-section, .modify-area) .search-form .search-btn .theme-btn:hover {
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  transform: translateY(-1px);
}

/* car: the search button sits in the <form>, next to the field wrapper */
.b2b :is(.hero-section, .modify-area) .car-search form.tts__form_wrapper:not(.hide) {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.b2b :is(.hero-section, .modify-area) .car-search form > .card-search-wrapper {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}

/* hajj / umrah "View all packages" link under the row */
.b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .text-end {
  flex-basis: 100%;
}

.b2b :is(.hero-section, .modify-area) .search_view_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.b2b :is(.hero-section, .modify-area) .search_view_btn::after {
  content: "\2192";
}

/* -----------------------------------------------------
   5. FLIGHT EXTRAS — fare type chips, preferred airlines
----------------------------------------------------- */
.b2b :is(.hero-section, .modify-area) .makeflex,
.b2b .modify-area .search-form > .d-lg-flex,
.b2b .modify-area .search-form > .search_filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px !important;
  margin: 12px 0 0 !important;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}

.b2b .modify-area .search-form > .d-lg-flex,
.b2b .modify-area .search-form > .search_filters {
  display: inline-flex !important;
  vertical-align: middle;
  padding-top: 0;
  border-top: 0;
}

.b2b .modify-area .search-form > .d-lg-flex {
  margin-right: 8px !important;
}

.b2b :is(.hero-section, .modify-area) .makeflex + .makeflex {
  margin-top: 6px !important;
  padding-top: 0;
  border-top: 0;
}

.b2b :is(.hero-section, .modify-area) .makeflex > span {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.b2b :is(.hero-section, .modify-area) .makeflex .search_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

/* each option is a small chip; the input stays for keyboard + state */
.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-label:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-input:checked + .form-check-label {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-input[type="checkbox"] + .form-check-label::before {
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  margin-right: -4px;
  transition: opacity .15s, margin .15s;
}

.b2b :is(.hero-section, .modify-area) :is(.makeflex, .search-form > .d-lg-flex, .search-form > .search_filters) .form-check-input[type="checkbox"]:checked + .form-check-label::before {
  opacity: 1;
  margin-right: 0;
}

.b2b :is(.hero-section, .modify-area) .makeflex .form-check-border {
  margin-right: 4px;
  padding-right: 10px;
  border-right: 1px solid var(--border) !important;
  border-radius: 0;
}

.b2b :is(.hero-section, .modify-area) #default-open-select2 {
  text-decoration: none;
}

.b2b :is(.hero-section, .modify-area) #default-open-select2 span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

.b2b :is(.hero-section, .modify-area) #default-open-select2 span::before {
  content: "+ ";
}

.b2b :is(.hero-section, .modify-area) #select-preferred-flight {
  flex-basis: 100%;
}

/* -----------------------------------------------------
   6. MULTI CITY — one aligned row per leg, actions in a footer
   (footer is built by mcLayout() in flight.js)
----------------------------------------------------- */
.b2b :is(.hero-section, .modify-area) [multicity-addmore] {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  counter-reset: leg;
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] > .flight-search-content {
  display: contents;
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item {
  counter-increment: leg;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item::before {
  content: counter(leg);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item > .row {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0 !important;
}

@media (min-width: 992px) {
  .b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item > .row > [class*="col"] {
    flex: 1 1 0 !important;
  }

  /* last cell: remove button (or an empty spacer on the first two legs) */
  .b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item > .row > [remove-mult-city],
  .b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item > .row > .mc-spacer {
    flex: 0 0 52px !important;
  }
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item > .row > .mc-spacer {
  padding: 0;
}

.b2b :is(.hero-section, .modify-area) [multicity-addmore] [remove-mult-city] .form-group {
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.b2b :is(.hero-section, .modify-area) .search-form [multicity-addmore] .multicity-btn.multicity-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: auto;
  padding: 0;
  font-size: 0;
  gap: 0;
  color: var(--danger) !important;
  background: color-mix(in srgb, var(--danger), #fff 92%);
  border: 1px solid color-mix(in srgb, var(--danger), #fff 70%);
  border-radius: 10px;
  cursor: pointer;
}

.b2b :is(.hero-section, .modify-area) .search-form [multicity-addmore] .multicity-btn.multicity-item-remove i {
  font-size: 16px;
  color: inherit !important;
}

.b2b :is(.hero-section, .modify-area) .search-form [multicity-addmore] .multicity-btn.multicity-item-remove:hover {
  color: #fff !important;
  background: var(--danger);
}

/* footer: add flight · travellers · search */
.b2b .mc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  padding-left: 36px;
  border-top: 1px dashed var(--border);
}

.b2b .mc-actions > [add-mult-city] {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  width: auto;
  padding: 0;
}

.b2b .mc-actions > [add-mult-city][style*="none"] {
  display: none !important;
}

.b2b .mc-actions > [add-mult-city] .form-group {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.b2b .mc-actions > .mc-pax {
  flex: 0 0 230px;
  width: auto;
  padding: 0;
}

.b2b .mc-actions > .search-btn {
  display: flex;
  flex: 0 0 150px;
  margin: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .multicity-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1.5px dashed color-mix(in srgb, var(--primary), #fff 50%);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.b2b :is(.hero-section, .modify-area) .search-form .multicity-btn:hover {
  color: var(--on-primary);
  background: var(--primary);
}

.b2b :is(.hero-section, .modify-area) .search-form .multicity-btn i {
  position: static;
  display: inline;
  font-size: 14px;
  color: inherit;
}

/* -----------------------------------------------------
   7. POPUPS — dropdown menus, autocomplete, datepicker
   Popups are placed above the header (1030) and below modals (1055).
----------------------------------------------------- */
.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu {
  z-index: 1045;
  min-width: 280px;
  max-height: none;
  margin-top: 6px !important;
  padding: 10px;
  overflow: visible;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, 0.45);
}

/* search dropdowns open below their field (see b2b-search.js: data-bs-display=static) */
.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu[data-bs-popper="static"] {
  top: 100%;
  left: 0;
  right: auto;
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu-end[data-bs-popper="static"],
.b2b :is(.hero-section, .modify-area) .search-form .row > [class*="col"]:last-child .dropdown-menu[data-bs-popper="static"] {
  left: auto;
  right: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu .dropdown-item {
  padding: 8px 6px;
  white-space: normal;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu .dropdown-item:last-child {
  border-bottom: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu h6 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu p,
.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu small {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-qty button,
.b2b :is(.hero-section, .modify-area) .search-form .traveller-menu button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 0;
  border-radius: 8px;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-qty button:hover,
.b2b :is(.hero-section, .modify-area) .search-form .traveller-menu button:not(.btn):hover {
  color: var(--on-primary);
  background: var(--primary);
}

.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu .form-select,
.b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu select.form-control {
  padding: 5px 26px 5px 10px;
  font-size: 13px;
  background-color: var(--surface);
  background-position: right 8px center;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* cabin class radios inside the travellers menu stay compact */
.b2b :is(.hero-section, .modify-area) .search-form .passenger-class-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-class-info .form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-class-info .form-check-input {
  float: none;
  margin: 0;
}

.b2b :is(.hero-section, .modify-area) .search-form .passenger-class-info label {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

/* jQuery UI autocomplete — every module, whatever class its script adds */
.ui-autocomplete.ui-menu {
  z-index: 1046 !important;
  max-height: 320px;
  margin-top: 6px !important;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-ui, inherit) !important;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, 0.45);
}

.ui-autocomplete.ui-menu:not(.tts-autocomplete) {
  max-width: 460px;
}

.ui-autocomplete .ui-menu-item {
  margin: 0;
  list-style: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
  margin: 0 !important;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--heading);
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 9px;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover {
  color: var(--heading);
  background: var(--primary-soft) !important;
}

.ui-autocomplete .ui-autocomplete-category {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* jQuery UI datepicker */
#ui-datepicker-div.ui-datepicker {
  width: 270px;
  margin-top: 6px;
  padding: 10px;
  font-family: var(--font-ui, inherit);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, 0.45);
}

#ui-datepicker-div .ui-datepicker-header {
  padding: 6px 0;
  color: var(--heading);
  background: transparent;
  border: 0;
}

#ui-datepicker-div .ui-datepicker-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--heading);
}

#ui-datepicker-div .ui-datepicker-title select {
  padding: 2px 4px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
  top: 4px;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

#ui-datepicker-div .ui-datepicker-prev {
  left: 2px;
}

#ui-datepicker-div .ui-datepicker-next {
  right: 2px;
}

#ui-datepicker-div .ui-datepicker-prev:hover,
#ui-datepicker-div .ui-datepicker-next:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

#ui-datepicker-div table {
  margin: 4px 0 0;
  font-size: 12.5px;
}

#ui-datepicker-div th {
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

#ui-datepicker-div td {
  padding: 1px;
}

#ui-datepicker-div td a,
#ui-datepicker-div td span {
  padding: 6px 0;
  font-weight: 600;
  text-align: center;
  color: var(--heading);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

#ui-datepicker-div td a:hover {
  background: var(--primary-soft);
}

#ui-datepicker-div td.ui-datepicker-today a {
  color: var(--primary);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

#ui-datepicker-div td a.ui-state-active,
#ui-datepicker-div td.ui-datepicker-current-day a {
  color: var(--on-primary);
  background: var(--primary);
}

#ui-datepicker-div td.ui-state-disabled span {
  color: color-mix(in srgb, var(--text-muted), #fff 45%);
}

/* -----------------------------------------------------
   8. RESPONSIVE
----------------------------------------------------- */
@media (max-width: 1199px) {
  .b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .search-btn,
  .b2b :is(.hero-section, .modify-area) .car-search form > .search-btn,
  .b2b .mc-actions > .search-btn {
    flex-basis: 130px;
  }

  .b2b :is(.hero-section, .modify-area) .search-form .form-control {
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  .b2b .hero-section {
    padding: 22px 0 26px;
  }

  .b2b .hero-section .search_tabs {
    justify-content: flex-start;
  }

  .b2b .hero-section .search_tabs li a {
    width: 76px;
    height: 58px;
    font-size: 11.5px;
  }

  .b2b .hero-section .search-wrapper > .tab-content {
    padding: 32px 14px 14px;
  }

  .b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"],
  .b2b :is(.hero-section, .modify-area) .car-search form.tts__form_wrapper:not(.hide) {
    flex-direction: column;
  }

  .b2b :is(.hero-section, .modify-area) [class*="-search-wrapper"] > .search-btn,
  .b2b :is(.hero-section, .modify-area) .car-search form > .search-btn {
    flex-basis: auto;
  }

  .b2b :is(.hero-section, .modify-area) .search-form .search-btn .theme-btn {
    min-height: 50px;
  }

  .b2b-search-tagline {
    display: none;
  }

  .b2b :is(.hero-section, .modify-area) [multicity-addmore] .flight-search-item::before {
    align-self: flex-start;
    margin-top: 18px;
  }

  .b2b .mc-actions {
    padding-left: 0;
  }

  .b2b .mc-actions > .mc-pax,
  .b2b .mc-actions > .search-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  /* From above To: swap button sits on the gap, right side */
  .b2b :is(.hero-section, .modify-area) .search-form-swap {
    top: -5px;
    right: 14px;
    left: auto;
    transform: translateY(-50%) rotate(90deg);
  }

  .b2b :is(.hero-section, .modify-area) .search-form-journey > .search-form-swap {
    top: 50%;
    left: -16px;
    right: auto;
    transform: translateY(-50%);
  }
}

@media (max-width: 575px) {
  .b2b-hero-head p {
    display: none;
  }

  .b2b .hero-section .search-nav {
    padding: 0 6px;
  }

  .b2b :is(.hero-section, .modify-area) .makeflex .form-check-border {
    padding-right: 0;
    border-right: 0 !important;
  }

  .b2b :is(.hero-section, .modify-area) .search-form .dropdown-menu {
    min-width: min(300px, calc(100vw - 40px));
  }
}
