/**
 * Taxi Réservation Theme - Base Styles (mobile-first)
 *
 * Structure:
 *   1. Design tokens (:root)
 *   2. Reset & base
 *   3. Layout helpers (container, section-head)
 *   4. Buttons
 *   5. Header (single-line sticky) <- Phase 1
 *   6. Hero + booking card        <- Phase 2 refines
 *   7. Booking form controls
 *   8. Sections (cars/testimonials/faqs) <- Phases 3-5
 *   9. Footer
 *  10. Payment result pages
 *  11. Reservation page (two-column: form + summary)
 *  12. Responsive breakpoints
 *
 * Breakpoints (mobile-first):
 *   base   : <= 640px  (phones)
 *   md     : >= 641px   (tablets)
 *   lg     : >= 1025px  (desktops)
 * ------------------------------------------------------------------ */

/* 1. Design tokens ------------------------------------------------- */
:root {
	/* Palette (overridden by Customizer via taxirservation_dynamic_css). */
	--primary: #f4820b;         /* orange accent / CTAs */
	--primary-dark: #d46f00;
	--primary-rgb: 244, 130, 11;
	--accent: #111418;          /* near-black header/footer bar */
	--accent-rgb: 17, 20, 24;

	--ink: #14181d;
	--ink-soft: #4a5560;
	--muted: #78848f;
	--line: #e6e9ee;
	--bg: #ffffff;
	--bg-soft: #f6f7f9;
	--bg-softer: #fbfbfc;
	--white: #ffffff;
	--success: #1f9d55;
	--danger: #d64545;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 2px 8px rgba(20, 24, 29, 0.06);
	--shadow: 0 12px 34px rgba(20, 24, 29, 0.10);
	--shadow-lg: 0 26px 60px rgba(20, 24, 29, 0.16);

	--container: 1200px;
	--gutter: 20px;
	--header-h: 68px;
	--callbar-h: 56px;


	--font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Reset & base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Clear the fixed bottom call bar so content is never hidden behind it. */
	padding-bottom: var(--callbar-h);
	/* Prevent the wide hero curve from ever adding a horizontal scrollbar. */
	overflow-x: hidden;
}


img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .45); outline-offset: 2px; }

/* 3. Layout helpers ------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section-head {
	max-width: 720px;
	margin: 0 auto 2rem;
	text-align: center;
}
.section-kicker {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: .6rem;
}
.section-title { margin: 0 0 .5rem; }
.section-lead { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* 4. Buttons ------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .35); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.spinner {
	width: 1em; height: 1em;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	animation: tr-spin .7s linear infinite;
}
@keyframes tr-spin { to { transform: rotate(360deg); } }

/* 5. Header (single-line sticky) ----------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	box-shadow: var(--shadow-sm);
}
.header-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Main bar (single line) */
.mainbar { transition: box-shadow .2s ease; }
.mainbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-h);
	transition: min-height .2s ease;
}
.site-header.is-scrolled .mainbar-inner { min-height: calc(var(--header-h) - 12px); }
.site-title a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ink);
}
.site-title-mark { color: var(--primary); display: inline-flex; }
.site-logo img { max-height: 46px; width: auto; }

