@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

.train-search-shell,
.train-search-shell * {
  box-sizing: border-box;
}

.train-search-shell {
  --ts-primary: #1d4ed8;
  --ts-primary-dark: #163fb0;
  --ts-primary-soft: #eff6ff;
  --ts-primary-soft-2: #dbeafe;
  --ts-text: #172033;
  --ts-muted: #667085;
  --ts-border: #d7e3f4;
  --ts-border-strong: #bfd3f2;
  --ts-surface: #ffffff;
  --ts-surface-soft: #f8fbff;
  --ts-bg-a: #f3f7ff;
  --ts-bg-b: #eef3f9;
  --ts-danger-bg: #fff1f2;
  --ts-danger-text: #be123c;
  --ts-danger-border: #fecdd3;
  --ts-warning-bg: #fff7ed;
  --ts-warning-text: #9a3412;
  --ts-warning-border: #fed7aa;
  --ts-shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.08);
  --ts-shadow-md: 0 10px 24px rgba(37, 99, 235, 0.08);
  --ts-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.05);
  --ts-radius-xl: 24px;
  --ts-radius-lg: 18px;
  --ts-radius-md: 14px;
  --ts-radius-sm: 12px;

  width: 100%;
  color: var(--ts-text);
  font-family: Arial, sans-serif;
}

.train-search-shell a {
  text-decoration: none;
}

.page-wrap {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =========================
   Search Card
   ========================= */

.train-search-shell .train-search-card {
  background:
    radial-gradient(circle at top left, #dbeafe, transparent 25%),
    radial-gradient(circle at top right, #e0e7ff, transparent 30%),
    linear-gradient(180deg, var(--ts-bg-a) 0%, var(--ts-bg-b) 100%);
  border-radius: var(--ts-radius-xl);
  padding: 32px;
  box-shadow: var(--ts-shadow-lg);
  margin-bottom: 28px;
}

.train-search-shell .badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--ts-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.train-search-shell h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .subtitle {
  margin: 0 0 28px;
  color: var(--ts-muted);
  font-size: 17px;
  max-width: 760px;
  line-height: 1.5;
}

/* =========================
   Search Form
   ========================= */

.train-search-shell .train-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 56px minmax(220px, 1fr) minmax(190px, 220px) minmax(190px, 220px) auto;
  gap: 18px;
  align-items: end;
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: var(--ts-radius-xl);
  box-shadow: var(--ts-shadow-lg);
}

.train-search-shell .trip-type-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.train-search-shell .trip-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ts-border);
  border-radius: 999px;
  background: var(--ts-surface);
  cursor: pointer;
  font-weight: 700;
  color: var(--ts-text);
  transition: 0.2s ease;
}

.train-search-shell .trip-type-option:hover {
  border-color: var(--ts-primary);
  background: var(--ts-primary-soft);
}

.train-search-shell .trip-type-option input {
  width: auto;
  height: auto;
  margin: 0;
}

.train-search-shell .input-group {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.train-search-shell .input-group label {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ts-text);
}

.train-search-shell .input-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-md);
  background: var(--ts-surface);
  font-size: 15px;
  color: var(--ts-text);
  outline: none;
  transition: 0.2s ease;
}

.train-search-shell .input-group input:focus {
  border-color: var(--ts-primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.train-search-shell .input-group input::placeholder {
  color: #8a94a6;
}

.train-search-shell .swap-btn {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border: none;
  border-radius: var(--ts-radius-md);
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  align-self: end;
  transition: 0.2s ease;
}

.train-search-shell .swap-btn:hover {
  transform: translateY(-1px);
  background: var(--ts-primary-soft-2);
}

.train-search-shell .search-btn-wrap {
  display: flex;
  align-items: end;
}

.train-search-shell .search-btn {
  height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: var(--ts-radius-md);
  background: linear-gradient(135deg, var(--ts-primary), #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.train-search-shell .search-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--ts-primary-dark), var(--ts-primary));
}

/* =========================
   Suggestions
   ========================= */

.train-search-shell .suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.14);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.train-search-shell .suggestion-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eef2f7;
  transition: background 0.15s ease;
}

.train-search-shell .suggestion-item:last-child {
  border-bottom: none;
}

.train-search-shell .suggestion-item:hover {
  background: var(--ts-surface-soft);
}

.train-search-shell .suggestion-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ts-text);
}

.train-search-shell .suggestion-code {
  font-size: 12px;
  color: var(--ts-muted);
  margin-top: 4px;
}

/* =========================
   Messages
   ========================= */

.train-search-shell .message-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--ts-radius-md);
  font-size: 14px;
  font-weight: 600;
}

.train-search-shell .error-box {
  background: var(--ts-danger-bg);
  color: var(--ts-danger-text);
  border: 1px solid var(--ts-danger-border);
}

/* =========================
   Results Overview
   ========================= */

.train-search-shell .results-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 26px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #dbe7fb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.train-search-shell .results-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.train-search-shell .results-overview h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .results-overview p {
  margin: 0;
  font-size: 15px;
  color: #5c6880;
  line-height: 1.5;
}

/* =========================
   Results Header / Sections
   ========================= */

.train-search-shell .results-header {
  margin: 10px 0 20px;
}

.train-search-shell .with-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.train-search-shell .results-header h2 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .results-header p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 15px;
}

.train-search-shell .section-card {
  background: var(--ts-surface);
  border: 1px solid #e5edf8;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  margin-bottom: 28px;
}

.train-search-shell .return-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.train-search-shell .section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.train-search-shell .section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.train-search-shell .return-kicker {
  background: #ede9fe;
  color: #6d28d9;
}

.train-search-shell .section-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .section-subtitle {
  margin: 0;
  color: var(--ts-muted);
  font-size: 15px;
}

.train-search-shell .section-count {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ts-surface-soft);
  border: 1px solid #d9e6fb;
  color: var(--ts-primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   Results Cards
   ========================= */

.train-search-shell .results-grid {
  display: grid;
  gap: 18px;
}

.train-search-shell .trip-card {
  background: var(--ts-surface);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--ts-shadow-lg);
}

.train-search-shell .trip-card-pro {
  background: var(--ts-surface);
  border: 1px solid #e6edf8;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--ts-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.train-search-shell .trip-card-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.train-search-shell .trip-top,
.train-search-shell .trip-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.train-search-shell .route-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.train-search-shell .trip-card h3,
.train-search-shell .trip-brand h3 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .headsign-text {
  margin: 0;
  font-size: 15px;
  color: var(--ts-muted);
}

/* =========================
   Fare Panels / Time Pills
   ========================= */

.train-search-shell .time-pill {
  padding: 16px 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid var(--ts-border-strong);
  border-radius: 16px;
  min-width: 250px;
  box-shadow: var(--ts-shadow-md);
}

.train-search-shell .time-pill-main {
  font-weight: 800;
  font-size: 16px;
  color: var(--ts-text);
}

.train-search-shell .time-pill-sub {
  margin-top: 8px;
  color: #475467;
  font-size: 13px;
}

.train-search-shell .fare-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ts-border-strong);
}

.train-search-shell .fare-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ts-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.train-search-shell .fare-value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  color: var(--ts-primary);
  line-height: 1;
}

.train-search-shell .fare-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ts-muted);
}

.train-search-shell .fare-panel {
  min-width: 210px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #cfe0fb;
  text-align: left;
}

.train-search-shell .fare-panel-label {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.train-search-shell .fare-panel-price {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: var(--ts-primary);
  margin-bottom: 6px;
}

.train-search-shell .fare-panel-note {
  font-size: 13px;
  color: var(--ts-muted);
}

/* =========================
   Legacy Trip Line
   ========================= */

.train-search-shell .trip-line {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 20px;
}

.train-search-shell .station-block {
  padding: 18px;
  background: var(--ts-surface-soft);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-lg);
}

.train-search-shell .mini-label {
  color: var(--ts-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.train-search-shell .station-block h4 {
  margin: 6px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .station-block p {
  margin: 0;
  color: #334155;
  font-size: 15px;
}

.train-search-shell .trip-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.train-search-shell .trip-connector .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ts-primary);
}

.train-search-shell .trip-connector .line {
  width: 3px;
  height: 64px;
  background: linear-gradient(to bottom, #93c5fd, var(--ts-primary));
  border-radius: 999px;
  margin: 8px 0;
}

.train-search-shell .train-icon {
  font-size: 24px;
  color: var(--ts-primary);
  font-weight: 700;
}

/* =========================
   Professional Time Layout
   ========================= */

.train-search-shell .trip-times-grid {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.train-search-shell .time-box {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #dbe7fb;
  background: #fbfdff;
}

.train-search-shell .time-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ts-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.train-search-shell .time-main {
  font-size: 34px;
  font-weight: 900;
  color: var(--ts-text);
  line-height: 1.1;
  margin-bottom: 10px;
}

.train-search-shell .station-code-line {
  font-size: 18px;
  font-weight: 800;
  color: var(--ts-primary);
  margin-bottom: 6px;
}

.train-search-shell .station-name-line {
  font-size: 14px;
  color: var(--ts-muted);
  line-height: 1.4;
}

.train-search-shell .journey-center {
  text-align: center;
}

.train-search-shell .journey-duration {
  font-size: 16px;
  font-weight: 800;
  color: var(--ts-text);
  margin-bottom: 14px;
}

.train-search-shell .journey-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.train-search-shell .journey-line .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
}

.train-search-shell .journey-line .line {
  flex: 1;
  max-width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.train-search-shell .train-arrow {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
}

.train-search-shell .journey-caption {
  font-size: 13px;
  color: var(--ts-muted);
}

/* =========================
   Extra Detail Blocks
   ========================= */

.train-search-shell .trip-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.train-search-shell .detail-block {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ts-surface-soft);
  border: 1px solid #e0eaf8;
}

.train-search-shell .detail-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ts-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.train-search-shell .detail-block p {
  margin: 0;
  font-size: 15px;
  color: var(--ts-text);
  font-weight: 600;
}

.train-search-shell .trip-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.train-search-shell .meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   Actions
   ========================= */

.train-search-shell .result-actions,
.train-search-shell .booking-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

.train-search-shell .modify-trip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--ts-radius-sm);
  border: 1px solid var(--ts-border);
  background: var(--ts-surface);
  color: var(--ts-primary);
  font-weight: 700;
  transition: 0.2s ease;
}

.train-search-shell .modify-trip-btn:hover {
  background: var(--ts-primary-soft);
  border-color: var(--ts-primary);
}

