/* ==========================================================================
   RentCar Pro · single stylesheet (2.0.1)
   One place per component, its responsive variants right after it.
   Order: tokens · base · controls · public site · shared windows · tracking ·
   admin · settings · photo viewer · motion · print.
   The business colour arrives at runtime as --accent (Mi negocio > Identidad);
   --on-accent (text on accent buttons) is chosen by contrast in app.jsx.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --accent: #3978ff;
  --on-accent: #ffffff;
  --accent-text: color-mix(in srgb, var(--accent) 66%, #ffffff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 42%, var(--border2));
  --bg: #050b17;
  --panel: #0a1628;
  --panel2: #0e1d34;
  --panel3: #13243f;
  --field: #071226;
  --border: #1a2c47;
  --border2: #25395a;
  --text: #f3f7fd;
  --soft: #cdd7e6;
  --muted: #9fb0c8;
  --ok: #22c55e;
  --ok-text: #bbf7d0;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px #00000059;
  --gutter: max(20px, 5vw);
  --page: 1440px;
  /* Side margin shared by every full-width band so their content lines up. The percentage
     resolves against each band's own width (no scrollbar offset, unlike vw). */
  --edge: max(var(--gutter), calc((100% - var(--page)) / 2));
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
  font-size: 16px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 600px at 85% -10%, #0d2246 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#root,
main,
section,
header,
nav,
form,
label,
fieldset {
  min-width: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1rem;
}
h1 em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--accent-text);
}
p {
  margin: 0 0 1em;
  line-height: 1.65;
}
a {
  color: var(--accent-text);
}
img,
svg {
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}
small,
.small {
  font-size: 0.875rem;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
fieldset:disabled {
  opacity: 0.7;
}
pre {
  max-width: 100%;
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 0.875rem;
  line-height: 1.6;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.spaced {
  margin-top: 20px;
}
.full {
  width: 100%;
}

/* ---------- Form fields ---------- */
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--soft);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #33507a;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
}
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  color-scheme: dark;
  display: block;
}
input::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.5em;
}
input::placeholder,
textarea::placeholder {
  color: #7c8ba3;
}
select option,
select optgroup {
  background: var(--panel);
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}
input[type="range"] {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}
input[type="color"] {
  width: 64px;
  padding: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 18px 0;
  align-items: start;
}
.form-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Short fields (users): one row on wide screens instead of two very wide rows. */
.form-grid.user-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: end;
}
.span2 {
  grid-column: 1 / -1;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 10px 0;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.switch-label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.money-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}
.color-control {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.color-control span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.char-count {
  align-self: flex-end;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.saving {
  margin: 10px 0 0;
  color: var(--accent-text);
  font-size: 0.875rem;
}
@media (max-width: 1100px) {
  .form-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px; /* no zoom on focus in iOS */
  }
  .form-grid,
  .form-grid.cols-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--panel3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
  background: #1a2f50;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.outline {
  background: transparent;
  border-color: var(--accent-line);
}
.btn.outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.btn.small-btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.btn.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.02rem;
  border-radius: 12px;
}
.btn.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
}
.btn:disabled,
.btn:disabled:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}
.text-button {
  min-height: 40px;
  padding: 6px 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-text);
}
.text-link:hover svg {
  transform: translateX(3px);
}
.btn.whatsapp {
  gap: 9px;
  white-space: nowrap;
  color: #fff;
  background: #15803d;
  border-color: #15803d;
}
.btn.whatsapp:hover,
.btn.whatsapp:focus-visible {
  background: #166534;
  border-color: #166534;
}
.btn.whatsapp.whatsapp-icon {
  width: 46px;
  min-width: 46px;
  padding: 0;
}
.btn.whatsapp.outline-wa {
  color: var(--text);
  background: transparent;
  border-color: var(--accent-line);
}
.btn.whatsapp.outline-wa svg {
  color: #25d366;
}
.btn.whatsapp.outline-wa:hover {
  background: #25d36614;
  border-color: #25d366;
}
/* Working / done / copied states, visible without motion too. */
.btn[aria-busy="true"],
fieldset:disabled .btn[type="submit"] {
  opacity: 0.85;
  cursor: progress;
}
.btn[aria-busy="true"]::before,
fieldset:disabled .btn[type="submit"]::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
form[data-ok="true"] .btn[type="submit"] {
  box-shadow: 0 0 0 3px #22c55e66;
}
form[data-ok="true"] .btn[type="submit"]::before {
  content: "✓";
  font-weight: 800;
}

/* ---------- Small shared pieces ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--soft);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips button:hover {
  border-color: var(--border2);
  color: var(--text);
}
.chips button.selected {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 7px;
}
.badge.green {
  color: #86efac;
  background: #14532d66;
  border-color: #16a34a66;
}
.badge.blue {
  color: #bfdbfe;
  background: #1e3a8a66;
  border-color: #3b82f666;
}
.badge.yellow {
  color: #fde68a;
  background: #78350f66;
  border-color: #f59e0b66;
}
.badge.gray {
  color: #cbd5e1;
  background: #33415566;
  border-color: #64748b66;
}
.badge.red {
  color: #fecaca;
  background: #7f1d1d66;
  border-color: #ef444466;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  margin-left: 12px;
  vertical-align: middle;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 9px;
}
.notice {
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dbe7fb;
  background: #13284a;
  border: 1px solid #23406b;
  border-left: 3px solid var(--accent-text);
  border-radius: 10px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.error-box {
  padding: 14px 16px;
  margin: 14px 0;
  line-height: 1.6;
  color: #ffd2d7;
  background: #4a1d26;
  border: 1px solid #8f3a48;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 56px 20px;
  text-align: center;
}
.empty svg {
  margin-bottom: 14px;
  color: var(--muted);
}
.empty h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--soft);
}
.empty-line {
  padding: 14px 16px;
  color: var(--muted);
  border: 1px dashed var(--border2);
  border-radius: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  padding: 14px 20px;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #18325a;
  border: 1px solid #3c63a0;
  border-radius: 12px;
  box-shadow: 0 14px 44px #000a;
  transform: translateX(-50%);
}
.panel {
  min-width: 0;
  padding: 24px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.panel-heading h2,
.panel-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.2rem;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 12px;
}
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}
.app-loading svg {
  margin-bottom: 22px;
  color: var(--accent-text);
}
@media (max-width: 760px) {
  .panel {
    padding: 18px;
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   Brand lockup and language switch (public header, sidebar, previews)
   ========================================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand .brand-logo {
  display: block;
  width: var(--logo-width, 240px);
  max-width: min(var(--logo-width, 240px), 100%);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
  background: transparent;
}
.brand-with-name .brand-logo {
  max-width: min(var(--logo-width, 240px), 42%);
}
.brand-logo-only {
  width: min(var(--logo-width, 240px), 100%);
  max-width: 100%;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark {
  position: relative;
  flex: none;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.brand-mark span {
  position: absolute;
  left: 6px;
  bottom: 8px;
  width: 22px;
  height: 4px;
  background: var(--text);
  transform: skew(-20deg);
}
.logo-button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  text-align: left;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--border2);
  border-radius: 10px;
}
.language-switch button {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--soft);
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.language-switch button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
}
/* "ES | EN" in the public header: the full language name stays for screen readers
   (and is the button's accessible name); only the visual label is abbreviated. */
.language-switch.compact {
  gap: 0;
  padding: 0;
  border: 0;
}
.language-switch.compact button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0;
  color: var(--muted);
  background: none;
  border-radius: 8px;
}
.language-switch.compact button::before {
  content: attr(data-short);
  font-size: 0.9rem;
  font-weight: 700;
}
.language-switch.compact button + button {
  position: relative;
}
.language-switch.compact button + button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border2);
}
.language-switch.compact button[aria-pressed="true"] {
  color: var(--text);
  background: none;
}
.language-switch.compact button:hover {
  color: var(--text);
}

/* ==========================================================================
   Public header, WhatsApp help bar, phone navigation
   ========================================================================== */
.help-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--edge);
  background: #071328;
  border-bottom: 1px solid var(--border);
}
.help-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  min-width: 0;
  margin: 0;
}
.help-bar strong {
  font-size: 0.95rem;
}
.help-bar span {
  font-size: 0.875rem;
  color: var(--muted);
}
.help-bar .btn.whatsapp {
  min-height: 42px;
  padding: 8px 16px;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 10px var(--edge);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid #ffffff0d;
  backdrop-filter: blur(14px);
}
.public-header .logo-button {
  flex: 0 1 auto;
  max-width: min(360px, 45%);
}
.public-header nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 38px);
}
.nav-links button {
  position: relative;
  min-height: 44px;
  padding: 10px 2px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: #c3cee0;
}
.nav-links button:hover,
.nav-links button.active {
  color: #fff;
}
.nav-links button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-access {
  white-space: nowrap;
}
/* With logo and name, a laptop-width header has no room for the label: the button keeps its
   icon and its text stays as the accessible name (and the tooltip). */
@media (min-width: 901px) and (max-width: 1240px) {
  .public-header .admin-access {
    gap: 0;
    min-width: 44px;
    padding: 0 12px;
    font-size: 0;
  }
}
.menu-toggle {
  display: none;
}
/* Quick links at the bottom of the phone screen (public pages). */
.tab-bar {
  display: none;
}
@media (max-width: 1024px) {
  .public-header {
    gap: 16px;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links button {
    font-size: 0.9rem;
  }
}
@media (max-width: 900px) {
  .public-header {
    min-height: 68px;
    gap: 12px;
    justify-content: space-between;
  }
  .public-header .logo-button {
    max-width: calc(100% - 120px);
  }
  .menu-toggle {
    display: inline-flex;
    flex: none;
    min-width: 44px;
  }
  .public-header nav {
    display: none;
  }
  /* The open menu drops under the header as one solid panel. */
  .public-header nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    padding: 8px var(--gutter) 18px;
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border2);
    /* Dims the page below the open menu (clipped so the header stays clear). */
    box-shadow: 0 0 0 100vmax #02060ea6;
    clip-path: inset(0 0 -100vmax 0);
  }
  .public-header nav.is-open .nav-links {
    flex-direction: column;
    gap: 2px;
  }
  .public-header nav.is-open .nav-links button {
    min-height: 48px;
    padding: 12px 14px;
    text-align: left;
    border-radius: 10px;
  }
  .public-header nav.is-open .nav-links button.active {
    background: var(--accent-soft);
  }
  .public-header nav.is-open .nav-links button.active::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }
  .public-header nav.is-open .nav-tools {
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 760px) {
  .help-bar {
    padding: 6px var(--gutter);
    gap: 10px;
  }
  .help-bar span {
    display: none;
  }
  .help-bar strong {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .help-bar .btn.whatsapp {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
  }
  .brand-copy small {
    letter-spacing: 0.2em;
  }
  .public-header .brand .brand-logo {
    max-height: 48px;
  }
  .tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 6px max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
    background: #060d1cf7;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }
  .tab-bar button,
  .tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 2px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    border-radius: 10px;
  }
  .tab-bar .active {
    color: var(--accent-text);
  }
  /* Keep the last content above the fixed bar. */
  body:has(.tab-bar) .public-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .help-bar strong {
    font-size: 0.8rem;
  }
  .menu-toggle {
    padding: 0 12px;
    font-size: 0;
    gap: 0;
  }
}