.main-navigation { display: flex; align-items: center; gap: .75rem; }
.primary-menu { display: flex; align-items: center; gap: 1.4rem; }
.primary-menu a { color: var(--ink); font-weight: 600; position: relative; }
.primary-menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
	height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left;
	transition: transform .18s ease;
}
.primary-menu a:hover { color: var(--primary); }
.primary-menu a:hover::after { transform: scaleX(1); }
.primary-menu .current-menu-item > a { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-book-btn {
	display: inline-flex;
	align-items: center;
	padding: .6rem 1.1rem;
	background: var(--primary);
	color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 700;
}
.header-book-btn:hover { background: var(--primary-dark); color: #fff; }

.language-switcher { display: inline-flex; gap: .25rem; }
.lang-switch {
	padding: .25rem .5rem;
	border-radius: 6px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--muted);
}
.lang-switch.active { background: rgba(var(--primary-rgb), .12); color: var(--primary); }

/* Footer language switcher (its own footer column) */
.footer-language { margin-top: .25rem; }
.footer-language .language-switcher { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.footer-language .lang-switch {
	padding: .3rem .65rem;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
	font-size: .8rem;
	font-weight: 700;
	color: rgba(255, 255, 255, .75);
}
.footer-language .lang-switch.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 6. Hero + booking card ------------------------------------------ */
.hero-booking {
	position: relative;
	background: linear-gradient(135deg, rgba(var(--accent-rgb), 1) 0%, #1c2128 100%);
	color: #fff;
	padding: 2.5rem 0 3.5rem;
	overflow: hidden;
}
.hero-booking.has-image .hero-bg-image {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 1;
}
/* Graduated dark scrim: darker behind the left-side white copy, fading to
   mostly-transparent on the right so the background photo stays visible. */
.hero-booking.has-image::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(var(--accent-rgb), .72) 0%, rgba(var(--accent-rgb), .45) 45%, rgba(var(--accent-rgb), .15) 100%);
	z-index: 1;
}
/* Curved bottom edge (Stafford Template 1 style). An inline SVG wave that
   sweeps high on the left and dips lower on the right toward the form.
   `preserveAspectRatio="none"` stretches it edge-to-edge at any width with
   no horizontal overflow; `color` drives the path fill (currentColor). */
.hero-curve {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: 58px;
	color: #181d23;
	display: block;
	z-index: 3;
	pointer-events: none;
}
.hero-booking-inner { position: relative; z-index: 2; }
.hero-booking-grid { display: grid; gap: 2rem; }

.hero-copy { max-width: 560px; }
.hero-copy h1 { letter-spacing: -.01em; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--primary);
	background: rgba(var(--primary-rgb), .14);
	padding: .35rem .8rem; border-radius: 999px;
	margin-bottom: 1rem;
}
.hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-copy h1 { color: #fff; }
.hero-subtitle { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.4rem 0; }
.hero-cta {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--primary); color: #fff;
	padding: .85rem 1.6rem; border-radius: var(--radius-sm); font-weight: 700;
	transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.hero-cta:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35); }
.hero-cta:active { transform: translateY(1px); }
.hero-call {
	display: inline-flex; align-items: center; gap: .5rem;
	color: #fff; font-weight: 600;
	padding: .85rem 1.2rem; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm);
}
.hero-call:hover { border-color: var(--primary); color: var(--primary); }
.hero-highlights { display: grid; gap: .5rem; }
.hero-highlights li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); }
.hero-highlight-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(var(--primary-rgb), .2); color: var(--primary); font-size: .8rem; font-weight: 700;
}

/* Booking card */
.booking-card {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 1.5rem;
}
.booking-card-head { margin-bottom: 1rem; }
.booking-card-title { margin: 0 0 .25rem; font-size: 1.3rem; }
.booking-card-sub { margin: 0; color: var(--muted); font-size: .9rem; }