.train-search-shell .book-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--ts-radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--ts-primary), #2563eb);
  color: white;
  font-weight: 700;
  transition: 0.2s ease;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.train-search-shell .book-now-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--ts-primary-dark), var(--ts-primary));
}

/* =========================
   Booking Page
   ========================= */

.train-search-shell .booking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.train-search-shell .booking-box {
  background: var(--ts-surface-soft);
  border: 1px solid var(--ts-border);
  border-radius: 16px;
  padding: 18px;
}

.train-search-shell .booking-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ts-text);
}

.train-search-shell .booking-price {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  color: var(--ts-primary);
}

.train-search-shell .legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--ts-radius-md);
  background: var(--ts-warning-bg);
  color: var(--ts-warning-text);
  border: 1px solid var(--ts-warning-border);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1400px) {
  .train-search-shell .train-search-form {
    grid-template-columns: 1fr 56px 1fr;
  }

  .train-search-shell .train-search-form .input-group:nth-of-type(3),
  .train-search-shell .train-search-form .input-group:nth-of-type(4),
  .train-search-shell .search-btn-wrap {
    grid-column: 1 / -1;
  }

  .train-search-shell .search-btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .train-search-shell .trip-card-head,
  .train-search-shell .results-overview,
  .train-search-shell .section-card-header,
  .train-search-shell .with-actions,
  .train-search-shell .trip-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .train-search-shell .fare-panel,
  .train-search-shell .time-pill {
    width: 100%;
    min-width: 0;
  }

  .train-search-shell .trip-times-grid {
    grid-template-columns: 1fr;
  }

  .train-search-shell .journey-center {
    order: 2;
  }

  .train-search-shell .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .train-search-shell .train-search-card {
    padding: 22px;
  }

  .train-search-shell h1 {
    font-size: 32px;
  }

  .train-search-shell .subtitle {
    font-size: 15px;
  }

  .train-search-shell .train-search-form {
    grid-template-columns: 1fr;
  }

  .train-search-shell .trip-type-row {
    flex-direction: column;
    align-items: stretch;
  }

  .train-search-shell .swap-btn,
  .train-search-shell .search-btn {
    width: 100%;
  }

  .train-search-shell .trip-line {
    grid-template-columns: 1fr;
  }

  .train-search-shell .trip-connector {
    flex-direction: row;
    gap: 8px;
  }

  .train-search-shell .trip-connector .line {
    width: 56px;
    height: 3px;
    margin: 0;
  }

  .train-search-shell .results-overview {
    padding: 18px;
  }

  .train-search-shell .results-overview h2 {
    font-size: 28px;
  }

  .train-search-shell .section-title {
    font-size: 24px;
  }

  .train-search-shell .trip-card,
  .train-search-shell .trip-card-pro,
  .train-search-shell .section-card {
    padding: 18px;
  }

  .train-search-shell .trip-card h3,
  .train-search-shell .trip-brand h3 {
    font-size: 22px;
  }

  .train-search-shell .time-main {
    font-size: 28px;
  }

  .train-search-shell .fare-panel-price,
  .train-search-shell .fare-value,
  .train-search-shell .booking-price {
    font-size: 24px;
  }

  .train-search-shell .trip-details-row {
    grid-template-columns: 1fr;
  }

  .train-search-shell .result-actions,
  .train-search-shell .booking-actions {
    flex-direction: column;
  }

  .train-search-shell .result-actions a,
  .train-search-shell .booking-actions a {
    width: 100%;
  }

  .train-search-shell .station-block h4 {
    font-size: 18px;
  }
  
}
/* ===== polished result + booking + confirmation improvements ===== */

.train-search-shell .roundtrip-card {
  background: #ffffff;
  border: 1px solid #e6edf8;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.train-search-shell .roundtrip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.train-search-shell .roundtrip-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.train-search-shell .roundtrip-main-title {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #172033;
}

.train-search-shell .roundtrip-fare-panel {
  min-width: 230px;
}

.train-search-shell .leg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.train-search-shell .leg-card {
  border: 1px solid #dfe9f7;
  border-radius: 20px;
  padding: 18px;
  background: #fbfdff;
}

.train-search-shell .leg-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.train-search-shell .mini-fare-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.train-search-shell .leg-route-name {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  color: #172033;
}

.train-search-shell .leg-times-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 16px;
  align-items: center;
}

.train-search-shell .leg-time {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  color: #172033;
  margin: 8px 0;
}

.train-search-shell .combined-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.train-search-shell .detail-side {
  background: #f8fbff;
  border: 1px solid #e2ebf7;
  border-radius: 18px;
  padding: 16px;
}

.train-search-shell .details-leg-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #172033;
}

.train-search-shell .trip-details-dropdown {
  margin-top: 8px;
  border: 1px solid #e4ebf7;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.train-search-shell .trip-details-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  color: #1d4ed8;
  background: #f8fbff;
}

.train-search-shell .trip-details-dropdown summary::-webkit-details-marker {
  display: none;
}

.train-search-shell .trip-details-dropdown summary::after {
  content: "";
  float: right;
  color: #667085;
}

.train-search-shell .trip-details-dropdown[open] summary::after {
  content: "";
}

.train-search-shell .trip-details-inner {
  padding: 16px;
}

.train-search-shell .results-overview-right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* booking polish */
.train-search-shell .booking-shell {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px;
}

.train-search-shell .booking-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #dbe7fb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.train-search-shell .booking-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.train-search-shell .booking-hero p {
  margin: 0;
  color: #667085;
}

.train-search-shell .booking-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.train-search-shell .booking-panel,
.train-search-shell .summary-panel {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
  border: 1px solid #e5edf8;
}

.train-search-shell .panel-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: #172033;
}

.train-search-shell .booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.train-search-shell .booking-form-group.full {
  grid-column: 1 / -1;
}

.train-search-shell .passenger-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e5edf8;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}

.train-search-shell .passenger-box h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #172033;
}

.train-search-shell .summary-table {
  width: 100%;
  border-collapse: collapse;
}

.train-search-shell .summary-table td {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 15px;
}

.train-search-shell .summary-table tr:last-child td {
  border-bottom: none;
}

.train-search-shell .price-row-strong td {
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
}

.train-search-shell .agreement-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e5edf8;
  border-radius: 16px;
  background: #fafcff;
}

.train-search-shell .agreement-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #475467;
}

.train-search-shell .agreement-label input {
  margin-top: 4px;
}

/* confirmation polish */
.train-search-shell .confirmation-card {
  max-width: 980px;
  margin: 40px auto;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
  border: 1px solid #e5edf8;
}

.train-search-shell .confirmation-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.train-search-shell .booking-reference {
  font-size: 22px;
  font-weight: 900;
  color: #1d4ed8;
}

@media (max-width: 1100px) {
  .train-search-shell .roundtrip-card-top,
  .train-search-shell .booking-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .train-search-shell .roundtrip-fare-panel {
    width: 100%;
    min-width: 0;
  }

  .train-search-shell .leg-grid,
  .train-search-shell .combined-details-grid,
  .train-search-shell .booking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .train-search-shell .roundtrip-card,
  .train-search-shell .leg-card,
  .train-search-shell .booking-panel,
  .train-search-shell .summary-panel,
  .train-search-shell .confirmation-card {
    padding: 18px;
  }

  .train-search-shell .roundtrip-main-title,
  .train-search-shell .booking-hero h1 {
    font-size: 24px;
  }

  .train-search-shell .leg-route-name {
    font-size: 19px;
  }

  .train-search-shell .leg-times-row,
  .train-search-shell .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .train-search-shell .leg-time {
    font-size: 24px;
  }

  .train-search-shell .confirmation-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================================
   Travelto premium results, booking and confirmation redesign
   ========================================================= */

body {
  background: #f6f8fb;
}

.train-search-shell {
  --ts-primary: #003b63;
  --ts-primary-dark: #002e4d;
  --ts-primary-soft: #eef8ff;
  --ts-accent: #ffc400;
  --ts-accent-dark: #bd9900;
  --ts-text: #062f4f;
  --ts-muted: #667789;
  --ts-border: #dce5ed;
  --ts-surface-soft: #f8fbfd;
  --ts-shadow-lg: 0 20px 45px rgba(8, 35, 58, 0.10);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- result page ---------- */
.results-premium-wrap {
  max-width: 1180px;
  margin-top: 28px;
}

.results-search-strip {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(10, 63, 100, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(8, 35, 58, 0.08);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.trip-toggle-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.trip-toggle-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 15px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #e7edf3;
  background: #f3f5f7;
  color: #0c3555;
}

.trip-toggle-pill.active {
  background: #003b63;
  color: #ffce00;
  border-color: #003b63;
}

.search-strip-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) 38px minmax(190px, 1.3fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.search-strip-field {
  min-height: 46px;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  min-width: 0;
}

.search-strip-field span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #003b63;
  margin-bottom: 5px;
}

.search-strip-field strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap-floating {
  align-self: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #647c35, #e6bf00);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(116, 107, 0, 0.22);
  z-index: 1;
}

.modify-search-btn,
.train-search-shell .premium-submit-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #003b63, #e4b700);
  box-shadow: 0 12px 22px rgba(0, 59, 99, 0.15);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.modify-search-btn:hover,
.train-search-shell .premium-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 59, 99, 0.22);
}

.results-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
}

.results-title-row h1 {
  font-size: 28px;
  margin: 4px 0 6px;
  color: #003b63;
}

.results-title-row p {
  color: #687888;
  margin: 0;
}

.starting-fare-box {
  min-width: 180px;
  background: #fff;
  border-top: 4px solid #ffc400;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 59, 99, 0.08);
  text-align: right;
}

.starting-fare-box span {
  display: block;
  color: #667789;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.starting-fare-box strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: #003b63;
}

.premium-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.premium-results-stack {
  display: grid;
  gap: 20px;
}

.premium-result-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 59, 99, .08);
  border-radius: 15px;
  box-shadow: 0 18px 38px rgba(7, 36, 61, 0.08);
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.premium-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(7, 36, 61, 0.12);
}

.fare-card-ribbon {
  position: absolute;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  background: #ffc400;
}

.premium-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.price-block strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 24px;
  line-height: 1;
  color: #003b63;
}

.price-block sup {
  font-size: 14px;
}

.price-block span {
  display: block;
  color: #1f3346;
  font-size: 12px;
  margin-top: 6px;
}

.premium-card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.best-value-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  color: #003b63;
  background: #fff7cc;
  border: 1px solid #ffe282;
}

.train-search-shell .premium-book-btn {
  background: #003b63;
  color: #ffc400;
  box-shadow: none;
  border-radius: 8px;
  min-height: 42px;
}