/* ==========================================================================
   Hero (cover photo or carousel) and search panel
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  min-height: 600px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 32%;
  background-color: #15253c;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.85s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 46%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 18%);
}
.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 600px;
  margin: 40px var(--edge) 130px;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.hero h1 em {
  color: var(--accent-text);
}
.hero p {
  max-width: 470px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #d3dcea;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 100%;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ok-text);
  background: #22c55e1f;
  border: 1px solid #22c55e66;
  border-radius: 999px;
}
.hero-credit {
  position: absolute;
  z-index: 2;
  left: var(--edge);
  right: var(--edge);
  bottom: 96px;
  text-align: right;
}
.hero-credit .sample-credit {
  margin: 0;
  font-size: 10px;
}
.hero.has-carousel .hero-credit {
  bottom: 140px;
}
.hero-controls {
  position: absolute;
  z-index: 3;
  left: var(--edge);
  bottom: 96px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-controls > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 44px;
  color: #dce6f4;
  border-radius: 8px;
}
.hero-controls > button:hover,
.hero-controls > button:focus-visible {
  color: #fff;
  background: #ffffff10;
}
.hero-dots {
  display: flex;
  align-items: center;
}
.hero-dots button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 44px;
  border-radius: 5px;
}
.hero-dots button.is-active {
  width: 34px;
  min-width: 34px;
}
.hero-dots span {
  display: block;
  width: 5px;
  height: 5px;
  background: #8390a5;
  border-radius: 4px;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dots button.is-active span {
  width: 24px;
  height: 4px;
  background: var(--accent-text);
}
.hero-controls > .hero-play {
  margin-left: 6px;
  border-left: 1px solid #a8bbd02b;
  border-radius: 0 8px 8px 0;
}
.sample-credit {
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.5;
  color: #acbad0;
}
.sample-credit a {
  color: inherit;
}
@media (max-width: 760px) {
  .hero {
    min-height: 520px;
  }
  .hero-photo {
    inset: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-overlay {
    background: linear-gradient(0deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 72%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent) 100%);
  }
  .hero-content {
    align-self: flex-end;
    margin: 0 var(--gutter) 116px;
  }
  .hero.has-carousel .hero-content {
    margin-bottom: 150px;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }
  .hero p {
    font-size: 1.02rem;
    margin-bottom: 22px;
  }
  .hero-controls {
    bottom: 80px;
  }
  .hero-credit {
    bottom: 64px;
    text-align: left;
  }
  .hero.has-carousel .hero-credit {
    bottom: 128px;
  }
}

/* Dates, delivery place and the main search action. */
.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 1.05fr);
  gap: 14px;
  align-items: center;
  margin: -78px var(--edge) 0;
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.search-panel.compact {
  width: 100%;
  margin: 0 0 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  box-shadow: none;
}
.zone-page .search-panel.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}
.search-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 14px;
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.search-field:hover,
.search-field:focus-within {
  border-color: var(--accent-line);
}
.field-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 11px;
}
.field-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.field-body small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.field-body input,
.field-body select {
  min-height: 40px;
  padding: 2px 0;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}
.field-body input:focus-visible,
.field-body select:focus-visible {
  box-shadow: none;
}
.search-field:focus-within {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-go {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.search-go .btn {
  width: 100%;
  min-height: 60px;
  font-size: 1.02rem;
}
.search-go .reassure {
  justify-content: center;
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
}
.reassure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.reassure svg {
  flex: none;
  color: var(--accent-text);
}
@media (max-width: 1100px) {
  .search-panel,
  .search-panel.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-panel .search-go {
    grid-column: 1 / -1;
  }
  .zone-page .search-panel.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .search-panel,
  .search-panel.compact,
  .zone-page .search-panel.compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .search-panel {
    margin-top: -64px;
  }
  .search-panel.compact {
    margin-top: 0;
  }
  .search-field {
    min-height: 64px;
    padding: 8px 12px;
  }
  .search-go .btn {
    min-height: 54px;
  }
}

/* ==========================================================================
   Home: offers, benefits, sections, steps
   ========================================================================== */
.section {
  margin: 64px 0;
  padding: 0 var(--edge);
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.home-fleet h2,
.how h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.04em;
}
.home-fleet .chips {
  margin: 0 0 24px;
}
.offers-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0 var(--edge);
}
.offer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.offer-card > strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--accent-text);
}
.offer-card h3 {
  margin: 0 0 3px;
  font-size: 1.05rem;
}
.offer-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0 var(--edge);
}
.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 11px;
}
.how {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.how h2 {
  margin-bottom: 26px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Number on top on wide screens; number beside the text on phones. The text keeps
   its own column, so wrapped lines never run back under the number. */
.step {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 26px 26px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.step > b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-text);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}
.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .section {
    margin: 48px 0;
  }
  .offer-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
  }
  .offer-card .btn {
    grid-column: 1 / -1;
  }
  .benefits {
    gap: 10px;
  }
  .benefit {
    padding: 12px;
    font-size: 0.82rem;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .step {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: none;
    gap: 14px;
    padding: 20px 18px;
  }
  .step > b {
    font-size: 1.6rem;
    padding-top: 2px;
  }
}
@media (max-width: 420px) {
  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Catalog and vehicle cards
   ========================================================================== */
.catalog {
  min-height: 65vh;
}
.catalog .section-heading h1 {
  display: flex;
  align-items: center;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.catalog > .chips {
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 1 340px;
  min-width: min(100%, 240px);
  padding: 0 14px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: 12px;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box input {
  padding-left: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.search-box input:focus-visible {
  box-shadow: none;
}
.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  color: var(--muted);
}
.availability-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  color: var(--ok-text);
  background: #15803d22;
  border: 1px solid #15803d88;
  border-radius: 12px;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 22px;
}
.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  box-shadow: 0 22px 44px #0007;
}
.car-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #15253c;
}
.car-photo-open,
.detail-photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: #fff;
  text-align: left;
  cursor: zoom-in;
}
.car-photo-open {
  height: 100%;
}
.car-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-photo-open > span,
.detail-photo-open > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f4f7fd;
  background: #09101bd6;
  border: 1px solid #ffffff35;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.car-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 130px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.car-category,
.car-featured {
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: #050b17d6;
  border: 1px solid #ffffff22;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.car-featured {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  border-color: transparent;
}
.car-featured.car-unavailable {
  color: #e6ebf4;
  background: #2a3346f0;
}
.compare-toggle {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border-bottom-left-radius: 16px;
  cursor: pointer;
}
.compare-toggle input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}
.car-offer {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 130px);
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f0fdf4;
  background: #15803dea;
  border-radius: 999px;
  pointer-events: none;
}
.car-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 20px;
}
.car-body h3 {
  margin: 0;
  font-size: 1.28rem;
}
.car-body > .muted {
  font-size: 0.875rem;
}
/* Price on top, then one full-width action row: same layout in every card width. */
.car-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.car-price {
  white-space: nowrap;
}
.car-price strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
}
.car-price small {
  margin-left: 4px;
  color: var(--muted);
}
.card-estimate {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--accent-text);
}
.car-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.car-actions .car-cta {
  min-height: 46px;
  white-space: nowrap;
}
.car-actions .whatsapp {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
}
/* Two lines reserved, so prices and buttons line up across a row of cards. */
.car-body > .sample-credit {
  min-height: 3em;
  margin: 12px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 18px;
  font-size: 0.9rem;
  color: var(--soft);
}
.specs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.specs svg {
  color: var(--muted);
}
@media (max-width: 420px) {
  .car-body {
    padding: 16px;
  }
}
/* Narrowest phones: the offer badge stays on one line beside "Ver fotos",
   and two vehicles still fit side by side in the comparison. */
