/* ==========================================================================
   Hout Bay Car Hire — shared styles
   Palette and layout modelled on capripizzasubs.com: red + slate on cream,
   heavy condensed headings, bordered cards, dark feature bands.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #d2352a;
  --red-600: #b62a20;
  --red-50: #fcedeb;
  --slate: #262c36;
  --slate-900: #1b2029;
  --slate-700: #3a4250;
  --cream: #f8f6f1;
  --cream-2: #f1eee6;
  --line: #e6e2d8;
  --ink: #232833;
  --muted: #5b6371;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --header-h: 72px;
  --font-display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--slate);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #ffb4ab; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--red); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: var(--radius-sm);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); }
.btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--slate); }
.btn--outline:hover { border-color: var(--slate); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--cream); }
.btn--sm { padding: .6rem .9rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--slate); }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .02em; color: var(--slate); }
.brand__sub { font-family: var(--font-display); font-size: .82rem; letter-spacing: .34em; color: var(--red); margin-top: .2rem; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--slate-700); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.site-header__cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--slate); }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--slate-900); overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27,32,41,.94) 0%, rgba(27,32,41,.78) 42%, rgba(27,32,41,.12) 100%),
              linear-gradient(0deg, rgba(27,32,41,.55) 0%, transparent 35%);
}
.hero__content { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(6.5rem, 10vw, 8.5rem); max-width: 720px; }
.hero__eyebrow { color: #ff8d80; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__lead { font-size: 1.15rem; max-width: 34em; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__content > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Quick search bar (home) ---------- */
.quick { position: relative; z-index: 5; margin-top: -3.2rem; }
.quick__form {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 1rem; align-items: end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 30px rgba(27,32,41,.14);
}
.field label, .field .label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 .85rem; font: 500 .98rem var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid #d6d1c5; border-radius: var(--radius-sm);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6371' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.field input:hover, .field select:hover { border-color: var(--slate-700); }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); padding: 3.6rem 0 1.6rem; margin-top: -2.2rem; }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: .92rem; font-weight: 500; color: var(--slate-700); }
.trust__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.trust__icon .icon { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--slate); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 2.6rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: block; color: var(--red); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.section--dark .eyebrow { color: #ff8d80; }

/* Featured cars (Capri "Customer Favorites") */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.tile {
  display: flex; flex-direction: column; align-items: stretch; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--red); transform: translateY(-2px); }
.tile__media { background: var(--cream-2); aspect-ratio: 1000 / 450; overflow: hidden; }
.tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: .9rem 1.1rem 1.1rem; text-align: center; }
.tile__name { font-weight: 700; font-size: .98rem; color: var(--slate); line-height: 1.3; }
.tile__from { font-size: .84rem; color: var(--muted); margin-top: .2rem; }
.tile__from strong { color: var(--red); font-size: 1rem; }