.train-search-shell .premium-book-btn:hover {
  background: #002e4d;
  color: #fff;
}

.premium-itinerary-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #dce5ed;
}

.roundtrip-premium-card .premium-itinerary-row:last-of-type {
  border-bottom: 0;
}

.operator-cell,
.booking-flight-route,
.confirmation-route-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.operator-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #f8fbfd;
  flex: 0 0 34px;
}

.operator-cell strong,
.booking-flight-route h3,
.confirmation-route-brand h3 {
  display: block;
  margin: 0;
  color: #003b63;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operator-cell span,
.booking-flight-route p,
.confirmation-route-brand p {
  display: block;
  color: #667789;
  font-size: 13px;
  margin-top: 4px;
}

.time-cell strong,
.booking-mini-route strong,
.confirmation-timeline-row strong {
  display: block;
  font-size: 18px;
  color: #002e4d;
  margin-bottom: 6px;
}

.time-cell span,
.booking-mini-route span,
.confirmation-timeline-row span {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #304558;
}

.duration-cell {
  text-align: center;
  color: #304558;
}

.duration-pill {
  display: inline-flex;
  gap: 4px;
  color: #003b63;
  font-weight: 900;
  font-size: 13px;
}

.rail-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 7px 0 3px;
}

.rail-line i {
  display: block;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: #c5d0da;
}

.rail-line b {
  color: #003b63;
}

.duration-cell small {
  color: #6b7785;
  font-size: 12px;
}

.segment-divider {
  height: 1px;
  background: #e8eef4;
}

.premium-details-dropdown {
  margin-top: 8px;
}

.premium-details-dropdown summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #003b63;
  font-weight: 900;
  padding-top: 10px;
}

.premium-details-dropdown summary::after {
  content: "";
  font-size: 12px;
}

.premium-details-dropdown[open] summary::after {
  content: "";
}

.premium-details-inner {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fbfd;
  border: 1px solid #e0e8ef;
}

.two-col-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.two-col-details h4 {
  margin: 0 0 12px;
  color: #003b63;
}

.premium-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-detail-grid span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #667789;
  margin-bottom: 4px;
}

.premium-detail-grid p {
  margin: 0;
  color: #143b59;
  font-weight: 700;
}

.premium-filter-card {
  position: sticky;
  top: 105px;
  background: #fff;
  border: 1px solid rgba(0, 59, 99, .08);
  border-radius: 15px;
  box-shadow: 0 18px 38px rgba(7, 36, 61, 0.06);
  padding: 22px 20px;
}

.filter-title-line h2 {
  margin: 0;
  color: #003b63;
  font-size: 22px;
}

.filter-title-line span {
  display: block;
  height: 2px;
  background: #ffc400;
  margin: 10px 0 24px;
}

.filter-section {
  margin-bottom: 30px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  margin: 0 0 14px;
  color: #003b63;
  font-size: 15px;
}

.filter-section label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #273b4e;
  font-size: 14px;
}

.filter-section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #003b63;
}

.filter-section small {
  color: #667789;
}

.price-range-copy {
  display: flex;
  justify-content: space-between;
  color: #1d3347;
  margin-bottom: 12px;
}

.fake-range {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: #ffc400;
}

.fake-range::before,
.fake-range::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #003b63;
  background: #ffc400;
  border-radius: 50%;
  transform: translateY(-50%);
}

.fake-range::before { left: -1px; }
.fake-range::after { right: -1px; }

/* ---------- booking page ---------- */
.premium-booking-shell {
  max-width: 1180px;
  margin-top: 28px;
}

.premium-booking-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 196, 0, .22), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fbff);
  border-top: 4px solid #ffc400;
}

.booking-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-price-chip {
  background: #003b63;
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 155px;
}

.hero-price-chip span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.75);
}

.hero-price-chip strong {
  display: block;
  font-size: 24px;
  color: #ffc400;
}

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.checkout-stepper div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e8ef;
  border-radius: 14px;
  padding: 12px;
  color: #667789;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 36, 61, 0.05);
}

.checkout-stepper b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f5;
  color: #667789;
}

.checkout-stepper .active b {
  background: #003b63;
  color: #ffc400;
}

.checkout-stepper .active {
  color: #003b63;
  border-color: #d5e0e8;
}

.premium-booking-layout {
  grid-template-columns: minmax(0, 1fr) 355px;
  align-items: start;
}

.booking-main-stack {
  display: grid;
  gap: 22px;
}

.premium-panel,
.premium-summary-panel {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(7, 36, 61, 0.08);
  border: 1px solid rgba(0, 59, 99, .08);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.booking-flight-grid {
  display: grid;
  gap: 16px;
}

.booking-flight-grid.has-return-trip {
  grid-template-columns: 1fr 1fr;
}

.booking-flight-card {
  border-left: 5px solid #ffc400;
  border-radius: 14px;
  border-top: 1px solid #e0e8ef;
  border-right: 1px solid #e0e8ef;
  border-bottom: 1px solid #e0e8ef;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(7, 36, 61, 0.06);
}

.booking-flight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.booking-flight-head strong {
  color: #003b63;
  font-size: 18px;
}

.booking-mini-route {
  display: grid;
  grid-template-columns: 1fr 130px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}

.booking-mini-route small {
  display: block;
  margin-top: 5px;
  color: #667789;
}

.small-duration .rail-line i {
  width: 26px;
}

.passenger-count-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.counter-box {
  border: 1px solid #e0e8ef;
  border-radius: 14px;
  background: #f8fbfd;
  padding: 12px;
}

.counter-box label {
  display: block;
  color: #003b63;
  font-weight: 900;
  margin-bottom: 8px;
}

.counter-box input {
  width: 100%;
  height: 42px;
  border: 1px solid #ccd8e2;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 900;
}

.important-note {
  border: 1px solid rgba(255, 196, 0, .45);
  background: #fffbdf;
  border-radius: 10px;
  padding: 14px 16px;
  color: #705900;
  line-height: 1.45;
  margin-bottom: 16px;
}

.green-note {
  border-color: #a8d9c1;
  background: #f2fbf6;
  color: #145c38;
  margin-top: 16px;
}

.premium-passenger-box {
  border-radius: 14px;
  border-left: 4px solid #003b63;
}

.passenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.train-search-shell .booking-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #304558;
  font-weight: 800;
}

.train-search-shell .booking-form-group input,
.train-search-shell .booking-form-group select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d4dde6;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: #152d42;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.train-search-shell .booking-form-group input:focus,
.train-search-shell .booking-form-group select:focus {
  border-color: #003b63;
  box-shadow: 0 0 0 4px rgba(0, 59, 99, .09);
}

.secure-payment-banner {
  text-align: center;
  padding: 13px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f8fbfd;
  color: #1d3347;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.sticky-summary-inner {
  position: sticky;
  top: 105px;
}

.price-summary-table td:last-child {
  text-align: right;
  font-weight: 800;
}

.green-value {
  color: #18a058 !important;
}

.summary-route-mini {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fbfd;
  border: 1px solid #e0e8ef;
}

.summary-route-mini h3 {
  margin: 0 0 8px;
  color: #003b63;
}

.summary-route-mini p {
  margin: 0 0 6px;
  font-weight: 900;
  color: #1d3347;
}

.summary-route-mini span {
  color: #667789;
  font-size: 13px;
}

.premium-agreement-box {
  margin-top: 18px;
}

.premium-agreement-box a {
  color: #003b63;
  font-weight: 900;
  text-decoration: underline;
}

.train-search-shell .premium-submit-btn {
  width: 100%;
  margin-top: 18px;
  min-height: 54px;
  font-size: 16px;
}

.train-search-shell .premium-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ---------- confirmation page ---------- */
.confirmation-page-shell {
  max-width: 100%;
  padding: 0 18px 42px;
}

.confirmation-masthead {
  max-width: 980px;
  margin: 0 auto 0;
  min-height: 90px;
  background: #fff;
  border-bottom: 1px solid #e5edf3;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 8px 22px rgba(7, 36, 61, 0.04);
}

.confirmation-logo img {
  height: 54px;
  width: auto;
}

.premium-confirmation-card {
  max-width: 820px;
  padding: 26px;
  border-radius: 0 0 18px 18px;
}

.confirmation-success-hero {
  text-align: center;
  padding: 10px 10px 24px;
}

.success-checkmark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #28b35d;
  color: white;
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 14px 25px rgba(40, 179, 93, .24);
}

.confirmation-success-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #13935b;
}

.confirmation-success-hero p {
  margin: 0 0 16px;
  color: #333;
}

.confirmation-success-hero h2 {
  margin: 0 0 12px;
  color: #df354d;
  font-size: 24px;
}

.booking-id-pill {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f2fbf6;
  color: #1d3347;
  font-weight: 800;
}

.booking-id-pill strong {
  color: #13935b;
  margin-left: 5px;
}

.confirmation-section-card {
  background: #fff;
  border: 1px solid #e0e8ef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(7, 36, 61, 0.06);
}

.bordered-heading {
  border-bottom: 1px solid #dbe5ed;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7cc;
  color: #705900;
  font-size: 12px;
  font-weight: 900;
}

.confirmation-itinerary-list {
  display: grid;
  gap: 14px;
}

.confirmation-itinerary-card {
  border: 1px solid #e0e8ef;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.confirmation-leg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.confirmation-leg-head strong {
  color: #003b63;
}

.confirmation-timeline-row {
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-top: 16px;
}

.confirmation-timeline-row small {
  display: block;
  margin-top: 5px;
  color: #667789;
}

.responsive-table-wrap {
  overflow-x: auto;
}

.confirmation-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.confirmation-table th,
.confirmation-table td {
  border: 1px solid #d5dde6;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.confirmation-table th {
  background: #f8fbfd;
  color: #003b63;
}

.fare-confirmation-table td:last-child {
  text-align: right;
  font-weight: 800;
}

.policy-card h2 {
  margin: 0 0 12px;
  color: #003b63;
  border-bottom: 2px solid #40a7dc;
  padding-bottom: 10px;
}

.policy-card p {
  color: #333;
  line-height: 1.65;
  margin: 0 0 14px;
}

.confirmation-email-note {
  border-top: 1px solid #dbe5ed;
  padding: 22px 10px 0;
  text-align: center;
  font-size: 18px;
  color: #333;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.premium-result-note {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .search-strip-grid {
    grid-template-columns: 1fr 38px 1fr 1fr 1fr;
  }
  .search-strip-field:nth-of-type(5),
  .modify-search-btn {
    grid-column: span 1;
  }
  .premium-results-layout,
  .premium-booking-layout {
    grid-template-columns: 1fr;
  }
  .premium-filter-card,
  .sticky-summary-inner {
    position: static;
  }
}

