:root {
  --app-bg: #eaf1ff;
  --app-bg-2: #f8fbff;
  --app-ink: #12305f;
  --app-muted: #5a6f96;
  --app-line: rgba(7, 53, 144, 0.12);
  --app-panel: rgba(255, 255, 255, 0.88);
  --app-panel-strong: rgba(255, 255, 255, 0.96);
  --app-primary: #073590;
  --app-primary-2: #165bc7;
  --app-accent: #ffcc00;
  --app-shadow: 0 20px 50px rgba(7, 39, 102, 0.14);
  --app-radius: 28px;
  --bs-body-font-family: "Open Sans", sans-serif;
  --bs-body-color: var(--app-ink);
  --bs-body-bg: transparent;
  --bs-primary: var(--app-primary);
  --bs-border-color: var(--app-line);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 204, 0, 0.18) 0%, transparent 24%),
    radial-gradient(circle at 90% 14%, rgba(22, 91, 199, 0.16) 0%, transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(7, 53, 144, 0.1) 0%, transparent 26%),
    linear-gradient(160deg, var(--app-bg) 0%, var(--app-bg-2) 100%);
}

.page-shell {
  max-width: 1260px;
}

.page-header {
  position: relative;
}

.top-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(7, 53, 144, 0.12);
  box-shadow: 0 12px 28px rgba(7, 39, 102, 0.1);
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  min-width: 3.4rem;
  background: transparent;
  color: var(--app-primary);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.lang-btn:hover {
  background: rgba(7, 53, 144, 0.08);
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 39, 102, 0.22);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(22, 91, 199, 0.35);
  outline-offset: 2px;
}

.hero-badges {
  min-height: 42px;
}

.hero-badge,
.ticket-chip,
.ticket-pill,
.meta-pill,
.table-pill,
.table-price,
.flight-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-badge {
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(7, 53, 144, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--app-primary);
  box-shadow: 0 10px 26px rgba(7, 39, 102, 0.08);
}

.hero-panel,
.control-panel,
.results-panel {
  border-radius: var(--app-radius);
  background: var(--app-panel);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: -1;
}

.hero-panel::before {
  width: 240px;
  height: 240px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(22, 91, 199, 0.18) 0%, transparent 68%);
}

.hero-panel::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.22) 0%, transparent 70%);
}

.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-primary);
}

.hero-title,
.results-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 1.02;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
}

.hero-description {
  max-width: 58ch;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.ticket-preview {
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 204, 0, 0.16) 0%, transparent 26%),
    radial-gradient(circle at 84% 82%, rgba(173, 213, 255, 0.16) 0%, transparent 28%),
    linear-gradient(145deg, #062d7a 0%, #073590 45%, #165bc7 100%);
  color: #f8fffd;
  box-shadow: 0 22px 48px rgba(7, 39, 102, 0.28);
}

.ticket-topline,
.ticket-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ticket-chip,
.ticket-pill {
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fffd;
  font-size: 0.82rem;
}

.ticket-chip-highlight {
  background: rgba(255, 210, 77, 0.16);
  border-color: rgba(255, 210, 77, 0.26);
  color: #fff5c4;
}

.ticket-search-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.ticket-stop {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.ticket-stop-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  height: 100%;
}

.ticket-stop-fixed {
  min-height: 0;
}

.ticket-stop-end {
  justify-content: flex-start;
}

.ticket-stop-inner {
  align-items: flex-start;
}

.ticket-stop-icon {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticket-stop-icon.outbound {
  color: #d5f4ff;
}

.ticket-stop-icon.inbound {
  color: #ffd24d;
}

.ticket-stop-label {
  color: rgba(248, 255, 253, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-stop-code {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
}

.ticket-stop-text {
  color: rgba(248, 255, 253, 0.82);
  font-size: 1rem;
}

.ticket-route-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.ticket-route-line-search {
  align-self: center;
}

.ticket-route-line > span:not(.ticket-route-badge) {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18));
}

.ticket-route-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 52px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 210, 77, 0.16);
  border: 1px solid rgba(255, 210, 77, 0.2);
  color: #fff5c4;
  font-size: 1.25rem;
  font-weight: 700;
}

.ticket-route-badge i {
  color: inherit;
}

.ticket-caption {
  margin-top: 0.15rem;
  margin-bottom: 1rem;
  color: rgba(248, 255, 253, 0.82);
  line-height: 1.55;
}

.ticket-destination-card {
  min-width: 0;
}

.ticket-destination-card .ticket-stop-code {
  font-size: 1.45rem;
}

.ticket-field-label {
  color: rgba(248, 255, 253, 0.82);
  margin-bottom: 0.65rem;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--app-primary);
  margin-bottom: 0.7rem;
}

