:root {
  color-scheme: light;
  --surface-0: #f4f3f0;
  --surface-1: #fcfcfb;
  --border: #dddcd6;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #6f6e69;
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --good: #006300;
  --warn-bg: #fff4d6;
  --warn-ink: #5c4300;
  --warn: #e3a008;
  --bad: #d32f2f;
  --ring: #0b0b0b;
  --cell-empty: #ecebe7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #121211;
    --surface-1: #1a1a19;
    --border: #383835;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #9a998f;
    --accent: #3987e5;
    --good: #4cc24c;
    --warn-bg: #3a2e0a;
    --warn-ink: #f5d98a;
    --warn: #f5c542;
    --bad: #f87171;
    --ring: #ffffff;
    --cell-empty: #262624;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #121211;
  --surface-1: #1a1a19;
  --border: #383835;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #9a998f;
  --accent: #3987e5;
  --good: #4cc24c;
  --warn-bg: #3a2e0a;
  --warn-ink: #f5d98a;
  --warn: #f5c542;
  --bad: #f87171;
  --ring: #ffffff;
  --cell-empty: #262624;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
code { font: 13px ui-monospace, Consolas, monospace; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.top {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 20px max(16px, calc((100vw - 1120px) / 2));
  background: var(--surface-1); border-bottom: 1px solid var(--border);
}
.sub { margin: 2px 0 0; color: var(--text-secondary); }
.loaders { display: flex; gap: 8px; flex-wrap: wrap; }
main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }

.btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary);
  font: inherit; font-weight: 500; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:focus-visible, .seg button:focus-visible, select:focus-visible, .heat td:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.drop {
  border: 2px dashed var(--border); border-radius: 12px; padding: 32px 20px; text-align: center;
  background: var(--surface-1); color: var(--text-secondary);
}
.drop.over { border-color: var(--accent); }
.drop p { margin: 4px 0; }

.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }

.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 4px 0 16px; }
.controls label { display: flex; gap: 8px; align-items: center; color: var(--text-secondary); }
select {
  height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-primary); font: inherit; padding: 0 8px; max-width: 280px;
}
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface-1); color: var(--text-secondary); font: inherit; padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px;
}
.stat { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .label { color: var(--text-secondary); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0; }
.stat .detail { color: var(--text-muted); font-size: 13px; }
.stat .delta { color: var(--good); font-weight: 600; }

.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }

.grid-wrap, .table-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; min-width: 100%; }
.heat th { font-weight: 500; font-size: 12px; color: var(--text-secondary); padding: 4px 8px; white-space: nowrap; }
.heat thead th { text-align: center; }
.heat tbody th { text-align: right; }
.heat td {
  min-width: 64px; height: 34px; text-align: center; font-size: 13px; border-radius: 4px; cursor: default;
  position: relative;
}
.heat td.empty { background: var(--cell-empty); color: var(--text-muted); }
.heat td.excluded { opacity: 0.28; }
.heat td.baseline { box-shadow: inset 0 0 0 2px var(--ring); }
.heat td.best { box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 4px var(--ring); font-weight: 700; }

.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.legend .ramp { width: 160px; height: 10px; border-radius: 3px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .sw.base { box-shadow: inset 0 0 0 2px var(--ring); }
.legend .sw.best { box-shadow: 0 0 0 2px var(--ring); }

.data { border-collapse: collapse; width: 100%; font-size: 14px; }
.data th { text-align: left; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); padding: 6px 10px; white-space: nowrap; }
.data td { border-bottom: 1px solid var(--border); padding: 7px 10px; vertical-align: top; }
.data td.num, .data th.num { text-align: right; white-space: nowrap; }
.data .good { color: var(--good); font-weight: 600; }
.data .note { color: var(--text-muted); font-size: 13px; }

.cliffs { margin: 0; padding-left: 18px; }
.cliffs li { margin: 4px 0; }

.tip {
  position: fixed; z-index: 10; pointer-events: none; max-width: 300px;
  background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.tip .t-title { font-weight: 600; margin-bottom: 2px; }
.tip .t-row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-secondary); }
.tip .t-row b { color: var(--text-primary); font-weight: 600; }

.discount { border-top: 1px solid var(--border); padding: 12px 0; }
.discount:first-child { border-top: 0; padding-top: 0; }
.discount-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.discount details { margin-top: 6px; }
.discount summary { cursor: pointer; color: var(--text-secondary); }
.terms { white-space: pre-wrap; color: var(--text-secondary); max-width: 760px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary); vertical-align: 1px;
}
.good-tag { border-color: var(--good); color: var(--good); }
.warn-tag { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }

/* Extension: live progress while Sixt sites are checked */
.progress { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 280px; column-gap: 24px; }
.progress li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); break-inside: avoid; font-size: 14px; }
.p-site { font-weight: 600; }
.p-status { text-align: right; }
.warn-text { color: var(--warn-ink); }

/* Discount codes: collapsed to one line */
#discountsDetails > summary { cursor: pointer; list-style-position: outside; }
#discountsDetails[open] > summary { margin-bottom: 10px; }