@media (max-width: 900px) {
  .search-strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .swap-floating {
    display: none;
  }
  .modify-search-btn {
    width: 100%;
  }
  .results-title-row,
  .premium-card-top,
  .premium-booking-hero,
  .section-heading-row {
    flex-direction: column;
    align-items: stretch;
  }
  .starting-fare-box {
    text-align: left;
  }
  .premium-itinerary-row,
  .booking-mini-route,
  .confirmation-timeline-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .duration-cell {
    text-align: left;
  }
  .rail-line {
    justify-content: flex-start;
  }
  .booking-flight-grid.has-return-trip,
  .premium-detail-grid,
  .two-col-details,
  .passenger-count-card,
  .checkout-stepper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-wrap,
  .premium-booking-shell {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 18px;
  }
  .results-search-strip,
  .premium-result-card,
  .premium-filter-card,
  .premium-panel,
  .premium-summary-panel,
  .confirmation-section-card,
  .premium-confirmation-card {
    padding: 16px;
    border-radius: 14px;
  }
  .search-strip-grid,
  .booking-form-grid {
    grid-template-columns: 1fr !important;
  }
  .results-title-row h1,
  .premium-booking-hero h1,
  .confirmation-success-hero h1 {
    font-size: 24px;
  }
  .price-block strong,
  .starting-fare-box strong,
  .hero-price-chip strong {
    font-size: 22px;
  }
  .premium-card-actions,
  .booking-hero-actions {
    justify-content: stretch;
  }
  .premium-card-actions > *,
  .booking-hero-actions > * {
    width: 100%;
  }
  .train-search-shell .premium-book-btn {
    width: 100%;
  }
  .confirmation-masthead {
    min-height: 76px;
    padding: 0 16px;
  }
  .confirmation-logo img {
    height: 46px;
  }
  .confirmation-page-shell {
    padding: 0 10px 30px;
  }
}

/* =========================================================
   Final palette alignment + stronger multi-device responsiveness
   ========================================================= */

body {
  background: linear-gradient(180deg, #f4f9ff 0%, #eef5fb 55%, #f8fbff 100%);
}

.train-search-shell {
  --ts-primary: #0b347c;
  --ts-primary-dark: #082a62;
  --ts-primary-soft: #edf5ff;
  --ts-primary-soft-2: #dff3fb;
  --ts-accent: #ffcc33;
  --ts-accent-dark: #e0b300;
  --ts-sky: #12b7d8;
  --ts-text: #132d46;
  --ts-muted: #6d7c92;
  --ts-border: #dbe6f0;
  --ts-surface: #ffffff;
  --ts-surface-soft: #f7fbff;
  --ts-shadow-lg: 0 22px 44px rgba(11, 52, 124, 0.10);
  --ts-shadow-md: 0 12px 26px rgba(18, 183, 216, 0.10);
}

.results-search-strip,
.premium-result-card,
.premium-filter-card,
.premium-panel,
.premium-summary-panel,
.confirmation-section-card,
.premium-confirmation-card {
  border-color: rgba(11, 52, 124, 0.10);
}

.results-search-strip {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,255,0.98));
  box-shadow: 0 14px 36px rgba(11, 52, 124, 0.07);
}

.trip-toggle-pill {
  color: var(--ts-primary);
  background: #f3f8ff;
  border-color: rgba(11, 52, 124, 0.10);
}

.trip-toggle-pill.active {
  background: linear-gradient(135deg, var(--ts-primary), #0f59ad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(11, 52, 124, 0.16);
}

.search-strip-field {
  border-color: #d5e3ef;
  background: #fff;
}

.search-strip-field span,
.results-title-row h1,
.starting-fare-box strong,
.filter-title-line h2,
.operator-cell strong,
.booking-flight-route h3,
.confirmation-route-brand h3,
.premium-detail-grid p,
.booking-flight-head strong,
.summary-route-mini h3,
.confirmation-leg-head strong,
.confirmation-table th,
.policy-card h2 {
  color: var(--ts-primary);
}

.search-strip-field strong {
  color: var(--ts-text);
  white-space: normal;
  line-height: 1.35;
}

.swap-floating {
  background: linear-gradient(135deg, var(--ts-accent), var(--ts-sky));
  color: var(--ts-primary-dark);
}

.modify-search-btn,
.train-search-shell .premium-submit-btn {
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-sky));
  color: #fff;
  box-shadow: 0 14px 26px rgba(11, 52, 124, 0.14);
}

.modify-search-btn:hover,
.train-search-shell .premium-submit-btn:hover:not(:disabled) {
  box-shadow: 0 18px 32px rgba(11, 52, 124, 0.22);
}

.starting-fare-box,
.premium-booking-hero {
  border-top-color: var(--ts-accent);
}

.fare-card-ribbon,
.filter-title-line span,
.fake-range,
.fake-range::before,
.fake-range::after {
  background: var(--ts-accent);
}

.fake-range::before,
.fake-range::after {
  border-color: var(--ts-primary);
}

.best-value-tag,
.status-pill,
.important-note {
  background: #fff7db;
  border-color: #ffe287;
  color: #7b6200;
}

.train-search-shell .premium-book-btn {
  background: var(--ts-primary);
  color: #fff;
  border: 1px solid rgba(11, 52, 124, 0.10);
}

.train-search-shell .premium-book-btn:hover {
  background: linear-gradient(135deg, var(--ts-primary-dark), var(--ts-sky));
  color: #fff;
}

.operator-logo {
  background: linear-gradient(180deg, #f8fbff, #eef7ff);
}

.duration-pill,
.rail-line b,
.premium-details-dropdown summary,
.hero-price-chip strong,
.checkout-stepper .active,
.checkout-stepper .active b,
.summary-route-mini p,
.booking-id-pill strong,
.confirmation-success-hero h1,
.confirmation-success-hero h2,
.confirmation-actions .modify-search-btn {
  color: var(--ts-primary);
}

.hero-price-chip {
  background: linear-gradient(135deg, var(--ts-primary), #0e4c98);
  box-shadow: 0 12px 26px rgba(11, 52, 124, 0.16);
}

.hero-price-chip strong,
.booking-id-pill {
  color: #fff;
}

.booking-id-pill {
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-sky));
}

.checkout-stepper .active b {
  background: var(--ts-accent);
}

.secure-payment-banner {
  background: linear-gradient(90deg, rgba(11,52,124,0.06), rgba(18,183,216,0.08));
  border: 1px solid rgba(11, 52, 124, 0.08);
}

.green-note,
.booking-id-pill,
.confirmation-email-note strong {
  color: #0f6a78;
}

.confirmation-success-hero h1 {
  color: var(--ts-primary);
}

.confirmation-success-hero h2 {
  color: #d99000;
}

