/* Flight search results — premium listing layout */

.search-results-page {
  background: #f4f6fb;
  padding-bottom: 3rem;
}

.search-summary {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
  color: #fff;
  padding: 1.35rem 0 1.5rem;
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.22);
}

.search-summary__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.search-summary__city {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
}

.search-summary__code {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.85;
}

.search-summary__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.search-summary__arrow .zmdi {
  font-size: 1.2rem;
}

.search-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.search-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
}

.search-summary__chip .zmdi {
  font-size: 0.95rem;
  opacity: 0.9;
}

.search-summary__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-summary__cta-phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.search-summary__cta-phone:hover {
  color: #f3e8ff;
  text-decoration: none;
}

.search-summary__modify {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.search-summary__modify:hover {
  background: #fff;
  color: #5b21b6;
}

.search-results-layout {
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .search-results-layout.container {
    max-width: 1280px;
  }
}

@media (min-width: 1200px) {
  .search-results-layout.container {
    max-width: 1440px;
  }

  .search-results-grid {
    display: grid;
    grid-template-columns: 180px 210px minmax(820px, 1fr) 180px;
    gap: 1rem;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
  }

  .search-results-grid > [class*="col-"] {
    flex: none;
    width: auto !important;
    max-width: none !important;
    padding-left: 0;
    padding-right: 0;
  }
}

.search-results-sidebar__card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

.search-results-sidebar__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.85rem;
}

.search-results-sidebar__group {
  margin-bottom: 1rem;
}

.search-results-sidebar__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.search-results-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: #334155;
}

.search-results-help {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 1rem;
}

.search-results-help strong {
  display: block;
  color: #5b21b6;
  margin-bottom: 0.35rem;
}

.search-results-help a {
  color: #6d28d9;
  font-weight: 700;
}

.search-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-results-count {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.search-results-count span {
  color: #6d28d9;
}

.search-results-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-results-sort label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.search-results-sort select {
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  min-width: 150px;
}

.search-results-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #475569;
}

.search-results-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.search-results-trust .zmdi {
  color: #7c3aed;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.flight-result-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.flight-result-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 10px 28px rgba(91, 33, 182, 0.1);
  transform: translateY(-1px);
}