/* Flexible dates */
.flex-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.flex-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.flex-form input, .flex-form select {
  height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-primary); font: inherit; padding: 0 8px;
}
.flex-form input[type="number"] { width: 80px; }
.flex-actions { display: flex; gap: 8px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.flex-headline { margin: 4px 0 8px; }
.flex-headline .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.flex-headline .detail { color: var(--text-secondary); font-size: 14px; }
h3 { font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.cal { border-collapse: separate; border-spacing: 2px; }
.cal th { font-size: 12px; font-weight: 500; color: var(--text-secondary); padding: 2px 6px; white-space: nowrap; }
.cal tbody th { text-align: right; }
.cal td { width: 72px; height: 44px; border-radius: 4px; vertical-align: top; padding: 3px 5px; font-size: 12px; }
.cal td.cal-empty { background: var(--cell-empty); color: var(--text-muted); }
.cal td.cal-out { background: transparent; }
.cal td.best { box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 4px var(--ring); font-weight: 700; }
.cal-d { display: block; opacity: 0.8; font-size: 11px; }
.cal-p { display: block; font-weight: 600; }

.flex-more { flex-basis: 100%; }
.flex-more > summary { cursor: pointer; color: var(--text-secondary); }
.flex-more > .flex-form { margin-top: 8px; }

.controls label.check, .flex-form label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text-primary); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.flex-check { align-self: center; padding-bottom: 6px; }

/* Easy search */
.easy-card { border-color: var(--accent); }
.easy-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.easy-row h2 { margin-bottom: 4px; }
.easy-desc { margin: 0; max-width: 720px; color: var(--text-secondary); }
.easy-actions { display: flex; gap: 8px; }
.easy-btn { height: 44px; padding: 0 22px; font-size: 16px; }
.flex-headline .per { font-size: 16px; font-weight: 500; color: var(--text-secondary); }

.easy-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-secondary); }
.easy-date input { height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; padding: 0 6px; }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Website: search form */
.search-card { border-color: transparent; }
.search-form { align-items: flex-end; }
.search-form input[type="datetime-local"] { min-width: 200px; }
.loc-field { position: relative; flex: 1 1 260px; }
.loc-field input { width: 100%; }
.loc-list {
  position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); overflow-y: auto; max-height: min(380px, 60vh);
}
.loc-list button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text-primary); font: inherit; padding: 8px 10px; cursor: pointer;
}
.loc-list button:hover, .loc-list button:focus-visible, .loc-list button.active { background: var(--cell-empty); }
.loc-list mark { background: none; color: var(--accent); font-weight: 700; }
.loc-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.loc-note { padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.loc-box { position: relative; display: block; }
.loc-box input { padding-right: 34px; }
.loc-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border: 0; background: none; color: var(--text-muted); font-size: 14px; cursor: pointer; border-radius: 6px;
}
.loc-toggle:hover { background: var(--cell-empty); color: var(--text-primary); }
.loc-empty { padding: 8px 10px; }

/* Logo in the header */
.brand { margin: 0; line-height: 0; }
.brand img { height: 64px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 48px; } }

/* Theme toggle */
.theme-toggle { width: 36px; padding: 0; justify-content: center; }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- Website: simple search + answer ---------- */
.site #drop, .site #app { display: none !important; }
.simple-search { display: flex; flex-direction: column; gap: 14px; }
.simple-search .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.simple-search input, .simple-search select {
  height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: 15px; padding: 0 10px;
}
.simple-search .row { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.simple-search .row .field { flex: 1 1 180px; }
.date-wrap { display: flex; align-items: center; gap: 8px; }
.date-wrap input { flex: 1; }
.nice-check { font-size: 14px; }
.go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.go-btn { height: 46px; padding: 0 26px; font-size: 16px; }

.progress-card { padding: 12px 16px; }
.progress-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.progress-card .progress { margin-top: 8px; }

#answer { margin-bottom: 16px; }
/* "Email me if it gets cheaper", under the best deal. */
.price-alert { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.price-alert.sent { display: block; border-color: var(--good); }
.price-alert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.price-alert input {
  flex: 1 1 220px; min-width: 0; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-0);
  color: var(--text-primary); font: inherit; padding: 0 10px;
}
.price-alert input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.price-alert .field-error { margin: 0; }
.alts-title { font-size: 15px; margin: 18px 0 8px; }
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
@media (max-width: 600px) {
  .go-btn { width: 100%; }
}
.site .loaders > label.btn, .site #demo { display: none; }
.simple-search .loc-field { flex: none; }
.simple-search input[type="checkbox"], .simple-search input[type="radio"] { height: auto; padding: 0; }
.simple-search .nice-check { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text-primary); }
.simple-search .field .muted { font-size: 12px; }

