:root {
  --navy: #0b1f3a;
  --navy-2: #17375e;
  --blue: #075fc9;
  --blue-2: #0b74e5;
  --blue-3: #dcebff;
  --sky: #eef6ff;
  --green: #0b8d64;
  --green-bg: #e9f8f2;
  --amber: #f59e0b;
  --red: #c53945;
  --ink: #12233d;
  --text: #42526b;
  --muted: #6f8098;
  --line: #dfe7f1;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --soft: #f8fafc;
  --shadow-sm: 0 4px 16px rgba(17, 43, 78, .08);
  --shadow-md: 0 14px 40px rgba(17, 43, 78, .13);
  --shadow-lg: 0 24px 70px rgba(17, 43, 78, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 9999;
  background: var(--navy); color: white; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page { min-height: 70vh; }
.section { padding: 68px 0; }
.section-tight { padding: 42px 0; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 20px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 1.28; letter-spacing: -.02em; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--text); max-width: 650px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-link { color: var(--blue); font-weight: 750; border: 0; background: none; padding: 0; }
.text-link:hover { text-decoration: underline; }

.btn {
  min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 760; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 20px rgba(7, 95, 201, .2); }
.btn-primary:hover { box-shadow: 0 11px 26px rgba(7, 95, 201, .28); }
.btn-secondary { color: var(--navy); background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: #b8c7d9; box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--blue); background: transparent; }
.btn-danger { color: white; background: var(--red); }
.btn-sm { min-height: 38px; padding-inline: 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 54px; padding-inline: 24px; border-radius: 13px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; background: white; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: .18s ease;
}
.icon-btn:hover { color: var(--blue); border-color: #bad4f7; background: var(--sky); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1;
}
.badge-blue { color: var(--blue); background: var(--sky); }
.badge-green { color: var(--green); background: var(--green-bg); }
.badge-amber { color: #8b5a00; background: #fff6dd; }
.badge-gray { color: var(--text); background: #eef2f7; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.demo-bar {
  background: var(--navy); color: #dcecff; min-height: 31px; display: flex; align-items: center;
  font-size: 12px; font-weight: 650;
}
.demo-bar .container { display: flex; justify-content: center; align-items: center; gap: 8px; }
.demo-pill { color: white; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 8px; font-weight: 800; }

.site-header {
  position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(211,222,235,.82);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; overflow: hidden; box-shadow: 0 6px 18px rgba(7,95,201,.2); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 880; letter-spacing: -.04em; color: var(--navy); }
.brand-name span { color: var(--blue); }
.brand-tagline { margin-top: 5px; font-size: 9px; color: var(--muted); font-weight: 700; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.nav-link { border: 0; background: transparent; color: var(--text); font-weight: 690; padding: 10px 12px; border-radius: 9px; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--sky); }
.header-actions { display: flex; gap: 9px; }
.mobile-menu-btn { display: none; margin-left: auto; }
.role-switch {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--soft);
  padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--text); font-weight: 750;
}
.role-switch strong { color: var(--blue); }

.mobile-menu {
  display: none; position: fixed; inset: 103px 0 auto 0; z-index: 65; background: white;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 14px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu button { width: 100%; text-align: left; border: 0; background: none; padding: 13px 6px; font-weight: 750; color: var(--text); }
.mobile-menu .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.hero { padding: 34px 0 22px; overflow: hidden; }
.hero-shell {
  position: relative; min-height: 510px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(125deg, #e7f1ff 0%, #f8fbff 52%, #d9ebff 100%);
  box-shadow: var(--shadow-md); border: 1px solid #d7e4f3;
}
.hero-content { position: relative; z-index: 2; width: 57%; padding: 58px 52px 155px; }
.hero-content h1 span { color: var(--blue); }
.hero-content .lead { max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-image {
  position: absolute; inset: 0 0 0 47%; background: linear-gradient(90deg, rgba(247,251,255,1) 0%, rgba(247,251,255,.1) 25%), url('assets/hero.jpg') center / cover no-repeat;
}
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,31,58,.08)); }
.hero-float {
  position: absolute; right: 34px; top: 28px; z-index: 3; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(9px);
}
.hero-float strong { display: block; font-size: 18px; color: var(--navy); }
.hero-float span { color: var(--muted); font-size: 12px; }

.search-panel {
  position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 26px; background: rgba(255,255,255,.97);
  border: 1px solid rgba(214,225,239,.98); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-md);
}
.mode-tabs { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 12px; }
.mode-tab { border: 0; background: transparent; color: var(--muted); border-radius: 8px; min-height: 36px; padding: 0 15px; font-weight: 800; }
.mode-tab.active { background: white; color: var(--blue); box-shadow: 0 2px 8px rgba(20,50,85,.1); }
.search-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 10px; }
.field { position: relative; }
.field label { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 5px; }
.field-control {
  width: 100%; min-height: 49px; border: 1px solid var(--line); background: white; color: var(--ink);
  border-radius: 11px; padding: 0 12px; outline: none; transition: .15s ease;
}
.field-control:focus { border-color: #72aef1; box-shadow: 0 0 0 3px rgba(7,95,201,.11); }
textarea.field-control { padding-top: 12px; min-height: 92px; resize: vertical; }
.search-submit { align-self: end; min-width: 160px; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.trust-item {
  display: flex; align-items: center; gap: 12px; background: white; padding: 15px 16px; border-radius: 15px;
  border: 1px solid var(--line); min-height: 72px;
}
.trust-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--sky); }
.trust-item strong { display: block; font-size: 13px; }
.trust-item span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.category-card {
  position: relative; text-align: left; border: 1px solid var(--line); background: white; border-radius: 17px; overflow: hidden;
  padding: 0; transition: .2s ease; box-shadow: 0 4px 15px rgba(25,52,89,.04);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c6d9ef; }
