/* One page, one layout: mobile first, the same structure scaled up. One accent colour. */
:root {
  --paper: #f7f2e9;
  --card: #fffdf8;
  --ink: #1f2a24;
  --soft: #5f6b63;
  --line: #e6dfd2;
  --accent: #2f6b4f;          /* the one accent */
  --accent-ink: #ffffff;
  --accent-wash: #e3eee7;
  --danger: #a33a2c;
  --radius-lg: 22px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 35, 25, 0.05), 0 10px 30px rgba(40, 35, 25, 0.08);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* elements styled with display: flex or grid must still hide */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top { padding: 22px 0 6px; }
/* the title with the opening hours beside it; on a narrow phone the hours wrap under the title */
/* the header row is centred at every width: logo and name together on one line; the hours beside them when there is
   room, otherwise on their own centred line under the name (owner, 2026-10-14) */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 14px; row-gap: 4px; text-align: center; }
.top .hours { color: var(--soft); font-size: 14px; line-height: 1.4; }
@media (max-width: 600px) { .top .hours { flex-basis: 100%; } }   /* phones: the hours on their own centred line under the name */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand span { font: 600 20px/1 var(--serif); letter-spacing: 0.2px; }

/* intro */
.intro { padding: clamp(18px, 4vw, 44px) 0 clamp(18px, 3vw, 30px); text-align: center; }   /* centred like the header and footer (owner's pick, B) */
.intro h1 { font: 600 clamp(32px, 6vw, 56px)/1.05 var(--serif); margin: 0 0 10px; letter-spacing: -0.5px; }
.intro p { margin: 0 auto; color: var(--soft); font-size: clamp(16px, 1.6vw, 19px); max-width: 38ch; text-wrap: balance; }   /* no lone last words */

/* the cards: one template at every width */
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 28px); padding-bottom: 56px; }
.item {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.45s var(--spring), box-shadow 0.3s var(--ease);
}
.item:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(40, 35, 25, 0.06), 0 18px 40px rgba(40, 35, 25, 0.12); }
.item:active { transform: translateY(-1px) scale(0.985); transition-duration: 0.12s; }
.item .photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--accent-wash); }
.item .info { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.item .info > div:first-child { flex: 1; display: flex; flex-direction: column; align-self: stretch; }
.item .name { font: 600 22px/1.2 var(--serif); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .desc { margin: 4px 0 0; color: var(--soft); font-size: 15px; line-height: 1.45; }   /* the full text, as many lines as it needs */
.item .price { flex: none; text-align: right; white-space: nowrap; padding-top: 2px; }
.item .tap span { transition: transform 0.35s var(--spring); }
.item:hover .tap span { transform: translateX(3px); }
.item .price b { display: block; font: 600 22px/1.1 var(--serif); }
.item .price small { color: var(--soft); font-size: 13px; }
.item .tap { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }

.foot { padding: 0 0 40px; color: var(--soft); font-size: 14px; }

/* booking panel: the same centered dialog at every width */
dialog.book {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 25, 20, 0.35); overflow: auto;
}
dialog.book::backdrop { background: rgba(28, 32, 28, 0.45); backdrop-filter: blur(3px); }
dialog.book[open] { animation: rise 0.5s var(--spring); }
dialog.book[open]::backdrop { animation: fade 0.3s var(--ease); }
dialog.book.closing { animation: sink 0.22s var(--ease) forwards; }
dialog.book.closing::backdrop { animation: fade 0.22s var(--ease) reverse forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.book .hero { position: relative; }
.book .hero img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--accent-wash); }
.book .close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 248, 0.92); display: grid; place-items: center; transition: transform 0.3s var(--spring);
}
.book .close:active { transform: scale(0.9); }
.book .body { padding: 18px clamp(16px, 4vw, 26px) 22px; }
.book h2 { font: 600 26px/1.15 var(--serif); margin: 0 0 2px; }
.book .rate { color: var(--soft); margin: 0 0 16px; white-space: nowrap; }
.field { margin: 16px 0 0; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; white-space: nowrap; }