/* 7. Booking form controls ---------------------------------------- */
.booking-type-toggle {
	display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
	background: var(--bg-soft); padding: .4rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.booking-type-option {
	position: relative; text-align: center; padding: .6rem; border-radius: 6px;
	font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.booking-type-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.booking-type-option.active { background: var(--primary); color: #fff; }

.form-row { margin-bottom: .9rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
/* Hidden vehicle <select> — kept for JS/fare logic, driven by the card grid. */
.vehicle-select-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vehicle-grid-label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.form-group { position: relative; display: flex; flex-direction: column; }
.form-group label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.form-control {
	width: 100%; padding: .7rem .85rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; color: var(--ink); background: var(--white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }

.address-suggestions {
	display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; margin-top: 4px;
}
.address-suggestions.active { display: block; }
.suggestion-item { padding: .6rem .8rem; font-size: .9rem; cursor: pointer; border-bottom: 1px solid var(--bg-soft); }
.suggestion-item:hover { background: var(--bg-soft); }
.suggestion-loading, .suggestion-no-results { color: var(--muted); cursor: default; display: flex; align-items: center; gap: .5rem; }
.suggestion-spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: tr-spin .7s linear infinite; }

.vehicle-card-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .6rem; }
.vehicle-card {
	position: relative; text-align: left; padding: .8rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer;
	display: flex; flex-direction: column; gap: .3rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.vehicle-card:hover { border-color: var(--primary); }
.vehicle-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.vehicle-card-glow { display: none; }
.vehicle-card-top { display: flex; align-items: center; justify-content: space-between; }
.vehicle-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 8px; background: rgba(var(--primary-rgb), .12);
	color: var(--primary); font-weight: 700; font-size: .8rem;
}
.vehicle-card-pill { font-size: .72rem; color: var(--muted); }
.vehicle-card-name { font-weight: 700; }
.vehicle-card-price { font-size: .8rem; color: var(--ink-soft); }

.booking-map-wrapper { margin-top: 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.route-map { width: 100%; height: 220px; background: var(--bg-soft); }

/* Homepage quote form: a compact lead-in card — shorter map and a clear gap
   before the "Continue to Booking" button. Scoped so the full booking form
   and the reservation summary map keep their taller preview. */
#taxi-quote-form .route-map { height: 160px; }
#taxi-quote-form .submit-row { margin-top: 1.4rem; }

/* Ride-type tabs (Point-to-Point / Vehicle at Disposal). Look like tabs, behave
   like a radio group; only prefill the full booking page. */
.quote-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.quote-tab {
	display: flex; align-items: center; gap: .55rem;
	padding: .7rem .8rem;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer; font: inherit; text-align: left;
	color: var(--ink-soft);
	transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.quote-tab:hover { border-color: rgba(var(--primary-rgb), .5); }
.quote-tab.is-active { border-color: var(--primary); color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.quote-tab-icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 8px;
	background: var(--bg-soft); color: var(--muted);
	transition: background .15s ease, color .15s ease;
}
.quote-tab.is-active .quote-tab-icon { background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.quote-tab-label { font-weight: 700; font-size: .92rem; line-height: 1.2; }

.fare-preview { margin-top: 1rem; padding: 1rem; background: var(--bg-soft); border-radius: var(--radius-sm); }
.fare-preview h3 { margin: 0 0 .6rem; font-size: 1rem; }
.fare-row { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .9rem; }
.fare-row.fare-total, .fare-row.fare-deposit { font-weight: 700; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.fare-row.fare-deposit { color: var(--primary); }

.booking-message { display: none; margin-top: .9rem; padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.booking-message.success { background: rgba(31,157,85,.12); color: var(--success); }
.booking-message.error { background: rgba(214,69,69,.12); color: var(--danger); }

/* 8. Sections (cars/testimonials/faqs) ---------------------------- */
.cars-section, .testimonials-section, .faqs-section { padding: 3rem 0; }
.testimonials-section { background: var(--bg-soft); }

/* 8.1 Cars showcase — tabbed vehicle range (Phase 3) */
.cars-showcase { margin-top: 2rem; }

/* Tab selector */
.cars-tabs {
	display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
	margin-bottom: 1.5rem;
}
.car-tab {
	display: flex; align-items: center; gap: .6rem;
	padding: .6rem .8rem;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer; font: inherit; text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.car-tab:hover { border-color: rgba(var(--primary-rgb), .5); }
.car-tab.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.car-tab-thumb {
	flex: none; width: 46px; height: 34px; border-radius: 6px; overflow: hidden;
	background: var(--bg-soft); color: var(--muted);
	display: inline-flex; align-items: center; justify-content: center;
}
.car-tab-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-tab-thumb .car-showcase-placeholder-svg { width: 34px; height: auto; }
.car-tab-name { font-weight: 700; color: var(--ink); font-size: .92rem; }

/* Showcase panel: left content / center image / right dark specs */
.car-showcase-panel {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 1.5rem;
}
.car-showcase-panel[hidden] { display: none; }

.car-showcase-info { display: flex; flex-direction: column; gap: .9rem; }
.car-showcase-name { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.car-showcase-desc { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.car-showcase-features { display: flex; flex-direction: column; gap: .5rem; }
.car-showcase-features li { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-weight: 500; }
.car-feature-check {
	flex: none; color: var(--primary);
}
.car-showcase-price { margin: .3rem 0 .2rem; display: flex; align-items: baseline; gap: .4rem; }
.car-showcase-price strong { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.car-showcase-price-suffix { color: var(--muted); font-size: .9rem; }
.car-showcase-cta { align-self: flex-start; }

.car-showcase-media {
	display: flex; align-items: center; justify-content: center;
	min-height: 160px;
}
.car-showcase-img { width: 100%; height: auto; object-fit: contain; display: block; }
.car-showcase-placeholder { color: var(--muted); display: inline-flex; }
.car-showcase-placeholder-svg { width: 100%; max-width: 240px; height: auto; }

/* Dark spec panel */
.car-specs {
	background: var(--accent);
	border-radius: var(--radius);
	padding: 1.4rem 1.5rem;
	color: #fff;
}
.car-specs-list { margin: 0; }
.car-specs-row {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	padding: .7rem 0;
	border-bottom: 1px dashed rgba(255,255,255,.18);
}
.car-specs-row:last-child { border-bottom: 0; }
.car-specs-label { margin: 0; color: rgba(255,255,255,.6); font-size: .85rem; }
.car-specs-value { margin: 0; color: #fff; font-weight: 700; font-size: .9rem; text-align: right; }

/* 8.1b Cars Grid Style — isolated card galleries ------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cars-section--grid {
	background: var(--accent);
	color: #fff;
	position: relative;
	margin-top: -1.25rem;
	overflow: hidden;
}
.cars-section--grid .section-title { color: #fff; }
.cars-section--grid .section-lead { color: rgba(255,255,255,.72); }

/* Curved top & bottom edges — mirrors the hero .hero-curve technique.
   Inline SVG waves filled with the page background (currentColor) so the
   dark section transitions smoothly into the surrounding white space. */
.cars-curve {
	position: absolute;
	left: 0; right: 0;
	width: 100%;
	height: 70px;
	color: #181d23;
	display: block;
	z-index: 3;
	pointer-events: none;
}
.cars-curve--top { top: -1px; }
.cars-curve--bottom { bottom: -1px; }

/* Extra top/bottom padding so content clears the curved edges. */
.cars-section--grid .container { padding-top: 1.5rem; padding-bottom: 2rem; }
.cars-card-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.35rem;
	margin-top: 2.25rem;
}
.cars-grid-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	background: var(--white);
	border: 2px solid rgba(var(--primary-rgb), .72);
	border-radius: var(--radius-lg);
	box-shadow: 0 18px 42px rgba(0,0,0,.2);
	overflow: hidden;
}
.cars-grid-card__gallery {
	position: relative;
	margin: .65rem .65rem 0;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--radius-lg) - 7px);
	overflow: hidden;
	background: #e9edf0;
	touch-action: pan-y;
	cursor: default;
}
.cars-grid-card__gallery.has-multiple-slides { cursor: grab; }
.cars-grid-card__gallery.is-dragging { cursor: grabbing; }
.cars-grid-card__track {
	display: flex;
	width: 100%; height: 100%;
	transition: transform .35s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}
.cars-grid-card__gallery.is-dragging .cars-grid-card__track { transition: none; }
.cars-grid-card__slide {
	flex: 0 0 100%;
	width: 100%; height: 100%;
}
.cars-grid-card__image {
	width: 100%; height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}
.cars-grid-card__slide--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	background: linear-gradient(145deg, #f5f6f7, #dce2e7);
}
.cars-grid-card__slide--placeholder .car-showcase-placeholder-svg { width: 50%; max-width: 190px; }
.cars-grid-card__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17,20,24,.84);
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .16s ease, transform .16s ease;
}
.cars-grid-card__arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.06); }
.cars-grid-card__arrow--prev { left: .7rem; }
.cars-grid-card__arrow--next { right: .7rem; }
.cars-grid-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.15rem 1.25rem 1.3rem;
}
.cars-grid-card__title {
	margin: 0 0 .55rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--primary);
}
.cars-grid-card__description {
	margin: 0 0 .9rem;
	color: var(--ink-soft);
	font-size: .94rem;
	line-height: 1.55;
}
.cars-grid-card__details {
	display: flex;
	flex-direction: column;
	gap: .58rem;
	margin-bottom: 1.25rem;
}
.cars-grid-card__details li {
	display: flex;
	align-items: flex-start;
	gap: .62rem;
	color: var(--ink-soft);
	font-size: .92rem;
	line-height: 1.4;
}
.cars-grid-card__details svg { flex: none; margin-top: .05rem; color: var(--primary); }
.cars-grid-card__cta {
	align-self: stretch;
	justify-content: center;
	margin-top: auto;
	border-radius: 999px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.cars-grid-card__track,
	.cars-grid-card__arrow { transition: none; }
}


/* 8.2 Testimonials grid (Phase 4) */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
.testimonial-card {
	display: flex; flex-direction: column; gap: 1rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 1.5rem;
}
.testimonial-rating { display: inline-flex; gap: .15rem; color: var(--line); }
.testimonial-star { display: inline-flex; line-height: 0; }
.testimonial-star.is-filled { color: var(--primary); }
.testimonial-quote {
	margin: 0; padding: 0; border: 0;
	color: var(--ink-soft); font-size: 1rem; line-height: 1.7;
	flex: 1 1 auto;
}
.testimonial-quote p { margin: 0 0 .6rem; }
.testimonial-quote p:last-child { margin-bottom: 0; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
	flex: none; width: 46px; height: 46px; border-radius: 50%;
	overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(var(--primary-rgb), .12);
}
.testimonial-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-avatar-initials { color: var(--primary-dark); font-weight: 800; font-size: 1.1rem; }
.testimonial-author-meta { display: flex; flex-direction: column; }
.testimonial-author-name { font-weight: 700; color: var(--ink); }
.testimonial-author-role { font-size: .82rem; color: var(--muted); }

/* 8.3 FAQ accordion (Phase 5) — native <details>/<summary> */
.faq-accordion { max-width: 820px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.faq-item[open] { border-color: rgba(var(--primary-rgb), .45); }
.faq-question {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 1.25rem;
	font-weight: 700; color: var(--ink);
	cursor: pointer; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--primary); }
.faq-icon { flex: none; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
	.faq-icon { transition: none; }
}


/* 9. Footer -------------------------------------------------------- */


.site-footer { background: var(--accent); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; position: relative; overflow: hidden; }

/* Curved top edge — mirrors the hero / cars curve technique.
   Inline SVG wave filled with the page background (currentColor) so the
   dark footer transitions smoothly from the white content above. */
.footer-curve {
	position: absolute;
	left: 0; right: 0; top: -1px;
	width: 100%;
	height: 70px;
	color: var(--bg);
	display: block;
	z-index: 3;
	pointer-events: none;
}
/* Push footer content below the curved edge. */
.site-footer .footer-container { padding-top: 2rem; }
.footer-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.footer-brand-mark { color: var(--primary); }
.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-tagline { font-size: .9rem; line-height: 1.7; }
.footer-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; margin-top: .5rem; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-links li, .footer-contact li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); }
.footer-contact a { color: #fff; }
.footer-bottom {
	display: flex; flex-direction: column; gap: .5rem;
	margin-top: 2rem; padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: .82rem;
}

/* 9.5 Fixed bottom call bar --------------------------------------- */
.site-callbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	min-height: var(--callbar-h);
	background: var(--white);
	border-top: 3px solid var(--primary);
	box-shadow: 0 -6px 20px rgba(20, 24, 29, .10);
}
.callbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--callbar-h);
	padding-top: 6px;
	padding-bottom: 6px;
}
.callbar-status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); font-size: .9rem; }
.callbar-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: #e23b3b; position: relative; flex: none;
}
.callbar-dot::after {
	content: ""; position: absolute; inset: -5px; border-radius: 50%;
	border: 2px solid rgba(226, 59, 59, .5);
	animation: callbar-pulse 1.8s ease-out infinite;
}
@keyframes callbar-pulse {
	0%   { transform: scale(.6); opacity: 1; }
	100% { transform: scale(1.6); opacity: 0; }
}
.callbar-cta {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--accent); color: #fff;
	padding: .6rem 1.1rem; border-radius: var(--radius-sm);
	font-weight: 700; white-space: nowrap;
}
.callbar-cta:hover { background: var(--primary); color: #fff; }
.callbar-cta svg { color: var(--primary); }
.callbar-cta:hover svg { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.callbar-dot::after { animation: none; }
}

/* 10. Payment result pages ---------------------------------------- */
.payment-result { padding: 3rem 0; background: var(--bg-soft); min-height: 60vh; }
.result-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; text-align: center; }
.result-icon { font-size: 3rem; margin-bottom: .5rem; }
.result-subtitle { color: var(--ink-soft); }
.result-details { text-align: left; margin: 1.5rem 0; }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--bg-soft); }
.result-label { color: var(--muted); }
.result-value { font-weight: 600; text-align: right; }
.result-row-highlight .result-value { color: var(--primary); }
.result-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1rem; }