.filter-label i,
.table-heading i,
.results-title i,
.details-title i,
.detail-label i,
.cell-icon i,
.ticket-chip i,
.ticket-pill i,
.hero-badge i,
.meta-pill i,
.table-price i,
.table-pill i,
.flight-route-badge i,
.search-btn i {
  color: var(--app-primary);
}

.ticket-chip i,
.ticket-pill i,
.ticket-preview .ticket-route-badge i,
.ticket-preview .ticket-stop-icon i {
  color: inherit;
}

.ticket-preview .filter-label,
.ticket-preview .ticket-field-label {
  color: rgba(248, 255, 253, 0.88);
}

.ticket-preview .filter-label i,
.ticket-preview .ticket-field-label i,
.ticket-meta-strip .meta-pill i {
  color: #ffd24d;
}

.form-control,
.form-select {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(25, 40, 52, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--app-ink);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(7, 53, 144, 0.38);
  box-shadow: 0 0 0 0.2rem rgba(7, 53, 144, 0.12);
}

.ticket-form-control {
  min-height: 58px;
}

.ticket-preview .form-control,
.ticket-preview .form-select {
  border-color: rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--app-ink);
  box-shadow: 0 8px 20px rgba(7, 39, 102, 0.12);
}

.ticket-preview .form-control:focus,
.ticket-preview .form-select:focus {
  border-color: rgba(255, 204, 0, 0.48);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.16);
}

.ticket-preview .form-select option {
  color: var(--app-ink);
  background: #fff;
}

.ticket-search-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.ticket-filter-card {
  grid-column: span 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ticket-filter-card .ticket-field-label {
  margin-bottom: 0;
  align-self: start;
}

.ticket-submit-card {
  grid-column: span 12;
  align-self: stretch;
}

.view-mode-toggle {
  width: 100%;
}

.view-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.4rem;
  border-radius: 20px;
  background: rgba(234, 241, 255, 0.9);
  border: 1px solid rgba(7, 53, 144, 0.12);
}

.btn-view-mode {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--app-muted);
  background: transparent;
}

.btn-check:checked + .btn-view-mode {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-2) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 53, 144, 0.22);
}

.btn-check:checked + .btn-view-mode i {
  color: inherit;
}

.search-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-2) 100%);
  box-shadow: 0 16px 32px rgba(7, 53, 144, 0.22);
  font-weight: 700;
}