/* chips: one line each, scroll sideways if needed */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 15px;
  transition: transform 0.35s var(--spring), background 0.2s, border-color 0.2s, color 0.2s;
}
.chip.date { display: grid; gap: 0; min-width: 62px; padding: 8px 10px; line-height: 1.15; text-align: center; }
.chip.date small { color: var(--soft); font-weight: 500; font-size: 12px; }
.chip:hover:not(:disabled):not([aria-pressed="true"]) { border-color: #b9cfc2; transform: translateY(-1px); }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--accent-wash), 0 6px 14px rgba(47, 107, 79, 0.25); animation: pop 0.38s var(--spring); }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.chip[aria-pressed="true"] small { color: var(--accent-wash); }
.chip:disabled { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }
.times .chip { padding: 0 4px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 22px; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: transform 0.35s var(--spring);
}
.stepper button:active { transform: scale(0.88); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 84px; text-align: center; font-weight: 700; white-space: nowrap; }

.lines { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines dt { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .fee dt small { color: var(--soft); font-size: 12px; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.total span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.total b { font: 600 28px/1 var(--serif); white-space: nowrap; }
.note { color: var(--soft); font-size: 14px; margin: 0 0 14px; }

/* the Rent button, with press feedback and the one bike touch: a small bike rides across while Checkout loads */
.rent {
  position: relative; overflow: hidden; width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; white-space: nowrap;
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease), background 0.2s;
  box-shadow: 0 6px 18px rgba(47, 107, 79, 0.28);
}
.rent:hover { box-shadow: 0 10px 24px rgba(47, 107, 79, 0.34); }
.rent:active { transform: scale(0.97); }
.rent:disabled { background: #9db3a6; box-shadow: none; cursor: not-allowed; }
.rent .label { display: inline-block; transition: transform 0.4s var(--ease), opacity 0.3s; }
.rent .ride { position: absolute; left: -48px; top: 50%; width: 40px; height: 40px; margin-top: -20px; opacity: 0; color: var(--accent-ink); }
.rent.going .label { transform: translateY(-160%); opacity: 0; }
.rent.going .ride { opacity: 1; animation: ride 1.6s linear infinite; }
.rent.going .ride .wheel { transform-box: fill-box; transform-origin: center; animation: spin 0.5s linear infinite; }
/* the road under the riding bike while the payment page loads */
.rent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px; opacity: 0; transition: opacity 0.3s;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 8px, transparent 8px 16px); }
.rent.going::after { opacity: 1; animation: road 0.5s linear infinite; }
@keyframes road { to { background-position: -16px 0; } }
@keyframes ride { from { left: -48px; } to { left: calc(100% + 8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.terms { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.terms summary { cursor: pointer; padding: 12px 14px; font-size: 14px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after { content: "Read"; color: var(--accent); font-weight: 700; white-space: nowrap; }
.terms[open] summary::after { content: "Hide"; }
.terms-body { padding: 0 14px 12px; font-size: 14px; color: var(--soft); white-space: pre-line; }
.agree { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.error { color: var(--danger); font-size: 14px; min-height: 1.3em; margin: 8px 0 0; }

/* the bike in the header pedals once when the page opens */
/* the header bike's wheels roll all the time, slowly; they stop while the pointer rests on the name (desktop) or a finger
   presses it (phone). A CSS transform only; no spin at all under reduced motion (the rule at the end of this file). */
.brand .wheel { transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
.brand:active .wheel { animation-play-state: paused; }
@media (hover: hover) { .brand:hover .wheel { animation-play-state: paused; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rent.going .ride { opacity: 0; }
  .rent.going .label { transform: none; opacity: 1; }
}
.times .muted { grid-column: 1 / -1; margin: 0; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; text-align: center; }   /* centred, one line when it fits */
.foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
/* coming soon */
.soon { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.soon .soon-box { align-self: center; justify-self: center; }
.soon-box { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.soon-bike { width: 96px; height: 60px; color: var(--accent); margin: 0 auto 14px; display: block; }
.soon h1 { font: 600 clamp(36px, 7vw, 60px)/1.05 var(--serif); margin: 0 0 10px; letter-spacing: -0.5px; }
.soon p { margin: 0; color: var(--soft); font-size: clamp(17px, 2vw, 20px); }
.soon-box p { max-width: 34ch; margin-left: auto; margin-right: auto; }
.soon .soon-actions { margin-top: 22px; }
/* the bike on Coming soon, maintenance, 404 and 500: the same steady spin as the header (still under reduced motion) */
.soon-bike .wheel { transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
/* confirmation and 'View your booking' */
.receipt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px); max-width: 640px; margin: clamp(12px, 3vw, 28px) auto 18px; }
.receipt .state { text-align: center; margin-bottom: 14px; }
.receipt .badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-wash); }
.receipt .badge::after { content: ""; width: 26px; height: 14px; border: solid var(--accent); border-width: 0 0 4px 4px; transform: translateY(-3px) rotate(-45deg); }
.receipt[data-state="wait"] .badge::after { width: 26px; height: 26px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; transform: none; animation: spin 0.9s linear infinite; }
.receipt[data-state="off"] .badge { background: var(--line); }
.receipt[data-state="off"] .badge::after { width: 22px; height: 4px; border: 0; background: var(--soft); transform: none; border-radius: 2px; }
.receipt h1 { font: 600 clamp(28px, 5vw, 40px)/1.1 var(--serif); margin: 0 0 8px; }
.receipt .order { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--accent-wash); color: var(--accent);
  font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.receipt .message { text-align: center; color: var(--soft); margin: 0 auto 18px; max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.facts div { background: var(--paper); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.facts dt { font-size: 13px; color: var(--soft); }
.facts dd { margin: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup { border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; }
.pickup h2 { font: 600 18px/1.2 var(--serif); margin: 0 0 6px; color: var(--accent); }
.pickup p { margin: 0; white-space: pre-line; }
.receipt .terms { margin-top: 14px; }
.receipt .actions-row { text-align: center; margin: 8px 0 0; }
.btn-link { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; text-decoration: none; white-space: nowrap; }
.contact { text-align: center; color: var(--soft); margin: 0 0 40px; }
.contact a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }   /* 12-hour times need the full width on a phone */
/* manage: cancel and notes */
.manage { max-width: 640px; margin: 0 auto 18px; display: grid; gap: 14px; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3.5vw, 28px); margin: 0; }
.card-box h2 { font: 600 22px/1.2 var(--serif); margin: 0 0 6px; }
.muted-p { color: var(--soft); margin: 0 0 14px; }
.quote { font-weight: 650; margin: 0 0 12px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-link { border: 0; cursor: pointer; font: inherit; font-weight: 650; transition: transform 0.2s var(--spring); }
.btn-link:active { transform: scale(0.96); }
.btn-link:disabled { opacity: 0.5; cursor: default; }
.btn-link.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-link.danger { background: var(--danger); color: #fff; }
.stars { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.stars legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.star-row { display: flex; gap: 8px; }
.star-row input { position: absolute; opacity: 0; pointer-events: none; }
.star-row label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-weight: 650; cursor: pointer; transition: transform 0.2s var(--spring), background 0.15s; }
.star-row label:active { transform: scale(0.92); }
.star-row input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.star-row input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.note-label { display: block; font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
#note textarea { width: 100%; font: 16px/1.4 var(--sans); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; margin-bottom: 12px; }
.note-status { margin: 10px 0 0; color: var(--accent); font-weight: 600; }
.note-status:empty, .card-box .error:empty { display: none; }

/* hover and press feedback on the page's own buttons */
.btn-link:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 42, 36, 0.14); }

/* out of service: the same card greyed, with the public message; no hover or press */
.item.off { cursor: default; }
.item.off:hover, .item.off:active { transform: none; box-shadow: var(--shadow); }
.item.off .photo-wrap { position: relative; }
.item.off .photo { filter: grayscale(1); opacity: 0.55; }
.item.off .name, .item.off .price { color: var(--soft); }
.off-tag { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 12px; border-radius: 999px; background: rgba(31, 42, 36, 0.82);
  color: #fff; font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon .soon-contact { margin-top: 18px; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.soon-contact a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.soon-contact:empty { display: none; }
/* start time: Ride now, the hour row, then the minutes past the hour */
.ride-now { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0 0 10px; padding: 0 16px;
  border: 1.5px solid var(--accent); border-radius: 14px; background: var(--accent-wash); color: var(--accent); cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--spring), background 0.2s, color 0.2s; }
.ride-now:active { transform: scale(0.98); }
.ride-now .rn-title { font-weight: 700; font-size: 16px; }
.ride-now .rn-sub { font-size: 13px; font-weight: 600; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; }
.ride-now[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-wash), 0 6px 14px rgba(47, 107, 79, 0.25); }
.chip.partly { position: relative; }
.chip.partly::after { content: ""; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #d29b2a; }
.chip.partly[aria-pressed="true"]::after { background: var(--accent-ink); }
.quarters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 320px; margin-top: 10px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--card); }
.quarters button { height: 40px; border: 0; border-left: 1px solid var(--line); background: transparent; font-weight: 650; font-size: 15px; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background 0.15s, color 0.15s; }
.quarters button:first-child { border-left: 0; }
.quarters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.quarters button:disabled { color: var(--soft); opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
/* Hours / Days: how this bike is rented, when it can be either */
.mode { display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; margin: -4px 0 4px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.mode button { height: 44px; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: inherit; cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.when { margin: 10px 0 0; font-weight: 650; min-height: 1.5em; }
.when:empty { display: none; }