/* ---------- Website: making "still loading" obvious ---------- */
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent);
  animation: cc-spin 0.8s linear infinite; vertical-align: -3px;
}
.spinner.on-accent { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
.spinner.small-spin { width: 11px; height: 11px; border-width: 2px; vertical-align: -1px; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.progress-head { display: flex; align-items: center; gap: 8px; }
.done-mark { color: var(--good); font-weight: 700; }
.pbar { height: 8px; border-radius: 999px; background: var(--cell-empty); overflow: hidden; margin: 10px 0 6px; }
.pbar-fill { height: 100%; width: 2%; border-radius: 999px; background: var(--accent); transition: width 0.4s ease; }
.progress-card.running .pbar-fill {
  background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  background-size: 200px 100%; background-repeat: no-repeat; background-color: var(--accent);
  animation: cc-shimmer 1.4s linear infinite;
}
@keyframes cc-shimmer { from { background-position: -200px 0; } to { background-position: calc(100% + 200px) 0; } }
/* Placeholders while Discover Cars is asked about a new best deal (DealSkeleton.tsx) */
.sk {
  display: block; height: 16px; width: 70%; border-radius: 6px; background-color: var(--cell-empty);
  background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  background-size: 200px 100%; background-repeat: no-repeat; animation: cc-shimmer 1.4s linear infinite;
}
.sk-big { height: 40px; width: 180px; margin-top: 8px; }
.sk-line { height: 14px; width: 140px; margin-top: 10px; }
.sk-short { width: 45%; }
.sk-btn { height: 44px; width: 100%; border-radius: 10px; }
.alt-skeleton { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--surface-1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04); }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.progress-card.done .pbar-fill { background: var(--good); }
.progress-card.failed .pbar-fill { background: var(--bad); }
.progress-card.paused .pbar-fill { background: var(--warn); }
.progress-card.paused #progressTitle { color: var(--warn-ink); }
.progress-card.failed #progressNote { color: var(--bad); font-weight: 600; }
.progress-card.running { border-color: var(--accent); }
.progress-count { font-weight: 600; }
.go-btn { display: inline-flex; align-items: center; gap: 8px; }
.go-btn:disabled { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .spinner, .progress-card.running .pbar-fill { animation: none; }
}
/* Stacking-cubes loader (the logo's cubes) in the progress card */
.cube-loader { width: 40px; height: 46px; flex: none; overflow: visible; }
.cube-loader .cb { stroke: var(--surface-1); stroke-width: 0.6; stroke-linejoin: round; } /* inherited into the <use> copies */
.cube-loader .cb { animation: cc-stack 2.4s cubic-bezier(.3, .7, .4, 1) infinite; animation-delay: calc(var(--i) * 0.18s); opacity: 0; }
@keyframes cc-stack {
  0% { transform: translateY(-14px); opacity: 0; }
  12% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cube-loader .cb { animation: none; opacity: 1; }
}
.cube-wrap { display: inline-flex; } .cube-wrap[hidden] { display: none; }
/* FAQ */
.faq { margin-top: 24px; }
.faq h2 { margin: 0 0 8px; font-size: 17px; }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; scroll-margin-top: 80px; /* clear the sticky navbar when linked to */ }
.faq details:last-of-type { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p, .faq li { color: var(--text-secondary); line-height: 1.5; margin: 6px 0; }
.faq ul { padding-left: 20px; margin: 6px 0; }
.faq li strong { color: var(--text-primary); }
.tagline-hi { color: var(--accent); font-weight: 600; }
.hero-tag .tagline-hi { display: block; margin-top: 2px; } /* "We try all the combinations…" on a line of its own */
/* "What we saved you from" on the best deal */
/* "I have dates" fields and the "Book longer if it's cheaper" option */
.dates-fields:not([hidden]) { display: flex; flex-direction: column; gap: 12px; }
.option-tile {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-1);
  transition: border-color 0.15s, background 0.15s;
}
.option-tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.option-tile:has(input:checked) { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface-1)); }
.simple-search .option-tile input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.option-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 14px; color: var(--text-primary); }
.option-text small { font-size: 13px; color: var(--text-secondary); }
.option-cost { font-size: 12px; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
@media (max-width: 600px) { .option-cost { display: none; } }

/* Website navbar: logo left (in line with the content), links centred, theme toggle right */
.site .top {
  position: sticky; top: 0; z-index: 10; display: block; padding: 8px 0;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent); backdrop-filter: blur(8px);
}
.top-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.top-inner > div:first-child { justify-self: start; }
.top-inner .loaders { justify-self: end; }
.site .brand img { height: 46px; }
.site-nav { display: flex; align-items: center; gap: 6px; justify-self: center; }
.site-nav a {
  padding: 6px 12px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { color: var(--text-primary); background: var(--cell-empty); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-hero { margin: 6px 0 14px; }
.hero-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 4px; }
.hero-tag { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
@media (max-width: 600px) { .hero-title { font-size: 23px; } .hero-tag { font-size: 14px; } }
/* Home shows the search, FAQ shows the questions (the loading bar stays on both). */
body[data-page="faq"] main > :not([data-section="faq"]) { display: none !important; }
body[data-page="cases"] main > :not([data-section="cases"]) { display: none !important; }
body[data-page="contact"] main > :not([data-section="contact"]) { display: none !important; }
body[data-page="home"] main > [data-section] { display: none; }
#faq { margin-top: 8px; }
.cases-intro { margin: 8px 0 16px; }
.cases-intro h1 { font-size: 23px; letter-spacing: -0.01em; }
.cases-intro p { margin: 4px 0 0; color: var(--text-secondary); max-width: 760px; }
.cases-intro p strong { color: var(--text-primary); }
.case-study + .case-study { margin-top: 20px; }
/* Case studies: the studies on the left, the companies and their studies in a sidebar on the right */
.cases-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: start; }
.cases-layout .cases-nav { grid-column: 2; grid-row: 1; }
.cases-layout .cases-list { grid-column: 1; grid-row: 1; }
.cases-group + .cases-group { margin-top: 36px; }
.cases-company { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 8px; font-size: 18px; scroll-margin-top: calc(var(--top-h, 63px) + 16px); }
.cases-company:focus, .case-study .cs-title:focus { outline: none; }
.cases-company-intro { margin: 8px 0 14px; color: var(--text-secondary); max-width: 760px; }
.case-study .cs-title { scroll-margin-top: calc(var(--top-h, 63px) + 60px); }
.cases-nav {
  position: sticky; top: calc(var(--top-h, 63px) + 16px); max-height: calc(100vh - var(--top-h, 63px) - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; padding: 4px 0;
}
.cn-company { display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 8px; }
.cn-company .co-tag { font-size: 13px; padding: 2px 10px; }
.cn-count { font-size: 12px; color: var(--text-muted); }
.cn-group ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 2px; border-left: 2px solid var(--border); }
.cn-group a:not(.cn-company) {
  display: block; margin-left: -2px; padding: 5px 10px; border-left: 2px solid transparent;
  color: var(--text-secondary); text-decoration: none; font-size: 13.5px; line-height: 1.35;
}
.cn-group a:not(.cn-company):hover { color: var(--text-primary); }
.cn-group a[aria-current="location"]:not(.cn-company) { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.cases-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Narrow screens: the companies as a row under the header (the studies' own titles do the rest) */
@media (max-width: 900px) {
  .cases-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cases-layout .cases-nav, .cases-layout .cases-list { grid-column: 1; grid-row: auto; }
  .cases-nav {
    top: var(--top-h, 63px); z-index: 6; max-height: none; flex-direction: row; gap: 8px; overflow-x: auto;
    margin: 0 -16px; padding: 8px 16px; background: var(--surface-0); border-bottom: 1px solid var(--border);
  }
  .cn-group ul, .cn-count { display: none; }
  .cn-company { flex: none; padding: 2px; }
  .cn-company .co-tag { font-size: 14px; padding: 4px 12px; }
  .cn-group:not(.on) .co-tag { opacity: 0.55; }
  .cases-company { scroll-margin-top: calc(var(--top-h, 63px) + 64px); }
  .case-study .cs-title { scroll-margin-top: calc(var(--top-h, 63px) + 100px); }
}
/* Phones: logo on the left; currency, theme and a menu button on the right. The page links fold
   behind the menu button and open as a list under the header. */
.nav-toggle { display: none; }
@media (max-width: 600px) {
  .site .top { padding: 6px 0; }
  .top-inner { grid-template-columns: 1fr auto; gap: 0 8px; padding: 0 12px; }
  .top-inner > div:first-child { grid-column: 1; grid-row: 1; }
  .top-inner .loaders { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
  .site .brand img { height: 34px; }
  .nav-toggle { display: inline-flex; width: 34px; height: 34px; padding: 0; justify-content: center; align-items: center; }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-toggle .i-close, .nav-open .nav-toggle .i-menu { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .site-nav {
    display: none; grid-column: 1 / -1; grid-row: 2; justify-self: stretch; flex-direction: column; align-items: stretch;
    gap: 2px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid var(--border);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 15px; }
  .site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); }
}

/* FAQ case study */
.case-study .cs-title { font-size: 21px; margin: 2px 0 6px; letter-spacing: -0.01em; }
.case-study h4 { font-size: 15px; margin: 18px 0 4px; }
.case-study p, .case-study li { color: var(--text-secondary); line-height: 1.55; }
.case-study strong { color: var(--text-primary); }
.cs-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.cs-context { margin: 0 0 16px; }
.cs-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.cs-option { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cs-good { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 7%, var(--surface-1)); }
.cs-label { font-weight: 600; }
.cs-dates, .cs-per { font-size: 13px; color: var(--text-secondary); }
.cs-price { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cs-bad .cs-price { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.cs-save { margin-top: 6px; font-weight: 700; color: var(--good); }
.cs-arrow { font-size: 22px; color: var(--text-muted); }
.cs-chart { margin: 20px 0 0; }
.cs-chart figcaption { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.cs-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; border-bottom: 1px solid var(--border); padding-top: 22px; }
.cs-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.cs-bar { width: 100%; max-width: 56px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--text-muted) 45%, var(--surface-1)); }
.cs-bar.monthly { background: var(--good); }
.cs-bar { position: relative; }
.cs-val { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.cs-day { position: absolute; bottom: -22px; font-size: 12px; color: var(--text-secondary); }
.cs-axis { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 24px; }
.cs-steps { margin: 4px 0 0; padding-left: 20px; }
.cs-cta { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cell-empty); color: var(--text-primary); }
@media (max-width: 600px) {
  .cs-compare { grid-template-columns: 1fr; }
  .cs-arrow { transform: rotate(90deg); justify-self: center; }
  .case-study .cs-title { font-size: 18px; }
}

/* Several branches: the dropdown row and the comparison under the best deal */
.loc-list button.loc-multi { background: color-mix(in srgb, var(--accent) 6%, var(--surface-1)); }
.loc-list button.loc-multi.active, .loc-list button.loc-multi:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface-1)); }
.loc-multi-icon { color: var(--accent); }
.branch-compare { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-1); }
.branch-compare h3 { font-size: 14px; margin: 0 0 8px; }
.branch-compare ul { list-style: none; margin: 0; padding: 0; }
.branch-compare li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.branch-compare li:first-child { border-top: 0; }
.b-name { display: flex; flex-direction: column; min-width: 0; }
.b-price { text-align: right; white-space: nowrap; }
.b-cheapest { font-size: 12px; font-weight: 600; color: var(--good); }
.b-more { font-size: 12px; color: var(--text-muted); }
.b-day { display: block; font-size: 12px; }
.b-dest { display: block; font-size: 12px; font-weight: 600; color: var(--good); } /* "US$159 less than sixt.com" */
/* "CA$5.87/day more" on its own line under the price, not squeezed in beside it */
.b-price .b-more, .b-price .b-cheapest { display: block; }
.b-when { font-weight: 600; margin-top: 2px; }
.b-car { color: var(--text-secondary); }
.small-btn { height: 30px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.branch-compare p { margin: -4px 0 8px; }
@media (max-width: 600px) { .branch-compare li { grid-template-columns: 1fr auto; } .branch-compare li .small-btn { grid-column: 1 / -1; justify-self: start; } }
/* Logo link + minimal footer (website) */
.brand-link { display: inline-block; line-height: 0; border-radius: 8px; }
.brand-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 16px 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site main { flex: 1 0 auto; width: 100%; padding-bottom: 32px; }
.site .site-footer { margin-top: 0; }

/* Branch case study: one bar per branch */
.cb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cb-list li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 12px; align-items: center; }
.cb-name { display: flex; flex-direction: column; font-size: 13px; }
.cb-name span { color: var(--text-muted); font-size: 12px; }
.cb-track { height: 14px; }
.cb-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--text-muted) 45%, var(--surface-1)); }
.cb-bar.low { background: var(--good); }
.cb-price { font-weight: 600; white-space: nowrap; font-size: 14px; }
.cb-tag { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.cb-tag.good { color: var(--good); font-weight: 600; }
@media (max-width: 600px) {
  .cb-list li { grid-template-columns: 1fr auto; }
  .cb-track { grid-column: 1 / -1; grid-row: 2; }
}

/* Case study charts: a shorter one, a dense one, and a highlighted spike */
.cs-bars-short .cs-bar { max-width: 90px; }
.cs-bars-dense { gap: 4px; }
.cs-bars-dense .cs-day { font-size: 10px; white-space: nowrap; }
.cs-bar.spike { background: var(--text-primary); }
@media (max-width: 600px) { .cs-bars-dense .cs-day { writing-mode: vertical-rl; transform: rotate(180deg); bottom: -40px; } .cs-bars-dense + .cs-axis { margin-top: 44px; } }
/* Case study "Search now" */
.cs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cs-go { text-decoration: none; white-space: nowrap; }

/* Advanced car filter */
.car-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.car-more {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer;
}
.car-more:hover { border-color: var(--accent); }
.car-more.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.car-panel:not([hidden]) { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
#carGroups { display: flex; flex-direction: column; gap: 12px; }
.car-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.car-group legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.car-panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

/* Contact page */
.contact-card { margin-top: 8px; max-width: 640px; }
.contact-card h1 { font-size: 23px; letter-spacing: -0.01em; margin: 0 0 8px; }
.contact-card p { margin: 0 0 12px; color: var(--text-secondary); }
.contact-mail-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 16px; }
.contact-mail { font-size: 19px; font-weight: 600; color: var(--accent); text-decoration: none; word-break: break-all; }
.contact-mail:hover { text-decoration: underline; }
/* GitHub-style copy button, with a small "Copy" / "Copied!" tooltip above it */
.copy-btn {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-muted); cursor: pointer;
}
.copy-btn svg { fill: currentColor; }
.copy-btn:hover { background: var(--surface-0); border-color: var(--border); color: var(--text-primary); }
.copy-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.copy-btn.copied { color: var(--good); }
.copy-btn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px; background: var(--text-primary); color: var(--surface-1);
  font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.copy-btn:hover::after, .copy-btn:focus-visible::after, .copy-btn.copied::after { opacity: 1; }