.success-checkmark {
  background: linear-gradient(135deg, #28b35d, #19a5a3);
}

.confirmation-email-note {
  color: var(--ts-text);
}

/* ---------- richer tablet layout ---------- */
@media (max-width: 1260px) {
  .results-premium-wrap,
  .premium-booking-shell {
    max-width: 1080px;
  }

  .search-strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .search-strip-field.wide {
    grid-column: span 2;
  }

  .swap-floating {
    display: none;
  }

  .search-strip-field:nth-child(4),
  .search-strip-field:nth-child(5),
  .search-strip-field:nth-child(6) {
    grid-column: span 1;
  }

  .modify-search-btn {
    grid-column: 4 / 5;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .premium-results-layout,
  .premium-booking-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .premium-filter-card,
  .sticky-summary-inner {
    position: static;
    top: auto;
  }

  .premium-filter-card {
    order: 2;
  }
}

@media (max-width: 960px) {
  .page-wrap,
  .premium-booking-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-strip-field.wide,
  .search-strip-field,
  .modify-search-btn {
    grid-column: span 1;
  }

  .modify-search-btn {
    grid-column: 1 / -1;
  }

  .results-title-row,
  .premium-card-top,
  .booking-hero,
  .booking-hero-actions,
  .section-heading-row,
  .confirmation-leg-head {
    flex-direction: column;
    align-items: stretch;
  }

  .starting-fare-box,
  .hero-price-chip {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .premium-itinerary-row,
  .booking-mini-route,
  .confirmation-timeline-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 12px;
  }

  .duration-cell,
  .rail-line {
    justify-content: flex-start;
    text-align: left;
  }

  .booking-flight-grid.has-return-trip,
  .passenger-count-card,
  .checkout-stepper,
  .premium-detail-grid,
  .two-col-details {
    grid-template-columns: 1fr;
  }

  .premium-card-actions,
  .booking-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .premium-card-actions > *,
  .booking-hero-actions > * {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .results-premium-wrap,
  .premium-booking-shell {
    margin-top: 18px;
  }

  .results-search-strip,
  .premium-result-card,
  .premium-filter-card,
  .premium-panel,
  .premium-summary-panel,
  .confirmation-section-card,
  .premium-confirmation-card {
    padding: 16px;
    border-radius: 14px;
  }

  .trip-toggle-pills {
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .search-strip-grid,
  .booking-form-grid {
    grid-template-columns: 1fr !important;
  }

  .search-strip-field.wide,
  .search-strip-field,
  .modify-search-btn {
    grid-column: auto;
    width: 100%;
  }

  .results-title-row h1,
  .premium-booking-hero h1,
  .confirmation-success-hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .price-block strong,
  .starting-fare-box strong,
  .hero-price-chip strong {
    font-size: 22px;
  }

  .checkout-stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-flight-head {
    gap: 10px;
    align-items: flex-start;
  }

  .confirmation-masthead {
    min-height: 76px;
    padding: 0 16px;
  }

  .confirmation-logo img {
    height: 46px;
  }

  .confirmation-page-shell {
    padding: 0 10px 30px;
  }

  .confirmation-table {
    min-width: 560px;
  }
}

@media (max-width: 560px) {
  .page-wrap,
  .premium-booking-shell,
  .confirmation-page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .results-search-strip,
  .premium-result-card,
  .premium-filter-card,
  .premium-panel,
  .premium-summary-panel,
  .confirmation-section-card,
  .premium-confirmation-card {
    padding: 14px;
  }

  .results-title-row h1,
  .premium-booking-hero h1,
  .confirmation-success-hero h1 {
    font-size: 21px;
  }

  .operator-cell strong,
  .booking-flight-route h3,
  .confirmation-route-brand h3 {
    font-size: 15px;
    white-space: normal;
  }

  .time-cell strong,
  .booking-mini-route strong,
  .confirmation-timeline-row strong,
  .price-block strong,
  .starting-fare-box strong,
  .hero-price-chip strong {
    font-size: 20px;
  }

  .checkout-stepper {
    grid-template-columns: 1fr;
  }

  .trip-toggle-pill,
  .best-value-tag,
  .status-pill {
    width: max-content;
    max-width: 100%;
  }

  .train-search-shell .premium-book-btn,
  .modify-search-btn,
  .train-search-shell .premium-submit-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .confirmation-success-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .confirmation-success-hero h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .confirmation-email-note {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 400px) {
  .trip-toggle-pills {
    gap: 8px;
  }

  .trip-toggle-pill {
    font-size: 12px;
    padding: 0 12px;
  }

  .search-strip-field,
  .counter-box,
  .booking-flight-card,
  .summary-route-mini,
  .premium-details-inner {
    border-radius: 12px;
  }

  .success-checkmark {
    width: 62px;
    height: 62px;
    font-size: 38px;
  }
}

/* Remove filter sidebar from search results and let cards use full width */
.no-filter-layout {
  display: block;
}

.full-results-main {
  width: 100%;
  max-width: 100%;
}

.no-filter-layout .premium-results-stack {
  width: 100%;
}

/* =========================================================
   Homepage upgrade: hero, popular routes, offers, about, contact
   ========================================================= */

.home-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 20px 54px;
}

.home-hero-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  gap: 28px;
  min-height: 560px;
  padding: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 5% 10%, rgba(18, 183, 216, .18), transparent 28%),
    radial-gradient(circle at 94% 12%, rgba(255, 204, 51, .20), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #f3f9ff 100%);
  border: 1px solid rgba(11, 52, 124, .08);
  box-shadow: 0 28px 65px rgba(11, 52, 124, .10);
  overflow: hidden;
}

.home-hero-copy {
  min-width: 0;
}

.home-eyebrow,
.home-section-heading span,
.home-offer-strip article span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f5ff;
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.home-hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
  color: var(--ts-primary);
  letter-spacing: -1.8px;
}

.home-hero-copy p {
  margin: 0;
  color: #4d6177;
  font-size: 17px;
  line-height: 1.72;
  max-width: 650px;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.hero-trust-row div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11, 52, 124, .08);
  box-shadow: 0 12px 26px rgba(11, 52, 124, .06);
}

.hero-trust-row strong {
  display: block;
  color: var(--ts-primary);
  font-size: 24px;
  margin-bottom: 3px;
}

.hero-trust-row span {
  color: var(--ts-muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-mini-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mini-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--ts-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 52, 124, .15);
}

.hero-mini-actions a:nth-child(2) {
  background: #fff;
  color: var(--ts-primary);
  border: 1px solid rgba(11, 52, 124, .12);
  box-shadow: none;
}

.home-search-panel {
  min-width: 0;
}

.home-search-panel > .train-search-shell {
  width: 100%;
}

.home-search-panel .train-search-card {
  margin: 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(11, 52, 124, .08);
  box-shadow: 0 22px 45px rgba(11, 52, 124, .11);
}

.home-search-panel .train-search-card h1 {
  font-size: 28px;
  letter-spacing: -.5px;
}

.home-search-panel .subtitle {
  font-size: 15px;
  margin-bottom: 20px;
}

.home-search-panel .train-search-form {
  grid-template-columns: 1fr 48px 1fr;
  gap: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.home-search-panel .trip-type-row,
.home-search-panel .input-group:nth-of-type(3),
.home-search-panel #returnDateWrap,
.home-search-panel .search-btn-wrap {
  grid-column: 1 / -1;
}

.home-search-panel .input-group input,
.home-search-panel .swap-btn,
.home-search-panel .search-btn {
  height: 50px;
}

.home-search-panel .search-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-sky));
}

.home-offer-strip,
.results-offer-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.home-offer-strip article,
.results-offer-banners article {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,204,51,.25), transparent 30%),
    linear-gradient(135deg, #ffffff, #f6fbff);
  border: 1px solid rgba(11, 52, 124, .10);
  box-shadow: 0 16px 34px rgba(11, 52, 124, .07);
}

.home-offer-strip article::before,
.results-offer-banners article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ts-accent), var(--ts-sky));
}

.home-offer-strip h2,
.results-offer-banners h2 {
  margin: 14px 0 8px;
  color: var(--ts-primary);
  font-size: 20px;
  line-height: 1.22;
}

.home-offer-strip p,
.results-offer-banners p {
  margin: 0;
  color: #52667c;
  line-height: 1.58;
  font-size: 14px;
}

.home-section {
  margin-top: 70px;
}

.home-section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.center-heading {
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-section-heading h2,
.about-card h2,
.contact-card h2 {
  margin: 0;
  color: var(--ts-primary);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.8px;
}

.home-section-heading p,
.about-card p,
.contact-card p {
  margin: 0;
  color: #5a6c80;
  line-height: 1.72;
  font-size: 16px;
}

.popular-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.popular-route-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 52, 124, .10);
  box-shadow: 0 16px 32px rgba(11, 52, 124, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.popular-route-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 183, 216, .32);
  box-shadow: 0 24px 48px rgba(11, 52, 124, .12);
}

.route-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f5ff, #fff5cc);
  font-size: 24px;
}

.route-card-main span {
  color: #0f7c99;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card-main h3 {
  margin: 5px 0;
  color: var(--ts-primary);
  font-size: 18px;
  line-height: 1.2;
}

.route-card-main p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 13px;
  line-height: 1.45;
}

.route-card-price {
  text-align: right;
  padding-left: 10px;
}

.route-card-price small {
  display: block;
  color: var(--ts-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
}

.route-card-price strong {
  display: block;
  color: var(--ts-primary);
  font-size: 21px;
  margin-top: 3px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(11, 52, 124, .10);
  box-shadow: 0 16px 34px rgba(11, 52, 124, .07);
}

.why-grid b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #e8f5ff;
  font-size: 24px;
  margin-bottom: 18px;
}

.why-grid h3 {
  margin: 0 0 10px;
  color: var(--ts-primary);
  font-size: 19px;
}

.why-grid p {
  margin: 0;
  color: #5f7084;
  line-height: 1.6;
  font-size: 14px;
}

.about-contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.about-card,
.contact-card {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(11, 52, 124, .10);
  box-shadow: 0 18px 42px rgba(11, 52, 124, .08);
}

.about-card {
  background:
    radial-gradient(circle at top right, rgba(18, 183, 216, .13), transparent 34%),
    linear-gradient(135deg, #fff, #f6fbff);
}

.about-card h2,
.contact-card h2 {
  margin-top: 14px;
  margin-bottom: 14px;
}

.about-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.about-points div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6fbff;
  color: var(--ts-text);
  font-weight: 800;
}

.about-points strong {
  color: #0f9d78;
}

.home-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ts-primary);
  font-weight: 900;
  font-size: 14px;
}

.home-contact-form input,
.home-contact-form textarea {
  width: 100%;
  border: 1px solid #d7e3ef;
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  font: inherit;
  color: var(--ts-text);
  background: #fbfdff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
  border-color: var(--ts-sky);
  box-shadow: 0 0 0 4px rgba(18, 183, 216, .12);
}

.home-contact-form button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-sky));
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(11, 52, 124, .16);
}

.contact-flash {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.contact-flash.success {
  background: #eefaf4;
  color: #0e6844;
  border: 1px solid #bde6d0;
}

.contact-flash.error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.travelto-footer {
  max-width: 1220px;
  margin: 0 auto 24px;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(11,52,124,.10);
}

.travelto-footer img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.travelto-footer p {
  margin: 0;
  color: var(--ts-muted);
}

.travelto-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.travelto-footer a {
  color: var(--ts-primary);
  font-weight: 800;
}

/* Results page offer banners */
.results-offer-banners {
  margin-top: -2px;
  margin-bottom: 22px;
}

.results-offer-banners article {
  padding: 18px 20px;
}

.results-offer-banners h2 {
  font-size: 18px;
}

/* Homepage responsive improvements */
@media (max-width: 1180px) {
  .home-hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-search-panel .train-search-form {
    grid-template-columns: 1fr 48px 1fr;
  }

  .popular-routes-grid,
  .home-offer-strip,
  .results-offer-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page {
    padding: 18px 12px 38px;
  }

  .home-hero-section {
    padding: 18px;
    border-radius: 22px;
  }

  .home-hero-copy h1 {
    letter-spacing: -.8px;
  }

  .hero-trust-row,
  .popular-routes-grid,
  .home-offer-strip,
  .results-offer-banners,
  .why-grid,
  .form-row-two {
    grid-template-columns: 1fr;
  }

  .home-search-panel .train-search-card {
    padding: 16px;
    border-radius: 18px;
  }

  .home-search-panel .train-search-form {
    grid-template-columns: 1fr !important;
  }

  .home-search-panel .swap-btn {
    width: 100%;
  }

  .home-section {
    margin-top: 46px;
  }

  .popular-route-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .route-card-price {
    grid-column: 2 / 3;
    text-align: left;
    padding-left: 0;
  }

  .about-card,
  .contact-card {
    padding: 20px;
    border-radius: 20px;
  }

  .travelto-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 430px) {
  .hero-mini-actions a {
    width: 100%;
  }

  .home-section-heading h2,
  .about-card h2,
  .contact-card h2 {
    font-size: 25px;
  }

  .home-offer-strip article,
  .results-offer-banners article,
  .why-grid article {
    padding: 18px;
  }
}


/* =========================================================
   Final Travelto polish: navbar, footer, font, layout fixes
   ========================================================= */

:root {
  --tt-navy: #0B3857;
  --tt-navy-dark: #061f32;
  --tt-gold: #FFCE1A;
  --tt-blue: #0b347c;
  --tt-cyan: #12b7d8;
  --tt-bg: #f4f9ff;
  --tt-text: #0f2740;
}

html {
  scroll-behavior: smooth;
}

body,
.train-search-shell {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif !important;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 206, 26, .12), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(18, 183, 216, .12), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
  color: var(--tt-text);
}

/* ---------- Main navbar from Travelto dark/gold vibe ---------- */
.travelto-site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #000 0%, var(--tt-navy) 52%, var(--tt-navy-dark) 100%);
  border-bottom: 5px solid var(--tt-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

.travelto-navbar {
  max-width: 1460px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.travelto-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.travelto-logo img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.18));
}

.travelto-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.travelto-nav-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  position: relative;
  padding: 8px 0;
}

.travelto-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--tt-gold);
  transition: width .25s ease;
}