.search-btn:hover,
.search-btn:focus {
  background: linear-gradient(135deg, #062d7a 0%, #0e4cb8 100%);
}

.search-btn:disabled {
  opacity: 0.7;
  box-shadow: none;
}

.search-btn i {
  color: #fff;
}

.ticket-preview .view-mode-row {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.ticket-preview .btn-view-mode {
  color: rgba(248, 255, 253, 0.86);
}

.ticket-preview .btn-view-mode i {
  color: inherit;
}

.ticket-preview .btn-check:checked + .btn-view-mode {
  color: #062d7a;
  background: linear-gradient(135deg, #ffcc00 0%, #ffd94a 100%);
  box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
}

.ticket-search-btn {
  min-height: 100%;
  background: linear-gradient(135deg, #ffcc00 0%, #ffd94a 100%);
  color: #062d7a;
  box-shadow: 0 18px 32px rgba(255, 204, 0, 0.2);
}

.ticket-search-btn:hover,
.ticket-search-btn:focus {
  background: linear-gradient(135deg, #f3c000 0%, #ffd326 100%);
  color: #05245f;
}

.ticket-search-btn i {
  color: inherit;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-pill {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(7, 53, 144, 0.1);
  background: rgba(234, 241, 255, 0.78);
  color: var(--app-muted);
}

.ticket-meta-strip .meta-pill {
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(248, 255, 253, 0.92);
}

.results-head {
  border-bottom: 1px solid rgba(25, 40, 52, 0.08);
  padding-bottom: 1rem;
}

.results-toolbar {
  align-items: end;
}

.results-options {
  display: flex;
  flex: 1 1 720px;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.results-sort-control {
  flex: 0 1 240px;
}

.results-sort-select {
  min-height: 58px;
  border-radius: 18px;
  min-width: 0;
}

.results-actions {
  min-width: min(100%, 320px);
  display: flex;
  justify-content: flex-end;
}

.results-view-toggle {
  flex: 1 1 380px;
  max-width: 430px;
}

.results-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.share-results-btn {
  min-height: 48px;
  border: 1px solid rgba(7, 53, 144, 0.18);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--app-primary);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(7, 39, 102, 0.08);
}

.share-results-btn:hover,
.share-results-btn:focus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-2) 100%);
}

.share-results-btn i {
  color: inherit;
}

.share-results-btn.is-copied {
  color: #062d7a;
  border-color: transparent;
  background: linear-gradient(135deg, #ffcc00 0%, #ffd94a 100%);
}

.status-pill {
  max-width: none;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(7, 53, 144, 0.08);
  border: 1px solid rgba(7, 53, 144, 0.14);
  color: var(--app-primary);
  font-weight: 700;
}

.status-pill.error {
  background: rgba(190, 24, 93, 0.09);
  border-color: rgba(190, 24, 93, 0.18);
  color: #be185d;
}

.table-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(25, 40, 52, 0.08);
  background: var(--app-panel-strong);
}

.results-list-shell {
  overflow: hidden;
}

.results-list-head {
  display: none;
}

.results-list-head-cell {
  min-width: 0;
}

.results-list-head-cell-book {
  margin-left: auto;
}

.results-list {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.results-list-item + .results-list-item {
  border-top: 0;
}

.results-list-item {
  border: 1px solid rgba(25, 40, 52, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(7, 39, 102, 0.08);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.results-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 53, 144, 0.14);
  box-shadow: 0 20px 40px rgba(7, 39, 102, 0.12);
}

.result-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(240px, 0.9fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
}

.result-cell {
  min-width: 0;
}

.result-cell-departure,
.result-cell-return,
.result-cell-destination {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(7, 53, 144, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.result-cell-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(234, 241, 255, 0.95) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 1px solid rgba(7, 53, 144, 0.1);
}

.result-controls-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.result-cell-book {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.details-panel {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid rgba(7, 53, 144, 0.08);
  background: linear-gradient(180deg, rgba(7, 53, 144, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.result-section-label {
  margin-bottom: 0.65rem;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-table {
  margin: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(7, 53, 144, 0.03);
  --bs-table-hover-bg: rgba(7, 53, 144, 0.05);
}

.results-table thead th {
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid rgba(25, 40, 52, 0.08);
  color: var(--app-muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
}

.table-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.results-table tbody td {
  padding: 1rem;
  border-color: rgba(25, 40, 52, 0.08);
  vertical-align: middle;
}

.result-row {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.result-row:focus-visible {
  outline: 3px solid rgba(7, 53, 144, 0.22);
  outline-offset: -3px;
}

.result-row.expanded {
  background: rgba(7, 53, 144, 0.05);
}

.flight-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.flight-cell > div {
  min-width: 0;
}

.cell-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 53, 144, 0.08);
  flex: 0 0 auto;
}

.cell-icon.icon-return {
  background: rgba(255, 204, 0, 0.2);
}

.cell-icon.icon-return i {
  color: #805d00;
}

.cell-icon.icon-destination {
  background: rgba(22, 91, 199, 0.1);
}

.cell-icon.icon-destination i {
  color: #165bc7;
}

.cell-icon.icon-duration {
  background: rgba(71, 85, 105, 0.09);
}

.cell-icon.icon-duration i {
  color: #475569;
}

.cell-caption {
  margin-top: 0.2rem;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.cell-date-line,
.cell-subline,
.table-pill-duration,
.table-price-total {
  white-space: nowrap;
}

.cell-date-line {
  font-size: 1rem;
}

.cell-subline {
  margin-top: 0.15rem;
  color: var(--app-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.cell-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.16);
  color: #805d00;
  font-size: 0.84rem;
  font-weight: 800;
}

.cell-price-chip i {
  color: inherit;
}

.table-pill,
.table-price,
.flight-route-badge {
  padding: 0.45rem 0.75rem;
  background: rgba(7, 53, 144, 0.08);
  color: var(--app-primary);
}

.table-price {
  color: var(--app-ink);
  background: rgba(255, 204, 0, 0.18);
}

.table-price i {
  color: #805d00;
}

.table-pill-duration {
  display: inline-flex;
}

.table-price-total {
  gap: 0.45rem;
  justify-content: center;
}

.price-inline-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-primary);
}

.results-table th:nth-child(4),
.results-table td:nth-child(4),
.results-table th:nth-child(5),
.results-table td:nth-child(5) {
  width: 1%;
}

.results-table th:nth-child(6),
.results-table td:nth-child(6) {
  width: 1%;
  white-space: nowrap;
}

.card-total-badge {
  min-width: 154px;
  padding: 0.65rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.26) 0%, rgba(255, 217, 74, 0.4) 100%);
  color: #062d7a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.card-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-total-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.card-total-value i {
  color: inherit;
}

.details-row td {
  padding-top: 0;
  background: transparent;
}

.details-card {
  margin: 1rem 0 0;
  padding: 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(6, 45, 122, 0.98) 0%, rgba(22, 91, 199, 0.94) 100%);
  color: #f8fffd;
  box-shadow: 0 12px 30px rgba(7, 39, 102, 0.18);
}

.details-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.details-title i,
.detail-label i {
  color: #ffe1ae;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-item-full {
  grid-column: 1 / -1;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: rgba(248, 255, 253, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-value {
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.details-actions,
.flight-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.book-link-btn {
  min-height: 46px;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ffcc00 0%, #ffd94a 100%);
  color: #062d7a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(255, 204, 0, 0.22);
}

.book-link-btn:hover,
.book-link-btn:focus {
  color: #05245f;
  background: linear-gradient(135deg, #f3c000 0%, #ffd326 100%);
}

.book-link-btn i {
  color: inherit;
}

.book-link-btn-inline {
  min-height: 40px;
  max-width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  box-shadow: none;
  font-size: 0.95rem;
}

.cards-wrap {
  margin-top: 0.25rem;
}

.flight-card .card {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(242, 247, 255, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(7, 39, 102, 0.12);
}

.flight-card-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
}

.flight-timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-leg {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(25, 40, 52, 0.08);
  border-radius: 20px;
  background: rgba(240, 245, 255, 0.9);
}

.timeline-leg .detail-label {
  color: var(--app-muted);
  margin-bottom: 0.3rem;
}

.timeline-leg .detail-label i {
  color: var(--app-primary);
}

.timeline-leg .detail-value {
  color: var(--app-ink);
}

.hidden {
  display: none !important;
}

.site-footer {
  padding: 1.2rem 0 0.2rem;
  text-align: center;
}

.site-footer-note {
  color: var(--app-muted);
  font-size: 0.95rem;
}

.site-footer-link {
  color: var(--app-primary);
  font-weight: 700;
  text-decoration: none;
}

.site-footer-link:hover,
.site-footer-link:focus {
  color: var(--app-primary-2);
  text-decoration: underline;
}

[dir="rtl"] .hero-description,
[dir="rtl"] .status-pill,
[dir="rtl"] .meta-pill,
[dir="rtl"] .results-table,
[dir="rtl"] .details-card,
[dir="rtl"] .flight-card .card,
[dir="rtl"] .timeline-leg {
  text-align: right;
}

[dir="rtl"] .ticket-preview {
  direction: ltr;
}

@media (max-width: 1399.98px) {
  .cell-date-line,
  .cell-subline,
  .table-pill-duration,
  .table-price-total,
  .cell-caption,
  .detail-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .table-price-total {
    display: inline-flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 1199.98px) {
  .result-row-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .result-cell-controls {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .result-controls-pills,
  .result-cell-book {
    justify-content: flex-start;
  }

  .result-cell-controls {
    grid-column: 1 / -1;
  }

  .ticket-search-overview {
    grid-template-columns: 1fr;
  }

  .ticket-route-line-search {
    grid-template-columns: 1fr;
  }

  .ticket-route-line-search > span:not(.ticket-route-badge) {
    display: none;
  }

  .ticket-filter-card {
    grid-column: span 6;
  }

  .ticket-submit-card {
    grid-column: span 12;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .ticket-preview {
    padding: 1.2rem;
  }
}

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

  .result-cell-departure,
  .result-cell-return,
  .result-cell-destination,
  .result-cell-controls {
    grid-column: 1 / -1;
  }

  .result-cell-controls,
  .result-controls-pills,
  .result-cell-book {
    width: 100%;
    justify-content: stretch;
  }

  .result-cell-book {
    flex-direction: column;
    align-items: stretch;
  }

  .result-controls-pills {
    gap: 0.6rem;
  }

  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-badges {
    width: 100%;
  }

  .hero-badge {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ticket-filter-card {
    grid-column: span 12;
  }

  .ticket-stop-card {
    padding: 0.95rem;
  }

  .ticket-stop-code {
    font-size: 1.4rem;
  }

  .view-mode-row {
    grid-template-columns: 1fr;
  }

  .results-actions {
    min-width: 100%;
    justify-content: stretch;
  }

  .results-options {
    width: 100%;
  }

  .results-sort-control,
  .results-view-toggle {
    flex-basis: 100%;
    max-width: none;
  }

  .results-table thead {
    display: none;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .result-row {
    padding: 0.4rem 0;
  }

  .results-table tbody td {
    padding: 0.55rem 1rem;
    border: 0;
  }

  .results-table tbody td:last-child {
    padding-top: 0.15rem;
  }

  .flight-cell {
    gap: 0.7rem;
  }

  .details-actions,
  .flight-card-actions {
    justify-content: stretch;
  }

  .book-link-btn,
  .book-link-btn-inline {
    width: 100%;
  }
}