/* ---------- Website search form ---------- */
.site .search-card {
  max-width: 680px; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
}
.site .simple-search { gap: 16px; }
.sf-section { display: flex; flex-direction: column; gap: 7px; }
.sf-fields:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
.sf-label { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.simple-search #loc { height: 46px; border-radius: 10px; font-size: 16px; padding: 0 40px 0 14px; }
.simple-search .loc-toggle { right: 8px; }
/* Visually hidden radios inside the pill and segmented controls (still focusable and announced) */
.pills input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

/* Locations grouped by rental company */
.loc-groups { display: flex; flex-direction: column; gap: 12px; }
.loc-lead { margin: 0; }
.co-group { display: flex; flex-direction: column; gap: 6px; }
.co-head {
  align-self: flex-start; padding: 0; border: 0; background: none; font: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary);
}
.co-count { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); font-size: 13px; }
button.co-head { cursor: pointer; border-radius: 4px; }
button.co-head:hover .co-count { text-decoration: underline; }
button.co-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-none .co-head { color: var(--text-muted); }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: 14px;
}
button.loc-chip { cursor: pointer; }
button.loc-chip:hover { border-color: var(--text-muted); }
button.loc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-chip[aria-pressed="false"] { border-style: dashed; color: var(--text-muted); text-decoration: line-through; background: transparent; }