.category-image { height: 126px; background: #f5f7fa; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-copy { padding: 14px; }
.category-copy strong { display: block; font-size: 15px; }
.category-copy span { color: var(--muted); font-size: 12px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vehicle-card {
  background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: .2s ease;
  box-shadow: 0 5px 18px rgba(24,50,83,.05);
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c6d8ed; }
.vehicle-media { position: relative; height: 202px; background: #eef2f7; overflow: hidden; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vehicle-card:hover .vehicle-media img { transform: scale(1.025); }
.favorite-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95); border: 0; }
.card-badge { position: absolute; left: 12px; top: 12px; }
.vehicle-body { padding: 17px; }
.vehicle-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.vehicle-head h3 { margin-bottom: 3px; }
.vehicle-location { color: var(--muted); font-size: 12px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; font-weight: 780; }
.star { color: var(--amber); }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.spec-pill { color: var(--text); background: var(--soft); border: 1px solid #edf1f6; border-radius: 8px; padding: 5px 8px; font-size: 11px; }
.vehicle-footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px solid #eef2f6; padding-top: 13px; }
.price { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.price span { font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: 0; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step-number { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 900; margin-bottom: 16px; }
.step-card p { color: var(--muted); margin: 0; }

.provider-cta {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; background: var(--navy);
  border-radius: 26px; color: white; padding: 48px; overflow: hidden; position: relative;
}
.provider-cta::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -80px; top: -180px; background: rgba(25,125,245,.23); }
.provider-cta p { color: #bdd0e8; max-width: 640px; }
.provider-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.provider-metric { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; padding: 18px; backdrop-filter: blur(10px); }
.provider-metric strong { display: block; font-size: 24px; }
.provider-metric span { color: #bfd1e6; font-size: 12px; }

.site-footer { background: #08182e; color: #d8e5f5; padding: 54px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-copy { color: #9fb3cc; max-width: 330px; margin-top: 16px; }
.footer-title { color: white; font-weight: 800; margin-bottom: 13px; }
.footer-links { display: grid; gap: 9px; color: #aebfd3; font-size: 13px; }
.footer-links button { border: 0; background: none; color: inherit; padding: 0; text-align: left; }
.footer-links button:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 12px; color: #8fa4bc; }
.payment-marks { display: flex; align-items: center; gap: 12px; }
.mpesa-mark { color: #68d391; font-weight: 900; letter-spacing: .03em; }

.page-head { padding: 30px 0 18px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.breadcrumb button { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-head h1 { font-size: clamp(30px, 4vw, 45px); margin-bottom: 7px; }
.search-summary { color: var(--muted); }

.results-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: white;
  border: 1px solid var(--line); padding: 13px 15px; border-radius: 14px; margin-bottom: 18px;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); background: white; color: var(--text); min-height: 37px; border-radius: 999px; padding: 0 13px; font-size: 12px; font-weight: 750; }
.filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.sort-select { min-height: 39px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 10px; color: var(--text); }
.mobile-filter-btn { display: none; }
.results-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filter-sidebar { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: sticky; top: 120px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid #edf1f6; }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-title { font-weight: 850; margin-bottom: 10px; }
.check-list { display: grid; gap: 9px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; }
.check-row input { accent-color: var(--blue); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-row input { width: 100%; min-height: 41px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.no-results { background: white; border: 1px dashed #b9c9dc; border-radius: 17px; padding: 50px 24px; text-align: center; grid-column: 1 / -1; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1.55fr .85fr; gap: 10px; margin-bottom: 24px; }
.gallery-main, .gallery-small { border-radius: 17px; overflow: hidden; background: #e9eef5; }
.gallery-main { height: 420px; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery-small { min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }
.detail-title-row h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 4px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 22px 0; }
.detail-spec { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.detail-spec strong { display: block; margin-top: 8px; font-size: 13px; }
.detail-spec span { color: var(--muted); font-size: 11px; }
.detail-section { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 22px; margin-bottom: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.feature-row { display: flex; align-items: center; gap: 9px; color: var(--text); }
.check-circle { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: var(--green-bg); font-size: 11px; font-weight: 900; }
.provider-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.provider-id { display: flex; align-items: center; gap: 12px; }
.avatar { width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--navy), var(--blue)); font-weight: 900; }
.booking-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 120px; box-shadow: var(--shadow-sm); }
.booking-card .price { font-size: 28px; margin-bottom: 15px; }
.booking-fields { display: grid; gap: 10px; }
.price-list { display: grid; gap: 10px; margin: 18px 0; color: var(--text); }
.price-row { display: flex; justify-content: space-between; gap: 16px; }
.price-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; color: var(--ink); font-weight: 900; }
.reassurance { display: flex; gap: 9px; color: var(--green); background: var(--green-bg); border-radius: 10px; padding: 11px; font-size: 12px; margin-top: 12px; }

.booking-shell { max-width: 1020px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.booking-main { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 22px; background: var(--soft); border-bottom: 1px solid var(--line); }
.stepper-item { position: relative; text-align: center; color: var(--muted); font-size: 11px; font-weight: 780; }
.stepper-item::after { content: ''; position: absolute; height: 2px; background: #d7e0eb; left: 57%; right: -43%; top: 14px; }
.stepper-item:last-child::after { display: none; }
.stepper-number { position: relative; z-index: 1; margin: 0 auto 7px; width: 29px; height: 29px; border-radius: 50%; background: #dce4ee; color: var(--muted); display: grid; place-items: center; font-weight: 900; }
.stepper-item.active, .stepper-item.done { color: var(--blue); }
.stepper-item.active .stepper-number, .stepper-item.done .stepper-number { background: var(--blue); color: white; }
.stepper-item.done::after { background: var(--blue); }
.step-content { padding: 28px; min-height: 450px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.choice-grid { display: grid; gap: 12px; }
.choice-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 13px; align-items: start; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #7aafea; background: var(--sky); }
.choice-card input { accent-color: var(--blue); margin-top: 3px; }
.choice-copy { flex: 1; }
.choice-copy strong { display: block; }
.choice-copy span { color: var(--muted); font-size: 12px; }
.choice-price { font-weight: 850; color: var(--navy); }
.booking-actions { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 16px 22px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 120px; }
.summary-vehicle { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-vehicle img { width: 86px; height: 60px; object-fit: cover; border-radius: 10px; background: #edf2f7; }
.secure-row { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; justify-content: center; margin-top: 13px; }
.mpesa-box { border: 1px solid #bfe6d6; background: #f1fbf7; border-radius: 16px; padding: 20px; }
.mpesa-logo { display: inline-flex; align-items: center; gap: 7px; color: #11975b; font-weight: 950; font-size: 20px; margin-bottom: 12px; }
.notice { background: #fff7e1; color: #815400; border: 1px solid #f5d996; border-radius: 11px; padding: 12px; font-size: 12px; }

.dashboard-wrap { padding: 30px 0; }
.dashboard-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.dashboard-top h1 { font-size: clamp(30px,4vw,43px); margin-bottom: 5px; }
.dashboard-tabs { display: flex; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content; margin-bottom: 22px; }
.dashboard-tab { min-height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 800; border-radius: 9px; padding: 0 15px; }
.dashboard-tab.active { background: var(--navy); color: white; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.metric-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: var(--sky); margin-bottom: 14px; }
.metric-value { font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-trend { margin-top: 7px; font-size: 11px; color: var(--green); font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 18px; margin-top: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; }
.booking-table { width: 100%; border-collapse: collapse; }
.booking-table th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 0 9px 10px; }
.booking-table td { border-top: 1px solid #eef2f6; padding: 13px 9px; font-size: 12px; vertical-align: middle; }
.table-vehicle { display: flex; gap: 9px; align-items: center; }
.table-vehicle img { width: 50px; height: 36px; border-radius: 8px; object-fit: cover; background: #eef2f7; }
.quick-list { display: grid; gap: 10px; }
.quick-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 13px; text-align: left; }
.quick-action:hover { border-color: #a9c8eb; background: var(--sky); }
.quick-action strong { display: block; font-size: 13px; }
.quick-action span { color: var(--muted); font-size: 11px; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.fleet-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; }
.fleet-card img { width: 100%; height: 145px; object-fit: cover; background: #edf2f7; }
.fleet-body { padding: 14px; }
.fleet-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; }

.trip-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.trip-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.trip-top { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.trip-image { min-height: 190px; background: #eef2f7; }
.trip-image img { width: 100%; height: 100%; object-fit: cover; }
.trip-info { padding: 22px; }
.trip-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.trip-links { border-top: 1px solid var(--line); display: grid; }
.trip-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 18px; border: 0; border-bottom: 1px solid #eef2f6; background: white; text-align: left; color: var(--text); }
.trip-link:last-child { border-bottom: 0; }
.trip-link:hover { background: var(--soft); color: var(--blue); }
.support-box { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 120px; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(4,16,32,.55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal { width: min(500px, 100%); max-height: min(90vh, 740px); overflow: auto; background: white; border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 22px 22px 14px; }
.modal-head h2 { font-size: 27px; margin-bottom: 4px; }
.modal-body { padding: 0 22px 24px; }
.modal-form { display: grid; gap: 13px; }
.or-divider { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; margin: 5px 0; }
.or-divider::before, .or-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.drawer-backdrop { place-items: stretch end; padding: 0; }
.drawer { height: 100%; width: min(390px, 92vw); background: white; overflow: auto; box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: white; z-index: 1; }
.drawer-body { padding: 18px; }
.drawer-actions { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line); padding: 14px 18px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy); color: white; border-radius: 11px; padding: 12px 16px; box-shadow: var(--shadow-md); transition: .25s ease; max-width: min(420px, calc(100% - 30px)); text-align: center; font-weight: 700; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-bottom-nav { display: none; }
.skeleton { background: linear-gradient(90deg,#eef2f7 25%,#f8fafc 38%,#eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { 0%{background-position:100% 0}100%{background-position:0 0} }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: grid; }
  .header-actions .btn-secondary { display: none; }
  .hero-content { width: 62%; padding: 50px 38px 170px; }
  .hero-image { left: 47%; }
  .search-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; width: 100%; }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .vehicle-grid { grid-template-columns: repeat(2,1fr); }
  .results-layout { grid-template-columns: 220px 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 310px; }
  .gallery-main { height: 355px; }
  .detail-spec-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .fleet-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: 76px; }
  .container { width: min(100% - 28px, var(--max)); }
  .demo-bar { font-size: 11px; }
  .header-inner { height: 64px; }
  .brand-tagline { display: none; }
  .header-actions { display: none; }
  .mobile-menu { inset-block-start: 95px; }
  .section { padding: 48px 0; }
  .section-title-row { align-items: start; }
  .hero { padding-top: 14px; }
  .hero-shell { min-height: 660px; border-radius: 22px; }
  .hero-content { width: 100%; padding: 35px 24px 0; }
  .hero-content h1 { max-width: 520px; }
  .hero-content .lead { max-width: 90%; }
  .hero-badges { display: none; }
  .hero-image { left: 0; top: 280px; height: 240px; background: linear-gradient(180deg, rgba(247,251,255,1) 0%, rgba(247,251,255,.05) 25%), url('assets/hero.jpg') center / cover no-repeat; }
  .hero-float { top: 294px; right: 20px; }
  .search-panel { left: 12px; right: 12px; bottom: 12px; padding: 12px; border-radius: 16px; }
  .mode-tabs { width: 100%; }
  .mode-tab { flex: 1; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .field:first-child { grid-column: 1 / -1; }
  .search-submit { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 9px; }
  .trust-item { display: block; min-height: 105px; padding: 13px; }
  .trust-icon { margin-bottom: 9px; width: 36px; height: 36px; }
  .category-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -14px; }
  .category-card { flex: 0 0 185px; scroll-snap-align: start; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .provider-cta { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .payment-marks { margin-top: 12px; }
  .page-head { padding-top: 22px; }
  .page-head-row { display: block; }
  .page-head-row > :last-child { margin-top: 14px; }
  .filter-sidebar { display: none; }
  .results-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .results-toolbar { align-items: start; }
  .filter-chips { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main { height: 300px; }
  .gallery-side { display: none; }
  .booking-card { position: static; }
  .detail-title-row { display: block; }
  .detail-title-row .icon-btn { margin-top: 10px; }
  .features-grid { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; margin-top: 18px; }
  .summary-card { position: static; order: -1; }
  .step-content { padding: 22px 17px; }
  .stepper { padding-inline: 12px; }
  .stepper-item { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .booking-actions { position: sticky; bottom: 76px; z-index: 5; background: white; }
  .dashboard-top { display: block; }
  .dashboard-top .btn { margin-top: 12px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel { overflow-x: auto; }
  .booking-table { min-width: 650px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .trip-layout { grid-template-columns: 1fr; }
  .trip-top { grid-template-columns: 1fr; }
  .trip-image { min-height: 220px; }
  .support-box { position: static; }
  .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(4,1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    min-height: 68px; padding-bottom: max(5px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14,36,66,.08); backdrop-filter: blur(12px);
  }
  .bottom-nav-btn { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10px; font-weight: 750; }
  .bottom-nav-btn.active { color: var(--blue); }
  .bottom-nav-icon { font-size: 18px; line-height: 1; }
  .toast { bottom: 86px; }
}

@media (max-width: 500px) {
  h1 { font-size: 39px; }
  h2 { font-size: 29px; }
  .container { width: min(100% - 22px, var(--max)); }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 18px; }
  .hero-shell { min-height: 676px; }
  .hero-content { padding-inline: 20px; }
  .hero-content .lead { max-width: 100%; font-size: 16px; }
  .hero-image { top: 274px; height: 225px; }
  .hero-float { top: 286px; right: 14px; padding: 9px 11px; }
  .hero-float strong { font-size: 15px; }
  .search-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .field-control { min-height: 46px; padding-inline: 9px; font-size: 13px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .category-card { flex-basis: 168px; }
  .vehicle-media { height: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .detail-spec-grid { grid-template-columns: 1fr 1fr; }
  .provider-card { display: block; }
  .provider-card .btn { margin-top: 14px; width: 100%; }
  .booking-shell { width: 100%; }
  .stepper-item span { display: none; }
  .stepper-item::after { top: 14px; }
  .metric-grid { grid-template-columns: 1fr; }
  .dashboard-tabs { width: 100%; overflow-x: auto; }
  .dashboard-tab { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
