/* ==========================================================================
   Flight Results v2 — scoped to .hv2-flight-results-page
   Requires home-v2.css :root tokens
   ========================================================================== */

.hv2-flight-results-page {
  background: #fff;
  font-family: var(--hv2-font-family, 'Plus Jakarta Sans', sans-serif);
}

.hv2-flight-results-wrap .container {
  max-width: 1240px;
}

/* ---------- Reusable: layout ---------- */
.hv2-results-search-wrap {
  margin-bottom: 1rem;
}

.hv2-results-search-card {
  background: #f8f9fa;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  box-shadow: none;
  padding: 0.85rem 1rem;
}

.hv2-results-sidebar .hv2-filter-panel {
  background: var(--hv2-card, #fff);
  border: 1px solid var(--hv2-border, #e5e7eb);
  border-radius: var(--hv2-radius-lg, 16px);
  box-shadow: var(--hv2-shadow);
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.hv2-results-main {
  min-width: 0;
}

/* ---------- Reusable: chips ---------- */
.hv2-special-fares {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hv2-special-fares__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hv2-muted, #6b7280);
  margin-right: 0.25rem;
}

/* ---------- Figma-style modify search bar (desktop) ---------- */
.hv2-modify-search-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin-bottom: 0;
}

.hv2-modify-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 0.35rem 0.85rem;
  background: none;
  border: none;
  border-right: 1px solid #dce4ef;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hv2-modify-field:last-of-type {
  border-right: none;
}

.hv2-modify-search-bar > .hv2-modify-field--wide {
  flex: 1.25 1 0;
}

.hv2-modify-search-bar--multicity .hv2-modify-multicity-segments {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  gap: 0;
  border-right: 1px solid #dce4ef;
  scrollbar-width: thin;
}

.hv2-modify-search-bar--multicity .hv2-modify-field--segment {
  flex: 0 0 auto;
  min-width: 9rem;
  border-right: 1px solid #dce4ef;
}

.hv2-modify-search-bar--multicity .hv2-modify-field--segment:last-child {
  border-right: none;
}

.hv2-modify-field:hover,
.hv2-modify-field:focus-visible {
/*  border-color: #2563eb;*/
/*  background: #fff;*/
  outline: none;
}

.hv2-modify-field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8E8E8E;
  margin-bottom: 0.2rem;
}

.hv2-modify-field__value {
  font-size: 18px;
  font-weight: 600;
  color: #1F1F1F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hv2-modify-field__placeholder {
  color: var(--hv2-muted, #6b7280);
  font-weight: 500;
}

.hv2-modify-field--muted .hv2-modify-field__value {
  font-weight: 500;
}

.hv2-modify-field--wide {
/*  flex: 1.35 1 0;*/
}

.hv2-modify-field__icon {
  margin-right: 0.35rem;
  color: #1f1f1f;
  font-size: 0.85rem;
}

.hv2-modify-field__icon--calendar {
  color: #3b82f6;
}

.hv2-modify-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hv2-muted, #6b7280);
  padding: 0 0.15rem;
  flex: 0 0 auto;
}

.hv2-modify-search-btn {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 7.25rem;
  margin-left: 0.65rem;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  border-radius: 10px !important;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  white-space: nowrap;
  border-right: none !important;
}