/* Flexible / I have dates */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: var(--cell-empty); }
.segmented label { position: relative; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 9px;
  font-size: 15px; font-weight: 600; color: var(--text-secondary); transition: background 0.15s, color 0.15s;
}
.segmented label:hover span { color: var(--text-primary); }
.segmented input:checked + span { background: var(--surface-1); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Pick-one pills: when, how long */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.pill:hover span { border-color: var(--text-muted); }
.pill input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); color: color-mix(in srgb, var(--accent) 75%, var(--text-primary)); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-day { margin-top: -6px; }
.pick-day .date-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--text-secondary); }
.pick-day input[type="date"] { width: auto; }
.dates-hint { margin: -4px 0 0; }
/* "The return has to be after the pick-up" under the date boxes */
.field-error { margin: -4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--bad); }
.simple-search .dates-fields input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }

/* Options: car filters behind "Change" */
.options { border-top: 1px solid var(--border); padding-top: 14px; }
.options-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.options-row strong { font-size: 14.5px; }
.options-toggle { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.options-toggle:hover { text-decoration: underline; }
.options .car-panel:not([hidden]) { margin-top: 12px; }

/* The search button: full width, with the time and companies under it */
.site .go-row { flex-direction: column; align-items: stretch; gap: 8px; }
.site .go-btn { width: 100%; height: 46px; justify-content: center; border-radius: 10px; font-size: 16px; font-weight: 700; }
.site .stop-btn { align-self: center; }
.site #modeHint { text-align: center; font-size: 13px; }

/* Company names next to a location (dropdown, progress, branch comparison): one neutral style */
.co-tag {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600;
  vertical-align: 1px; background: var(--cell-empty); color: var(--text-secondary);
}

@media (max-width: 600px) {
  .site .search-card { padding: 18px 14px; border-radius: 14px; }
  .simple-search #loc { font-size: 16px; }
  .pill span { height: 36px; padding: 0 13px; font-size: 14px; }
  .segmented span { height: 40px; font-size: 15px; }
}
.dates-fields .field { font-size: 13px; }
.simple-search .dates-fields input[type="datetime-local"] { height: 44px; border-radius: 10px; padding: 0 12px; font-size: 15px; }
/* The search sits in the middle of the page, with the headline centred above it */
.site .search-card { margin-left: auto; margin-right: auto; }
.site .site-hero { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.site .contact-card { margin-left: auto; margin-right: auto; }
/* Company colours: Sixt orange, Europcar green, Routes purple, Budget navy (dropdown, location chips, progress, results) */
.co-sixt { background: #fde6d8; color: #b34200; }
.co-europcar { background: #dcf1e2; color: #1d6b35; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .co-sixt { background: #4a2614; color: #ffb48a; }
  :root:not([data-theme="light"]) .co-europcar { background: #173826; color: #8fdca8; }
}
:root[data-theme="dark"] .co-sixt { background: #4a2614; color: #ffb48a; }
:root[data-theme="dark"] .co-europcar { background: #173826; color: #8fdca8; }
.co-routes { background: #ece4fb; color: #5b2bb5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-routes { background: #2d2146; color: #c9b3ff; } }
:root[data-theme="dark"] .co-routes { background: #2d2146; color: #c9b3ff; }
.co-greenmotion { background: #ecf6dc; color: #3d6610; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-greenmotion { background: #26351a; color: #b8e27c; } }
:root[data-theme="dark"] .co-greenmotion { background: #26351a; color: #b8e27c; }
.co-rentawreck { background: #fde3e3; color: #a3161d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-rentawreck { background: #47181a; color: #ff9d9d; } }
:root[data-theme="dark"] .co-rentawreck { background: #47181a; color: #ff9d9d; }
.co-budget { background: #e1e9f7; color: #1c3d73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-budget { background: #1c2a42; color: #a9c3f0; } }
:root[data-theme="dark"] .co-budget { background: #1c2a42; color: #a9c3f0; }
/* Discover Cars (a best deal booked through it): its yellow */
.co-discovercars { background: #fff3c4; color: #7a5a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-discovercars { background: #3d3311; color: #ffd966; } }
:root[data-theme="dark"] .co-discovercars { background: #3d3311; color: #ffd966; }
/* QEEQ (the same): teal */
.co-qeeq { background: #d6f3f1; color: #0b6560; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-qeeq { background: #123735; color: #7fded6; } }
:root[data-theme="dark"] .co-qeeq { background: #123735; color: #7fded6; }
/* Klook (the same): magenta, clear of Sixt's orange and Rent-A-Wreck's red */
.co-klook { background: #fbe3f3; color: #9c1a6e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-klook { background: #3f1733; color: #f7a6dc; } }
:root[data-theme="dark"] .co-klook { background: #3f1733; color: #f7a6dc; }
.runner-note:not([hidden]) { margin: 6px 0 0; }
.loc-chip .co-tag { margin-left: 8px; padding: 1px 8px; font-size: 12px; }
.loc-chip[aria-pressed="false"] .co-tag { opacity: 0.45; }
/* In lists (dropdown, progress, branch comparison) the company sits on its own line under the
   location name, whatever the name's length, so every row lines up the same. */
.loc-list .co-tag, .progress .co-tag, .b-name .co-tag, .alt-main .co-tag, .deal-main .co-tag { display: block; width: fit-content; margin: 3px 0 0; vertical-align: baseline; }
.loc-list button strong, .progress .p-site { display: block; }
#modeHint { transition: opacity 0.2s; }
#modeHint.stale { opacity: 0.55; }

/* ---------- While searching: the form folds into a summary, progress sits under it ---------- */
.search-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; }
.ss-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-text strong { font-size: 17px; }
.ss-text span { color: var(--text-secondary); font-size: 14px; }
.ss-actions { display: flex; gap: 8px; flex: none; }
.ss-edit { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; flex: none; }
@media (max-width: 480px) {
  .search-summary { flex-wrap: wrap; }
  .ss-actions { width: 100%; }
  .ss-actions .ss-edit { flex: 1; padding: 0 12px; justify-content: center; }
}
.search-card:not(.folded) .search-summary:not([hidden]) { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.search-card .progress-card { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--border); }
.search-card.folded .progress-card { margin-top: 14px; }
.search-card .progress-card.running { border-color: var(--border); }
.progress-head { display: flex; align-items: center; gap: 8px; }
.progress-head #progressTitle { font-size: 15px; }
.runner-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.runner-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.link-btn { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.progress-stop { margin-left: auto; color: var(--text-secondary); }
.progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.progress-foot .progress-count { font-weight: 500; color: var(--text-secondary); font-size: 13px; }
.search-card #progressNote:not(:empty) { margin-top: 6px; }
.search-card #progressList:not([hidden]) { margin-top: 10px; }

/* ---------- The answer: the best deal as a card, the other options as rows ---------- */
.site #answer { max-width: 680px; margin: 18px auto 14px; }
/* The best deal: the price on a tinted band, the rental row by row, then the saving and Book */
.best-deal { background: var(--surface-1); border: 2px solid var(--accent); border-radius: 16px; overflow: hidden; }
.bd-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px 22px; background: color-mix(in srgb, var(--accent) 6%, var(--surface-1)); border-bottom: 1px solid var(--border);
}
.bd-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.bd-kicker .spinner { margin-right: 4px; }
.bd-big { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.bd-big .per { font-size: 17px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; margin-left: 4px; }
.bd-line { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.bd-notax { color: var(--warn-ink); }
.bd-tie { margin: 14px 22px 0; }
.bd-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; margin: 0; padding: 18px 22px; font-size: 15px; line-height: 1.4; }
.bd-facts dt { color: var(--text-muted); }
.bd-facts dd { margin: 0; min-width: 0; }
.bd-muted { color: var(--text-secondary); }
.bd-shift { font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.bd-discounts { color: var(--good); font-weight: 600; }
.bd-foot { display: flex; flex-direction: column; gap: 12px; padding: 0 22px 18px; }
.bd-note { padding: 10px 12px; border-radius: 10px; background: var(--cell-empty); font-size: 14px; color: var(--text-secondary); }
.best-deal .code-steps { margin: 0; }
/* The receipt: the normal price, each saving on this rental, what's left to pay */
.bd-receipt { border: 1px solid color-mix(in srgb, var(--good) 35%, var(--border)); border-radius: 10px; padding: 10px 14px 8px; font-size: 14.5px; }
.bd-receipt-head { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--good); padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.bd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.bd-row > :last-child { white-space: nowrap; text-align: right; }
.bd-row s { color: var(--text-muted); text-decoration-thickness: 1.5px; }
.bd-save { color: var(--good); font-weight: 600; }
.bd-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-size: 16px; font-weight: 700; }
.bd-charged { font-size: 13px; font-weight: 400; color: var(--text-muted); }
/* How these dates compare with the others we checked */
.bd-check { font-size: 14px; color: var(--text-secondary); }
.bd-check strong { color: var(--good); }
.bd-check s { color: var(--text-muted); }
.bd-book { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; }
.bd-hint { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: -2px; }
.bd-hint strong { color: var(--text-primary); }
.bd-tip { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: -6px; }
.bd-tip a { color: var(--accent); }
@media (max-width: 600px) {
  .bd-head, .bd-facts { padding: 16px; }
  .bd-big { font-size: 31px; }
  .bd-facts { grid-template-columns: 84px minmax(0, 1fr); font-size: 14.5px; }
  .bd-tie { margin-left: 16px; margin-right: 16px; }
  .bd-foot { padding: 0 16px 16px; }
}
/* A Routes deal's discount code and how to type it in, above its Book button */
.code-steps { margin-top: 4px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.45; }
.code-steps-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; font-weight: 700; }
.code-chip { font: 700 16px ui-monospace, Consolas, monospace; letter-spacing: 0.06em; padding: 2px 10px; border-radius: 6px; border: 1.5px dashed var(--warn); background: var(--surface-1); color: var(--text-primary); }
.code-steps ol { margin: 8px 0 0; padding-left: 22px; }
.code-steps li + li { margin-top: 3px; }
.code-steps strong { font-weight: 700; }
.alts-title { font-size: 16px; margin: 20px 0 8px; }
.alts { display: flex; flex-direction: column; gap: 8px; }
.alt {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 18px;
  padding: 11px 14px 11px 16px; border-radius: 12px; background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04);
}
.alt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alt-main strong { font-size: 15px; }
.alt-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.alt-sub { font-size: 13px; color: var(--text-secondary); }
.alt-car { font-size: 12.5px; color: var(--text-muted); }
.alt-price { text-align: right; white-space: nowrap; }
.alt-big { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.alt-big .per { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.alt-total { font-size: 13px; color: var(--text-muted); }
.alt-book { height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
/* "via sixt.pt" (the site the Book button opens), under the price */
.booking-via { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.booking-via strong { color: var(--text-secondary); font-weight: 600; }
.booking-via svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }
@media (max-width: 600px) {
  .alt { grid-template-columns: 1fr auto; }
  .alt-book { grid-column: 1 / -1; justify-content: center; }
}
/* The best deal's full address, and the map of the branches with a price on each pin */
.branch-map { height: 400px; margin: 2px 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--cell-empty); overflow: hidden; }
.branch-map.single { height: 260px; margin: 12px 0 0; }
.branch-map.map-failed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
@media (max-width: 600px) { .branch-map { height: 320px; } }
.branch-map .pin-wrap { cursor: pointer; }
.branch-map .pin {
  display: block; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--surface-1); color: var(--text-primary);
  font: 700 13px/1.2 system-ui, sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px color-mix(in srgb, var(--text-primary) 18%, transparent);
  transition: transform 0.12s;
}
.branch-map .pin.best { background: var(--accent); color: var(--accent-ink); }
.branch-map .pin.none { color: var(--text-muted); font-weight: 600; }
.branch-map .pin.hot, .branch-map .pin-wrap:hover .pin { transform: scale(1.12); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent); }
.branch-map .pin-wrap:hover { z-index: 5; }
/* The cheapest: bigger, on top of the others, with our logo over it */
.branch-map .pin-wrap.pin-cheapest { z-index: 4; }
.branch-map .pin-wrap.pin-cheapest .pin { padding: 7px 14px; font-size: 16px; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--surface-1); }
.branch-map .pin-logo {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: 40px; height: 40px;
  padding: 3px; border-radius: 50%; background: var(--surface-1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--accent);
  pointer-events: none;
}
.branch-map .pin-more { font-weight: 600; opacity: 0.75; margin-left: 2px; }
.branch-map .maplibregl-popup-content { background: var(--surface-1); color: var(--text-primary); border-radius: 10px; padding: 10px 26px 10px 12px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); max-height: 240px; overflow-y: auto; }
.branch-map .maplibregl-popup-tip { display: none; }
.branch-map .maplibregl-popup-close-button { color: var(--text-muted); font-size: 18px; padding: 2px 6px; }
.branch-map .pin-pop + .pin-pop { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.branch-map .pin-pop a { font-weight: 700; color: var(--accent); }
/* A row lights up when you point at it (or at its pin): a soft tinted card fades in a little wider
   than the row, and the Book button picks up the accent. */
.branch-compare li { position: relative; isolation: isolate; }
.branch-compare li::before {
  content: ""; position: absolute; inset: 2px -10px; z-index: -1; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-1));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 4px 14px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: scale(0.98); transition: opacity 0.16s ease, transform 0.16s ease;
}
.branch-compare li.hot::before { opacity: 1; transform: none; }
.branch-compare li .small-btn { transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.branch-compare li.hot .small-btn { border-color: var(--accent); color: var(--accent); }
.branch-compare li.hot .small-btn:hover { background: var(--accent); color: #fff; }
@media (hover: hover) {
  .branch-compare li:hover::before { opacity: 1; transform: none; }
  .branch-compare li:hover .small-btn { border-color: var(--accent); color: var(--accent); }
  .branch-compare li:hover .small-btn:hover { background: var(--accent); color: #fff; }
}
/* The divider lines would cut through the highlight; hide them on either side of it. */
.branch-compare li.hot, .branch-compare li:hover, .branch-compare li.hot + li, .branch-compare li:hover + li { border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) { .branch-compare li::before, .branch-compare li .small-btn { transition: none; } }
/* Wide screens, once there's an answer with a map: the results on the left, the map filling the
   rest of the window on the right (under the header, to the bottom), staying put as the list scrolls. */
@media (min-width: 1200px) {
  body.site[data-page="home"]:has(#answer:not([hidden]) .branch-map) {
    --list-w: clamp(640px, 44vw, 800px);
    & main { max-width: none; width: var(--list-w); margin: 0; padding: 20px 24px 64px; }
    & .site-footer { width: var(--list-w); }
    & .top-inner { max-width: none; padding: 0 24px; }
    & .branch-map {
      position: fixed; top: var(--top-h, 63px); left: var(--list-w); right: 0; bottom: 0; z-index: 5;
      width: auto; height: auto; margin: 0; border: 0; border-left: 1px solid var(--border); border-radius: 0;
    }
  }
}
/* Ties: the same price at another branch, or another option as cheap as the best */
.deal-tie { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-secondary); padding: 10px 12px; border-radius: 10px; background: var(--cell-empty); }
.tie-mark { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.deal-tie strong { color: var(--text-primary); font-weight: 600; }
.alt-kicker.tie { color: var(--good); }
.pill.off { cursor: not-allowed; }
.pill.off span { opacity: 0.4; border-style: dashed; }
/* Currency picker, beside the theme toggle: "CA$ ▾" and a short menu */
.cur-picker { position: relative; }
.cur-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 0; border-radius: 9px;
  background: var(--cell-empty); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cur-btn:hover { background: color-mix(in srgb, var(--text-primary) 10%, var(--cell-empty)); }
.cur-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cur-caret { font-size: 11px; color: var(--text-muted); }
.cur-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 270px; max-height: min(420px, 70vh); overflow-y: auto;
  padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.12);
}
.cur-opt {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--text-primary); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; white-space: nowrap;
}
.cur-opt strong { font-weight: 700; }
.cur-opt:hover, .cur-opt:focus-visible { background: var(--cell-empty); outline: none; }
.cur-opt[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, var(--surface-1)); }
.cur-check { margin-left: auto; color: var(--accent); font-weight: 700; visibility: hidden; }
.cur-opt[aria-selected="true"] .cur-check { visibility: visible; }
.cur-sep { height: 1px; margin: 6px 10px; background: var(--border); }
.site .loaders { align-items: center; }
.cur-note { margin: 12px 0 0; text-align: center; }
/* "Continue search" after Sixt asked us to slow down (or after Stop) */
.continue-btn { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; }
/* "THANKS15 copied" after clicking Book on a Routes deal */
.copied-note {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: 12px; background: var(--text-primary); color: var(--surface-1); font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Website: a slightly more compact scale overall */
body.site { font-size: 14.5px; }
.site .top .theme-toggle { width: 34px; height: 34px; }
@media (min-width: 601px) { .site-nav a { font-size: 14.5px; } }
/* Phones: the choice pills in an even grid, three to a row; with five ("For how long") the last
   two share the second row. */
@media (max-width: 600px) {
  .pills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .pill { grid-column: span 2; min-width: 0; }
  .pill:nth-child(4):nth-last-child(2), .pill:nth-child(5):last-child { grid-column: span 3; }
  .pill span { width: 100%; justify-content: center; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
}
/* Phones: the currency menu lines up with the header's right edge (past the theme toggle: 34px
   button + 8px gap), so it never runs off the left of a narrow screen. */
@media (max-width: 600px) { .cur-menu { right: -42px; min-width: min(270px, calc(100vw - 24px)); } }
/* "Pick up at" with "Reset" at the right (shown once anything differs from a first visit) */
.sf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.reset-btn { padding: 0; font-size: 13.5px; color: var(--text-secondary); }
.reset-btn:hover { color: var(--text-primary); }
/* Filters: "Filters  [All cars] [Nice cars]  … Refine" on one line (wrapping on narrow phones) */
.options-row { flex-wrap: wrap; gap: 8px 12px; }
.options-row .pills-two { margin-right: auto; }
.options-row .options-toggle { margin-left: auto; }
.pills.pills-two { display: flex; gap: 6px; }
.pills-two .pill span { height: 34px; padding: 0 14px; font-size: 14px; width: auto; }
.options-summary { margin-top: 6px; }
.residence-row, .own-site-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; color: var(--text-secondary); }
.own-site { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.own-site input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.own-site strong { color: var(--text-primary); }
.simple-search .residence-row select { height: 32px; padding: 0 8px; font-size: 13.5px; border-radius: 8px; max-width: 100%; }
.residence-hint { flex-basis: 100%; font-size: 12.5px; line-height: 1.45; }
.residence-hint a { color: var(--accent); }
@media (max-width: 360px) { .pills-two .pill span { padding: 0 10px; font-size: 13px; } }
@media (max-width: 360px) { .pill span { padding: 0 2px; font-size: 12px; letter-spacing: -0.01em; } }

/* Search from: our server, or this browser (the extension) */
.run-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.run-mode .sf-label { margin: 0; }
.run-mode-note { flex: 1 1 100%; }