.travelto-nav-links a:hover {
  color: var(--tt-gold);
}

.travelto-nav-links a:hover::after {
  width: 100%;
}

.travelto-call-pill {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--tt-gold);
  color: var(--tt-navy);
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 26px rgba(255,206,26,.25);
  font-weight: 900;
  flex: 0 0 auto;
}

.travelto-call-pill .call-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tt-navy);
  color: var(--tt-gold);
  font-size: 19px;
}

.travelto-call-pill small,
.travelto-call-pill strong {
  display: block;
  line-height: 1.1;
}

.travelto-call-pill small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.travelto-call-pill strong {
  margin-top: 3px;
  font-size: 15px;
}

.travelto-call-pill:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--tt-navy);
}

.travelto-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,206,26,.65);
  border-radius: 12px;
  background: rgba(255,206,26,.10);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.travelto-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--tt-gold);
  transition: transform .22s ease, opacity .22s ease;
}

.travelto-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.travelto-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.travelto-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Search card equal widths ---------- */
.train-search-shell .train-search-card {
  border: 1px solid rgba(11, 56, 87, .10);
}

.train-search-shell .train-search-form {
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) minmax(160px, .82fr) minmax(160px, .82fr) auto;
  align-items: end;
}

.train-search-shell .input-group,
.train-search-shell .input-group input {
  min-width: 0;
}

.train-search-shell .input-group input {
  text-overflow: ellipsis;
}

/* ---------- Result route overlap fix ---------- */
.premium-itinerary-row {
  grid-template-columns: minmax(260px, 1.32fr) minmax(190px, 1fr) minmax(130px, 150px) minmax(190px, 1fr);
  gap: 22px;
}

.operator-cell,
.booking-flight-route,
.confirmation-route-brand {
  min-width: 0;
}

.operator-cell strong,
.booking-flight-route h3,
.confirmation-route-brand h3 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.22;
}

.operator-cell span,
.booking-flight-route p,
.confirmation-route-brand p {
  line-height: 1.35;
}

.call-offer-card {
  background:
    radial-gradient(circle at 92% 16%, rgba(255,206,26,.25), transparent 28%),
    linear-gradient(135deg, #061f32, #0B3857) !important;
  color: #fff;
  border-color: rgba(255,206,26,.45) !important;
}

.call-offer-card span,
.call-offer-card h2,
.call-offer-card p,
.call-offer-card a {
  color: #fff !important;
}

.call-offer-card a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--tt-gold);
}

/* ---------- Wider booking layout for large screens ---------- */
.premium-booking-shell {
  max-width: min(1460px, calc(100vw - 44px));
}

.premium-booking-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.premium-booking-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 28px;
}

.premium-summary-panel {
  align-self: start;
}

.payment-trust-mini,
.summary-call-card {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(11,56,87,.10);
  background: #fff;
  padding: 14px;
}

.payment-trust-mini span,
.summary-call-card span {
  display: block;
  color: var(--ts-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.payment-trust-mini img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.summary-call-card {
  background: linear-gradient(135deg, var(--tt-navy), #06263e);
  color: #fff;
  border: 1px solid rgba(255,206,26,.35);
}

.summary-call-card span {
  color: rgba(255,255,255,.72);
}

.summary-call-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.summary-call-card a {
  display: inline-flex;
  color: var(--tt-gold);
  font-weight: 900;
}

/* ---------- Home call branding ---------- */
.home-call-banner {
  max-width: 1220px;
  margin: 24px auto 0;
  padding: 28px;
  border-radius: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,206,26,.24), transparent 30%),
    linear-gradient(135deg, #000, var(--tt-navy));
  color: #fff;
  box-shadow: 0 22px 46px rgba(0,0,0,.16);
  border: 1px solid rgba(255,206,26,.32);
}

.home-call-banner span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(255,206,26,.14);
  color: var(--tt-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-call-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
}

.home-call-banner p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.home-call-banner a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tt-gold);
  color: var(--tt-navy);
  padding: 0 22px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(255,206,26,.20);
}

/* ---------- Footer from provided Travelto vibe ---------- */
.travelto-site-footer {
  margin-top: 60px;
  padding: 42px 22px 18px;
  background-image: linear-gradient(to top, var(--tt-navy) 0%, #000 100%);
  color: #fff;
  border-top: 12px solid var(--tt-gold);
}

.footer-call-panel {
  max-width: 1180px;
  margin: -78px auto 34px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--tt-text);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(11,56,87,.10);
}

.footer-call-panel span {
  color: var(--tt-cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.footer-call-panel h2 {
  margin: 6px 0 0;
  color: var(--tt-navy);
  font-size: 24px;
}

.footer-call-panel a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tt-gold);
  color: var(--tt-navy);
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
}

.app-footer__content {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .85fr 1fr 1.25fr;
  gap: 28px;
}

.app-footer__title {
  margin: 0 0 18px;
  color: var(--tt-gold);
  font-size: 18px;
  font-weight: 900;
}

.app-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.app-footer__link,
.app-footer__section p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.65;
}

.app-footer__link:hover {
  color: var(--tt-gold);
  text-decoration: underline;
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info p {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--tt-gold);
}

.app-footer__payments {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  padding: 8px;
}

.app-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 900;
}

.social-link:hover {
  background: var(--tt-gold);
  color: var(--tt-navy);
}

.app-footer__disclaimer {
  max-width: 1220px;
  margin: 34px auto 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 12px;
}

.app-footer__disclaimer p {
  margin: 0 0 8px;
}

.mobile-call-bar {
  display: none;
}

/* ---------- Responsive polish ---------- */
@media (min-width: 1500px) {
  .results-premium-wrap {
    max-width: 1360px;
  }
}

@media (max-width: 1180px) {
  .travelto-menu-toggle {
    display: block;
  }

  .travelto-navbar {
    min-height: 76px;
  }

  .travelto-nav-links {
    position: absolute;
    top: calc(100% + 5px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, var(--tt-navy), #000);
    box-shadow: 0 18px 36px rgba(0,0,0,.25);
    border: 1px solid rgba(255,206,26,.25);
  }

  .travelto-nav-links.active {
    display: flex;
  }

  .travelto-nav-links a {
    display: block;
    padding: 13px 12px;
    border-radius: 12px;
  }

  .travelto-nav-links a:hover {
    background: rgba(255,206,26,.10);
  }

  .travelto-call-pill {
    margin-left: auto;
  }

  .app-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-booking-layout {
    grid-template-columns: 1fr;
  }

  .payment-trust-mini img {
    max-width: 440px;
  }
}

@media (max-width: 900px) {
  .travelto-navbar {
    padding: 0 14px;
    gap: 12px;
  }

  .travelto-logo img {
    height: 46px;
  }

  .travelto-call-pill {
    min-height: 46px;
    padding: 6px 10px;
  }

  .travelto-call-pill .call-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .travelto-call-pill small {
    display: none;
  }

  .travelto-call-pill strong {
    font-size: 13px;
  }

  .premium-itinerary-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-call-banner,
  .footer-call-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-call-banner a,
  .footer-call-panel a {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 78px;
  }

  .train-search-shell .train-search-form,
  .home-search-panel .train-search-form {
    grid-template-columns: 1fr !important;
  }

  .train-search-shell .swap-btn {
    width: 100%;
  }

  .travelto-call-pill span:not(.call-icon) {
    display: none;
  }

  .travelto-call-pill {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
  }

  .app-footer__content {
    grid-template-columns: 1fr;
  }

  .app-footer__payments {
    max-width: 100%;
  }

  .footer-call-panel {
    margin-top: -68px;
  }

  .mobile-call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 12px 14px;
    background: linear-gradient(to top, var(--tt-navy) 0%, #000 100%);
    border-top: 3px solid var(--tt-gold);
    box-shadow: 0 -12px 28px rgba(0,0,0,.22);
  }

  .mobile-call-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
  }

  .mobile-call-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--tt-navy);
    background: var(--tt-gold);
    font-size: 22px;
    flex: 0 0 auto;
  }

  .mobile-call-text span,
  .mobile-call-text strong {
    display: block;
    line-height: 1.2;
  }

  .mobile-call-text span {
    font-size: 11px;
    opacity: .82;
  }

  .mobile-call-text strong {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
  }
}

@media (max-width: 520px) {
  .travelto-logo img {
    height: 40px;
  }

  .travelto-navbar {
    min-height: 68px;
  }

  .travelto-menu-toggle,
  .travelto-call-pill {
    width: 42px;
    height: 42px;
  }

  .home-call-banner,
  .footer-call-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .payment-trust-mini,
  .summary-call-card {
    padding: 12px;
  }
}


/* Hide old confirmation masthead now that the shared navbar is active */
.confirmation-page-shell .confirmation-masthead { display: none; }


/* =========================================================
   Hotfix: homepage search From/To equal width
   ========================================================= */
.home-search-panel .train-search-form {
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) !important;
  align-items: end;
}

.home-search-panel .train-search-form > .trip-type-row {
  grid-column: 1 / -1 !important;
}

.home-search-panel .train-search-form > .input-group:nth-of-type(2) {
  grid-column: 1 / 2 !important;
}

.home-search-panel .train-search-form > .swap-btn {
  grid-column: 2 / 3 !important;
  width: 54px !important;
  min-width: 54px !important;
  justify-self: center;
}

.home-search-panel .train-search-form > .input-group:nth-of-type(3) {
  grid-column: 3 / 4 !important;
}

.home-search-panel .train-search-form > .input-group:nth-of-type(4),
.home-search-panel .train-search-form > #returnDateWrap,
.home-search-panel .train-search-form > .search-btn-wrap {
  grid-column: 1 / -1 !important;
}

.home-search-panel .train-search-form > .input-group,
.home-search-panel .train-search-form > .input-group input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 680px) {
  .home-search-panel .train-search-form {
    grid-template-columns: 1fr !important;
  }

  .home-search-panel .train-search-form > .input-group:nth-of-type(2),
  .home-search-panel .train-search-form > .swap-btn,
  .home-search-panel .train-search-form > .input-group:nth-of-type(3),
  .home-search-panel .train-search-form > .input-group:nth-of-type(4),
  .home-search-panel .train-search-form > #returnDateWrap,
  .home-search-panel .train-search-form > .search-btn-wrap {
    grid-column: 1 / -1 !important;
  }

  .home-search-panel .train-search-form > .swap-btn {
    width: 100% !important;
  }
}


/* =========================================================
   Final fixes: original navbar, clean details arrows, stronger mobile cards
   ========================================================= */