.hv2-modify-search-btn:hover,
.hv2-modify-search-btn:focus {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.hv2-chip {
  border: 1px solid var(--hv2-border, #e5e7eb);
  background: #fafafa;
  color: var(--hv2-text, #111827);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
}

.hv2-chip--active {
  background: #e0f2fe;
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Mobile compact modify strip */
.hv2-modify-search-xs {
  width: 100%;
}

.hv2-modify-search-xs h3 {
  width: 50%;
  float: left;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  margin: 0;
}

.hv2-modify-search-xs h3 .fa-arrow-right {
  position: absolute;
  right: -7px;
  top: 0;
  border: 0;
  padding: 0;
}

.hv2-modify-search-xs span {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--hv2-muted, #6b7280);
}

/* ---------- Results meta ---------- */
.hv2-results-meta {
  margin-bottom: 0.75rem;
}

.hv2-route-summary {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hv2-text, #111827);
}

.hv2-results-count .tts__showing__result__heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hv2-muted, #6b7280);
}

/* ---------- Figma: sort toolbar card ---------- */
.hv2-results-toolbar {
  margin-bottom: 0.75rem;
  overflow: visible;
}

.hv2-sort-toolbar-card {
  background: var(--hv2-card, #fff);
  border: 1px solid var(--hv2-border, #e5e7eb);
  border-radius: var(--hv2-radius-lg, 16px);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  padding: 0.35rem 1rem 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hv2-sort-tabs-wrap--figma {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
}

.hv2-sort-tabs {
  display: flex;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.hv2-sort-tab {
  flex: 1 1 0;
  min-width: 110px;
  max-width: 200px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.85rem 1rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.hv2-sort-tab:hover {
  background: #f9fafb;
}

.hv2-sort-tab--active {
  border-bottom-color: #2563eb;
  background: transparent;
  box-shadow: none;
}

.hv2-sort-tab__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hv2-muted, #6b7280);
}

.hv2-sort-tab--active .hv2-sort-tab__label {
  color: #2563eb;
}

.hv2-sort-tab__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hv2-muted, #9ca3af);
  margin-top: 0.25rem;
  white-space: nowrap;
}

.hv2-sort-tab--active .hv2-sort-tab__meta {
  color: #2563eb;
  font-weight: 600;
}

.hv2-sort-dropdown {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-bottom: 0.65rem;
}

.hv2-sort-dropdown__btn {
  background: #fff !important;
  border: 1px solid var(--hv2-border, #e5e7eb) !important;
  border-radius: 999px !important;
  color: var(--hv2-text, #111827) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.9rem !important;
  box-shadow: none !important;
}

.hv2-sort-dropdown__btn::after {
  margin-left: 0.35rem;
}

.hv2-sort-dropdown__value {
  font-weight: 600;
  color: var(--hv2-text, #111827);
}

.hv2-legacy-sort-bar {
  display: none !important;
}

/* ---------- Figma: promo banner ---------- */
.hv2-promo-banner {
  margin-bottom: 1rem;
}

.hv2-promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--hv2-radius-lg, 16px);
  padding: 0.9rem 1.25rem;
}

.hv2-promo-banner__brand {
  flex: 0 0 auto;
}

.hv2-promo-banner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #fde68a;
  font-size: 0.65rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.hv2-promo-banner__text {
  flex: 1 1 auto;
  min-width: 0;
}

.hv2-promo-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1.35;
}

.hv2-promo-banner__sub {
  font-size: 0.8rem;
  color: #b45309;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.hv2-promo-banner__sub strong {
  font-weight: 700;
  color: #92400e;
}

.hv2-promo-banner__cta {
  flex: 0 0 auto;
  background: #9a3412 !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.15rem !important;
  text-decoration: none;
  white-space: nowrap;
}

.hv2-promo-banner__cta:hover {
  background: #7c2d12 !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .hv2-sort-tabs {
    flex-wrap: wrap;
    width: 100%;
  }

  .hv2-sort-tab {
    flex: 1 1 33.333%;
    min-width: 0;
    max-width: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hv2-sort-tab__meta {
    font-size: 0.7rem;
    white-space: normal;
  }

  .hv2-sort-dropdown {
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .hv2-sort-dropdown .dropdown {
    width: 100%;
  }

  .hv2-sort-dropdown__btn {
    width: 100%;
    justify-content: space-between;
    display: flex !important;
    align-items: center;
  }

  .hv2-promo-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hv2-promo-banner__cta {
    align-self: stretch;
    text-align: center;
  }
}

/* ---------- Reusable: buttons ---------- */
.hv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  line-height: 1.2;
  text-decoration: none;
}

.hv2-btn--danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.hv2-btn--danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.hv2-btn--outline {
  background: #fff;
  border-color: #2563eb;
  color: #2563eb;
}

.hv2-btn--ghost {
  background: #fff;
  border: 1px solid var(--hv2-border, #e5e7eb);
  color: var(--hv2-text, #111827);
}

.hv2-btn--link {
  background: transparent !important;
  border: none !important;
  color: #2563eb !important;
  box-shadow: none !important;
}

.hv2-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/* ---------- Reusable: flight card (Figma) ---------- */
.hv2-flight-card {
  background: var(--hv2-card, #fff);
  border: 1px solid var(--hv2-border, #e5e7eb);
  border-radius: var(--hv2-radius-lg, 16px);
  box-shadow: var(--hv2-shadow);
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.hv2-flight-card__body {
  padding: 1.25rem 1.5rem 0;
}

.hv2-flight-card-col {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hv2-flight-card__route-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hv2-flight-card__route-inner .hv2-flight-card__top {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 200px;
}

.hv2-flight-card__route-inner .hv2-flight-timeline {
  flex: 1 1 280px;
  min-width: 0;
  margin-top: 0;
}

.hv2-flight-airline .airline-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hv2-flight-airline .airline-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hv2-flight-airline__text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hv2-text, #111827);
}

.hv2-flight-code {
  font-size: 0.75rem;
  color: var(--hv2-muted, #6b7280);
  font-weight: 500;
}

.hv2-flight-timeline {
  display: grid;
  grid-template-columns: 1fr minmax(100px, 1.5fr) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.hv2-flight-timeline__time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hv2-text, #111827);
  line-height: 1.2;
  display: block;
}

.hv2-flight-timeline__city {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hv2-muted, #6b7280);
  display: block;
}

.hv2-flight-results-page .hv2-flight-timeline__date {
  display: none !important;
}

.hv2-flight-timeline__mid {
  padding: 0 0.35rem;
}

.hv2-flight-timeline__duration {
  display: block;
  font-size: 0.75rem;
  color: var(--hv2-muted, #6b7280);
  margin-bottom: 0.35rem;
}

.hv2-flight-timeline__stops {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hv2-muted, #6b7280);
  margin-top: 0.35rem;
}

.hv2-flight-timeline__stops--nonstop {
  color: #16a34a !important;
}

.hv2-flight-timeline__line.arrow-allright,
.hv2-flight-timeline__line.arrowclass-loader-flight-search {
  display: block;
  width: 100%;
  height: 2px;
  background: #d1d5db;
  margin: 0.25rem 0;
  position: relative;
}

.hv2-flight-timeline__line.arrow-allright::before,
.hv2-flight-timeline__line.arrowclass-loader-flight-search::before,
.hv2-flight-timeline__line.arrow-allright::after,
.hv2-flight-timeline__line.arrowclass-loader-flight-search::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2563eb;
}

.hv2-flight-timeline__line.arrow-allright::before,
.hv2-flight-timeline__line.arrowclass-loader-flight-search::before {
  left: 0;
}

.hv2-flight-timeline__line.arrow-allright::after,
.hv2-flight-timeline__line.arrowclass-loader-flight-search::after {
  right: 0;
}

.hv2-flight-card__book {
  border-left: 1px solid var(--hv2-border, #e5e7eb);
  padding-left: 1.25rem;
}

.hv2-flight-card__price-box {
  text-align: left;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hv2-flight-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hv2-flight-card__badges .hv2-badge {
  margin-bottom: 0;
}

.hv2-flight-card__badges .hv2-save-badge {
  margin-bottom: 0;
}

.hv2-flight-card__price {
  margin-bottom: 0.75rem;
}

.hv2-price-amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--hv2-text, #111827) !important;
  line-height: 1.1;
}

.hv2-see-other-prices {
  color: #ef4444 !important;
  border-color: transparent !important;
  background: transparent !important;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: none !important;
  padding: 0.35rem 0 !important;
}

.hv2-see-other-prices:hover,
.hv2-see-other-prices:focus {
  color: #dc2626 !important;
  background: transparent !important;
}

.hv2-see-other-prices__arrow {
  margin-left: 0.15rem;
}

.hv2-fare-panel:not(.hv2-fare-panel--open) {
  display: none;
}

.hv2-fare-panel.hv2-fare-panel--open {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--hv2-border, #e5e7eb);
}

.hv2-flight-card__body {
  padding: 1.25rem 1.5rem 0;
}

.hv2-flight-card__footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem -1.5rem 0;
  padding: 10px 10px;
  border-top: 1px solid var(--hv2-border, #e5e7eb);
  background: #FAFAFA;
}

.hv2-flight-card__footer-details {
  color: #2563eb !important;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 0 0 auto;
  text-decoration: none;
}

.hv2-flight-card__footer-details:hover,
.hv2-flight-card__footer-details:focus,
.hv2-flight-card__footer-details--open {
  color: #1d4ed8 !important;
/*  text-decoration: underline;*/
}

.hv2-flight-card__footer-details-icon {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hv2-flight-card__footer-meta {
  font-size: 0.75rem;
  color: var(--hv2-muted, #9ca3af);
  text-align: right;
  flex: 1 1 auto;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv2-flight-card__footer-promo {
  color: var(--hv2-muted, #9ca3af);
}

.hv2-flight-card__footer-notes {
  display: none !important;
}

.hv2-flight-results-page .flight-rowmain.hv2-flight-card .flight-detail {
  margin: 0;
  padding: 0 1.5rem 1rem;
  border-top: 1px solid var(--hv2-border, #e5e7eb);
  background: #fafafa;
}

.hv2-flight-results-page .flight-rowmain.hv2-flight-card .flight-detail .flight-list-tab {
  background: #fff;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 991.98px) {
  .hv2-flight-card__body {
    padding: 1rem 1rem 0;
  }

  .hv2-flight-card__route-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hv2-flight-card__route-inner .hv2-flight-card__top {
    max-width: none;
  }

  .hv2-flight-card__book {
    border-left: none;
    border-top: 1px solid var(--hv2-border, #e5e7eb);
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .hv2-flight-card__badges {
    justify-content: flex-start;
  }

  .hv2-flight-timeline {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hv2-flight-timeline__point.text-end {
    text-align: center !important;
  }

  .hv2-flight-card__footer {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .hv2-flight-card__footer-meta {
    text-align: left;
    white-space: normal;
  }

  .hv2-flight-results-page .flight-rowmain.hv2-flight-card .flight-detail {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.hv2-price-label {
  font-size: 0.75rem;
  color: var(--hv2-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Reusable: badges / tags ---------- */
.hv2-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.hv2-badge--gold {
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  text-transform: capitalize;
  font-size: 0.7rem;
}

.hv2-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.35rem;
}

.hv2-tag--soft {
  background: #f3f4f6;
  color: #374151;
}

.hv2-tag--warn {
  background: #fff7ed;
  color: #c2410c;
}

/* ---------- Sidebar filter overrides (flight_filter.php unchanged) ---------- */
.hv2-results-sidebar .tts__filter.booking-sidebar {
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.hv2-results-sidebar .widget .title,
.hv2-results-sidebar .widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hv2-text, #111827);
  font-family: var(--hv2-font-family, inherit);
}

.hv2-results-sidebar .tts__fliter__reset {
  color: #2563eb;
  font-size: 0.8125rem;
  text-decoration: none;
}

.hv2-results-sidebar .tts__flight__timing {
  border-radius: 10px;
  border-color: var(--hv2-border, #e5e7eb);
}

.hv2-results-sidebar .tts-filter-select {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}

/* ---------- Figma sidebar filters (CHANGE #1–#8, flight_filter.php unchanged) ---------- */
.hv2-filter-panel--figma {
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

.hv2-filter-panel--figma .hv2-filter-panel__body {
  min-width: 0;
}

.hv2-filter-panel--figma #nav-filterob,
.hv2-filter-panel--figma #nav-filterib {
  display: flex;
  flex-direction: column;
}

.hv2-filter-panel--figma #nav-filterob > .widget.filters,
.hv2-filter-panel--figma #nav-filterib > .widget.filters {
  order: 0;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(2),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(2) {
  order: 3;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(3),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(3) {
  order: 2;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(4),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(4) {
  order: 1;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(5),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(5) {
  order: 4;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(6),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(6) {
  order: 5;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(7),
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(7) {
  order: 6;
}

.hv2-filter-panel--figma #nav-filterob > .widget:not(.filters),
.hv2-filter-panel--figma #nav-filterib > .widget:not(.filters) {
  margin-bottom: 1.15rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:last-child,
.hv2-filter-panel--figma #nav-filterib > .widget:last-child {
  margin-bottom: 0;
}

/* Figma section titles (visual only; original .widget-title text preserved in DOM) */
.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(2) .widget-title,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(2) .widget-title {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.65rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(2) .widget-title::before,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(2) .widget-title::before {
  content: 'Price Range';
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv2-text, #111827);
  display: block;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(3) .widget-title,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(3) .widget-title {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.65rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(3) .widget-title::before,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(3) .widget-title::before {
  content: 'Ticket Type';
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv2-text, #111827);
  display: block;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(4) .widget-title,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(4) .widget-title {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.65rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(4) .widget-title::before,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(4) .widget-title::before {
  content: 'Stops';
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv2-text, #111827);
  display: block;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(5) .widget-title,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(5) .widget-title {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.65rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(5) .widget-title::before,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(5) .widget-title::before {
  content: 'Departure Time';
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv2-text, #111827);
  display: block;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(6) .widget-title,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(6) .widget-title {
  font-size: 0;
  line-height: 0;
  margin-bottom: 0.65rem;
}

.hv2-filter-panel--figma #nav-filterob > .widget:nth-child(6) .widget-title::before,
.hv2-filter-panel--figma #nav-filterib > .widget:nth-child(6) .widget-title::before {
  content: 'Arrival Time';
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv2-text, #111827);
  display: block;
}

/* Stops + Ticket Type checklists */
.hv2-filter-panel--figma .airlines-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hv2-filter-panel--figma .airlines-cat-list li {
  margin-bottom: 0.45rem;
}

.hv2-filter-panel--figma .airlines-cat-list li:last-child {
  margin-bottom: 0;
}

.hv2-filter-panel--figma .airlines-cat-list .tts__checkbox__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.35;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hv2-text, #111827);
  cursor: pointer;
}

.hv2-filter-panel--figma .airlines-cat-list .tts__checkbox__input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.hv2-filter-panel--figma .airlines-cat-list .tts__checkbox__input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Price range slider */
.hv2-filter-panel--figma .price_filter .ui-slider.ui-slider-horizontal.ui-widget.ui-widget-content.ui-corner-all {
  background: #e5e7eb !important;
  border: none !important;
  border-radius: 999px !important;
  height: 6px !important;
  width: 100% !important;
  margin: 0.25rem 0 0.75rem !important;
}

.hv2-filter-panel--figma .price_filter .ui-slider .ui-slider-range {
  background: #2563eb !important;
  border-radius: 999px !important;
}

.hv2-filter-panel--figma .price_filter .ui-slider-handle.ui-state-default.ui-corner-all {
  width: 18px !important;
  height: 18px !important;
  top: 50% !important;
  margin-top: -9px !important;
  margin-left: -9px !important;
  background: #2563eb !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35) !important;
  cursor: grab !important;
}

.hv2-filter-panel--figma .price_slider_amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.hv2-filter-panel--figma .price_slider_amount .price_input {
  flex: 1 1 50%;
  margin: 0;
}

.hv2-filter-panel--figma .price_slider_amount .price_input:last-child {
  text-align: right;
}

.hv2-filter-panel--figma .price_slider_amount input[type='text'],
.hv2-filter-panel--figma .price_slider_amount input.left-price-return,
.hv2-filter-panel--figma .price_slider_amount input.right-price-return {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hv2-muted, #6b7280);
  padding: 0;
  box-shadow: none;
}

.hv2-filter-panel--figma .price_slider_amount .price_input:last-child input,
.hv2-filter-panel--figma .price_slider_amount input.right-price-return {
  text-align: right;
}

/* Departure / Arrival time — 2x2 grid */
.hv2-filter-panel--figma .tts__nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
}

.hv2-filter-panel--figma .tts__nav__tabs .nav-item {
  width: calc(50% - 0.25rem);
  flex: 0 0 calc(50% - 0.25rem);
  max-width: calc(50% - 0.25rem);
  text-align: center;
  margin: 0;
  padding: 0;
}

.hv2-filter-panel--figma .tts__flight__timing {
  height: auto !important;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--hv2-border, #e5e7eb) !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 0.5rem 0.35rem !important;
  cursor: pointer;
  line-height: 1.2;
}

.hv2-filter-panel--figma .tts__flight__timing img {
  width: 22px !important;
  height: auto;
  margin: 0 auto 0.25rem !important;
  display: block !important;
}

.hv2-filter-panel--figma .tts__nav__tabs__span {
  font-size: 0.68rem !important;
  font-weight: 600;
  color: var(--hv2-text, #111827);
  display: block;
  line-height: 1.25;
  white-space: normal;
}

.hv2-filter-panel--figma label.tts__flight__timing.tts-filter-select {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}

.hv2-filter-panel--figma label.tts__flight__timing.tts-filter-select::after {
  content: '\2713';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Airlines row — logo | name | price (Figma; checkbox hidden, row clickable) */
.hv2-filter-panel--figma .hv2-airline-filter-list,
.hv2-results-sidebar .hv2-airline-filter-list {
  margin-bottom: 0 !important;
  padding: 0;
  list-style: none;
}

.hv2-filter-panel--figma .hv2-airline-filter-list > li,
.hv2-results-sidebar .hv2-airline-filter-list > li {
  margin-bottom: 0.5rem;
}

.hv2-filter-panel--figma .hv2-airline-filter-list > li:last-child,
.hv2-results-sidebar .hv2-airline-filter-list > li:last-child {
  margin-bottom: 0;
}

.hv2-filter-panel--figma .hv2-airline-filter-row,
.hv2-results-sidebar .hv2-airline-filter-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.35;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  margin-bottom: 0;
}

.hv2-filter-panel--figma .hv2-airline-filter-row--selected,
.hv2-results-sidebar .hv2-airline-filter-row--selected {
  background: #eff6ff;
}

.hv2-filter-panel--figma .hv2-airline-filter__input,
.hv2-results-sidebar .hv2-airline-filter__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.hv2-filter-panel--figma .hv2-airline-filter__img,
.hv2-results-sidebar .hv2-airline-filter__img {
  order: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.hv2-filter-panel--figma .hv2-airline-filter__logo,
.hv2-results-sidebar .hv2-airline-filter__logo {
  display: none !important;
}

.hv2-filter-panel--figma .hv2-airline-filter__name,
.hv2-results-sidebar .hv2-airline-filter__name {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  color: var(--hv2-text, #111827);
}

.hv2-filter-panel--figma .hv2-airline-price,
.hv2-results-sidebar .hv2-airline-price {
  order: 3;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hv2-muted, #6b7280);
  white-space: nowrap;
}

/* ---------- Modify search bar inside card ---------- */
.hv2-results-search-card .hotal-filter-card {
  background: transparent;
  border: none;
  padding: 0;
}

.hv2-results-search-card .modifylist-box {
  border-radius: 10px;
  border: 1px solid var(--hv2-border, #e5e7eb);
}

.hv2-results-search-card .btn.modifysearch {
  background: #ef4444;
  border-color: #ef4444;
  border-radius: 8px;
  font-weight: 600;
/*  width: 100%;*/
}

/* ---------- Empty / error ---------- */
.hv2-empty-card {
  background: var(--hv2-card, #fff);
  border-radius: var(--hv2-radius-lg, 16px);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--hv2-shadow);
}

/* Keep existing dropdown icon behaviour */
.hv2-flight-results-page .flight__dropdown__icon {
  background-color: #6b7280;
}

/* ==========================================================================
   Overrides — beat custom.css / flight_result.css (Figma layout)
   ========================================================================== */

.hv2-flight-results-page {
  min-height: 100vh;
}

.hv2-flight-results-wrap {
  background: transparent;
}

.hv2-filter-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hv2-border, #e5e7eb);
}

.hv2-filter-panel__reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.hv2-results-sidebar .widget.filters .title,
.hv2-results-sidebar .widget.filters > span {
  display: none !important;
}

.hv2-flight-results-page .flight-rowmain.hv2-flight-card {
  border: 1px solid var(--hv2-border, #e5e7eb) !important;
  border-radius: var(--hv2-radius-lg, 16px) !important;
  box-shadow: var(--hv2-shadow) !important;
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
  background: #fff !important;
}

.hv2-flight-results-page .flight-rowmain .flight-leftresult h5 {
  margin-bottom: 0;
  font-weight: 600;
}

.hv2-flight-results-page .flight-rowmain .flight-leftresult .flight-city {
  color: var(--hv2-muted, #6b7280) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

.hv2-flight-results-page .flight-rowmain .flight-leftresult .flight-durtion {
  color: #9ca3af !important;
  font-size: 0.72rem !important;
}

.hv2-flight-card__book {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hv2-save-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.hv2-flight-results-page .flight-book.hv2-btn--danger {
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: #ef4444 !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08) !important;
  color: #fff !important;
  text-transform: capitalize;
}

.hv2-flight-results-page .flight-book.hv2-btn--danger:hover,
.hv2-flight-results-page .flight-book.hv2-btn--danger:focus {
  background: #dc2626 !important;
  color: #fff !important;
}

.hv2-fare-panel {
  margin-top: 0.25rem;
}

.hv2-fare-row {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.hv2-fare-row:last-child {
  border-bottom: none;
}

.hv2-fare-option-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.hv2-fare-option {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}

.hv2-fare-option strong {
  font-size: 0.95rem;
  color: var(--hv2-text, #111827);
}

.hv2-fare-option small {
  color: var(--hv2-muted, #6b7280);
  font-size: 0.75rem;
}

.hv2-fare-option .label-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.7rem;
}

.hv2-fare-more {
  margin: 0.5rem auto 0;
  left: 50% !important;
  transform: translateX(-50%) rotate(45deg);
}

.hv2-results-search-card .modify_list {
  margin-bottom: 0;
}

.hv2-results-search-card .modifylist-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.hv2-results-search-card .modifylist-box h5 span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hv2-muted, #6b7280);
}

.hv2-flight-results-page .mobile-flex {
  display: block !important;
}

.hv2-flight-results-page .indicator-content {
  margin-top: 0.75rem;
}

.hv2-flight-segment-divider {
  border-color: var(--hv2-border, #e5e7eb);
  margin: 1rem 0;
}

@media (max-width: 991.98px) {
  .hv2-results-sidebar {
    margin-bottom: 1rem;
  }

  .hv2-filter-panel {
    position: relative;
    top: 0;
  }
}