/* Fixed departure — public page (loads after style.css; overrides / extends fd-* rules) */

/* Page shell */
.page--departure .page-section--flights {
  background: linear-gradient(180deg, #eef2fb 0%, #f5f8fc 40%, #f8fafc 100%);
  padding-top: 44px;
  padding-bottom: 52px;
}

.page--departure .page-hero--departure {
  position: relative;
  overflow: hidden;
}

.page--departure .page-hero--departure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(230, 176, 18, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.page--departure .page-hero-copy h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Section title */
.page--departure .fd-table-heading {
  margin-bottom: 22px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page--departure .page-section--flights .fd-table-heading::after {
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-gold, #e6b012), var(--brand-blue, #1e52c4));
}

.fd-agent-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #1e3a5f;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
}

.fd-agent-banner i {
  margin-top: 2px;
  color: var(--brand-blue, #1e52c4);
}

.fd-agent-banner a {
  color: var(--brand-blue, #1e52c4);
  font-weight: 700;
  text-decoration: none;
}

.fd-agent-banner a:hover {
  text-decoration: underline;
}

/* Empty / error states */
.fd-sheet-error {
  padding: 14px 18px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.06);
}

.fd-sheet-hint {
  padding: 14px 18px;
  margin: 0;
  max-width: 640px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(30, 82, 196, 0.12);
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.fd-sheet-hint code {
  font-size: 12px;
  padding: 2px 6px;
  background: #e2e8f0;
  border-radius: 4px;
  color: #1e293b;
}

.fd-sheet-hint a {
  color: var(--brand-blue, #1e52c4);
  font-weight: 700;
  text-decoration: none;
}

.fd-sheet-hint a:hover {
  text-decoration: underline;
}

/* Flights table card */
.page--departure .fd-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(30, 82, 196, 0.14);
  box-shadow: 0 4px 28px rgba(15, 53, 112, 0.1);
  background: #fff;
  overflow: hidden;
}

.page--departure .fd-table {
  min-width: 920px;
  font-size: 13px;
}

.page--departure .fd-table thead th {
  background: linear-gradient(180deg, #164a96 0%, #0f3570 100%);
  color: #fff;
  border: none;
  border-bottom: 3px solid var(--brand-gold, #e6b012);
  padding: 16px 11px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.page--departure .fd-table tbody td {
  border: none;
  border-bottom: 1px solid #e8eef4;
  padding: 14px 11px;
}

.page--departure .fd-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.page--departure .fd-table tbody tr:nth-child(odd) {
  background: #fff;
}

.page--departure .fd-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.page--departure .fd-table tbody tr:hover {
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 var(--brand-blue, #1e52c4);
}

.page--departure .fd-table tbody td:nth-child(9) {
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Book button */
.page--departure .fd-btn-book {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f0c02e 0%, var(--brand-gold, #e6b012) 100%);
  color: var(--brand-blue-dark, #0f3570) !important;
  box-shadow: 0 2px 8px rgba(230, 176, 18, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.page--departure .fd-btn-book:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(230, 176, 18, 0.45);
  color: #0f172a !important;
}

.page--departure .fd-btn-book:active {
  transform: translateY(1px);
}

.page--departure .fd-btn-book--disabled {
  display: inline-block;
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.15);
  box-shadow: none;
  pointer-events: none;
}

.page--departure .fd-seats-cell {
  line-height: 1.35;
}

.page--departure .fd-seats-avail {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.page--departure .fd-seats-avail--soldout {
  color: #b91c1c;
}

/* Airline column */
.page--departure .fd-airline-cell {
  min-width: 112px;
}

.page--departure .fd-airline-logo {
  filter: drop-shadow(0 1px 2px rgba(15, 53, 112, 0.08));
}

/* Non-refundable rules */
.fd-nonrefund-section {
  padding-top: 32px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.fd-nonrefund-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid rgba(30, 82, 196, 0.14);
  background: linear-gradient(145deg, var(--brand-blue-soft, #e8f0fc) 0%, #fff 52%);
  box-shadow: 0 8px 32px rgba(15, 53, 112, 0.07);
}

.fd-nonrefund-title {
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--brand-blue-dark, #0f3570);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.fd-nonrefund-title i {
  color: var(--brand-gold-dark, #c2940a);
  margin-top: 2px;
  flex-shrink: 0;
}

.fd-nonrefund-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted, #5c6b7a);
}

.fd-nonrefund-list li {
  margin-bottom: 10px;
}

.fd-nonrefund-list li:last-child {
  margin-bottom: 0;
}

.fd-nonrefund-list strong {
  color: var(--text, #1a2744);
}

.fd-nonrefund-foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 82, 196, 0.12);
  font-size: 13px;
  color: var(--text-muted, #5c6b7a);
}

.fd-nonrefund-foot a {
  color: var(--brand-blue, #1e52c4);
  font-weight: 700;
  text-decoration: none;
}

.fd-nonrefund-foot a:hover {
  text-decoration: underline;
}

/* How it works — departure page */
.page--departure .page-section:not(.page-section--flights) .timeline-item {
  padding: 4px 0;
}

.page--departure .page-section:not(.page-section--flights) .timeline-dot {
  box-shadow: 0 2px 8px rgba(30, 82, 196, 0.25);
}

@media (max-width: 768px) {
  .page--departure .fd-table-wrap {
    border-radius: 12px;
  }

  .fd-nonrefund-card {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page--departure .fd-table tbody tr,
  .page--departure .fd-btn-book {
    transition: none;
  }

  .page--departure .fd-btn-book:active {
    transform: none;
  }
}