/* Keep the original white navbar design active. */
.site-header:not(.travelto-site-header) {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(11, 52, 124, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.site-header:not(.travelto-site-header) .navbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.site-header:not(.travelto-site-header) .nav-links a {
  color: #0b347c !important;
}

.site-header:not(.travelto-site-header) .nav-links a:hover {
  color: #12aeca !important;
}

.site-header:not(.travelto-site-header) .call-box,
.site-header:not(.travelto-site-header) .mobile-call-btn {
  background: #ffffff !important;
  border: 1px solid rgba(11, 52, 124, 0.09) !important;
  color: #0b347c !important;
  box-shadow: 0 8px 20px rgba(11, 52, 124, 0.07) !important;
}

.site-header:not(.travelto-site-header) .call-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 52, 124, 0.12) !important;
}

.site-header:not(.travelto-site-header) .mobile-call-btn {
  background: linear-gradient(135deg, #18b7d8, #0b347c) !important;
  color: #fff !important;
}

/* Replace unicode arrow glyphs with CSS triangles so broken text like â-¾ never appears. */
.premium-details-dropdown summary,
.train-search-shell .trip-details-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.premium-details-dropdown summary::after,
.train-search-shell .trip-details-dropdown summary::after {
  content: "" !important;
  float: none !important;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(1px);
}

.premium-details-dropdown[open] summary::after,
.train-search-shell .trip-details-dropdown[open] summary::after {
  content: "" !important;
  border-top: 0;
  border-bottom: 6px solid currentColor;
}

/* Make result cards complete and readable on phone screens. */
@media (max-width: 680px) {
  .premium-result-card {
    padding: 18px;
  }

  .premium-card-top {
    gap: 14px;
  }

  .premium-itinerary-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: stretch;
    padding: 16px 0;
  }

  .premium-itinerary-row .operator-cell,
  .premium-itinerary-row .time-cell,
  .premium-itinerary-row .duration-cell {
    width: 100%;
  }

  .premium-itinerary-row .time-cell {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid rgba(11, 52, 124, .08);
  }

  .premium-itinerary-row .duration-cell {
    padding: 6px 0;
  }

  .premium-itinerary-row .duration-cell .rail-line {
    justify-content: flex-start;
  }
}


/* =========================================================
   Hotfix: remove default underline from all links
   ========================================================= */
a,
a:visited,
a:hover,
a:focus,
a:active,
.train-search-shell a,
.train-search-shell a:visited,
.train-search-shell a:hover,
.train-search-shell a:focus,
.train-search-shell a:active,
.app-footer a,
.app-footer a:visited,
.app-footer a:hover,
.app-footer a:focus,
.app-footer a:active,
.premium-agreement-box a,
.home-contact-form a,
.contact-card a,
.results-offer-banners a,
.summary-call-card a,
.mobile-call-link {
  text-decoration: none !important;
}



/* =========================================================
   Travelto custom form selects + calendar picker
   ========================================================= */
.train-search-shell .booking-form-group select,
.train-search-shell select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d4dde6;
  border-radius: 8px;
  background-color: #fff;
  padding: 0 42px 0 12px;
  color: #152d42;
  font: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0B3857 50%),
    linear-gradient(135deg, #0B3857 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.train-search-shell .booking-form-group select:focus,
.train-search-shell select:focus {
  border-color: #0B3857;
  box-shadow: 0 0 0 4px rgba(11, 56, 87, .09);
}

.train-search-shell select:disabled {
  opacity: .72;
  cursor: not-allowed;
  background-color: #f4f7fa;
}

.train-search-shell .tt-date-input {
  cursor: pointer;
  caret-color: transparent;
  background-image:
    linear-gradient(135deg, rgba(11,56,87,.05), rgba(18,183,216,.05)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230B3857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position: center, calc(100% - 14px) center;
  background-size: auto, 20px 20px;
  background-repeat: no-repeat;
  padding-right: 48px !important;
}

.tt-calendar {
  position: absolute;
  z-index: 100000;
  background: #ffffff;
  border: 1px solid rgba(11, 56, 87, .14);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(4, 31, 50, .22);
  padding: 14px;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

.tt-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid #e2edf6;
}

.tt-calendar-head strong {
  color: #0B3857;
  font-size: 15px;
  font-weight: 900;
}

.tt-calendar-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #e8f5ff;
  color: #0B3857;
  font-size: 25px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.tt-calendar-head button:hover {
  background: #FFCE1A;
}

.tt-calendar-weekdays,
.tt-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.tt-calendar-weekdays {
  margin: 12px 0 8px;
}

.tt-calendar-weekdays span {
  text-align: center;
  color: #6d7c92;
  font-size: 11px;
  font-weight: 900;
}

.tt-calendar-grid button,
.tt-calendar-empty {
  min-height: 38px;
  border-radius: 12px;
}

.tt-calendar-grid button {
  border: 1px solid transparent;
  background: #f7fbff;
  color: #132d46;
  font-weight: 800;
  cursor: pointer;
}

.tt-calendar-grid button:hover:not(:disabled) {
  border-color: #12b7d8;
  background: #e8f8fc;
  color: #0B3857;
}

.tt-calendar-grid button.is-today {
  border-color: rgba(11, 56, 87, .35);
}

.tt-calendar-grid button.is-selected {
  background: linear-gradient(135deg, #0B3857, #12b7d8);
  color: #fff;
  box-shadow: 0 10px 18px rgba(11, 56, 87, .18);
}

.tt-calendar-grid button:disabled {
  opacity: .34;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .tt-calendar {
    position: fixed;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 92px !important;
    width: auto !important;
  }

  .tt-calendar-grid button,
  .tt-calendar-empty {
    min-height: 36px;
  }
}


/* Postal-code lookup helper */
.postal-lookup-note {
  display: block;
  margin-top: 8px;
  color: #6d7c92;
  font-size: 12px;
  line-height: 1.45;
}

.postal-lookup-note.success {
  color: #117a55;
  font-weight: 800;
}

.postal-lookup-note.error {
  color: #be123c;
  font-weight: 800;
}

.postal-lookup-note.loading {
  color: #0B3857;
  font-weight: 800;
}


/* Calendar header month/year dropdown fix */
.tt-cal-selectors {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
}

.tt-cal-selectors select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(11, 56, 87, .16);
  border-radius: 12px;
  background-color: #fff;
  color: #0B3857;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
  outline: none;
  cursor: pointer;
}

.tt-cal-selectors select:focus {
  border-color: #12b7d8;
  box-shadow: 0 0 0 3px rgba(18,183,216,.14);
}

.tt-calendar-head .tt-cal-nav {
  flex: 0 0 38px;
}


/* =========================================================
   Mobile result cards inspired by modern booking platforms
   ========================================================= */
@media (max-width: 760px) {
  .results-premium-wrap {
    margin-top: 14px;
  }

  .results-offer-banners {
    display: none !important;
  }

  .results-title-row {
    margin-bottom: 14px;
  }

  .results-title-row h1 {
    font-size: 25px;
    line-height: 1.15;
  }

  .results-title-row p {
    font-size: 13px;
    line-height: 1.5;
  }

  .starting-fare-box {
    padding: 13px 14px;
    border-radius: 16px;
  }

  .premium-result-card {
    border-radius: 19px;
    padding: 16px;
    box-shadow: 0 18px 36px rgba(11, 56, 87, .10);
    border: 1px solid rgba(11, 56, 87, .10);
  }

  .premium-card-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
  }

  .price-block strong {
    font-size: 24px !important;
  }

  .price-block span {
    font-size: 11px;
    line-height: 1.35;
  }

  .premium-card-actions {
    display: grid !important;
    gap: 8px;
    width: auto !important;
    justify-items: end;
  }

  .premium-card-actions > * {
    width: auto !important;
  }

  .best-value-tag {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
    background: #fff8d8;
    border-color: rgba(255, 206, 26, .75);
  }

  .train-search-shell .premium-book-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    background: linear-gradient(135deg, #0B3857, #0b347c);
    color: #fff;
  }

  .premium-itinerary-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr) !important;
    grid-template-areas:
      "operator operator operator"
      "start duration end";
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin: 0;
    border: 1px solid #dce8f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
  }

  .roundtrip-premium-card .premium-itinerary-row {
    margin-top: 12px;
  }

  .premium-result-card .premium-itinerary-row:first-of-type {
    margin-top: 0;
  }

  .premium-itinerary-row .operator-cell {
    grid-area: operator;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eff6;
  }

  .operator-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .operator-cell strong {
    font-size: 15px !important;
    line-height: 1.25;
    color: #0b347c;
  }

  .operator-cell span {
    font-size: 12px;
    color: #65758a;
  }

  .premium-itinerary-row .start-time-cell {
    grid-area: start;
  }

  .premium-itinerary-row .end-time-cell {
    grid-area: end;
    text-align: right;
  }

  .premium-itinerary-row .duration-cell {
    grid-area: duration;
    align-self: center;
    text-align: center;
  }

  .premium-itinerary-row .time-cell {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    min-width: 0;
  }

  .premium-itinerary-row .time-cell strong {
    font-size: 19px !important;
    line-height: 1.1;
    margin-bottom: 7px;
    color: #061f32;
  }

  .premium-itinerary-row .time-cell span {
    font-size: 12px;
    line-height: 1.35;
    color: #33475b;
  }

  .duration-pill {
    font-size: 11px;
    background: #e9f6ff;
    border: 1px solid #d4ebfb;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .premium-itinerary-row .rail-line {
    margin: 8px 0 4px;
    justify-content: center !important;
  }

  .premium-itinerary-row .rail-line i {
    width: 18px;
  }

  .duration-cell small {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #098b55;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
  }

  .segment-divider {
    display: none;
  }

  .premium-details-dropdown summary {
    padding: 14px 2px 2px;
    font-size: 14px;
  }

  .premium-details-inner {
    padding: 12px;
    border-radius: 14px;
  }

  .premium-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .premium-result-note {
    font-size: 12px;
    line-height: 1.55;
    padding: 13px;
  }
}

@media (max-width: 430px) {
  .premium-card-top {
    grid-template-columns: 1fr;
  }

  .premium-card-actions {
    justify-items: stretch;
  }

  .premium-card-actions > *,
  .train-search-shell .premium-book-btn {
    width: 100% !important;
  }

  .premium-itinerary-row {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) !important;
    padding: 13px;
  }

  .premium-itinerary-row .time-cell strong {
    font-size: 17px !important;
  }

  .premium-itinerary-row .time-cell span {
    font-size: 11px;
  }

  .duration-pill {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* Content pages */
.info-page-shell {
  max-width: 1160px;
  margin: 36px auto 70px;
  padding: 0 18px;
}

.info-hero {
  padding: 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 206, 26, .18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f5fbff);
  border: 1px solid rgba(11, 56, 87, .10);
  box-shadow: 0 22px 46px rgba(11, 56, 87, .09);
}

