/* ═══════════════════════════════════════════════════════════
   QARIBIA — Transfers Page CSS (Premium Redesign)
   ══════════════════════════════════════════════════════════ */

:root {
  /* Introducing a warm, premium earthy accent for the transport section */
  --terracotta: #C05A3B;
}

.tx-body {
  background-color: var(--cream);
  /* Ambient gradient to eliminate white space */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(192, 90, 59, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(45, 90, 66, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ── Hero: Asymmetrical & Lush ─────────────────────────── */
.tx-hero {
  position: relative;
  height: 22vh;
  min-height: 190px;
  max-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.tx-hero__bg {
  position: absolute;
  inset: 0;
}

.tx-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: txHeroZoom 20s ease forwards;
}

@keyframes txHeroZoom {
  to {
    transform: scale(1);
  }
}

.tx-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(13, 27, 42, 0.95) 0%, rgba(26, 58, 46, 0.8) 45%, transparent 100%);
}

.tx-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.breadcrumb a {
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb i {
  font-size: 0.55rem;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}


/* ── Route Config: Floating Glassmorphism ──────────────── */
.tx-config {
  max-width: var(--max-w);
  margin: -30px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

.tx-config__inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.tx-config__airport-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tx-config__airport-badge i {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(192, 90, 59, 0.1);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tx-config__airport-badge span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.tx-config__airport-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.tx-config__divider {
  width: 1px;
  height: 60px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.tx-config__grid {
  display: flex;
  flex: 1;
  gap: 20px;
  align-items: center;
}

.tx-field {
  flex: 1;
}

.tx-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.tx-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tx-select-wrap i {
  position: absolute;
  left: 16px;
  color: var(--amber);
  font-size: 0.9rem;
  pointer-events: none;
}

.tx-select {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: all var(--trans-base);
  appearance: none;
  /* Hide default arrow */
}

.tx-select:focus,
.tx-select:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 16px rgba(224, 123, 57, 0.1);
}

.tx-split-inputs {
  display: flex;
  gap: 10px;
}

.tx-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all var(--trans-base);
}

.tx-input:focus {
  border-color: var(--amber);
}


/* ── Providers & Fleets ────────────────────────────────── */
.tx-providers {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px max(20px, 4vw) 80px;
}

.tx-providers__header {
  margin-bottom: 40px;
  text-align: left;
}

.tx-providers__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tx-providers__sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.tx-providers__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tx-vehicle {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tx-vehicle:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 150, 62, 0.3);
}

.tx-vehicle.selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), 0 16px 40px rgba(224, 123, 57, 0.15);
}

.tx-vehicle__img {
  height: 155px;
  position: relative;
  overflow: hidden;
}

.tx-vehicle__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tx-vehicle:hover .tx-vehicle__img img {
  transform: scale(1.05);
}

/* Price chip — mirrors stays card price tag */
.tx-vehicle__price-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tx-vehicle__price-chip-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tx-vehicle__type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tx-vehicle__content {
  padding: 14px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tx-vehicle__provider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tx-vehicle__provider-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2px;
  flex-shrink: 0;
}

.tx-vehicle__provider-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-vehicle__provider-rating {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tx-vehicle__provider-rating i {
  color: var(--gold);
  font-size: 0.68rem;
}

.tx-vf--more {
  background: transparent;
  color: var(--text-muted);
  font-style: italic;
}

.tx-vehicle__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.tx-vehicle__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tx-vehicle__specs {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.tx-spec {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-spec i {
  color: var(--sage);
  font-size: 0.9rem;
}

.tx-vehicle__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.tx-vehicle__select-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.tx-vf {
  padding: 4px 10px;
  border-radius: 6px;
  background: #F8F7F4;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Clickable text link — inline with feature chips */

.tx-vehicle:hover .tx-vehicle__select-link {
  gap: 9px;
  color: var(--amber);
}

.tx-vehicle.selected .tx-vehicle__select-link {
  color: var(--deep-green);
  gap: 6px;
}


/* ── Driver Feature (Immersive Block) ──────────────────── */
.tx-driver-feature {
  position: relative;
  max-width: 1600px;
  margin: 0 auto 100px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.tx-driver-feature__bg {
  position: absolute;
  inset: 0;
}

.tx-driver-feature__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-driver-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.8) 50%, transparent 100%);
}

.tx-driver-feature__content {
  position: relative;
  z-index: 2;
  padding: 60px max(20px, 6vw);
  width: 100%;
}

.tx-driver-feature__card {
  max-width: 500px;
  color: #fff;
}

.tx-df-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--terracotta), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(192, 90, 59, 0.4);
}

.tx-driver-feature__card h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tx-driver-feature__card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 32px;
}

.tx-df-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-df-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.tx-df-list i {
  color: #6FE0A0;
  font-size: 1.1rem;
}


/* ── Toast ─────────────────────────────────────────────── */
.tx-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--charcoal);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  border-left: 3px solid var(--terracotta);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 400px;
}

.tx-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.tx-toast i {
  color: var(--terracotta);
  font-size: 1.2rem;
}

/* Entrance Animations */
.tx-vehicle {
  opacity: 0;
  transform: translateY(20px);
  animation: txIn 0.6s var(--ease-smooth) forwards;
}

.tx-vehicle:nth-child(1) { animation-delay: 0.04s; }
.tx-vehicle:nth-child(2) { animation-delay: 0.08s; }
.tx-vehicle:nth-child(3) { animation-delay: 0.12s; }
.tx-vehicle:nth-child(4) { animation-delay: 0.16s; }
.tx-vehicle:nth-child(5) { animation-delay: 0.20s; }
.tx-vehicle:nth-child(6) { animation-delay: 0.24s; }

@keyframes txIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .tx-config__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .tx-config__divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .tx-hero__content {
    padding: 0 24px 32px;
  }

  .tx-config {
    margin-top: -20px;
    padding: 0 24px;
  }

  .tx-config__inner {
    padding: 20px;
    border-radius: 16px;
  }

  .tx-config__grid {
    flex-direction: column;
    gap: 16px;
  }

  .tx-select-wrap i {
    top: 50%;
    transform: translateY(-50%);
  }

  .tx-providers__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tx-driver-feature {
    border-radius: 0;
    margin-bottom: 60px;
  }

  .tx-driver-feature__overlay {
    background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.6) 100%);
  }
}