/* Taxi hub — ride-hailing discovery (not Tow styling) */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --taxi-ink: #0c1222;
  --taxi-navy: #13233f;
  --taxi-amber: #e8a317;
  --taxi-amber-deep: #c4840c;
  --taxi-mint: #0f766e;
  --taxi-surface: #f4f6f9;
  --taxi-card: #ffffff;
  --taxi-line: #d7dee8;
  --taxi-muted: #5b6b7c;
  --taxi-ok: #0f766e;
  --taxi-warn: #b45309;
}

body.taxi-page {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--taxi-surface);
  color: var(--taxi-ink);
}

body.taxi-page .taxi-hero {
  background:
    linear-gradient(120deg, rgba(12, 18, 34, 0.92) 0%, rgba(19, 35, 63, 0.88) 48%, rgba(15, 118, 110, 0.72) 100%),
    url("/images/category-real/taxi-uk-night.jpg") center/cover no-repeat;
  color: #fff;
  padding: 28px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.taxi-page .taxi-hero .container {
  max-width: 1120px;
}

body.taxi-page .taxi-hero .hero-title {
  font-family: Sora, "Source Sans 3", sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
  color: #fff;
  text-align: center;
}

body.taxi-page .taxi-hero-lead,
body.taxi-page #svcHubHero .taxi-hero-lead {
  margin: 0.35rem auto 1.1rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: center;
}

.taxi-book-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(8, 14, 28, 0.28);
  color: var(--taxi-ink);
}

.taxi-book-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr auto;
  gap: 10px;
  align-items: end;
}

.taxi-book-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--taxi-muted);
  margin-bottom: 6px;
}

.taxi-book-field input {
  width: 100%;
  border: 1px solid var(--taxi-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--taxi-ink);
}

.taxi-book-field input:focus {
  outline: 2px solid rgba(232, 163, 23, 0.45);
  border-color: var(--taxi-amber);
}

.taxi-book-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.taxi-btn-primary,
.taxi-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.taxi-btn-primary {
  background: var(--taxi-amber);
  color: #1a1405;
}

.taxi-btn-primary:hover {
  background: var(--taxi-amber-deep);
  color: #1a1405;
  text-decoration: none;
}

.taxi-btn-secondary {
  background: var(--taxi-navy);
  color: #fff;
}

.taxi-btn-secondary:hover {
  background: #0c1a31;
  color: #fff;
  text-decoration: none;
}

.taxi-hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.taxi-hero-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
}

.taxi-hero-search i.fa-search { color: rgba(255, 255, 255, 0.75); }

.taxi-hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  padding: 9px 8px;
  font-size: 0.92rem;
}

.taxi-hero-search input::placeholder { color: rgba(255, 255, 255, 0.65); }
.taxi-hero-search input:focus { outline: none; }

.taxi-hero-search button {
  background: #fff;
  color: var(--taxi-navy);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.taxi-journey-hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.taxi-journey-hint[hidden] { display: none !important; }

.taxi-page .listings-section {
  padding: 28px 0 48px;
  background: transparent;
}

.taxi-page .main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.taxi-page .filter-panel {
  background: var(--taxi-card);
  border: 1px solid var(--taxi-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.taxi-page .btn-apply {
  width: 100%;
  background: var(--taxi-navy);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

.taxi-listings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.taxi-listings-head h2 {
  font-family: Sora, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--taxi-ink);
}

.taxi-listings-head p {
  margin: 4px 0 0;
  color: var(--taxi-muted);
  font-size: 0.9rem;
}

.taxi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.taxi-card {
  background: var(--taxi-card);
  border: 1px solid var(--taxi-line);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.taxi-card:hover {
  transform: translateY(-3px);
  border-color: #b7c4d6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  text-decoration: none;
  color: inherit;
}

.taxi-card-photo {
  height: 148px;
  background: linear-gradient(135deg, #dbe4f0, #c5d0df);
  overflow: hidden;
}

.taxi-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.taxi-card-body {
  padding: 14px 14px 16px;
}

.taxi-card-name {
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--taxi-ink);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.taxi-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.taxi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e8eef6;
  color: #334155;
}

.taxi-badge.verified {
  background: #dbeafe;
  color: #1d4ed8;
}

.taxi-badge.class {
  background: #fef3c7;
  color: #92400e;
}

.taxi-card-meta {
  font-size: 0.84rem;
  color: var(--taxi-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.taxi-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--taxi-mint);
  margin-bottom: 10px;
}

.taxi-card-price.is-empty {
  color: var(--taxi-muted);
  font-weight: 600;
}

.taxi-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.taxi-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--taxi-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.taxi-card-cta-secondary {
  display: inline-flex;
  color: var(--taxi-navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.taxi-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--taxi-muted);
  background: var(--taxi-card);
  border: 1px dashed var(--taxi-line);
  border-radius: 16px;
}

.taxi-empty a {
  color: var(--taxi-navy);
  font-weight: 700;
}

.loading-msg {
  text-align: center;
  padding: 48px 20px;
  color: var(--taxi-muted);
}

@media (max-width: 992px) {
  .taxi-page .main-layout { grid-template-columns: 1fr; }
  .taxi-page .filter-panel { position: static; }
  .taxi-book-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .taxi-book-grid { grid-template-columns: 1fr; }
  .taxi-book-actions { width: 100%; }
  .taxi-book-actions .taxi-btn-primary,
  .taxi-book-actions .taxi-btn-secondary { flex: 1; }
  .taxi-grid { grid-template-columns: 1fr; }
  .taxi-card-photo { height: 168px; }
}