/* 11. Reservation page (two-column: form + summary) --------------- */
.reservation-section { padding: 2.5rem 0 3.5rem; background: var(--bg-soft); }
.reservation-head { text-align: center; }
.reservation-head .section-title { color: var(--ink); }

/* Layout: single column on mobile, form + summary from lg up.
   The summary is source-ordered AFTER the form (so screen readers read the
   form first), but on desktop we keep it visually on the right. */
.reservation-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	margin-top: 2rem;
}

/* Left column: the full booking form in a white card. */
.reservation-form-col .booking-form-container {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

/* Right column: eCommerce-style order summary. */
.reservation-summary {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}
.reservation-summary-title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	padding-bottom: .8rem;
	border-bottom: 1px solid var(--line);
}
/* On the summary the map + fare estimate sit above the CTA. */
.reservation-summary .booking-map-wrapper { margin-top: 0; }
.reservation-summary .fare-preview { margin-top: 1rem; margin-bottom: 1rem; }
.reservation-summary-hint {
	margin: 1rem 0;
	font-size: .88rem;
	color: var(--muted);
	text-align: center;
}
.reservation-summary #booking-submit { margin-top: .25rem; }
.reservation-summary-note {
	margin: .9rem 0 0;
	font-size: .78rem;
	color: var(--muted);
	text-align: center;
	line-height: 1.5;
}

