/* ═══════════════════════════════════════════════════════════
   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: 55vh;
  min-height: 480px;
  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;
  max-width: 900px;
  /* Asymmetrical */
  margin: 0;
  padding: 0 max(20px, 5vw) 80px;
  width: 100%;
}

.tx-hero__title {
  font-family: 'Lora', serif;;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.tx-hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.tx-hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.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: 1400px;
  margin: -45px auto 0;
  padding: 0 max(20px, 4vw);
  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: 'Lora', serif;
  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: flex;
  flex-direction: column;
  gap: 40px;
}

/* Fleet Section (Provider) */
.tx-provider {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

.tx-provider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
}

.tx-provider__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tx-provider__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff; /* Ensure white background for transparent logos */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tx-provider__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents the logo from stretching or distorting */
}

.tx-provider__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tx-provider__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tx-provider__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.tx-provider__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-provider__score {
  background: var(--terracotta);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.tx-provider__reviews {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tx-provider__features {
  display: flex;
  gap: 8px;
}

.tx-pf-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Vehicles Grid */
.tx-vehicles {
  padding: 32px;
  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: 180px;
  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);
}

.tx-vehicle__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tx-vehicle__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tx-vehicle__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tx-vehicle__specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  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;
  gap: 6px;
  margin-bottom: 24px;
}

.tx-vf {
  padding: 4px 10px;
  border-radius: 6px;
  background: #F8F7F4;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tx-vehicle__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-vehicle__price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.tx-vehicle__price-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.tx-vehicle__select-btn {
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--warm-white);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--trans-base);
}

.tx-vehicle:hover .tx-vehicle__select-btn {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #fff;
  border-color: transparent;
}

.tx-vehicle.selected .tx-vehicle__select-btn {
  background: var(--deep-green);
  color: #fff;
  border-color: transparent;
}


/* ── 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-provider {
  opacity: 0;
  transform: translateY(20px);
  animation: txIn 0.6s var(--ease-smooth) forwards;
}

.tx-provider:nth-child(1) {
  animation-delay: 0.05s;
}

.tx-provider:nth-child(2) {
  animation-delay: 0.15s;
}

.tx-provider:nth-child(3) {
  animation-delay: 0.25s;
}

@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;
  }

  .tx-provider__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tx-provider__trust {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .tx-hero__content {
    padding: 0 24px 60px;
  }

  .tx-config {
    margin-top: -30px;
  }

  .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-vehicles {
    grid-template-columns: 1fr;
    padding: 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%);
  }
}