/* Fleet categories (Capri "Explore Our Menu") */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat {
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.3rem;
  transition: border-color .15s;
}
.cat::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%; background: var(--red-50); }
.cat:hover { border-color: var(--red); }
.cat h3 { position: relative; z-index: 1; font-size: 1.3rem; margin-bottom: .45rem; }
.cat p { position: relative; z-index: 1; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.cat__link { position: relative; z-index: 1; color: var(--red); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.cat--accent { background: var(--red); border-color: var(--red); }
.cat--accent::after { background: rgba(255,255,255,.14); }
.cat--accent h3, .cat--accent p, .cat--accent .cat__link { color: #fff; }
.cat--accent:hover { background: var(--red-600); }

/* About (Capri "Made Fresh Daily") */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split p { color: var(--muted); font-size: 1.04rem; max-width: 34em; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.25rem; }
.feature:nth-child(1), .feature:nth-child(4) { background: var(--cream-2); }
.feature .icon { width: 30px; height: 30px; color: var(--red); margin-bottom: .8rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { font-size: .9rem; margin: 0; color: var(--muted); }
.quote { margin: 2rem 0 0; padding: 1.25rem 1.4rem; background: var(--cream); border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 34em; }
.quote p { color: var(--ink); font-size: 1rem; margin: 0 0 .5rem; }
.quote footer { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Delivery band (Capri "Catering") */
.on-dark .lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 36em; }
.hours-card { background: var(--slate-900); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; }
.hours-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.hours-list { display: grid; gap: .1rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .96rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { color: rgba(255,255,255,.75); }
.hours-list span:last-child { font-weight: 600; text-align: right; }
.hours-card .note { margin: 1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.65); }
.checklist { display: grid; gap: .6rem; margin: 1.4rem 0 2rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: rgba(255,255,255,.9); }
.checklist .icon { color: #ff8d80; margin-top: .25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--slate); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: #d6d1c5; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* Location & contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { display: grid; gap: 1.4rem; margin: 1.6rem 0 2rem; }
.contact__row { display: flex; gap: 1rem; }
.contact__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.contact__row h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .2rem; }
.contact__row p, .contact__row a { margin: 0; color: var(--muted); font-size: .96rem; }
.contact__row a { text-decoration: none; }
.contact__row a:hover { color: var(--red); text-decoration: underline; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3.2; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA band */
.cta-band { background: linear-gradient(180deg, var(--red), var(--red-600)); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.08rem; margin-bottom: 1.8rem; }

/* Footer */
.site-footer { background: var(--slate); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .93rem; }
.site-footer h4 { font-size: 1.05rem; color: #fff; margin-bottom: 1rem; letter-spacing: .04em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.footer__brand .brand__name { color: #fff; }
.site-footer .brand__sub { color: #ff8d80; }
.footer__brand p { margin-top: 1rem; max-width: 22rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .icon { color: #ff8d80; margin-top: .3rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__credit { margin: .5rem 0 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__credit a { color: rgba(255,255,255,.75); text-decoration: underline; }
.footer__credit a:hover { color: #fff; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* ==========================================================================
   Car rentals page (mirrors Capri "Our Menu")
   ========================================================================== */
.page-hero { background: var(--slate); color: #fff; padding: clamp(2.8rem, 6vw, 4.2rem) 0 clamp(2.6rem, 5vw, 3.6rem); text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: .25em; }
.page-hero p { max-width: 40rem; margin: 0 auto; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; color: rgba(255,255,255,.6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.toolbar { padding: 1.6rem 0 0; }
.toolbar__row { display: flex; gap: .8rem; align-items: center; }
.search { position: relative; flex: 1; }
.search .icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 48px; padding: 0 1rem 0 2.6rem; border: 1px solid #d6d1c5; border-radius: var(--radius-sm); font: 500 1rem var(--font-body); background: #fff; }
.search input:hover { border-color: var(--slate-700); }

.pills-wrap { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); margin-top: 1.1rem; }
.pills { display: flex; gap: .55rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--cream);
  font: 600 .88rem var(--font-body); color: var(--slate-700); cursor: pointer;
}
.pill:hover { border-color: var(--slate); }
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.filters { margin-top: 1.1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary { cursor: pointer; list-style: none; padding: .95rem 1.2rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--slate); }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary .icon { color: var(--red); }
.filters > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.filters[open] > summary::after { transform: rotate(-135deg); }
.filters__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem 1.1rem; padding: .3rem 1.2rem 1.3rem; align-items: end; }
.f-client { grid-column: span 4; }
.f-days { grid-column: span 2; }
.f-trans { grid-column: span 2; }
.f-seats { grid-column: span 2; }
.f-sort { grid-column: span 2; }
.f-price { grid-column: span 5; }
.f-zero { grid-column: span 4; align-self: center; padding-top: 1.1rem; }
.f-reset { grid-column: span 3; justify-self: end; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d6d1c5; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.segmented label { margin: 0; height: 46px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--slate-700); padding: 0 .4rem; }
.segmented label + input + label, .segmented input + label + input + label { border-left: 1px solid #d6d1c5; }
.segmented input:checked + label { background: var(--slate); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--red); outline-offset: -3px; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; height: 46px; border: 1px solid #d6d1c5; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.stepper button { border: 0; background: var(--cream-2); font: 700 1.2rem var(--font-body); cursor: pointer; color: var(--slate); }
.stepper button:hover { background: var(--line); }
.stepper input { border: 0; text-align: center; height: 100%; padding: 0; font-weight: 700; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range { display: block; }
.range input[type="range"] { width: 100%; height: 46px; padding: 0; accent-color: var(--red); background: transparent; border: 0; }
.range__value { color: var(--slate); font-weight: 700; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; color: var(--slate); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.link-btn { background: none; border: 0; color: var(--red); font: 600 .92rem var(--font-body); cursor: pointer; text-decoration: underline; padding: .5rem; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0 .2rem; color: var(--muted); font-size: .95rem; }
.results-bar strong { color: var(--slate); }
.included { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.included li { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--slate-700); }
.included .icon { color: var(--red); }

.group { padding-top: 2.4rem; }
.group__head { margin-bottom: 1.4rem; }
.group__head h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: .2em; }
.group__head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin-top: .35rem; }
.group__head p { color: var(--muted); margin: .6rem 0 0; max-width: 46rem; }

.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.car { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.car:hover { border-color: #cfc9ba; }
.car.is-lowest { border-color: var(--red); background: #fffafa; }
.car__media { position: relative; background: var(--cream-2); aspect-ratio: 1000 / 450; overflow: hidden; border-bottom: 1px solid var(--line); }
.car__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.car__code { position: absolute; left: .8rem; top: .8rem; font-size: .74rem; font-weight: 700; color: var(--slate-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.car__badge { position: absolute; right: .8rem; top: .8rem; font-size: .74rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: .15rem .65rem; }
.car__badge[hidden] { display: none; }
.car__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.car__name { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin: 0; color: var(--slate); }
.car__name--solo { margin-bottom: .8rem; }
.car__sim { color: var(--muted); font-size: .84rem; margin: .1rem 0 .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips li { font-size: .78rem; font-weight: 600; color: var(--slate-700); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .7rem; }
.chips li.is-auto { background: var(--slate); border-color: var(--slate); color: #fff; }
.price { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); }
.price__main { display: flex; align-items: baseline; gap: .45rem; }
.price__amount { font-family: var(--font-display); font-size: 2.1rem; color: var(--red); line-height: 1; letter-spacing: .01em; }
.price__unit { color: var(--muted); font-size: .9rem; }
.price__meta { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); }
.price__total { margin: .15rem 0 0; font-size: .86rem; font-weight: 600; color: var(--slate); }
.car__facts { display: grid; gap: .25rem; margin: .8rem 0 1rem; font-size: .84rem; }
.car__facts div { display: flex; justify-content: space-between; gap: 1rem; }
.car__facts dt { color: var(--muted); }
.car__facts dd { margin: 0; font-weight: 600; color: var(--slate); text-align: right; }
.car__actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }

.empty { text-align: center; padding: 3.5rem 1rem; background: var(--cream); border: 1px dashed #cfc9ba; border-radius: var(--radius); margin-top: 2rem; }
.empty h2 { font-size: 1.8rem; }
.empty p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.4rem; }

/* Rates table */
.rates { margin-top: 3.5rem; }
.rates > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; background: var(--slate); color: #fff; border-radius: var(--radius); font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .02em; }
.rates > summary::-webkit-details-marker { display: none; }
.rates > summary::after { content: "+"; font-family: var(--font-body); font-size: 1.6rem; }
.rates[open] > summary::after { content: "–"; }
.rates[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.rates-table { width: 100%; border-collapse: collapse; min-width: 900px; font-size: .88rem; }
.rates-table th, .rates-table td { padding: .65rem .7rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rates-table th { background: var(--cream); font-weight: 700; color: var(--slate); }
.rates-table thead tr:first-child th { text-align: center; border-bottom-color: #d6d1c5; }
.rates-table th:first-child, .rates-table td:first-child, .rates-table th:nth-child(2), .rates-table td:nth-child(2), .rates-table td:nth-child(3) { text-align: left; }
.rates-table td:nth-child(2) { white-space: normal; min-width: 200px; font-weight: 600; color: var(--slate); }
.rates-table .sep { border-left: 2px solid var(--line); }
.rates-table thead th[rowspan] { text-align: left; }
.rates-table thead th[rowspan="2"]:nth-child(4) { text-align: right; }
.rates-table td:last-child { white-space: normal; min-width: 210px; }
.rates-table tbody tr:hover { background: var(--cream); }
.table-note { padding: 1rem 1.2rem; font-size: .85rem; color: var(--muted); background: var(--cream); margin: 0; }

/* Terms */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.term .icon { width: 28px; height: 28px; color: var(--red); margin-bottom: .8rem; }
.term h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.term p { font-size: .9rem; color: var(--muted); margin: 0; }
.notice { display: flex; gap: .9rem; align-items: flex-start; background: var(--red-50); border: 1px solid #f2c9c4; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 1.4rem; color: var(--slate); font-size: .95rem; }
.notice .icon { color: var(--red); margin-top: .2rem; }
.notice p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiles, .cats, .terms { grid-template-columns: repeat(2, 1fr); }
  .cars { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .f-client { grid-column: span 6; } .f-days { grid-column: span 3; } .f-trans { grid-column: span 3; }
  .f-seats { grid-column: span 3; } .f-sort { grid-column: span 3; } .f-price { grid-column: span 6; }
  .f-zero { grid-column: span 6; } .f-reset { grid-column: span 6; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta .btn { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .quick__form { grid-template-columns: 1fr 1fr; }
  .quick__form .field:first-child { grid-column: 1 / -1; }
  .quick__form .btn { grid-column: 1 / -1; }
  .trust__list { grid-template-columns: 1fr 1fr; }
  .split, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .tiles, .cats, .terms { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .cars { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand__name { font-size: 1.35rem; }
  .brand__mark { width: 40px; height: 40px; }
  .toolbar__row .btn { display: none; }
  .filters__grid > * { grid-column: 1 / -1 !important; }
  .f-days, .f-trans { grid-column: span 6 !important; }
  .f-seats, .f-sort { grid-column: span 6 !important; }
  .f-reset { justify-self: start; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 90;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: .8rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content > * { animation: none; }
  .tile { transition: none; }
}

/* ---------- Print (rates list) ---------- */
@media print {
  .site-header, .toolbar, .pills-wrap, .filters, .mobile-bar, .cta-band, .site-footer, .results-bar, .car__actions, .quick, .hero { display: none !important; }
  body { padding: 0; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero h1, .page-hero p { color: #000; }
  .cars { grid-template-columns: repeat(2, 1fr); }
  .car { break-inside: avoid; }
  .rates > summary { background: none; color: #000; padding: 0; }
  .rates > summary::after { display: none; }
}