.info-hero span,
.info-card .mini-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f5ff;
  color: #0b347c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-hero h1 {
  margin: 16px 0 12px;
  color: #0B3857;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.4px;
}

.info-hero p {
  max-width: 820px;
  margin: 0;
  color: #52697e;
  font-size: 17px;
  line-height: 1.75;
}

.info-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 56, 87, .10);
  box-shadow: 0 16px 34px rgba(11, 56, 87, .06);
}

.info-card h2,
.info-card h3 {
  margin: 12px 0 10px;
  color: #0B3857;
  line-height: 1.2;
}

.info-card p,
.info-card li {
  color: #52697e;
  line-height: 1.75;
}

.info-card ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.info-cta {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #061f32, #0B3857);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.info-cta h2 {
  margin: 0 0 6px;
  color: #fff;
}

.info-cta p {
  margin: 0;
  color: rgba(255,255,255,.75);
}

.info-cta a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #FFCE1A;
  color: #0B3857;
  font-weight: 900;
  padding: 0 20px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .info-page-shell {
    margin-top: 22px;
    padding: 0 12px;
  }

  .info-hero,
  .info-card,
  .info-cta {
    padding: 20px;
    border-radius: 20px;
  }

  .info-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .info-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .info-cta a {
    width: 100%;
  }
}

.footer-subtitle {
  margin-top: 26px !important;
  margin-bottom: 14px !important;
}


/* Final mobile readability and footer contrast */
.travelto-site-footer .app-footer__link,
.travelto-site-footer .app-footer__section p,
.travelto-site-footer .app-footer__disclaimer {
  color: rgba(255,255,255,.86) !important;
}

.travelto-site-footer .app-footer__title {
  color: #FFCE1A !important;
}

@media (max-width: 760px) {
  .results-search-strip {
    padding: 14px !important;
    border-radius: 18px !important;
    margin-bottom: 22px !important;
  }

  .search-strip-grid {
    gap: 9px !important;
  }

  .search-strip-field {
    min-height: 42px !important;
    padding: 8px 10px !important;
  }

  .search-strip-field span {
    font-size: 11px !important;
  }

  .search-strip-field strong {
    font-size: 13px !important;
  }

  .trip-toggle-pills {
    gap: 8px !important;
  }

  .trip-toggle-pill {
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .travelto-site-footer {
    padding-bottom: 92px !important;
  }

  .app-footer__content {
    gap: 22px !important;
  }

  .app-footer__payments {
    background: rgba(255,255,255,.94);
    padding: 8px;
    border-radius: 10px;
  }
}


/* Popular routes page clickable cards */
.popular-route-click-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.popular-route-click-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 214px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 206, 26, .16), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fcff);
  border: 1px solid rgba(11, 56, 87, .11);
  box-shadow: 0 18px 38px rgba(11, 56, 87, .08);
  color: #132d46;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.popular-route-click-card:hover {
  transform: translateY(-7px);
  border-color: rgba(18, 183, 216, .36);
  box-shadow: 0 28px 62px rgba(11, 56, 87, .15);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 206, 26, .24), transparent 34%),
    linear-gradient(180deg, #ffffff, #f2fbff);
}

.popular-route-click-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #FFCE1A, #12b7d8, #0B3857);
  opacity: .9;
}

.popular-route-click-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(18, 183, 216, .09);
  transition: transform .24s ease;
}

.popular-route-click-card:hover::after {
  transform: scale(1.22);
}

.popular-route-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f5ff, #fff6cf);
  font-size: 29px;
  box-shadow: inset 0 0 0 1px rgba(11, 56, 87, .05);
}

.popular-route-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.popular-route-content span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f5ff;
  color: #0b347c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-route-content h2 {
  margin: 12px 0 9px;
  color: #0B3857;
  font-size: 23px;
  line-height: 1.17;
}

.popular-route-content p {
  margin: 0;
  color: #53687c;
  line-height: 1.62;
  font-size: 14px;
}

.popular-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
}

.popular-route-meta b,
.popular-route-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.popular-route-meta b {
  background: #0B3857;
  color: #fff;
}

.popular-route-meta small {
  background: #fff8d8;
  color: #7a6100;
}

.popular-route-action {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #e3edf5;
  color: #0b347c;
  font-weight: 900;
}

.popular-route-action strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FFCE1A;
  color: #0B3857;
  transition: transform .24s ease;
}

.popular-route-click-card:hover .popular-route-action strong {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .popular-route-click-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .popular-route-click-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
    border-radius: 20px;
    min-height: 0;
  }

  .popular-route-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 23px;
  }

  .popular-route-content h2 {
    font-size: 20px;
  }

  .popular-route-content p {
    font-size: 13px;
  }

  .popular-route-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Noticeable trip-detail headings + cleaner expanded details panel */
.premium-details-inner h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0B3857, #0b347c);
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  box-shadow: 0 12px 22px rgba(11, 56, 87, .14);
}

.premium-details-inner h4::before {
  content: "🚆";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 206, 26, .18);
  color: #FFCE1A;
  font-size: 16px;
}

.premium-details-dropdown[open] > summary {
  color: #0B3857;
  font-weight: 900;
}

.premium-details-dropdown[open] .premium-details-inner {
  border-color: rgba(11, 56, 87, .14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

@media (max-width: 760px) {
  .premium-details-inner h4 {
    font-size: 16px !important;
    padding: 11px 12px;
    margin-bottom: 14px !important;
  }
}


/* =========================================================
   Final compact phone layout for round-trip result cards
   ========================================================= */
@media (max-width: 760px) {
  .roundtrip-premium-card {
    padding: 13px !important;
    border-radius: 18px !important;
  }

  .roundtrip-premium-card .premium-card-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin-bottom: 10px !important;
    align-items: center !important;
  }

  .roundtrip-premium-card .price-block strong {
    font-size: 22px !important;
  }

  .roundtrip-premium-card .price-block span {
    font-size: 10px !important;
  }

  .roundtrip-premium-card .premium-card-actions {
    gap: 6px !important;
  }

  .roundtrip-premium-card .best-value-tag {
    min-height: 25px !important;
    font-size: 10px !important;
    padding: 0 9px !important;
  }

  .roundtrip-premium-card .premium-book-btn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 11px !important;
  }

  .roundtrip-premium-card .premium-itinerary-row {
    grid-template-columns: minmax(0, .95fr) 62px minmax(0, .95fr) !important;
    grid-template-areas: "start duration end" !important;
    gap: 7px !important;
    padding: 9px 10px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-top: 1px solid #e4edf5 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .roundtrip-premium-card .premium-itinerary-row:first-of-type {
    border-top: 0 !important;
  }

  .roundtrip-premium-card .operator-cell {
    display: none !important;
  }

  .roundtrip-premium-card .segment-divider {
    display: none !important;
  }

  .roundtrip-premium-card .time-cell strong {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  .roundtrip-premium-card .time-cell span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  .roundtrip-premium-card .duration-cell {
    transform: translateY(2px);
  }

  .roundtrip-premium-card .duration-pill {
    font-size: 9px !important;
    padding: 3px 5px !important;
  }

  .roundtrip-premium-card .rail-line {
    margin: 4px 0 3px !important;
  }

  .roundtrip-premium-card .rail-line i {
    width: 11px !important;
  }

  .roundtrip-premium-card .duration-cell small {
    font-size: 8.5px !important;
    padding: 3px 5px !important;
  }

  .roundtrip-premium-card .premium-details-dropdown summary {
    padding-top: 9px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  .roundtrip-premium-card .premium-card-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .roundtrip-premium-card .premium-card-actions {
    justify-items: end !important;
  }

  .roundtrip-premium-card .premium-card-actions > *,
  .roundtrip-premium-card .premium-book-btn {
    width: auto !important;
  }

  .roundtrip-premium-card .premium-itinerary-row {
    grid-template-columns: minmax(0, .95fr) 55px minmax(0, .95fr) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Legal notice: Travelto does not issue tickets directly */
.legal-ticket-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8db;
  border: 1px solid #f6d76b;
  color: #735d00;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

/* Loading / success / error UI feedback */
.tt-form-loading {
  pointer-events: none;
  opacity: .72;
  position: relative;
}

.tt-form-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(2px);
}

.tt-loader-pill {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100001;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 999px;
  background: #0B3857;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 22px 46px rgba(0,0,0,.18);
}

.tt-loader-pill::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #FFCE1A;
  animation: ttSpin .8s linear infinite;
}

@keyframes ttSpin {
  to { transform: rotate(360deg); }
}

.flash-status-message {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.flash-status-message.success {
  background: #ecfdf3;
  color: #087848;
  border: 1px solid #b7e4ca;
}

.flash-status-message.error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}


/* SEO-friendly internal cross links */
.related-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.related-link-grid a {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11,56,87,.10);
  box-shadow: 0 12px 28px rgba(11,56,87,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.related-link-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(18,183,216,.35);
  box-shadow: 0 18px 38px rgba(11,56,87,.11);
}

.related-link-grid span {
  display: block;
  color: #0f9cb8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.related-link-grid strong {
  display: block;
  color: #0B3857;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .related-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .related-link-grid {
    grid-template-columns: 1fr;
  }
}


/* Travelto 10% discount display */
.discount-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-old {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.price-old del,
.starting-fare-box del,
.route-card-price del {
  color: #ef4444;
  font-size: 13px;
  font-weight: 800;
}

.price-old span,
.route-card-price em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eafaf1;
  color: #12804a;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
}

.discount-price-box small,
.starting-fare-box small {
  display: block;
  color: #12804a;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.route-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}




/* ---------- Trustpilot compact review button ---------- */
.trustpilot-review-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 11px;
  background: #ffffff;
  color: #111827 !important;
  border: 2px solid #00B67A;
  border-radius: 0;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.trustpilot-review-button strong {
  color: #111827;
  font-weight: 700;
}

.trustpilot-green-star {
  color: #00B67A;
  font-size: 18px;
  line-height: 1;
  position: relative;
  top: 1px;
}

.trustpilot-review-button:hover {
  transform: translateY(-1px);
  border-color: #00A36C;
  box-shadow: 0 8px 18px rgba(0, 182, 122, .16);
  color: #111827 !important;
}

@media (max-width: 640px) {
  .trustpilot-review-button {
    font-size: 13px;
    padding: 8px 10px;
  }
}