@media (max-width: 360px) {
  .compare-row {
    grid-template-columns: 62px repeat(var(--cols), minmax(100px, 1fr));
    gap: 8px;
    min-width: calc(62px + var(--cols) * 108px);
    font-size: 0.84rem;
  }
  .compare-row .btn {
    padding-inline: 6px;
    font-size: 0.8rem;
  }
  .car-offer {
    max-width: calc(100% - 108px);
    padding: 5px 9px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .car-photo-open > span {
    right: 10px;
    bottom: 10px;
    padding: 6px 8px;
  }
}

/* Compare up to three vehicles. */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, calc(100% - 32px));
  padding: 10px 12px 10px 16px;
  background: #0b1830f5;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.compare-bar > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.compare-bar small {
  font-weight: 500;
  color: var(--muted);
}
.compare-thumbs {
  display: flex;
}
.compare-thumbs img {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border: 2px solid #0b1830;
  border-radius: 8px;
}
.compare-thumbs img + img {
  margin-left: -14px;
}
.compare-table {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
/* Every row has the same width, so the columns line up from photo to button
   (a content-sized row let the photo stretch over two columns). */
.compare-row {
  display: grid;
  grid-template-columns: 130px repeat(var(--cols), minmax(170px, 1fr));
  gap: 16px;
  align-items: center;
  min-width: calc(130px + var(--cols) * 186px);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.compare-row > span {
  min-width: 0;
}
.compare-row img {
  display: block;
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}
.compare-row:first-child {
  padding-top: 0;
}
.compare-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.compare-row b {
  font-size: 1.15rem;
  color: var(--accent-text);
}
@media (max-width: 760px) {
  .compare-bar {
    bottom: calc(80px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .compare-bar.above-cta {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .compare-thumbs,
  .compare-bar small {
    display: none;
  }
  /* Two vehicles fit a phone without sideways scrolling; a third scrolls. */
  .compare-row {
    grid-template-columns: 76px repeat(var(--cols), minmax(118px, 1fr));
    gap: 10px;
    min-width: calc(76px + var(--cols) * 128px);
    font-size: 0.9rem;
  }
  .compare-label {
    font-size: 0.78rem;
  }
  .compare-row b {
    font-size: 1rem;
  }
  .compare-row .btn {
    width: 100%;
    padding-inline: 10px;
  }
}

/* Floating WhatsApp button (wide screens) and sticky booking bar (phones). */
.wa-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px #0008;
}
.btn.whatsapp.wa-fab {
  width: 56px;
}
.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  .wa-fab {
    display: none;
  }
  .vehicle-page {
    padding-bottom: 100px;
  }
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: #0c111bf5;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .sticky-cta > div {
    flex: 1;
    min-width: 0;
  }
  .sticky-cta strong {
    display: block;
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .sticky-cta small {
    color: var(--muted);
  }
  .sticky-cta .btn.primary {
    min-width: 116px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.zone-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 28px;
  font-size: 0.9rem;
}
.zone-links strong {
  font-weight: 600;
  color: var(--muted);
}
.accepted-payments li svg {
  flex: none;
}
.zone-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border2);
  text-underline-offset: 3px;
}
.accepted-payments {
  min-width: 0;
  margin-top: 16px;
}
.accepted-payments > strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.accepted-payments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.accepted-payments li {
  position: relative;
  border: 1px solid var(--border2);
  border-radius: 10px;
}
.accepted-payments li.primary-method {
  background: var(--panel3);
  border-color: var(--accent-line);
}
.accepted-payments li button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 9px;
}
.accepted-payments li:hover,
.accepted-payments li:focus-within,
.accepted-payments li.is-open {
  border-color: var(--text);
}
.accepted-payments .pay-name {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  padding: 5px 10px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  background: var(--panel3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}
.accepted-payments li:hover .pay-name,
.accepted-payments li:focus-within .pay-name,
.accepted-payments li.is-open .pay-name {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* A payment app is a badge in its brand color; the glyph inside stays white. */
.icon-badge .badge {
  fill: currentColor;
  stroke: none;
}
.icon-badge path {
  stroke: #fff;
}
@media (max-width: 520px) {
  .accepted-payments .pay-name {
    left: 0;
    transform: translate(0, 4px);
  }
  .accepted-payments li:nth-child(n + 4) .pay-name {
    right: 0;
    left: auto;
  }
  .accepted-payments li:hover .pay-name,
  .accepted-payments li:focus-within .pay-name,
  .accepted-payments li.is-open .pay-name {
    transform: translate(0, 0);
  }
}


/* ==========================================================================
   Vehicle page, zone pages, not found
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--soft);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}
.gallery .detail-photo-open {
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: 18px;
}
.detail-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #15253c;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery-thumbs button {
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
}
.gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--accent);
}
.gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-heading {
  margin: 24px 0 14px;
}
.detail-heading h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.04em;
}
.detail-sub {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent-text);
}
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.detail-specs span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  font-weight: 600;
  background: var(--panel2);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}
.detail-specs svg {
  color: var(--accent-text);
}
.detail-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.detail-tabs button {
  position: relative;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.detail-tabs button[aria-selected="true"] {
  color: #fff;
}
.detail-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.tab-panel {
  margin-top: 14px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tab-panel > p:last-child {
  margin-bottom: 0;
}
.tab-panel h2,
.vehicle-terms h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.vehicle-terms ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--soft);
}
.delivery-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.delivery-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.delivery-list li span {
  flex: 1 1 160px;
}
.delivery-list svg {
  color: var(--accent-text);
}
.trip-panel {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.trip-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}
.trip-price {
  margin: -6px 0 0;
}
.trip-price strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-text);
}
.trip-price small {
  margin-left: 6px;
  font-size: 1.05rem;
  color: var(--accent-text);
}
.offer-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ok-text);
  background: #22c55e18;
  border-radius: 10px;
}
.trip-dates {
  margin: 0;
  gap: 12px;
}
.trip-breakdown {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.trip-breakdown > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
}
.trip-breakdown b {
  text-align: right;
}
.trip-breakdown .total {
  align-items: baseline;
  margin-top: 4px;
  padding-top: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  border-top: 1px solid var(--border);
}
.trip-breakdown .total b {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-text);
}
.discount-line,
.discount-line b {
  color: #86efac;
}
.trip-note,
.trip-methods {
  display: flex;
  gap: 9px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.trip-note svg {
  color: var(--accent-text);
}
.trip-methods {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.detail-actions {
  display: grid;
  gap: 12px;
}
.trip-panel .reassure {
  justify-content: center;
  margin: 0;
  text-align: center;
}
.related {
  margin-top: 48px;
}
.related h2 {
  margin-bottom: 18px;
}
.zone-page h1 {
  margin: 0 0 14px;
}
.zone-intro {
  max-width: 760px;
  line-height: 1.7;
  color: var(--muted);
}
.zone-fee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 22px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
@media (max-width: 1100px) {
  .vehicle-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .trip-panel {
    position: static;
  }
}
@media (max-width: 760px) {
  .gallery-thumbs {
    gap: 8px;
  }
  .tab-panel {
    padding: 18px;
  }
  .trip-panel {
    padding: 18px;
  }
}

/* ==========================================================================
   Windows (modal): fixed header, one scrolling body, actions always reachable
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #02060ecc;
  backdrop-filter: blur(6px);
}
.modal {
  display: flex;
  flex-direction: column;
  width: 680px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 20px;
  box-shadow: 0 30px 80px #000a;
}
.modal.wide {
  width: 980px;
}
.modal > header {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.modal > header h2 {
  flex: 1;
  min-width: 160px;
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.modal > header .language-switch {
  margin-left: auto;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}
.modal-close:hover {
  background: #ffffff10;
}
.modal-content {
  flex: 1;
  min-height: 0;
  padding: 22px 24px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: break-word;
}
/* Room at the end of every window, also under sticky action bars. */
.modal-content::after {
  content: "";
  display: block;
  height: 24px;
}
.modal-content h3 {
  margin: 24px 0 10px;
}
.modal-content > h3:first-child {
  margin-top: 0;
}
@media (max-width: 760px) {
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .modal,
  .modal.wide {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .modal > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px 10px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px 16px;
  }
  .modal > header .modal-close {
    grid-column: 2;
    grid-row: 1;
  }
  .modal > header .language-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }
  .modal-content {
    padding: 18px 16px 0;
  }
  .modal-content::after {
    height: max(24px, env(safe-area-inset-bottom));
  }
  .modal input,
  .modal select,
  .modal textarea {
    scroll-margin-top: 120px;
    scroll-margin-bottom: 120px;
  }
}

/* Summary rows (quote, booking, payments). */
.receipt {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.receipt > span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--soft);
  overflow-wrap: anywhere;
}
.receipt b {
  min-width: 0;
  max-width: 62%;
  color: var(--text);
  text-align: right;
}
.receipt .total {
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.05rem;
  border-top: 1px solid var(--border2);
}
.receipt .total b {
  color: var(--accent-text);
}
/* Booking facts in the booking window: label above value, three per row. */
.booking-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 16px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.booking-facts > div {
  min-width: 0;
  padding: 14px 18px;
  background: var(--panel2);
}
.booking-facts dt {
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.booking-facts dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.booking-facts.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.booking-facts .fact-balance dd {
  color: var(--accent-text);
}
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin-top: -6px;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  color: var(--text);
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.contact-lines a:hover {
  text-decoration-color: var(--accent);
}
@media (max-width: 760px) {
  .booking-facts,
  .booking-facts.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-facts > div {
    padding: 12px 14px;
  }
  .booking-facts dd {
    font-size: 0.92rem;
  }
  .booking-facts .fact-place,
  .booking-facts .fact-contact {
    grid-column: 1 / -1;
    order: 9;
  }
  .booking-facts .fact-contact {
    order: 10;
  }
  .contact-lines {
    flex-direction: column;
    align-items: flex-start;
  }
}
.currency-summary {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
}
.currency-summary > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.mini-car {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-wrap: break-word;
}
.mini-car img {
  width: 120px;
  height: 76px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
  background: #15253c;
}
.mini-car > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mini-car small {
  font-size: 0.875rem;
  color: var(--muted);
}
.mini-car .mini-car-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
}
.mini-car > .badge {
  margin-left: auto;
}
.policy {
  margin: 12px 0;
  padding: 0 16px;
  line-height: 1.6;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.policy summary {
  min-height: 48px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
}
.policy p {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  color: var(--soft);
}
.bank-card,
.digital-instructions {
  margin: 14px 0;
  padding: 18px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.bank-card p {
  margin: 8px 0;
}
.digital-instructions dl {
  margin: 14px 0;
}
.digital-instructions dl > div {
  margin: 10px 0;
}
.digital-instructions dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.digital-instructions dd {
  margin: 4px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.payment-instructions-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.payment-choice {
  margin-top: 20px;
  padding: 18px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.payment-preference {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .receipt {
    padding: 14px;
  }
  .receipt > span {
    gap: 10px;
    font-size: 0.875rem;
  }
  .mini-car {
    gap: 12px;
  }
  .mini-car img {
    width: 84px;
    height: 60px;
  }
}
/* Narrow phones: photo | details, status under the details. */
@media (max-width: 420px) {
  .mini-car {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
  }
  .mini-car > .badge {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

/* Request form: guided steps, documents, location, sticky send bar. */
.form-stepper {
  position: sticky;
  top: -22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -22px -24px 16px;
  padding: 14px 24px 12px;
  list-style: none;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.form-stepper li {
  position: relative;
  display: flex;
  justify-content: center;
}
.form-stepper li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border2);
}
.form-stepper li.done + li::before {
  background: var(--accent);
}
.form-stepper button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.form-stepper button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--border2);
  border-radius: 50%;
}
.form-stepper li.current button,
.form-stepper li.done button {
  color: var(--accent-text);
}
.form-stepper li.current button > span {
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-stepper li.done button > span {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
  scroll-margin-top: 90px;
}
.form-section-title > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  font-size: 0.9rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 50%;
}
.reservation-form h4 {
  margin: 20px 0 8px;
}
.document-section {
  margin-top: 18px;
}
.document-upload {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 18px;
  border: 1px dashed #536278;
  border-radius: 14px;
}
.document-upload small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.document-preview {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  background: var(--field);
  border-radius: 10px;
}
.payment-notice p {
  margin: 8px 0 0;
}
.reservation-submit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 18px -24px 0;
  padding: 12px 24px 16px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.reservation-submit small {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  color: var(--soft);
}
.location-card,
.delivery-agreement {
  margin-top: 16px;
  padding: 18px;
  background: var(--panel2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.location-card > h3 {
  margin-top: 0;
}
.location-card > .hint {
  margin: 12px 0;
}
.location-card > small {
  display: block;
  margin-top: 12px;
}
.location-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #bee9d8;
}
.location-result p {
  margin: 0;
}
.file-input,
.upload input.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
  border: 1px dashed #405372;
  border-radius: 12px;
  cursor: pointer;
}
.upload + p,
.upload + .hint {
  margin-top: 14px;
}
.upload:hover {
  border-color: var(--accent-line);
}
.upload:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.upload small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.file-choose {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  background: var(--panel3);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.upload:hover .file-choose {
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 760px) {
  .form-stepper {
    top: -18px;
    margin: -18px -16px 14px;
    padding: 12px 16px 10px;
  }
  .reservation-submit {
    margin: 18px -16px 0;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }
  .location-card,
  .delivery-agreement,
  .document-upload {
    padding: 16px;
  }
  .location-card .button-row > * {
    flex: 1 1 160px;
  }
}

/* ==========================================================================
   Tracking page (private link), recovery and sign-in
   ========================================================================== */
.section.tracking,
.section.recovery-page {
  max-width: calc(880px + 2 * var(--gutter));
  min-height: 65vh;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.booking-followup {
  margin-bottom: 32px;
  padding: clamp(18px, 4vw, 32px);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border2);
  border-radius: 20px;
}
.followup-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.followup-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
/* The heading receives focus only so screen readers announce the new page. */
.followup-heading h1:focus {
  outline: none;
}
.followup-heading p {
  margin: 4px 0 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #bfdbfe;
  background: #3b82f620;
  border: 1px solid #3b82f666;
  border-radius: 10px;
}
.status-pill.status-pendiente {
  color: #fde68a;
  background: #f59e0b1f;
  border-color: #f59e0b80;
}
.status-pill.status-cancelada {
  color: #cbd5e1;
  background: #64748b26;
  border-color: #64748b;
}
.followup-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  background: #3b82f614;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
}
.followup-message svg {
  color: var(--accent-text);
}
.followup-message p {
  margin: 0;
  font-weight: 600;
}
.timeline {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--border2);
}
.timeline li.done:not(:last-child)::before {
  background: var(--accent);
}
.timeline-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--panel);
  border: 2px solid var(--border2);
  border-radius: 50%;
}
.timeline li.done .timeline-dot {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.timeline li.current .timeline-dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 10px var(--accent);
}
.timeline strong {
  display: block;
}
.timeline li.current strong {
  color: var(--accent-text);
}
.timeline small {
  color: var(--muted);
}
.private-link-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--panel3);
  border: 1px solid var(--border2);
  border-radius: 16px;
}
.private-link-callout > div {
  flex: 1 1 280px;
  min-width: 0;
}
.private-link-callout h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: 0;
}
.private-link-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft);
}
.callout-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 12px;
}
.copy-link-button {
  flex: 1 1 100%;
  min-height: 54px;
  font-size: 1rem;
}
.copy-link-button.is-copied {
  background: #15803d;
  border-color: #15803d;
}
.private-link-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
}
.private-link-field input {
  font-size: 0.85rem;
  text-overflow: ellipsis;
}
.copy-help {
  margin: 12px 0 0;
}
.followup-refresh {
  margin-top: 14px;
}
.tracking > .section-heading {
  margin-top: 8px;
}
.recovery-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.recovery-page .panel {
  margin-top: 22px;
}
.recovery-page b {
  overflow-wrap: anywhere;
}
.recovered-list,
.history-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.history-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
/* Customer directory: compact cards, as many per row as fit. */
.customer-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.customer-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.customer-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.customer-card .avatar {
  width: 44px;
  height: 44px;
  grid-row: span 2;
  color: var(--accent-text);
  background: var(--accent-soft);
}
.customer-card-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.customer-card-text strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.customer-card-text small {
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-card-open {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-text);
}
.recovered-list h2 {
  margin: 4px 0 10px;
  font-size: 1.3rem;
}
.login-card {
  max-width: 480px;
  margin: 60px auto;
  padding: 32px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border2);
  border-radius: 20px;
}
.login-card h1 {
  font-size: 2rem;
}
@media (max-width: 760px) {
  .recovered-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-card {
    margin: 32px var(--gutter);
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Admin shell: sidebar, header, toolbars
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100vh;
  height: 100dvh;
  padding: 26px 16px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, #071226, #050c1a);
  border-right: 1px solid var(--border);
}
/* Logo above the business name: the name keeps one line instead of breaking. */
.sidebar .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 6px 18px;
}
.sidebar .brand-with-name .brand-logo,
.sidebar .brand .brand-logo {
  max-width: min(var(--logo-width, 240px), 100%);
  max-height: 60px;
}
.sidebar .brand-copy {
  max-width: 100%;
}
.sidebar .brand-copy strong {
  font-size: 1.05rem;
}
.sidebar .language-switch {
  align-self: flex-start;
  margin: 0 6px 12px;
}
.nav-label {
  margin: 8px 10px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8f9db4;
}
.sidebar-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.sidebar-nav,
.sidebar-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav button,
.sidebar-account button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  color: #cfd8e7;
  border: 1px solid transparent;
  border-radius: 12px;
}
.sidebar-nav button:hover,
.sidebar-account button:hover {
  background: #ffffff08;
}
.sidebar-nav button.selected {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 16%, #0b1a33);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: #c3cee0;
  background: #ffffff0a;
  border-radius: 10px;
}
.tone-blue .nav-icon { color: #93c5fd; background: #3b82f626; }
.tone-sky .nav-icon { color: #7dd3fc; background: #0ea5e926; }
.tone-green .nav-icon { color: #86efac; background: #22c55e24; }
.tone-violet .nav-icon { color: #c4b5fd; background: #8b5cf626; }
.tone-amber .nav-icon { color: #fcd34d; background: #f59e0b24; }
.tone-teal .nav-icon { color: #5eead4; background: #14b8a624; }
.tone-indigo .nav-icon { color: #a5b4fc; background: #6366f126; }
.sidebar-nav button.selected .nav-icon {
  color: var(--on-accent);
  background: var(--accent);
}
.sidebar .logout .nav-icon {
  color: #fca5a5;
  background: #ef444422;
}
/* Pending requests counter on "Reservas". */
.sidebar-nav button > span:not(.nav-icon) {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
}
.sidebar-bottom {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: auto 0 8px;
  padding: 14px;
  background: #ffffff06;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sidebar-bottom strong {
  display: block;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  background: #263b5c;
  border-radius: 50%;
}
.admin-main {
  min-width: 0;
  padding: 36px clamp(16px, 3.4vw, 48px) 48px;
}
.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.admin-header > div:first-child {
  flex: 1 1 300px;
  min-width: 0;
}
.admin-header .eyebrow {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.admin-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}
.admin-date {
  margin: 0;
  font-size: 0.9rem;
}
.admin-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.admin-search {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 260px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 12px;
}
.admin-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.admin-search input {
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.admin-search input:focus-visible {
  box-shadow: none;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.toolbar .search-box,
.toolbar > label {
  flex: 1 1 280px;
  max-width: 420px;
}
@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px 14px;
  }
  .admin-search {
    max-width: none;
  }
}
/* Phones and small tablets: the sidebar becomes a top bar with one scrollable menu row. */
@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    height: auto;
    padding: 10px var(--gutter);
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    flex-direction: row;
    align-items: center;
    max-width: calc(100% - 140px);
    margin: 0;
  }
  .sidebar .brand .brand-logo {
    max-height: 40px;
  }
  .sidebar .language-switch {
    margin: 0;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar-scroll {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 6px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .sidebar-nav,
  .sidebar-account {
    flex: none;
    flex-direction: row;
    gap: 6px;
  }
  .sidebar-nav button,
  .sidebar-account button {
    width: auto;
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .sidebar .nav-icon {
    width: 32px;
    height: 32px;
  }
  .admin-main {
    padding: 22px var(--gutter) 40px;
  }
  .admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-search {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Dashboard (Resumen)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}
.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.kpi-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.kpi-card > svg {
  color: var(--muted);
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  color: #fff;
  border-radius: 14px;
}
.kpi-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kpi-text small {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--soft);
}
.kpi-text strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
.kpi-text em {
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.tone-blue .kpi-icon,
.attention-icon.tone-blue { background: #2563eb; color: #fff; }
.tone-green .kpi-icon { background: #16a34a; }
.tone-indigo .kpi-icon { background: #1d4ed8; }
.tone-amber .kpi-icon,
.attention-icon.tone-amber { background: #b45309; color: #fff; }
.attention-icon.tone-violet { background: #7c3aed; color: #fff; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}
.dashboard-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.count-dot {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-family: var(--font);
  font-size: 0.8rem;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
}
.attention-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.attention-item > div {
  display: flex;
  flex: 1 1 140px;
  flex-direction: column;
  min-width: 0;
}
.attention-item small {
  color: var(--muted);
}
.attention-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
}
.stack-bar {
  display: flex;
  height: 14px;
  margin: 12px 0;
  overflow: hidden;
  background: #ffffff0d;
  border-radius: 999px;
}
.stack-bar i,
.stack-legend i {
  display: block;
}
.seg-available { background: #22d3ee; }
.seg-rented { background: #2563eb; }
.seg-maintenance { background: #f59e0b; }
.seg-inactive { background: #64748b; }
.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.9rem;
  list-style: none;
  color: var(--soft);
}
.stack-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.money-mini {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.money-mini span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}
.money-mini b {
  margin-left: auto;
  text-align: right;
  color: var(--text);
}
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dashboard-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .kpi-grid {
    gap: 10px;
  }
  .kpi-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .kpi-card > svg {
    display: none;
  }
  .kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .kpi-text small {
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .kpi-text strong {
    font-size: 1.6rem;
  }
}

/* Today's deliveries and returns: a table when its box is wide, stacked rows when it is
   narrow. It follows the width of its own box (container query), not the screen's, because
   the dashboard puts it in a column next to other panels. */
.daily-operations {
  container: ops / inline-size;
}
.ops-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.ops-heading > div:nth-child(2) {
  flex: 1 1 220px;
  min-width: 0;
}
.ops-heading h2 {
  margin: 0;
}
.day-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* The date keeps its label for screen readers and tests; the heading already names it. */
.day-nav label {
  gap: 0;
  font-size: 0;
}
.day-nav input {
  width: 170px;
  min-height: 44px;
  font-size: 0.92rem;
}
.daily-group {
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 14px;
}
.daily-group .panel-heading {
  margin: 16px 0 8px;
}
.daily-group.is-overdue {
  padding: 12px;
  background: #ef44440f;
  border: 1px solid #ef444466;
}
.ops-head,
.operation-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
}
.ops-head {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff08;
  border-radius: 12px 12px 0 0;
}
.operation-item {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.operation-item:hover {
  background: #ffffff06;
}
.op-time {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.op-car {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.op-car img {
  width: 72px;
  height: 46px;
  flex: none;
  object-fit: cover;
  background: #15253c;
  border-radius: 8px;
}
.op-car > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.op-car strong,
.op-car small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-car small {
  color: var(--muted);
}
.op-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.op-kind svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
}
.op-kind.is-out svg {
  color: #86efac;
  background: #16a34a33;
}
.op-kind.is-in svg {
  color: #93c5fd;
  background: #2563eb33;
}
.op-action {
  justify-self: end;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
}
.op-action.is-primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.ops-empty {
  margin: 0;
  padding: 18px 16px;
}
.overdue-alert {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #321d29;
  border: 1px solid #793948;
  border-radius: 12px;
}
.overdue-alert strong {
  color: #ffb6be;
}
.overdue-alert p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #eac4cc;
}
@container ops (max-width: 760px) {
  .ops-head {
    display: none;
  }
  .operation-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "time car action"
      "time kind status";
    row-gap: 6px;
  }
  .op-time { grid-area: time; }
  .op-car { grid-area: car; }
  .op-kind { grid-area: kind; }
  .op-status { grid-area: status; justify-self: end; }
  .op-action { grid-area: action; }
}
@container ops (max-width: 520px) {
  .operation-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "car car"
      "time kind"
      "status action";
    row-gap: 10px;
    padding: 14px 4px;
  }
  .op-kind {
    justify-self: end;
  }
  .op-status {
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .day-nav {
    width: 100%;
  }
  .day-nav label {
    flex: 1 1 140px;
  }
  .day-nav input {
    width: 100%;
  }
}

/* ==========================================================================
   Fleet calendar: week timeline (scrolls inside its own box) and day list
   ========================================================================== */
.booking-calendar {
  margin: 0 0 32px;
}
.booking-calendar.compact {
  margin-top: 18px;
}
.booking-calendar .section-heading {
  margin-bottom: 16px;
}
.heading-with-icon {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.heading-with-icon h2 {
  margin: 0;
  font-size: 1.25rem;
}
.week-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.calendar-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 16px;
  margin-bottom: 16px;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: var(--soft);
}
.calendar-legend .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50%;
}
.dot.confirmed { background: #22d3ee; }
.dot.active-rental { background: #2563eb; }
.dot.maintenance { background: #f59e0b; }
.calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 14px;
}
.timeline-board {
  min-width: 860px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}
.timeline-row:last-child {
  border-bottom: 0;
}
/* Photo · model and plate · status, each in its own place. */
.timeline-row .vehicle-label {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "photo text"
    "photo badge";
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 10px 14px;
  background: #ffffff04;
  border-right: 1px solid var(--border);
}
.timeline-row .vehicle-label img {
  grid-area: photo;
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}
.timeline-row .vehicle-label > span {
  grid-area: text;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.timeline-row .vehicle-label strong,
.timeline-row .vehicle-label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-row .vehicle-label small {
  color: var(--muted);
}
.timeline-row .vehicle-label .badge {
  grid-area: badge;
  justify-self: start;
}
.timeline-head .vehicle-label {
  display: flex;
  align-items: center;
}
.timeline-head {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff08;
}
.timeline-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.timeline-days span {
  padding: 12px 6px;
  text-align: center;
  text-transform: capitalize;
  border-left: 1px solid var(--border);
}
.timeline-days span.today {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.timeline-track {
  position: relative;
  min-height: 60px;
  background-image: linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
}
.today-column {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% / 7 * var(--today));
  width: calc(100% / 7);
  background: var(--accent-soft);
  pointer-events: none;
}
.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
  background: #1a3b68;
  border: 1px solid #386095;
  border-left: 3px solid #81adff;
  border-radius: 8px;
}
.calendar-event small {
  font-size: 0.75rem;
  color: #d1dcee;
}
.calendar-event.active-rental {
  background: #173f38;
  border-color: #37705f;
  border-left-color: #6bc8ad;
}
.calendar-event.overdue {
  background: #452831;
  border-color: #894a59;
  border-left-color: #ff9eac;
}
.calendar-event.maintenance {
  cursor: default;
  background: #3b341d;
  border-color: #6d5d31;
  border-left-color: #e6c56d;
}
.calendar-event:disabled {
  opacity: 1;
}
.timeline-track .calendar-event {
  position: absolute;
  top: 10px;
  flex-direction: row;
  align-items: center;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
  font-size: 0.78rem;
  border: 0;
  border-radius: 8px;
}
.timeline-track .calendar-event small {
  display: none;
}
.timeline-track .calendar-event strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-track .calendar-event.confirmed { color: #04121f; background: #22d3ee; }
.timeline-track .calendar-event.active-rental { color: #fff; background: #2563eb; }
.timeline-track .calendar-event.maintenance { color: #1f1300; background: #f59e0b; }
.timeline-track .calendar-event.overdue { color: #fff; background: #dc2626; }
.calendar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.calendar-list h3 {
  text-transform: capitalize;
}
.calendar-list .hint {
  margin-bottom: 6px;
}
.calendar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}
/* Previous · page · next stay together in the middle, also on wide screens. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 20px 0 0;
}
.pagination span {
  min-width: 170px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}
.pagination .btn {
  min-width: 112px;
}
@media (max-width: 760px) {
  .calendar-controls,
  .calendar-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline-board {
    min-width: 680px;
  }
  .timeline-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .timeline-row .vehicle-label {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "badge";
    padding: 8px 10px;
  }
  .timeline-row .vehicle-label img {
    display: none;
  }
  .pagination span {
    order: -1;
    width: 100%;
  }
  .pagination .btn {
    flex: 1;
  }
}

/* ==========================================================================
   Tables and admin lists
   ========================================================================== */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
th {
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff06;
}
td {
  padding: 16px 18px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
}
td small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
td.table-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}
td.nowrap {
  white-space: nowrap;
}
/* Footnotes under a table keep their distance from its border. */
.table-wrap + .hint,
.table-wrap + p {
  margin-top: 12px;
}
.audit-table td {
  padding-block: 12px;
}
.audit-table strong {
  font-weight: 700;
}
.audit-entity {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.audit-table details pre {
  max-width: 420px;
  margin: 8px 0 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--field);
  border-radius: 8px;
}
.audit-toolbar {
  justify-content: flex-start;
}
.audit-toolbar > label {
  flex: 0 1 320px;
}
.table-car {
  display: flex;
  align-items: center;
  gap: 14px;
}
.table-car img {
  width: 74px;
  height: 52px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
}
.table-car strong {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .table-wrap:not(.stack-on-phone)::before {
    content: attr(data-hint);
    position: sticky;
    left: 0;
    display: block;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--muted);
    background: #ffffff06;
  }
}
/* Bookings, payments and the activity log become cards when their box is narrow
   (phones, and tablets or small laptops beside the admin menu): no sideways scrolling. */
.stack-on-phone {
  container: list / inline-size;
}
@container list (max-width: 880px) {
  .stack-on-phone table,
  .stack-on-phone tbody,
  .stack-on-phone tr,
  .stack-on-phone td {
    display: block;
    width: 100%;
  }
  .stack-on-phone table {
    min-width: 0;
  }
  .stack-on-phone thead {
    display: none;
  }
  /* Wider boxes: label above value, two rows of three. */
  .stack-on-phone tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
  }
  .stack-on-phone td {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .stack-on-phone td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
  }
  .stack-on-phone td.audit-detail {
    grid-column: span 2;
  }
  .stack-on-phone td.row-action {
    align-self: center;
    justify-self: end;
  }
  .stack-on-phone td.audit-detail::before,
  .stack-on-phone td.row-action::before {
    content: none;
  }
  .stack-on-phone td.nowrap {
    white-space: normal;
  }
  .audit-table details pre {
    max-width: none;
  }
}
@container list (max-width: 600px) {
  .stack-on-phone tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-on-phone td.audit-detail {
    grid-column: 1 / -1;
  }
}
/* Phones: label on the left, value aligned right beside it. */
@container list (max-width: 420px) {
  .stack-on-phone tr {
    display: block;
    padding: 14px 16px;
  }
  .stack-on-phone td {
    padding: 6px 0;
    text-align: right;
  }
  .stack-on-phone td::before {
    float: left;
    max-width: 42%;
    margin: 0 12px 0 0;
    font-size: 0.8rem;
    text-align: left;
  }
  .stack-on-phone td::after {
    content: "";
    display: block;
    clear: both;
  }
  .stack-on-phone td.audit-detail {
    text-align: left;
  }
  .stack-on-phone td.row-action {
    padding-top: 10px;
  }
  .stack-on-phone td.row-action .btn {
    width: 100%;
  }
}
.customer-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.customer-options {
  display: grid;
  gap: 8px;
  max-height: 300px;
  margin: 14px 0;
  overflow: auto;
}
.customer-options .customer-option {
  padding: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.customer-option:hover {
  border-color: var(--accent-line);
}
.customer-option small {
  line-height: 1.6;
  color: var(--muted);
}
.customer-option > span {
  font-size: 0.85rem;
  color: var(--accent-text);
}
.customer-picker {
  margin: 20px 0;
}
.customer-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.customer-totals .panel {
  display: grid;
  gap: 10px;
}
.customer-totals strong {
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}
.customer-totals span {
  font-size: 0.85rem;
  color: var(--muted);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.proof-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.proof-grid small {
  display: block;
  margin: 8px 0;
  font-size: 0.8rem;
}
.proof-review-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}
.proof-review-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--field);
  border-radius: 10px;
}
.proof-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.proof-review-meta small {
  color: var(--muted);
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.payment-row > div {
  min-width: 0;
}
.payment-row small {
  display: block;
  margin-top: 4px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.payment-row > b {
  white-space: nowrap;
}
/* Booking window (Gestionar reserva). */
.manage-head {
  margin-bottom: 14px;
}
.manage-tabs {
  position: sticky;
  top: -22px;
  z-index: 2;
  margin: 0 -24px 6px;
  padding: 10px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.manage-title {
  font-size: 1rem;
}
.customer-note {
  padding: 12px 14px;
  background: var(--panel2);
  border-radius: 12px;
}
/* One vertical rhythm for status, handover, notes, hint and button
   (Form wraps its fields in a fieldset). */
.manage-status {
  margin-top: 20px;
  padding: 18px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.manage-status > fieldset {
  display: grid;
  gap: 16px;
}
.manage-status > fieldset > * {
  margin: 0;
}
.manage-status .manage-title {
  margin: 0;
}
/* Handover (delivery / return) inside the status block. */
.manage-status fieldset > .panel {
  padding: 18px;
  background: var(--panel);
}
.manage-status fieldset > .panel h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.manage-status fieldset > .panel .form-grid {
  margin: 12px 0 16px;
}
.manage-status fieldset > .hint {
  margin: -4px 0 0;
}
.manage-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
/* Fleet: maintenance blocks and vehicle form. */
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
}
.schedule-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-item p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.agenda-card {
  padding: 18px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.agenda-card h3 {
  margin: 12px 0;
}
.agenda-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft);
}
.gallery-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
/* Photo, then its label on the left and "Quitar" on the right. */
.gallery-editor > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.gallery-editor img {
  grid-column: 1 / -1;
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.gallery-editor small {
  grid-row: 2;
  grid-column: 1;
  margin: 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.gallery-editor button {
  grid-row: 2;
  grid-column: 2;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fecaca;
}
.gallery-editor button:hover {
  color: #fff;
}
.admin-created input {
  font-size: 0.85rem;
}
.print-document {
  margin: 20px 0;
}
details > summary {
  min-height: 40px;
  padding: 8px 0;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .customer-totals,
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .agenda-grid,
  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-tabs {
    top: -18px;
    margin: 0 -16px 6px;
    padding: 10px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .manage-tabs button {
    flex: none;
  }
  .manage-status {
    padding: 14px;
  }
  .payment-row {
    flex-wrap: wrap;
  }
  .proof-review-card .button-row > * {
    flex: 1 1 170px;
  }
}

/* ==========================================================================
   Mi negocio (settings) and users
   ========================================================================== */
/* On very wide screens the cards stop growing: fields stay a readable size. */
.settings-form {
  display: grid;
  gap: 20px;
  max-width: 1280px;
}
.settings-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  scrollbar-width: thin;
}
.settings-tabs button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--soft);
  border-radius: 10px;
}
.settings-tabs button:hover {
  color: var(--text);
  background: #ffffff08;
}
.settings-tabs button[aria-selected="true"] {
  color: var(--on-accent);
  background: var(--accent);
}
.settings-stack {
  display: grid;
  gap: 20px;
}
/* Fields follow the width of their card (container query): the admin sidebar and the
   screen size both change how much room a card really has. */
.settings-card {
  container: card / inline-size;
  padding: 24px;
}
.settings-card .form-grid {
  align-items: end;
}
.settings-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}
.settings-card-head h2 {
  margin: 2px 0 4px;
  font-size: 1.25rem;
}
.settings-card-head .hint {
  margin: 0;
  max-width: 820px;
}
.card-count {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: #ffffff08;
  border-radius: 999px;
}
.settings-card > .hint {
  margin: 10px 0;
}
.settings-card > label + label,
.settings-card > label + .hint {
  margin-top: 12px;
}
/* Logo: preview beside the upload controls on wide screens. */
.identity-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.identity-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background: #050b17;
  border: 1px dashed #3d4e68;
  border-radius: 14px;
}
.identity-preview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.identity-preview-heading > small {
  color: var(--muted);
}
.identity-preview-stage {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--bg) 86%, #ffffff05);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.identity-preview.mobile-preview .identity-preview-stage {
  width: min(100%, 360px);
  min-height: 72px;
  padding: 10px 14px;
}
.identity-preview.mobile-preview .brand .brand-logo {
  max-height: 48px;
}
.identity-preview.mobile-preview .brand-copy strong {
  font-size: 1rem;
}
.preview-device-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border2);
  border-radius: 10px;
}
.preview-device-switch button {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 7px;
}
.preview-device-switch button[aria-pressed="true"] {
  color: var(--text);
  background: var(--panel3);
}
.identity-upload {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.identity-upload .text-button {
  justify-self: start;
}
.favicon-setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.favicon-setting > :not(.favicon-preview) {
  grid-column: 2;
}
.favicon-setting:not(:has(.favicon-preview)) > * {
  grid-column: 1 / -1;
}
.favicon-preview {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #050b17;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.logo-size-control output {
  font-weight: 500;
  color: var(--muted);
}
.logo-size-control input[type="range"] {
  width: 100%;
  min-height: 44px;
}
/* Cover and carousel: preview beside the upload; thumbnails, order and framing below. */
.cover-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.hero-preview {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  background-color: #15253c;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050b17e6, #050b1710);
}
.hero-preview span {
  position: relative;
  max-width: 220px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}
.hero-preview em {
  font-style: normal;
  color: var(--accent-text);
}
.hero-preview small {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  background: #050b17cc;
  border-radius: 6px;
}
.cover-workspace .upload {
  justify-content: center;
}
.upload.is-busy {
  opacity: 0.75;
  cursor: progress;
}
.cover-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}
.cover-thumbnails button {
  position: relative;
  min-height: 60px;
  padding: 0;
  overflow: hidden;
  background: #050b17;
  border: 2px solid var(--border);
  border-radius: 10px;
}
.cover-thumbnails button.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cover-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}
.cover-thumbnails span {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  color: #fff;
  background: #050b17d9;
  border-radius: 5px;
}
.cover-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.cover-edit-actions strong {
  margin-right: auto;
  font-size: 0.9rem;
}
.cover-position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.cover-position output {
  color: var(--muted);
}
.cover-position input {
  grid-column: 1 / -1;
}
.cover-playback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.5fr);
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cover-playback .check-label {
  margin: 0;
}
/* Social preview image. */
.share-workspace {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}
.share-workspace > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.share-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #050b17;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.share-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
/* Repeated items: places, extras, offers, bank accounts. */
.item-editor {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px;
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: 14px;
}
.item-editor .form-grid {
  margin: 0;
}
.item-editor-head,
.item-editor-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.item-editor-head strong {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
.list-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.btn.remove-item {
  color: #fecaca;
  background: transparent;
  border-color: #7f1d1d99;
}
.btn.remove-item:hover {
  background: #7f1d1d40;
  border-color: #ef4444;
}
.btn.add-item {
  justify-self: start;
}
.offer-editor {
  border-color: var(--accent-line);
}
.offer-editor.is-off {
  opacity: 0.75;
  border-color: var(--border2);
}
.offer-preview {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--ok-text);
  background: #22c55e14;
  border-radius: 10px;
}
.digital-payment-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.digital-payment-editor {
  min-width: 0;
  padding: 16px;
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: 14px;
}
.digital-payment-editor.is-on {
  border-color: var(--accent-line);
}
.digital-payment-editor > .check-label {
  flex-wrap: wrap;
  margin: 0;
}
.digital-payment-editor > .check-label > .muted {
  margin-left: auto;
  font-size: 0.8rem;
}
.digital-payment-fields {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}
.digital-payment-fields .hint {
  margin: 0;
}
.booking-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--field);
  border: 1px solid var(--border2);
  border-radius: 14px;
}
.booking-switch.is-on {
  border-color: #16a34a88;
}
.booking-switch .check-label {
  margin: 0;
  font-weight: 700;
}
.policy-texts textarea {
  min-height: 260px;
}
/* Save bar: always reachable, says whether something is pending. */
.settings-save {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px 12px 18px;
  background: color-mix(in srgb, var(--panel2) 94%, transparent);
  border: 1px solid var(--border2);
  border-radius: 16px;
  box-shadow: 0 16px 40px #0009;
  backdrop-filter: blur(10px);
}
.settings-save.is-dirty {
  border-color: #f59e0b88;
}
.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ok-text);
}
.settings-save.is-dirty .save-state {
  color: #fde68a;
}
.settings-form > fieldset {
  display: grid;
  gap: 20px;
}
@media (max-width: 1100px) {
  .identity-workspace,
  .cover-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container card (max-width: 760px) {
  .settings-card .form-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-editor .remove-item {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .share-workspace,
  .digital-payment-settings {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container card (max-width: 480px) {
  .settings-card .form-grid,
  .settings-card .form-grid.cols-3,
  .list-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .settings-card {
    padding: 18px;
  }
  .settings-card-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .settings-card-head > .card-count {
    grid-column: 2;
    justify-self: start;
  }
  .settings-card-head .panel-icon {
    width: 38px;
    height: 38px;
  }
  .share-workspace,
  .digital-payment-settings,
  .cover-playback {
    grid-template-columns: minmax(0, 1fr);
  }
  .list-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .list-editor .remove-item {
    justify-self: start;
  }
  .policy-texts textarea {
    min-height: 200px;
  }
  .settings-save {
    bottom: max(8px, env(safe-area-inset-bottom));
    flex-wrap: nowrap;
    padding: 8px 8px 8px 12px;
  }
  .save-state {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .settings-save .btn {
    flex: none;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   Photo viewer (full screen, keyboard, swipe, zoom)
   ========================================================================== */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  color: #f3f6fd;
  background: #060a10fa;
  isolation: isolate;
  backdrop-filter: blur(14px);
}
.photo-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #ffffff12;
}
.photo-viewer-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.photo-viewer-title strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-viewer-title > span {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #9cadc5;
}
.photo-viewer-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.photo-viewer button,
.photo-viewer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  color: #d7e0ee;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}
.photo-viewer button:hover,
.photo-viewer-actions a:hover {
  color: #fff;
  background: #ffffff0c;
}
.photo-viewer button:focus-visible,
.photo-viewer a:focus-visible {
  outline: 2px solid #8bb8ff;
  outline-offset: 2px;
}
.photo-viewer button:disabled {
  opacity: 0.35;
  cursor: default;
}
.photo-viewer-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 18px 76px;
}
.photo-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
.photo-viewer-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  cursor: zoom-in;
}
.photo-viewer.is-zoomed .photo-viewer-stage {
  display: block;
}
.photo-viewer.is-zoomed .photo-viewer-image {
  max-width: none;
  max-height: none;
  margin: 0 auto;
  cursor: zoom-out;
}
.photo-viewer-main > .photo-viewer-prev,
.photo-viewer-main > .photo-viewer-next {
  position: absolute;
  z-index: 1;
  top: calc(50% - 22px);
  background: #ffffff08;
  border-radius: 50%;
}
.photo-viewer-prev {
  left: 18px;
}
.photo-viewer-next {
  right: 18px;
}
.photo-viewer-footer {
  min-width: 0;
  padding: 0 20px max(14px, env(safe-area-inset-bottom));
  text-align: center;
}
.photo-viewer-thumbs {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 5px 2px;
  overflow-x: auto;
}
.photo-viewer-thumbs button {
  width: 64px;
  min-width: 64px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 6px;
  opacity: 0.65;
}
.photo-viewer-thumbs button[aria-current="true"] {
  border-color: #a9caff;
  box-shadow: 0 0 0 1px #a9caff;
  opacity: 1;
}
.photo-viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-viewer-footer > small {
  display: block;
  font-size: 0.72rem;
  color: #91a1b9;
}
.photo-viewer-footer .sample-credit {
  margin: 0 0 5px;
  font-size: 0.65rem;
}
.photo-viewer-error {
  max-width: 340px;
  line-height: 1.6;
  text-align: center;
  color: #bbc7d9;
}
@media (max-width: 760px) {
  .photo-viewer-toolbar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .photo-viewer-title {
    display: grid;
    gap: 3px;
  }
  .photo-viewer-title strong {
    font-size: 0.8rem;
  }
  .photo-viewer-main {
    padding: 12px 8px;
  }
  .photo-viewer-main > .photo-viewer-prev,
  .photo-viewer-main > .photo-viewer-next {
    background: #060a10b8;
  }
  .photo-viewer-prev {
    left: 8px;
  }
  .photo-viewer-next {
    right: 8px;
  }
  .photo-viewer-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .photo-viewer-thumbs button {
    width: 54px;
    min-width: 54px;
    height: 44px;
  }
}

/* ==========================================================================
   Motion: everything that moves is opt-in (no reduced-motion preference)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes pop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  @keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @keyframes wa-ring {
    0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.55); }
    100% { box-shadow: 0 0 0 14px rgba(21, 128, 61, 0); }
  }
  /* Scroll reveal: hidden until visible; ends on the normal style so hover still works. */
  .reveal {
    opacity: 0;
  }
  .reveal.is-visible {
    opacity: 1;
    animation: reveal-up 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms) backwards;
  }
  main.page-enter {
    animation: page-in 0.35s ease backwards;
  }
  .hero-content > * {
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .search-panel:not(.compact) {
    animation: reveal-up 0.5s ease 0.15s backwards;
  }
  .admin-main > * + * {
    animation: page-in 0.35s ease backwards;
  }
  .car-image img {
    transition: transform 0.5s ease;
  }
  .car-card:hover .car-image img {
    transform: scale(1.04);
  }
  .text-link svg {
    transition: transform 0.2s;
  }
  .btn[aria-busy="true"]::before,
  fieldset:disabled .btn[type="submit"]::before {
    animation: spin 0.7s linear infinite;
  }
  form[data-ok="true"] .btn[type="submit"]::before,
  .copy-link-button.is-copied svg,
  .toast svg {
    animation: pop 0.45s ease backwards;
  }
  .modal-backdrop {
    animation: page-in 0.2s ease backwards;
  }
  .modal {
    animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  .toast {
    animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  /* A soft ring on the WhatsApp calls to action, three times, then still. */
  .help-bar .btn.whatsapp {
    animation: wa-ring 2.4s ease-out 1.2s 3;
  }
  .wa-fab {
    animation: wa-ring 2.4s ease-out 2s 3;
  }
  .sticky-cta {
    animation: reveal-up 0.4s ease 0.3s backwards;
  }
  .timeline li.current .timeline-dot {
    animation: wa-ring 2.4s ease-out 1s 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Print (booking record from "Constancia")
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  body {
    color: black;
    background: white;
  }
  .print-document,
  .print-document * {
    visibility: visible;
    color: black !important;
    background: white !important;
    border-color: #ccc !important;
  }
  .modal-backdrop {
    position: absolute;
    display: block;
    padding: 0;
    background: white;
    backdrop-filter: none;
  }
  .modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  .modal-content {
    overflow: visible;
  }
  .modal > header,
  .no-print,
  .chips,
  .toast {
    display: none !important;
  }
  .print-document {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
  }
  .receipt {
    break-inside: avoid;
  }
  .reveal {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Seasonal decoration (Mi negocio → Portada): decorative only, never clickable
   ========================================================================== */
.snowfall {
  position: fixed;
  inset: 0;
  z-index: 45;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.garland {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 36px;
  margin-top: -2px;
  overflow: hidden;
  pointer-events: none;
}
.garland svg {
  display: block;
}
.hero h1 {
  position: relative;
}
.santa-hat {
  position: absolute;
  top: -0.5em;
  left: -0.34em;
  width: 0.92em;
  transform: rotate(-17deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 6px #0006);
}
.pine-corner {
  position: absolute;
  top: 0;
  z-index: 1;
  width: clamp(150px, 15vw, 250px);
  pointer-events: none;
  filter: drop-shadow(0 6px 10px #0008);
}
.pine-corner.left {
  left: 0;
}
.pine-corner.right {
  right: 0;
  transform: scaleX(-1);
}
@media (max-width: 760px) {
  .pine-corner {
    width: 118px;
  }
  .pine-corner.left {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .garland .bulb,
  .pine-corner .bulb {
    animation: bulb-glow 2.4s ease-in-out infinite;
  }
  .bulb-halo {
    animation: twinkle 2.4s ease-in-out infinite;
  }
  .bauble {
    animation: swing 4.5s ease-in-out infinite;
  }
  .bauble.slow {
    animation-duration: 5.8s;
    animation-delay: -1.4s;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
/* Opacity only: cheap to animate on phones (a filter per bulb repaints every frame). */
@keyframes bulb-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
/* Christmas: snow resting on the date search and on the "Mi reserva" cards, holly in the corner. */
.is-christmas .search-panel,
.is-christmas .recovery-page .panel,
.is-christmas .booking-followup {
  position: relative;
}
.is-christmas .search-panel::before,
.is-christmas .recovery-page .panel::before,
.is-christmas .booking-followup::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 14px;
  right: 14px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2222%22 viewBox=%220 0 160 22%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23ffffff%22/%3E%3Cstop offset=%22.55%22 stop-color=%22%23f1f6fd%22/%3E%3Cstop offset=%221%22 stop-color=%22%23c9d8ec%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill=%22%237f95b5%22 opacity=%22.35%22 d=%22M0 13 C14 13 30 14 40 13 C44 18 30 18 32 18 M0 13 H160 V15 C140 15 120 14 104 15 C100 20 94 20 92 15 C70 14 50 15 0 15 Z%22/%3E%3Cpath fill=%22url%28%23s%29%22 d=%22M0 10 C7 4 15 5 23 8 C31 2 43 2 52 7 C60 3 69 3 78 8 C88 1 100 3 108 7 C117 3 126 2 135 7 C143 3 152 4 160 10 V12.5 C151 12.5 147 13 145 15.5 C143 19 138 19 137 14.5 C129 12.5 112 13.5 104 12.5 C100 12.5 98 18 95 18 C92 18 92 13.5 88 12.5 C70 12.5 52 13.5 40 12.5 C36 12.5 35 17 32 17 C29 17 29 13.5 24 12.5 C14 12.5 6 12.5 0 12.5 Z%22/%3E%3Cpath d=%22M6 8 C14 5 22 6 26 8 M56 5.5 C63 3.5 71 4.5 75 7 M112 5.5 C119 3.5 127 4 131 6%22 stroke=%22%23ffffff%22 stroke-width=%221.3%22 stroke-linecap=%22round%22 fill=%22none%22/%3E%3Cg fill=%22%23ffffff%22%3E%3Cpath d=%22M46 6 l.7 1.6 1.6.7 -1.6.7 -.7 1.6 -.7-1.6 -1.6-.7 1.6-.7z%22/%3E%3Cpath d=%22M121 8 l.6 1.3 1.3.6 -1.3.6 -.6 1.3 -.6-1.3 -1.3-.6 1.3-.6z%22/%3E%3Ccircle cx=%2288%22 cy=%226%22 r=%22.8%22/%3E%3Ccircle cx=%2215%22 cy=%229%22 r=%22.7%22/%3E%3Ccircle cx=%22148%22 cy=%228%22 r=%22.7%22/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 160px 22px;
  filter: drop-shadow(0 2px 2px #0005);
  pointer-events: none;
}
.is-christmas .search-panel::after,
.is-christmas .recovery-page .panel::after,
.is-christmas .booking-followup::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -28px;
  right: -14px;
  width: 80px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%2248%22 viewBox=%220 0 64 48%22%3E%3Cdefs%3E%3ClinearGradient id=%22l%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%233fa45f%22/%3E%3Cstop offset=%22.6%22 stop-color=%22%231f7a3e%22/%3E%3Cstop offset=%221%22 stop-color=%22%2311502a%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22b%22 cx=%22.35%22 cy=%22.3%22 r=%22.75%22%3E%3Cstop offset=%220%22 stop-color=%22%23ff9a9a%22/%3E%3Cstop offset=%22.45%22 stop-color=%22%23e0263a%22/%3E%3Cstop offset=%221%22 stop-color=%22%237a0a16%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill=%22url%28%23l%29%22 stroke=%22%230e4423%22 stroke-width=%22.6%22 d=%22M32 26 C30 24 27 22 25 22 L23 16.5 L20.5 20.5 L16 15.5 L14.5 20.5 L9 14.8 L8.4 19.8 L2 14 L5 21.5 L2.6 25 L8.8 25.4 L7.6 29.6 L13 28.4 L13 33.4 L18 30.4 L20 34.6 L23 30.6 L26.4 32.4 C28.4 30.4 30.4 28.4 32 26 Z%22/%3E%3Cg transform=%22matrix%28-1 0 0 1 64 0%29%22%3E%3Cpath fill=%22url%28%23l%29%22 stroke=%22%230e4423%22 stroke-width=%22.6%22 d=%22M32 26 C30 24 27 22 25 22 L23 16.5 L20.5 20.5 L16 15.5 L14.5 20.5 L9 14.8 L8.4 19.8 L2 14 L5 21.5 L2.6 25 L8.8 25.4 L7.6 29.6 L13 28.4 L13 33.4 L18 30.4 L20 34.6 L23 30.6 L26.4 32.4 C28.4 30.4 30.4 28.4 32 26 Z%22/%3E%3C/g%3E%3Cpath d=%22M30 26 C23 21 14 18 5 16 M34 26 C41 21 50 18 59 16%22 stroke=%22%237fd09a%22 stroke-width=%221.1%22 fill=%22none%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3Cpath d=%22M14 18 C16 16 18 15 21 14.5 M50 18 C48 16 46 15 43 14.5%22 stroke=%22%239ce0b2%22 stroke-width=%22.8%22 fill=%22none%22 stroke-linecap=%22round%22 opacity=%22.6%22/%3E%3Ccircle cx=%2227%22 cy=%2230%22 r=%225.4%22 fill=%22url%28%23b%29%22/%3E%3Ccircle cx=%2237%22 cy=%2230%22 r=%225.4%22 fill=%22url%28%23b%29%22/%3E%3Ccircle cx=%2232%22 cy=%2223.2%22 r=%225.4%22 fill=%22url%28%23b%29%22/%3E%3Cg fill=%22%23fff%22 opacity=%22.85%22%3E%3Cellipse cx=%2225.3%22 cy=%2228.2%22 rx=%221.6%22 ry=%221.1%22/%3E%3Cellipse cx=%2235.3%22 cy=%2228.2%22 rx=%221.6%22 ry=%221.1%22/%3E%3Cellipse cx=%2230.3%22 cy=%2221.4%22 rx=%221.6%22 ry=%221.1%22/%3E%3C/g%3E%3Cg fill=%22%233a0a10%22 opacity=%22.7%22%3E%3Ccircle cx=%2228.4%22 cy=%2234.6%22 r=%22.7%22/%3E%3Ccircle cx=%2238.4%22 cy=%2234.6%22 r=%22.7%22/%3E%3Ccircle cx=%2233.4%22 cy=%2227.8%22 r=%22.7%22/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 4px #0007);
  transform: rotate(12deg);
  pointer-events: none;
}
@media (max-width: 600px) {
  .is-christmas .search-panel::after,
  .is-christmas .recovery-page .panel::after,
  .is-christmas .booking-followup::after {
    top: -22px;
    right: -4px;
    width: 58px;
    height: 44px;
  }
}
@media print {
  .snowfall,
  .garland,
  .pine-corner,
  .santa-hat,
  .is-christmas .search-panel::before,
  .is-christmas .search-panel::after {
    display: none;
  }
}

/* ==========================================================================
   404: "this page took another exit" (notfound.jsx)
   ========================================================================== */
.nf-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 220px);
}
.nf-visual {
  min-width: 0;
}
.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  font-size: clamp(5.5rem, 13vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.nf-code span {
  text-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 40%, transparent);
}
.nf-tire {
  width: 0.86em;
  height: 0.86em;
  filter: drop-shadow(0 10px 22px #0009);
}
.nf-scene {
  position: relative;
  height: 210px;
  margin-top: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #050b18 0%, #0c1830 62%, #101b2e 62%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.nf-stars {
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff9, transparent),
    radial-gradient(1.2px 1.2px at 34% 12%, #fff8, transparent),
    radial-gradient(1.6px 1.6px at 58% 30%, #fffa, transparent),
    radial-gradient(1.1px 1.1px at 76% 16%, #fff7, transparent),
    radial-gradient(1.3px 1.3px at 90% 34%, #fff8, transparent),
    radial-gradient(1px 1px at 24% 40%, #fff6, transparent),
    radial-gradient(28px 28px at 84% 26%, #f4f1dc, #f4f1dc 40%, transparent 42%);
}
.nf-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, #1a2333, #111826);
  border-top: 3px solid #2b3648;
}
.nf-lane {
  position: absolute;
  left: 0;
  right: -160px;
  top: 46%;
  height: 4px;
  background: repeating-linear-gradient(90deg, #f5c84c 0 44px, transparent 44px 80px);
  opacity: 0.85;
}
.nf-car {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(260px, 62%);
  transform: translateX(-56%);
  overflow: visible;
}
.nf-sign {
  position: absolute;
  bottom: calc(38% - 2px);
  left: 100%;
  width: 96px;
}
.nf-smoke {
  opacity: 0;
}
.nf-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.nf-lead {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--soft);
}
.nf-gps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 26px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ok-text);
  background: #22c55e14;
  border: 1px solid #22c55e55;
  border-radius: 999px;
}
.nf-dots i {
  font-style: normal;
}
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .nf-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
    text-align: center;
  }
  .nf-lead {
    margin-inline: auto;
  }
  .nf-actions {
    justify-content: center;
  }
  .nf-scene {
    height: 170px;
  }
  .nf-sign {
    width: 76px;
  }
}
@media (max-width: 480px) {
  .nf-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .nf-tire {
    animation: nf-roll 3.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  }
  .nf-car .nf-wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: nf-spin 0.55s linear infinite;
  }
  .nf-car {
    animation: nf-bob 0.9s ease-in-out infinite;
  }
  .nf-lane {
    animation: nf-lane 0.55s linear infinite;
  }
  .nf-sign {
    animation: nf-sign 6s linear infinite;
  }
  .nf-smoke {
    animation: nf-smoke 1.4s ease-out infinite;
  }
  .nf-beam {
    animation: nf-beam 3s ease-in-out infinite;
  }
  .nf-dots i {
    animation: nf-dot 1.4s infinite;
  }
  .nf-dots i:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nf-dots i:nth-child(3) {
    animation-delay: 0.4s;
  }
}
@keyframes nf-roll {
  0% {
    transform: rotate(0);
  }
  70%,
  100% {
    transform: rotate(360deg);
  }
}
@keyframes nf-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes nf-bob {
  0%,
  100% {
    transform: translate(-56%, 0);
  }
  50% {
    transform: translate(-56%, -2px);
  }
}
@keyframes nf-lane {
  to {
    transform: translateX(-80px);
  }
}
/* The sign crosses the scene itself (left is relative to the scene, unlike a transform). */
@keyframes nf-sign {
  0% {
    left: 100%;
  }
  100% {
    left: -40%;
  }
}
@keyframes nf-smoke {
  0% {
    opacity: 0.55;
    transform: translateX(0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translateX(-18px) scale(1.4);
  }
}
@keyframes nf-beam {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes nf-dot {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}

/* ==========================================================================
   Footer (footer.jsx): brand, navigation, information, contact and a bottom bar
   ========================================================================== */
.public-footer {
  position: relative;
  margin-top: 40px;
  padding: 64px var(--edge) 0;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 12% 0%, color-mix(in srgb, #3b82f6 10%, transparent), transparent 70%),
    radial-gradient(800px 300px at 92% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    linear-gradient(180deg, #060d1c, #040915);
}
.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
}
/* Glow on the line only: on the whole drawing it would also outline the page-colored fill. */
.footer-wave .wave-line {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 40px clamp(24px, 3.5vw, 56px);
}
.footer-brand .brand .brand-logo {
  max-height: 84px;
}
.footer-tagline {
  max-width: 340px;
  margin: 16px 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--soft);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #ffffff0a;
  border: 1px solid var(--border2);
  border-radius: 12px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.social-tile:hover,
.social-tile:focus-visible {
  transform: translateY(-2px);
  border-color: currentColor;
}
.social-whatsapp {
  color: #25d366;
  background: #25d3661a;
}
.social-instagram {
  color: #e4405f;
  background: #e4405f1a;
}
.social-facebook {
  color: #1877f2;
  background: #1877f21f;
}
.social-tiktok {
  color: #25f4ee;
  background: #25f4ee14;
}
.social-youtube {
  color: #ff3b3b;
  background: #ff00001a;
}
.social-linkedin {
  color: #3b8fe0;
  background: #3b8fe01a;
}
.social-x,
.social-link {
  color: #e8edf5;
}
.footer-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 22px;
  padding-bottom: 12px;
  font-size: 1.12rem;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 36px 3px no-repeat;
}
.footer-col h3 svg {
  color: var(--soft);
}
.footer-col h4 {
  margin: 22px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  font-size: 0.97rem;
  text-align: left;
  color: #d3dcea;
  transition: color 0.15s, transform 0.15s;
}
.footer-links a svg,
.footer-links button svg {
  flex: none;
  color: var(--muted);
}
.footer-links a,
.contact-list a {
  text-decoration: none;
}
.footer-links a:hover,
.footer-links button:hover {
  color: #fff;
  transform: translateX(3px);
}
.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-zones a svg {
  color: var(--accent-text);
}
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #d3dcea;
  overflow-wrap: anywhere;
}
.contact-list svg {
  flex: none;
  color: var(--accent-text);
}
.contact-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #d3dcea;
}
.contact-list a:hover {
  color: #fff;
}
.footer-contact .accepted-payments {
  margin-top: 22px;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 48px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom p svg {
  flex: none;
  color: var(--ok-text);
}
.footer-flag {
  width: 26px;
  height: 17px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #ffffff26;
}
/* Christmas: greeting card, warm lights, snowy firs and a snowbank at the bottom. */
.holiday-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  margin-top: 24px;
  padding: 14px 18px 14px 12px;
  background: linear-gradient(135deg, #ffffff0d, #ffffff05);
  border: 1px solid #ffd56b40;
  border-radius: 16px;
  box-shadow: 0 0 24px #ffd56b14, inset 0 0 0 1px #ffffff08;
}
.holiday-card strong {
  font-size: 1.1rem;
}
.holiday-card p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--soft);
}
.holiday-tree {
  flex: none;
  width: 58px;
}
.public-footer.is-christmas {
  padding-bottom: 96px;
}
.footer-winter {
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  pointer-events: none;
}
.footer-fir {
  position: absolute;
  bottom: 18px;
  width: 92px;
  opacity: 0.9;
}
.footer-fir.left {
  left: -18px;
}
.footer-fir.right {
  right: -18px;
}
.warm-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 44px;
}
.warm-lights svg {
  display: block;
}
.footer-snowbank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23c9d8ec'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 22 C120 8 220 14 330 20 C450 26 540 6 680 12 C820 18 900 30 1040 22 C1180 14 1290 6 1440 16 V42 H0 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  filter: drop-shadow(0 -4px 10px #ffffff22);
}
@media (prefers-reduced-motion: no-preference) {
  .tree-light {
    animation: twinkle 2.2s ease-in-out infinite;
  }
}
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .public-footer {
    padding: 48px var(--gutter) 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }
  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
  }
  .footer-fir {
    width: 64px;
  }
}
@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .footer-wave,
  .footer-winter {
    display: none;
  }
}

/* License photo: camera button and webcam capture window (ui.jsx DocumentFile). */
.document-actions .btn svg {
  flex: none;
}
.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #02060fd9;
  backdrop-filter: blur(6px);
}
.camera-box {
  width: min(720px, 100%);
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.camera-view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 12px;
}
.camera-view video,
.camera-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Card-shaped guide (ID-1 proportions) so the license fills the picture. */
.camera-frame {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72%;
  aspect-ratio: 1.586;
  transform: translate(-50%, -50%);
  border: 3px dashed #ffffffd9;
  border-radius: 14px;
  box-shadow: 0 0 0 2000px #00000059;
}
.camera-box .hint {
  margin: 12px 0;
  text-align: center;
}
.camera-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
