/* Kangoo Rental - single stylesheet */

:root {
  --blue: #0b5fff;
  --blue-dark: #0846bd;
  --ink: #12161f;
  --ink-2: #4a5263;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --ok: #157a3c;
  --ok-bg: #e5f6ec;
  --wait: #8a5a00;
  --wait-bg: #fff3d6;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 22, 31, .06), 0 8px 24px rgba(18, 22, 31, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.mt { margin-top: 2rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid rgba(11, 95, 255, .45); outline-offset: 2px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.wide { width: min(1320px, 100% - 2.5rem); }
.container.narrow { width: min(460px, 100% - 2.5rem); }
.container.medium { width: min(760px, 100% - 2.5rem); }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
section[id], .tab-panel { scroll-margin-top: 76px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.lead-sm { color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: .9rem; }
.fine-print { color: var(--ink-2); font-size: .82rem; margin-top: 1.5rem; }
.optional { font-weight: 400; color: var(--ink-2); }

/* ---------- Header & footer ---------- */

.announcement { background: var(--ink); color: #fff; text-align: center; padding: .55rem 1rem; font-size: .92rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; color: var(--ink-2); font-size: .75rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.nav-auth { display: inline-flex; align-items: center; gap: 1rem; }
.nav-auth[hidden] { display: none; }
.btn-google-nav,
.site-nav a.btn-google-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .48rem 1rem; min-height: 40px; border-radius: 999px;
  background: #fff; border: 1px solid #c8cfdb; color: var(--ink);
  font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(18, 22, 31, .06);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.site-nav a.btn-google-nav:hover,
.btn-google-nav:hover {
  background: #f4f7ff; border-color: var(--blue); color: var(--ink);
  box-shadow: 0 2px 6px rgba(11, 95, 255, .14);
}
.btn-google-full {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  width: 100%; padding: .7rem 1.15rem; border-radius: 999px;
  background: #fff; border: 1px solid #c8cfdb; color: var(--ink);
  font-weight: 650; font-size: .96rem; text-decoration: none;
  box-shadow: 0 1px 2px rgba(18, 22, 31, .06);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-google-full:hover {
  background: #f4f7ff; border-color: var(--blue); color: var(--ink);
  box-shadow: 0 2px 6px rgba(11, 95, 255, .14);
}
.google-g-icon { flex: none; display: block; }
.user-menu-wrapper { position: relative; display: inline-flex; align-items: center; }
.user-avatar-btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 2px solid var(--line); background: var(--bg-alt);
  cursor: pointer; overflow: visible; transition: border-color .15s, box-shadow .15s;
}
.user-avatar-btn:hover, .user-avatar-btn[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .15);
}
.nav-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nav-avatar-initial {
  font-weight: 700; font-size: 1rem; color: var(--blue);
  text-transform: uppercase; line-height: 1;
}
.user-avatar-btn .badge { position: absolute; top: -3px; right: -3px; }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  padding: .6rem; z-index: 100; display: flex; flex-direction: column; gap: .25rem;
}
.user-menu-dropdown[hidden] { display: none; }
.user-menu-header { padding: .4rem .6rem .5rem; display: flex; flex-direction: column; }
.user-menu-header strong { font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-header small { font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-divider { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.user-menu-item {
  display: flex; align-items: center; width: 100%; padding: .55rem .75rem;
  border-radius: 8px; font-size: .92rem; font-weight: 600; text-decoration: none;
  color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left;
  transition: background .12s, color .12s;
}
.user-menu-item:hover, .user-menu-item:focus-visible {
  background: var(--bg-alt); color: var(--blue); outline: none;
}
.user-menu-logout { color: var(--bad); }
.user-menu-logout:hover, .user-menu-logout:focus-visible {
  background: var(--bad-bg); color: var(--bad);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; font: inherit; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.link-button:hover { color: var(--blue); }
.badge { display: inline-block; min-width: 1.35em; padding: 0 .4em; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.35em; }
.badge[hidden] { display: none; }

.site-footer { background: var(--ink); color: #c9cfdb; padding: 2.5rem 0; margin-top: 0; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand { display: flex; flex-direction: column; gap: .2rem; }
.footer-brand strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-copy { margin: 0; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; }

/* ---------- Buttons & forms ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.25rem; border-radius: 10px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(11, 95, 255, .08); color: var(--blue-dark); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-small { padding: .45rem .8rem; font-size: .88rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .btn { align-self: flex-start; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { min-width: 180px; }
input, select, textarea { font: inherit; padding: .65rem .75rem; border: 1px solid #c8cfdb; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11, 95, 255, .18); }
input[type="checkbox"], input[type="radio"] { width: auto; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-alt); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.25rem; }
fieldset:disabled { opacity: .55; }
legend { font-weight: 700; padding: 0 .4rem; }
.check, .radio { display: flex; gap: .65rem; align-items: flex-start; margin: .75rem 0; font-size: .93rem; }
.check input, .radio input { margin-top: .3rem; flex: none; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: 9px; padding: .65rem .85rem; font-size: .92rem; }
.form-error[hidden] { display: none; }
.form-card { padding: 2rem; }
.google-block[hidden], .google-linked[hidden] { display: none; }
.google-btn { display: flex; justify-content: center; min-height: 44px; margin: 1rem 0 .25rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); font-size: .85rem; margin: 1rem 0 1.25rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-linked { background: var(--ok-bg); color: var(--ok); border-radius: 9px; padding: .65rem .85rem; font-weight: 600; }
.stack { display: flex; flex-direction: column; }
.narrow-form { max-width: 420px; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.inline-form input { width: auto; flex: 1 1 140px; }
.inline-form label { font-weight: 600; font-size: .9rem; }
.inactive { opacity: .45; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.notice { background: var(--wait-bg); border: 1px solid #f1d58f; border-radius: var(--radius); padding: 1.5rem; }
.notice h2 { font-size: 1.3rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 2rem; background: linear-gradient(180deg, #eef3ff 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow); }
.price-tag { display: inline-flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; margin: .5rem 0 1.5rem; box-shadow: var(--shadow); }
.price-main { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.price-sub { color: var(--ink-2); font-size: .92rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Booking ---------- */

.booking-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-head h3 { margin: 0; font-size: 1.15rem; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-2); padding-bottom: .25rem; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; position: relative; }
.cal-day.available { background: var(--ok-bg); border-color: #bfe5cd; color: var(--ok); }
.cal-day.partial { background: var(--wait-bg); border-color: #f1d58f; color: var(--wait); }
.cal-day.booked { background: var(--bad-bg); border-color: #f5c6c1; color: var(--bad); text-decoration: line-through; }
.cal-day.blocked { background: #eceef2; color: #8b93a3; text-decoration: line-through; }
.cal-day.past { background: #fafbfc; color: #b4bac6; border-style: dashed; }
.cal-day:disabled { cursor: default; }
.cal-day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.cal-day.selected { outline: 3px solid var(--blue); outline-offset: 1px; background: var(--blue); color: #fff; border-color: var(--blue); }
.cal-day.in-range { background: #dbe6ff; border-color: var(--blue); color: var(--blue-dark); }
/* Free days with no pickups or returns (the owner is working): striped. The hire's return day: dashed outline. */
.cal-day.nohandover { background: repeating-linear-gradient(135deg, #fff 0 6px, #eef7f1 6px 11px); border-color: #cfe9d8; color: #4f7a5f; }
.cal-day.nohandover.in-range { background: repeating-linear-gradient(135deg, #dbe6ff 0 6px, #c9d9fb 6px 11px); border-color: var(--blue); color: var(--blue-dark); }
.booking-selection { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: 1.25rem; }
.selection-summary { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: .35rem 0 .25rem; }
.handover-hours p { margin: .25rem 0 0; }
.cal-note { margin: .85rem 0 0; padding: .55rem .75rem; border-radius: 9px; background: var(--wait-bg); color: var(--wait); font-size: .88rem; }
.postcard:disabled { opacity: .4; cursor: not-allowed; transform: none; }
/* Admin "Pickup days" calendar */
.cal-day.closed { background: #eceef2; border-color: #d5d9e0; color: #6b7385; }
.cal-day.changed::before { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ho-card { max-width: 520px; margin-top: 1rem; }
.weekday-toggles { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.day-toggle { min-width: 3.4rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.day-toggle[aria-pressed="true"] { background: var(--ok-bg); border-color: #bfe5cd; color: var(--ok); }
.day-toggle:disabled { cursor: default; opacity: .7; }
.notice { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; background: var(--wait-bg); color: var(--wait); }
.notice p { margin: 0 0 .4rem; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: 1rem 0 0; font-size: .82rem; color: var(--ink-2); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.dot.chosen { background: var(--blue); } .dot.closed { background: #d5d9e0; } .dot.changed { background: var(--blue); border-radius: 50%; }
.dot.nohandover { background: repeating-linear-gradient(135deg, #fff 0 3px, #cfe9d8 3px 5px); border: 1px solid #bfe5cd; }
.dot.return { border: 2px dashed var(--blue); background: #fff; } .dot.available { background: #bfe5cd; } .dot.partial { background: #f1d58f; } .dot.booked { background: #f5c6c1; } .dot.blocked { background: #d5d9e0; }

.quote { margin: 1rem 0 .5rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote div { display: flex; justify-content: space-between; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.quote div:last-child { border-bottom: 0; }
.quote dt { color: var(--ink-2); }
.quote dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote div[hidden] { display: none; }
.quote-discount dd { color: var(--ok); }
.quote-total { background: #eef3ff; }
.quote-total dd { color: var(--blue); font-size: 1.1rem; font-weight: 800; }
.confirm-box { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.confirm-box[hidden] { display: none; }
.van-spec-badge { background: #fff8e6; color: #7a4f01; border: 1px solid #f2db99; border-radius: 8px; padding: .65rem .85rem; font-size: .88rem; margin-bottom: .85rem; line-height: 1.45; }
.van-spec-badge strong { color: #523400; }
.checklist ul, .status-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.checklist li, .status-list li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.checklist li::before, .status-list li::before { position: absolute; left: 0; top: .35rem; font-weight: 800; }
.checklist .ok::before, .status-list .ok::before { content: "✓"; color: var(--ok); }
.checklist .todo::before, .status-list .bad::before { content: "!"; color: var(--bad); width: 1.1rem; text-align: center; }
.status-list .wait::before { content: "…"; color: var(--wait); }
.checklist .link-button, .status-list .link-button { color: var(--blue); text-decoration: underline; }

/* ---------- Content blocks ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.step p { color: var(--ink-2); margin: 0; }
/* "Hire for longer and save" sits just above "Book the van". */
.section-save { padding-bottom: 0; }
.section-save + .section { padding-top: clamp(2rem, 4vw, 3rem); }
.price-cards-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin: 0 0 .85rem; }
.price-cards-head h2 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
.price-cards-head .hint { margin: 0; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: .65rem; padding-top: .5rem; }
.postcard { position: relative; width: 100%; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .95rem .75rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.postcard:hover { transform: translateY(-2px); border-color: #b9c8ee; }
.postcard[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.pc-days { font-size: clamp(.68rem, 8.2cqi, .76rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.pc-price { display: inline-flex; align-items: baseline; flex-wrap: nowrap; max-width: 100%; margin-top: .25rem; font-size: clamp(.95rem, 14cqi, 1.32rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.pc-cur { font-size: .58em; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin-right: .08em; }
.pc-sub { font-size: clamp(.7rem, 8.4cqi, .78rem); color: var(--ink-2); margin-bottom: .35rem; }
.pc-stamp { margin-top: auto; padding: .16rem .4rem; max-width: 100%; border: 1.5px dashed var(--ok); border-radius: 5px; background: var(--ok-bg); color: var(--ok); font-size: clamp(.62rem, 8.2cqi, .72rem); font-weight: 800; line-height: 1.2; white-space: nowrap; transform: rotate(-1.5deg); transform-origin: left center; }
.pc-stamp.plain { border-color: #c8cfdb; background: var(--bg-alt); color: var(--ink-2); transform: none; }
.pc-ribbon { position: absolute; top: -.6rem; left: .7rem; padding: .1rem .48rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; max-width: calc(100% - 1.2rem); }
.postcard.best { border-color: #b9c8ee; }
.postcard.lit { background: #eef3ff; border-color: #c5d5fb; }
.postcard[aria-checked="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); background: #f3f7ff; }
.day-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 359px) { .day-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.postcard.mini { gap: 0; padding: .55rem .55rem; border-radius: 10px; box-shadow: none; }
.postcard.mini .pc-days { font-size: .68rem; }
.postcard.mini .pc-price { margin-top: .1rem; font-size: clamp(.82rem, 15cqi, 1.02rem); }
/* The chosen length is solid blue, like the first and last days of the hire on the calendar. */
.day-cards .postcard[aria-checked="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 2px #bcd0ff; }
.day-cards .postcard[aria-checked="true"] .pc-days,
.day-cards .postcard[aria-checked="true"] .pc-cur { color: #dbe6ff; }

/* Responsive "Hire for longer and save" postcard grid across tablets, phones, and narrow foldables */
@media (max-width: 999px) {
  .price-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
  .price-cards .postcard.best:last-child:nth-child(4n + 3) { grid-column: span 2; }
}
@media (max-width: 639px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .price-cards .postcard { padding: .9rem .75rem .8rem; }
  .price-cards .postcard.best:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .75rem;
    row-gap: .15rem;
    padding: 1rem .95rem .9rem;
  }
  .price-cards .postcard.best:last-child:nth-child(odd) .pc-days { grid-column: 1; grid-row: 1; }
  .price-cards .postcard.best:last-child:nth-child(odd) .pc-price { grid-column: 1; grid-row: 2; margin-top: 0; }
  .price-cards .postcard.best:last-child:nth-child(odd) .pc-sub { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 0; }
  .price-cards .postcard.best:last-child:nth-child(odd) .pc-stamp { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 0; }
}
@media (max-width: 339px) {
  .price-cards { grid-template-columns: 1fr; gap: .55rem; }
  .price-cards .postcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .65rem;
    row-gap: .1rem;
    padding: .85rem .8rem .75rem;
  }
  .price-cards .postcard .pc-days { grid-column: 1; grid-row: 1; }
  .price-cards .postcard .pc-price { grid-column: 1; grid-row: 2; margin-top: 0; }
  .price-cards .postcard .pc-sub { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 0; }
  .price-cards .postcard .pc-stamp { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 0; }
}

.price-list-edit { display: grid; gap: .55rem; }
.price-list-row { display: grid; grid-template-columns: 5.2rem 7.5rem 9rem 1fr; align-items: center; gap: .65rem; }
.price-list-row label { font-weight: 600; font-size: .92rem; }
.price-input { display: flex; align-items: center; gap: .35rem; }
.price-input input { padding: .45rem .55rem; width: 100%; min-width: 0; }
.price-input.discount-input { color: var(--ink-2); font-size: .85rem; }
.price-input.discount-input input { max-width: 4rem; text-align: right; }
.price-list-row output { margin: 0; font-size: .88rem; }
.mt-sm { margin-top: .75rem; }
@media (max-width: 960px) {
  .price-list-row { grid-template-columns: 5.2rem 7.5rem 9rem; }
  .price-list-row output { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .price-list-row { grid-template-columns: 1fr 1fr; gap: .4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .price-list-row label { grid-column: 1 / -1; font-size: 1rem; }
  .price-list-row output { grid-column: 1 / -1; }
}
.van-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.van-photo img { border-radius: 20px; }
.feature-list { padding-left: 1.2rem; }
.feature-list li { margin-bottom: .6rem; }

/* ---------- Hub ---------- */

.hub-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
.map-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.hub-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.clock { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.big-figure { font-size: 1.6rem; font-weight: 800; margin: 0 0 .25rem; }
.wx-now { display: flex; align-items: center; gap: 1rem; }
.wx-now p { margin: 0; }
.wx-big { font-size: 2.6rem; }
.wx-days { list-style: none; padding: 0; margin: 1rem 0 0; }
.wx-days li { display: grid; grid-template-columns: 3rem 2rem 1fr auto; align-items: center; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.wx-rain { color: var(--ink-2); font-size: .85rem; }

/* ---------- Panels (account & admin) ---------- */

.panel-section { background: var(--bg-alt); min-height: 70vh; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.panel-head h1 { margin: 0; }
.balance-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; display: flex; flex-direction: column; text-align: right; box-shadow: var(--shadow); }
.balance-chip span { font-size: .8rem; color: var(--ink-2); }
.balance-chip strong { font-size: 1.25rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 .75rem; background: #fbfcfe; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: .95rem .9rem .8rem; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs [role="tab"][hidden] { display: none; }
.tab-panel { padding: 1.75rem; }
.flash { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1rem; background: #eef3ff; border: 1px solid #c9d8ff; }
.flash[data-kind="success"] { background: var(--ok-bg); border-color: #bfe5cd; }
.flash[data-kind="error"] { background: var(--bad-bg); border-color: #f5c6c1; }
.flash[hidden] { display: none; }

.status-pill { display: inline-block; border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; font-weight: 700; background: #eceef2; color: var(--ink-2); }
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.wait { background: var(--wait-bg); color: var(--wait); }
.status-pill.bad { background: var(--bad-bg); color: var(--bad); }

.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem 1.25rem; margin: 0 0 1rem; }
.details div { display: flex; flex-direction: column; }
.details dt { font-size: .8rem; color: var(--ink-2); }
.details dd { margin: 0; font-weight: 600; word-break: break-word; }

.booking-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: .8rem; }
.booking-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.booking-card p { margin-bottom: .5rem; }
.booking-card.cancelled { opacity: .7; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: #fbfcfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .pos { color: var(--ok); } .table .neg { color: var(--bad); }
.table .actions { white-space: nowrap; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: #f7f9ff; }
.table tr.muted { opacity: .55; }

.chat { border: 1px solid var(--line); border-radius: 12px; height: 380px; overflow-y: auto; padding: 1rem; background: #fbfcfe; display: flex; flex-direction: column; gap: .6rem; }
.bubble { max-width: 75%; padding: .6rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bubble p { margin: 0 0 .2rem; white-space: pre-wrap; word-break: break-word; }
.bubble time { font-size: .72rem; color: var(--ink-2); }
.bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bubble.mine time { color: rgba(255, 255, 255, .8); }
.chat-form { display: flex; gap: .6rem; margin-top: .75rem; align-items: flex-end; }
.chat-form[hidden] { display: none; }
.chat-form textarea { resize: vertical; }

/* Admin */
.toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 240px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.stat { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; }
.stat:hover { border-color: var(--blue); }
.stat span { color: var(--ink-2); font-size: .85rem; }
.stat strong { font-size: 1.6rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.split:has(.detail:not([hidden])) { grid-template-columns: 1.3fr 1fr; }
.detail { position: relative; align-self: start; max-height: 80vh; overflow-y: auto; }
.detail .close { position: absolute; right: .75rem; top: .75rem; }
.mini-list { padding-left: 1.1rem; font-size: .9rem; }
.inbox { display: grid; grid-template-columns: 300px 1fr; gap: 1.25rem; }
.thread-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; max-height: 480px; overflow-y: auto; }
.thread { display: flex; flex-direction: column; gap: .15rem; width: 100%; text-align: left; padding: .75rem .9rem; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.thread:hover, .thread.active { background: #eef3ff; }
.thread-preview { color: var(--ink-2); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread time { font-size: .72rem; color: var(--ink-2); }
.calc { background: #eef3ff; border-color: #c9d8ff; box-shadow: none; margin-bottom: 1rem; }
.calc-steps { margin: 0; padding-left: 1.3rem; }
.calc-steps li { margin-bottom: .4rem; }

/* Distribution ledger */
[hidden] { display: none !important; }
.ledger-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ledger-head h2 { margin-bottom: .25rem; }
.ledger-head .hint { margin: 0; }
.ledger-banner { padding: .85rem 1.1rem; border-radius: 11px; margin-bottom: 1.15rem; font-size: .98rem; border: 1px solid var(--line); background: var(--bg-alt); }
.ledger-banner.pending { background: var(--wait-bg); border-color: #f1d58f; color: var(--wait); }
.ledger-banner.settled { background: var(--ok-bg); border-color: #bfe5cd; color: var(--ok); }
.ledger-contractors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: 1.15rem 0; }
.ledger-contractor-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.ledger-contractor-card h3 { margin: 0 0 .2rem; }
.ledger-contractor-card header .hint { margin: 0; font-size: .85rem; }
.ledger-contractor-card .details { margin-bottom: 0; }
.ledger-contractor-card .pos { color: var(--ok); }
.ledger-contractor-card .neg { color: var(--bad); }
.ledger-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin: 1.15rem 0; align-items: start; }
.ledger-forms h3 { margin-bottom: .25rem; }
.ledger-config-details { margin-top: 1rem; }
.ledger-config-details summary { cursor: pointer; }
.inline-confirm { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.4rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { color: var(--ink-2); font-size: .9rem; }
.faq-list { display: grid; gap: .85rem; margin-top: 1.5rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.15rem; box-shadow: 0 1px 2px rgba(18, 22, 31, .04); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; line-height: 1.35; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 700; color: var(--blue); flex-shrink: 0; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { margin-bottom: .65rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 10px; box-shadow: var(--shadow); z-index: 50; max-width: min(520px, 92vw); }
.toast[data-kind="success"] { background: var(--ok); }
.toast[data-kind="error"] { background: var(--bad); }
.toast[hidden] { display: none; }

.geo-status { font-weight: 600; margin: .75rem 0 0; }
.geo-status.good { color: var(--ok); }
.geo-status.bad { color: var(--bad); }

/* ---------- Location bar and panel (every page) ---------- */

body { padding-bottom: 30px; }
.toast { bottom: calc(1.5rem + 30px); }
.locale-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 30px; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 0 .75rem; border: 0; border-top: 1px solid rgba(255, 255, 255, .1); background: var(--ink); color: #c9cfdb; font: inherit; font-size: .78rem; line-height: 1; white-space: nowrap; overflow: hidden; cursor: pointer; }
.locale-bar:hover, .locale-bar:focus-visible { color: #fff; }
.lb-item[hidden] { display: none; }
.lb-item + .lb-item::before, .lb-more::before { content: "\00b7"; margin-right: .8rem; opacity: .5; }
.lb-more { color: #9dbcff; }

.locale-dialog { width: min(780px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(18, 22, 31, .3); color: var(--ink); overflow-y: auto; scrollbar-width: none; }
.locale-dialog::-webkit-scrollbar { display: none; }
.locale-dialog::backdrop { background: rgba(18, 22, 31, .5); }
html:has(.locale-dialog[open]) { overflow: hidden; }
.ld-inner { padding: 1.1rem 1.25rem .85rem; }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.ld-head h2 { font-size: 1.15rem; margin: 0; }
.ld-head .icon-btn { width: 34px; height: 34px; line-height: 1; }
.ld-tabs { display: none; }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.ld-panel { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.ld-block { background: var(--bg-alt); border-radius: 11px; padding: .8rem .95rem; }
.ld-block h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 .3rem; }
.ld-block p { margin: 0; }
.ld-block .ld-note { color: var(--ink-2); font-size: .82rem; line-height: 1.4; margin-top: .15rem; }
.ld-place, .ld-money { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.ld-block .ld-rate { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.ld-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .55rem; }
.ld-actions[hidden], .ld-search[hidden], .ld-now[hidden] { display: none; }
.ld-actions .link-button { font-size: .85rem; text-decoration: underline; }
.ld-now { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ld-clock, .ld-temp { font-size: 1.45rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ld-wx { display: flex; align-items: center; gap: .5rem; }
.ld-wx-icon { font-size: 1.7rem; line-height: 1; }
.ld-search { margin-top: .55rem; }
.ld-search-row { display: flex; gap: .4rem; }
.ld-search input { padding: .5rem .65rem; font-size: .93rem; }
.ld-results { list-style: none; margin: .45rem 0 0; padding: 0; }
.ld-results button { display: flex; align-items: baseline; gap: .4rem; width: 100%; margin-bottom: .3rem; padding: .45rem .6rem; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.ld-results button span { color: var(--ink-2); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-results button:hover, .ld-results button:focus-visible { border-color: var(--blue); }
.ld-field { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.ld-field label { font-size: .85rem; font-weight: 600; }
.ld-field select { padding: .4rem .55rem; font-size: .88rem; }
.ld-credits { color: var(--ink-2); font-size: .72rem; line-height: 1.4; margin: .75rem 0 0; text-align: center; }

/* Narrow or short screens: one tab at a time, so the panel fits without scrolling. */
@media (max-width: 720px), (max-height: 560px) {
  .ld-inner { padding: .9rem 1rem .75rem; }
  .ld-tabs { display: flex; gap: .25rem; margin: 0 -1rem .8rem; padding: 0 .75rem; border-bottom: 1px solid var(--line); }
  .ld-tabs button { flex: 1; padding: .55rem .4rem; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
  .ld-tabs [aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
  .ld-grid { grid-template-columns: 1fr; }
  .locale-dialog[data-tab="here"] [data-ld-panel="settings"], .locale-dialog[data-tab="settings"] [data-ld-panel="here"] { display: none; }
}
@media (max-width: 720px) {
  .lb-more { display: none; }
}
@media (max-width: 480px) {
  #lbMoney { display: none; }
}
/* Small phones and landscape phones: tighter spacing. */
@media (max-height: 560px), (max-width: 720px) and (max-height: 700px) {
  .ld-inner { padding: .6rem .9rem .5rem; }
  .ld-head { margin-bottom: .4rem; }
  .ld-tabs { margin: 0 -.9rem .55rem; }
  .ld-tabs button { padding: .4rem; }
  .ld-grid, .ld-panel { gap: .5rem; }
  .ld-block { padding: .5rem .7rem; }
  .ld-block .ld-note { font-size: .76rem; }
  .ld-clock, .ld-temp { font-size: 1.2rem; }
  .ld-credits { display: none; }
  .ld-results button { padding: .35rem .55rem; margin-bottom: .25rem; font-size: .85rem; }
  .ld-results li:nth-child(n+5) { display: none; }
}
/* Landscape phones: the two cards in each tab sit side by side. */
@media (max-height: 560px) and (min-width: 560px) {
  .ld-panel { flex-direction: row; }
  .ld-panel > .ld-block { flex: 1 1 0; min-width: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .booking-grid, .van-grid, .hub-grid { grid-template-columns: 1fr; }
  .steps, .steps-4 { grid-template-columns: 1fr 1fr; }
  .split:has(.detail:not([hidden])) { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #fff; padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-auth { flex-direction: column; align-items: flex-start; }
  .steps, .steps-4 { grid-template-columns: 1fr; }
  .tab-panel { padding: 1.25rem; }
  .form-card { padding: 1.4rem; }
  .bubble { max-width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