/* 12. Responsive breakpoints -------------------------------------- */

/* md: tablets and up */
@media (min-width: 641px) {
	.cars-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
	.vehicle-card-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

	.hero-booking { padding: 3.5rem 0 4.5rem; }
	.hero-curve { height: 66px; }
	.cars-curve { height: 66px; }
	.footer-curve { height: 80px; }
	.cars-section--grid { margin-top: -1.5rem; }
	.cars-section--grid .container { padding-top: 1.75rem; }
	.cars-tabs { grid-template-columns: repeat(3, 1fr); }
	.testimonials-grid { grid-template-columns: 1fr 1fr; }
}




/* lg: desktops and up */
@media (min-width: 1025px) {
	.cars-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.65rem; }
	:root { --header-h: 76px; }
	.hero-booking-grid { grid-template-columns: 1fr 460px; align-items: center; gap: 3rem; }
	.hero-booking { padding: 4.5rem 0 6rem; }
	.hero-curve { height: 74px; }
	.cars-curve { height: 74px; }
	.footer-curve { height: 90px; }
	.cars-section--grid { margin-top: -1.75rem; }
	.cars-section--grid .container { padding-top: 2rem; }
	/* Let the tall booking card overlap the curve for the Template 1 look. */
	.booking-card-wrapper { position: relative; z-index: 4; }
	.booking-card { padding: 1.75rem; }
	.route-map { height: 260px; }
	.cars-tabs { grid-template-columns: repeat(5, 1fr); }
	/* 3-zone showcase: content | image | dark specs. */
	.car-showcase-panel { grid-template-columns: 1fr 1.1fr 320px; align-items: center; gap: 2rem; padding: 2rem; }
	.car-showcase-media { min-height: 220px; }
	.testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

	/* Reservation: form on the left, sticky cart-style summary on the right. */
	.reservation-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; }
	.reservation-summary-col { position: sticky; top: calc(var(--header-h) + 20px); }
}




/* Single-page site: hide nav menu below lg (header keeps logo + Réserver) */
@media (max-width: 1024px) {
	.primary-menu { display: none; }
}

/* Small phones: keep the call CTA prominent, trim the rest */
@media (max-width: 560px) {
	.header-book-btn { display: none; }
	.callbar-status-text { font-size: .82rem; }
	.callbar-cta-number { display: none; }
	.callbar-cta { padding: .55rem .9rem; }
}
@media (max-width: 380px) {
	.callbar-status-text { display: none; }
}