.flight-result-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.flight-result-card__airline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.flight-result-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.flight-result-card__airline-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.flight-result-card__flight-no {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.flight-result-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.flight-result-card__badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flight-result-card__badge--direct {
  background: #dcfce7;
  color: #15803d;
}

.flight-result-card__badge--stops {
  background: #fef3c7;
  color: #b45309;
}

.flight-result-card__badge--cabin {
  background: #ede9fe;
  color: #6d28d9;
}

.flight-result-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.flight-result-card__timeline {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(100px, 1.4fr) minmax(72px, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.flight-result-card__time-block {
  text-align: center;
}

.flight-result-card__time {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.flight-result-card__airport {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.15rem;
}

.flight-result-card__path {
  text-align: center;
  padding: 0 0.25rem;
}

.flight-result-card__duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.flight-result-card__path-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, #c4b5fd 0%, #7c3aed 50%, #c4b5fd 100%);
  border-radius: 2px;
}

.flight-result-card__path-line::before,
.flight-result-card__path-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  transform: translateY(-50%);
}

.flight-result-card__path-line::before {
  left: 0;
}

.flight-result-card__path-line::after {
  right: 0;
}

.flight-result-card__path-icon {
  margin-top: 0.35rem;
  color: #7c3aed;
  font-size: 1rem;
}

.flight-result-card__pricing {
  text-align: right;
  min-width: 150px;
}

.flight-result-card__price {
  font-size: 1.65rem;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1.1;
}

.flight-result-card__price-note {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.15rem;
}

.flight-result-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
  width: 100%;
}

.flight-result-card__select {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  width: 100%;
  min-width: 0;
}

.flight-result-card__call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.75rem;
  color: #1a1a1a;
  background: linear-gradient(180deg, #ffeb3b 0%, #ffc107 100%);
  border: 2px solid #f59e0b;
  text-decoration: none;
  white-space: nowrap;
  animation: flight-call-pulse 2.8s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
}

.flight-result-card__call-btn:hover,
.flight-result-card__call-btn:focus {
  color: #111;
  text-decoration: none;
  background: linear-gradient(180deg, #fffbeb 0%, #fcd34d 100%);
  animation: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.flight-result-card__call-btn .zmdi {
  font-size: 1rem;
}

@keyframes flight-call-pulse {
  0%, 100% {
    background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  }
  50% {
    background: linear-gradient(180deg, #fffbeb 0%, #fcd34d 100%);
    border-color: #d97706;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.32);
  }
}

.flight-result-card__best {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-results-empty,
.search-results-alert {
  border-radius: 14px;
  border: none;
  padding: 1.25rem 1.35rem;
}

.search-results-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.search-results-empty .zmdi {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.search-results-footer-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.search-results-footer-note a {
  color: #6d28d9;
  font-weight: 600;
}

.search-results-mobile-help {
  display: none;
}

@media (max-width: 991.98px) {
  .search-results-mobile-help {
    display: block;
    margin-bottom: 1rem;
  }

  .search-summary__actions {
    width: 100%;
  }

  .search-summary__modify {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .flight-result-card__body {
    grid-template-columns: 1fr;
  }

  .flight-result-card__timeline {
    grid-template-columns: 1fr auto 1fr;
  }

  .flight-result-card__pricing {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    width: 100%;
  }

  .flight-result-card__actions {
    margin-top: 0;
    flex: 1 1 100%;
    min-width: 160px;
  }

  .flight-result-card__call-btn {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.25;
  }

  .search-results-toolbar {
    align-items: stretch;
  }

  .search-results-sort {
    width: 100%;
  }

  .search-results-sort select {
    flex: 1;
  }
}

/* Search side promo banners (left / right rails) */

.search-results-rail--left,
.search-results-rail--right {
  position: relative;
}

.search-side-banners {
  position: sticky;
  top: 1rem;
}

.search-side-banners--right {
  margin-top: 0;
}

.search-side-banner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.search-side-banners--left .search-side-banner + .search-side-banner {
  margin-top: 1rem;
}

.search-side-banner__header {
  padding: 0.85rem 0.75rem 2.5rem;
  background: linear-gradient(180deg, var(--banner-gradient-top, #dbeafe) 0%, #fff 100%);
  text-align: center;
}

.search-side-banner__header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--banner-header-color, #5b21b6);
  line-height: 1.25;
}

.search-side-banner__body {
  padding: 0 0.85rem 0.85rem;
  margin-top: -1.75rem;
  text-align: center;
}

.search-side-banner__avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.search-side-banner__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.search-side-banner__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ede9fe;
  color: #6d28d9;
}

.search-side-banner__avatar--placeholder .zmdi {
  font-size: 2.5rem;
}

.search-side-banner__online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.search-side-banner__headline {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.search-side-banner__divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.75rem 0;
}

.search-side-banner__phone-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  color: #64748b;
}

.search-side-banner__phone {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.search-side-banner__phone .phone-flash,
.search-results-help a .phone-flash {
  animation: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  color: inherit;
}

.search-side-banner__phone:hover {
  text-decoration: underline;
}

.search-side-banner__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.search-side-banner__benefits li + li {
  margin-top: 0.15rem;
}

.search-side-banner__footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.search-side-banner__body--support {
  margin-top: 0;
  padding-top: 0.85rem;
}

.search-side-banner__support-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.search-side-banner__support-icon {
  color: #2563eb;
  margin: 0.5rem 0;
}

.search-side-banner__support-icon .zmdi {
  font-size: 2rem;
}

.search-side-banner__support-headline {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.search-side-banner__support-text {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.search-side-banner__phone--support {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.search-side-banners-carousel .owl-stage-outer {
  border-radius: 14px;
}

.search-side-banners-carousel .owl-dots {
  margin-top: 0.65rem;
  text-align: center;
}

.search-side-banners-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px 3px;
  background: #bfdbfe;
}

.search-side-banners-carousel .owl-dot.active span,
.search-side-banners-carousel .owl-dot:hover span {
  background: #2563eb;
}

.search-side-banners-carousel .owl-dot.active span {
  width: 18px;
  border-radius: 4px;
}
