/* Website (Code)/public/assets/css/rental-vehicle-v2.css
   v6.2 ·  2026-10-31 MYT

   /rental-vehicle-v2: the rental fleet list as an apple.com "Shop" page (apple.com/shop/buy-mac). Loads after v2.css
   and nothing else. Styles the markup app.js draws at runtime too, every state it sets.

   v2.css has its own .card (the feature-card scroller). Every card rule here is scoped to .shopgrid and
   resets what it sets (width, height, padding, scroll-snap). */

body.rv2 { background: var(--bg-alt); }

.shop { padding-bottom: 120px; }
.shop [hidden], .sheet [hidden] { display: none !important; }

/* ─── HEAD ────────────────────────────────────────────────────────────────── */

.shop__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
    padding-top: 72px;
}
.shop__title {
    font-size: 80px; line-height: 1.05; font-weight: 600; letter-spacing: -0.015em;
    min-width: 0;
}
.shop__help {
    flex: none;
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    padding-bottom: 10px;
}
.shop__help .more { font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }

/* ─── DATE ROW ────────────────────────────────────────────────────────────── */

.when { margin-top: 48px; }

.when__title {
    margin-bottom: 14px;
    font-size: 17px; line-height: 1.23536; font-weight: 600; letter-spacing: -0.022em;
}
.when__hint { color: var(--ink-2); font-weight: 400; }

/* One bar with the white and shadow of a product tile. The four fields are cells of it, so a pickup's date and time
   read as a pair and the bar reads as one search, not a form. */
.when__row {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1.2fr .8fr auto;
    align-items: center;
    padding: 6px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 2px 4px 12px rgba(0, 0, 0, .06);
}

.field {
    position: relative;
    height: 64px;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow .2s var(--ease-standard), background-color .2s var(--ease-standard);
}
.field + .field::before {              /* the hairline between two cells */
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 1px;
    background: var(--hair);
}
.field.is-focused::before, .field.is-focused + .field::before,
.field:focus-within::before, .field:focus-within + .field::before { opacity: 0; }
.field.is-focused, .field:focus-within {
    background: var(--white);
    box-shadow: inset 0 0 0 2px var(--focus);     /* inside the cell so it does not meet a neighbour */
}
.field.has-error { background: #fff5f5; box-shadow: inset 0 0 0 1px var(--error); }
.field.has-error.is-focused, .field.has-error:focus-within { box-shadow: inset 0 0 0 2px var(--error); }

/* Every label is small and on top. An empty date says "Add date" in its place (a placeholder), so the four cells
   match before and after they are filled. ui/field.js still sets .is-floated; nothing here depends on it. */
.field__label {
    position: absolute; left: 16px; top: 13px; z-index: 1;
    max-width: calc(100% - 28px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; line-height: 16px; letter-spacing: -0.01em;
    color: var(--ink-2);
    pointer-events: none;
}
.field.is-floated:not(.has-error) .field__label { color: var(--ink-2); }

.field__control {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 26px 36px 8px 16px;
    border: 0; border-radius: 12px; outline: none;
    background: transparent;
    font-family: var(--font); font-size: 17px; line-height: 1.23536; letter-spacing: -0.022em;
    color: var(--ink);
    cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.field__control:focus-visible { outline: none; }
.field__control::placeholder { color: var(--ink-2); opacity: 1; }

/* Right-hand glyphs: a calendar on the date fields, a chevron on the time lists. */
.field--date::after, .field--select::after {
    content: ''; position: absolute; right: 12px; top: 50%;
    width: 16px; height: 16px; margin-top: -8px;
    background: var(--ink-2);
    pointer-events: none;
    -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.field--date {
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3.25' y='4.75' width='17.5' height='16.5' rx='3'/%3E%3Cpath d='M8 2.75v4M16 2.75v4M3.25 10h17.5'/%3E%3C/svg%3E");
}
.field--select {
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5'/%3E%3C/svg%3E");
}

.when__save { min-height: 52px; margin-left: 10px; padding: 0 26px; }
.when__save:focus-visible { outline-offset: 3px; }

.dates__message {
    margin-top: 12px; padding-inline: 16px;
    color: var(--error);
    font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
}

/* ─── CALENDAR (ui/datePicker.js) ─────────────────────────────────────────── */

/* Appended to <body> (ui/datePicker.js). */
/* Solid, not frosted (glass stays on the navigation layer), and the same look as the car page's calendar. */
.calendar {
    position: absolute; z-index: 60;
    width: 322px;
    padding: 4px 8px 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05);
    font-family: var(--font); color: var(--ink);
    opacity: 0; transform: translateY(-6px);
    transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}
.calendar__head { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 4px; }
.calendar__title { min-width: 76px; text-align: center; font-size: 17px; line-height: 1.23536; font-weight: 600; letter-spacing: -0.022em; }
.calendar__step {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--link);
    transition: background-color .15s linear;
}
.calendar__step:disabled { opacity: .3; cursor: default; background: none; }
.calendar__grid { margin: 0 auto; border-collapse: collapse; table-layout: fixed; }
.calendar__grid th {
    width: 43px; height: 32px; padding: 0;
    font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); text-align: center;
}
.calendar__grid td { width: 43px; height: 42px; padding: 1px; text-align: center; }
.calendar__day {
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 17px; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; color: var(--ink);
    transition: background-color .15s linear, color .15s linear;
}
.calendar__day:focus-visible { outline-offset: 1px; }

/* ─── ALL VEHICLES AND FILTER ─────────────────────────────────────────────── */

.shopbar {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-top: 72px;
}
.shopbar__title {
    font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: .007em;
}
.shopbar__grey { color: var(--ink-2); white-space: nowrap; }     /* "Take your pick." does not split */
.toolbar__actions { flex: none; display: flex; align-items: center; gap: 12px; }

/* Per day / Whole trip: an Apple segmented control. */
.priceview { display: inline-flex; flex: none; padding: 2px; border-radius: 980px; background: var(--platter); }
.priceview button {
    min-height: 40px; padding: 0 16px;
    border-radius: 980px;
    color: var(--ink);
    font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
    white-space: nowrap;
    transition: background-color .2s var(--ease-standard), box-shadow .2s var(--ease-standard);
}
.priceview button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
.priceview button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.toolbar__filter {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 20px 0 16px;
    border-radius: 980px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
    transition: background-color .2s var(--ease-standard), box-shadow .2s var(--ease-standard);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.toolbar__filter svg { width: 18px; height: 18px; }
.toolbar__filter:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }

/* The sort list: a native <select> (the phone's own picker) dressed as the Filter pill. */
.toolbar__sort { position: relative; flex: none; }
.toolbar__sort::after {
    content: ''; position: absolute; right: 16px; top: 50%;
    width: 14px; height: 14px; margin-top: -7px;
    background: var(--ink-2);
    pointer-events: none;
    --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5'/%3E%3C/svg%3E");
    -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.toolbar__sort select {
    field-sizing: content;              /* hugs the chosen label where the browser can */
    min-height: 44px; padding: 0 38px 0 18px;
    border: 0; border-radius: 980px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font); font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
    cursor: pointer;
    -webkit-appearance: none; appearance: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    transition: box-shadow .2s var(--ease-standard);
}
.toolbar__sort select:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.toolbar__sort select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ─── CLASSES ─────────────────────────────────────────────────────────────── */

/* The strip from /rental, here a filter: same cut-outs, same order. Transparent, so they sit straight on the grey
   page. The class in force stands on a white tile like a product tile; "All vehicles" is in force when nothing is
   chosen. */

.classes { margin-top: 20px; }
.classes__list {
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.classes__list::-webkit-scrollbar { display: none; }
.classes__list li { flex: 1 1 0; min-width: 0; }      /* all eight on the row, so nothing hints that more are hiding to the right */
.classes__item {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; padding: 14px 2px 12px;
    border-radius: 18px;
    color: var(--ink);
    text-align: center;
    transition: background-color .2s var(--ease-standard), box-shadow .2s var(--ease-standard);
}
.classes__item img { width: min(100%, 112px); height: 50px; object-fit: contain; margin-bottom: 12px; transition: transform .3s cubic-bezier(0, 0, .5, 1); }
.classes__glyph { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 50%; background: var(--white); transition: background-color .2s var(--ease-standard); }
.classes__glyph svg { width: 26px; height: 26px; }
.classes__name { font-size: 14px; line-height: 1.28577; font-weight: 600; letter-spacing: -0.016em; white-space: nowrap; }
.classes__note { min-height: 16px; font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--deal); white-space: nowrap; }
.classes__item[aria-current="true"] { background: var(--white); box-shadow: 2px 4px 12px rgba(0, 0, 0, .06); }
.classes__item[aria-current="true"] .classes__glyph { background: var(--bg-alt); }
.classes__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) {
    .classes__item:hover img { transform: scale(1.06); }
    .classes__item:hover .classes__name { text-decoration: underline; text-underline-offset: .15em; }
}

/* ─── RESULTS ─────────────────────────────────────────────────────────────── */

.results { margin-top: 28px; position: relative; }
.results[aria-busy="true"] { min-height: 320px; }

.results__loading { display: grid; place-items: center; height: 320px; }
@keyframes gp-spin { to { transform: rotate(360deg); } }
.gp-spinner { width: 32px; height: 32px; animation: gp-spin .9s linear infinite; }

.results__note {
    display: none;
    padding: 88px 24px;
    border-radius: 18px;
    background: var(--white);
    text-align: center;
}
.results__note-title { font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: .007em; }
.results__note-copy { margin-top: 10px; color: var(--ink-2); }
/* An empty grid after a load: a real zero leaves the count pill disabled, a failed query leaves it enabled. */
body:has(#btnApplyFilters:disabled) .results[aria-busy="false"]:has(> .grid:empty) .results__note--none,
body:has(#btnApplyFilters:not(:disabled)) .results[aria-busy="false"]:has(> .grid:empty) .results__note--failed { display: block; }

/* ─── TILES ───────────────────────────────────────────────────────────────── */

/* apple.com Store product cards, three up. Each tile is one link (Baymard: one hit area, one hover) laid out on
   shared rows (subgrid), so across a row the photos, eyebrow and price sit on the same lines however long a name
   runs. The spec line follows its own name (no hole under a one-line name) and spare height sits above the price.
   The "New" status rides in the eyebrow beside the body type. Every tile has an eyebrow, so a badge never pushes
   one name lower than its neighbour's (Apple reserves the eyebrow row for the same reason).

     photo                      full bleed, 4:3
     New · Coupé                12/600: the status in Apple's orange, the body type in grey
     Mercedes-Benz C200 Coupe   24 (21 tablet/phone): the make 600, the model 400
     2022 · White · 7 seats     14 grey: what tells two cars of one name apart
     From RM 1,000/day  Select  the same line on every tile; "Select" shows on hover or keyboard focus, where it fits
     RM 3,000 · RM 1,000/day    the note line: a deal's old price, the rate behind a whole-trip total */

.shopgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--gap);
    --card-x: 28px;
}

.shopgrid .card {
    position: relative;
    width: auto; height: auto; flex: none;
    padding: 0;
    margin-bottom: var(--gap);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 2px 4px 12px rgba(0, 0, 0, .06);
    scroll-snap-align: none;
    display: flex; flex-direction: column;
    transition: transform .3s cubic-bezier(0, 0, .5, 1), box-shadow .3s cubic-bezier(0, 0, .5, 1);
}
@supports (grid-template-rows: subgrid) {
    .shopgrid .card {
        display: grid;
        grid-row: span 4;                   /* photo, eyebrow, name and specs, price */
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

.shopgrid .card__media {
    aspect-ratio: 4 / 3;
    background: var(--platter);
    overflow: hidden;
}
.shopgrid .card__media img.is-whole { object-fit: contain; }
.shopgrid .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0, 0, .5, 1); }

.shopgrid .card__eyebrow {
    display: flex; flex-wrap: wrap; align-items: baseline;
    padding: 24px var(--card-x) 0;
    color: var(--ink-2);
    font-size: 12px; line-height: 1.33337; font-weight: 600; letter-spacing: -0.01em;
}
.shopgrid .card__deal { color: var(--deal); }
.shopgrid .card__deal::after { content: '·'; padding: 0 6px; color: var(--ink-2); }
.shopgrid .card:not(.has-deal) .card__deal { display: none; }
.shopgrid .card__badge { color: var(--deal); }
.shopgrid .card__badge::after { content: '·'; padding: 0 6px; color: var(--ink-2); }
.shopgrid .card:not(.has-status) .card__badge { display: none; }

.shopgrid .card__info { padding: 6px var(--card-x) 0; }
.shopgrid .card__title {
    font-size: 24px; line-height: 1.16667; font-weight: 400; letter-spacing: .009em;
    text-wrap: balance;                 /* a long name breaks after the make ("Mercedes-Benz / S Class S400"), not mid-model */
}
.shopgrid .card__title b { font-weight: 600; }

.shopgrid .card__specs {
    padding-top: 8px;
    color: var(--ink-2);
    font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
}

.shopgrid .card__foot {
    align-self: start;                  /* prices line up across a row whether or not a tile has a note under its price */
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    min-height: 36px;
    padding: 24px var(--card-x) 28px;
    box-sizing: content-box;
}
.shopgrid .card__prices { flex: 1 1 auto; min-width: 0; min-height: 36px; display: flex; flex-direction: column; justify-content: center; }
.shopgrid .card__note { margin-top: 2px; color: var(--ink-2); font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; }
.shopgrid .card__note:empty { display: none; }
.shopgrid .card__note s { text-decoration-thickness: 1px; }
.shopgrid .card__note span { white-space: nowrap; }       /* "RM 800/day · 4 days" wraps as one piece */
.shopgrid .card__price { font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--ink-2); white-space: nowrap; }
.shopgrid .card__amount { color: var(--ink); font-size: 17px; line-height: 1.23536; font-weight: 600; letter-spacing: -0.022em; }
.shopgrid .card__suffix { color: var(--ink-2); }

/* "Select": Apple's small blue "Buy" pill; the whole tile is its hit area. */
.shopgrid .card__go {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 0 16px;
    margin-left: auto;                  /* stays at the right edge on a car with no rate (no price beside it) */
    border-radius: 980px;
    background: var(--focus);
    color: var(--white);
    font-size: 14px; line-height: 1.28577; letter-spacing: -0.016em;
    opacity: 0;
    transform: translateY(4px);
    transition: background-color .2s var(--ease-standard), opacity .24s var(--ease-standard), transform .24s var(--ease-standard);
}
/* Shown only while the tile is hovered or has keyboard focus. */
.shopgrid .card:hover .card__go[href],
.shopgrid .card:focus-within .card__go[href] { opacity: 1; transform: none; }
.shopgrid .card__go::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.shopgrid .card__go:hover, .shopgrid .card:hover .card__go[href] { background: var(--blue-hover); }
.shopgrid .card__go:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* apple.com/shop/buy-mac: the tile lifts a little and its shadow deepens. */
@media (hover: hover) {
    .shopgrid .card:not(.is-unavailable):hover { transform: scale(1.01); box-shadow: 2px 4px 16px rgba(0, 0, 0, .14); }
}

/* Not available for the dates (or not let at all): the photo fades back, the words stay readable, "Not available"
   takes the price's place, and there is nothing to press. */
.shopgrid .card.is-unavailable, .shopgrid .card.is-unavailable:hover { box-shadow: none; transform: none; }   /* v2.css lifts every .card */
.shopgrid .card.is-unavailable .card__from { display: none; }
.shopgrid .card.is-unavailable .card__amount { font-size: 14px; line-height: 1.42859; font-weight: 400; letter-spacing: -0.016em; color: var(--ink-2); }
.shopgrid .card.is-unavailable .card__go { visibility: hidden; }   /* keeps the row the same height as its neighbours */
.shopgrid .card.is-unavailable .card__media img { filter: grayscale(1); opacity: .45; }
.shopgrid .card.is-unavailable .card__badge { opacity: .55; }
.shopgrid .card__veil { display: none; }      /* item.js adds it; the photo alone carries the state here */

/* The entrance (ui/reveal.js): rise 60px and fade in as the row arrives, 300/380/460ms by column. */
.shopgrid .card.is-armed { opacity: 0; transform: translateY(60px); transition: none; }
.shopgrid .card.is-entering {
    transition:
        opacity   var(--enter-ms, 300ms) cubic-bezier(.39, .575, .565, 1),
        transform var(--enter-ms, 300ms) cubic-bezier(.39, .575, .565, 1);
}

/* ─── FILTER SHEET (ui/overlay.js) ────────────────────────────────────────── */

.overlay {
    position: fixed; inset: 0; z-index: 90;
    display: grid; place-items: center;
    visibility: hidden; opacity: 0;
    transition: opacity .32s var(--ease-standard), visibility 0s linear .32s;
}
.overlay.is-open { visibility: visible; opacity: 1; transition: opacity .32s var(--ease-standard), visibility 0s; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }

.overlay__panel {
    position: relative;
    display: flex; flex-direction: column;
    width: min(780px, calc(100vw - 80px));
    height: min(760px, calc(100dvh - 80px));
    border-radius: 18px;
    background: var(--white);
    overflow: hidden;
    transform: translateY(24px) scale(.985);
    transition: transform .4s var(--ease-out);
}
.overlay__panel:focus-visible { outline: none; }

.sheet__head {
    flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 28px 28px 12px 44px;
}
.sheet__title { font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: .004em; }
.sheet .overlay__close { position: relative; right: auto; bottom: auto; flex: none; }

.overlay__scroll {
    flex: 1; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 44px 36px;
}

.facet + .facet { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hair); }
/* Centred, not baseline, so "Reset" appearing does not nudge the chips below it. */
.facet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; margin-bottom: 16px; }
.facet__title { font-size: 19px; line-height: 1.21053; font-weight: 600; letter-spacing: .012em; }
.facet__reset {
    flex: none;
    padding: 12px 0; margin: -12px 0;
    color: var(--link);
    font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em;
}
.facet__reset:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    position: relative;
    display: inline-flex; align-items: center;
    min-height: 40px; padding: 0 18px;
    border: 1px solid var(--ink-3);
    border-radius: 980px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px; line-height: 1.28577; letter-spacing: -0.016em;
    transition: background-color .2s var(--ease-standard), border-color .2s var(--ease-standard), color .2s var(--ease-standard);
}
.chip::after { content: ''; position: absolute; inset: -3px -1px; }       /* a 44px hit area */
.chip:hover { border-color: var(--ink); }
.chip__icon { display: none; }
.chip[aria-pressed="true"] { background: var(--focus); border-color: var(--focus); color: var(--white); }
.chip[aria-pressed="true"]:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }

.overlay__foot {
    flex: none;
    display: flex; justify-content: center;
    padding: 16px 44px 24px;
    box-shadow: inset 0 1px 0 var(--hair);
    background: rgba(255, 255, 255, .96);
}
.apply { min-width: 280px; min-height: 50px; }
.apply:disabled, .apply:disabled:hover { background: var(--platter); color: var(--ink-2); cursor: default; }

/* ─── LAPTOP AND TABLET ───────────────────────────────────────────────────── */

@media (max-width: 1068px) {
    .shop__head { padding-top: 56px; }
    .shop__title { font-size: 64px; line-height: 1.0625; letter-spacing: -0.009em; }
    .shopbar { margin-top: 56px; flex-wrap: wrap; gap: 14px 24px; }
    .toolbar__actions { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; }
    /* "Select" needs room these tiles do not have. The whole tile stays the link: the pill folds to nothing and its
       ::after still covers the tile (it belongs to .card, so the pill's overflow does not clip it). */
    .shopgrid .card__go { width: 0; min-height: 0; padding: 0; margin: 0; overflow: hidden; }
    .classes__list { gap: 0; }
    .shopgrid { column-gap: 16px; --card-x: 22px; }
    .shopgrid .card { margin-bottom: 16px; }
    .shopgrid .card__eyebrow { padding-top: 20px; }
    .shopgrid .card__title { font-size: 21px; line-height: 1.19048; letter-spacing: .011em; }
    .shopgrid .card__foot { padding-top: 20px; padding-bottom: 22px; }
}

@media (max-width: 900px) {
    .shop__head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .shop__help { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 0; }
    /* Stacked, the bar is a grouped list as in iPhone Settings: pickup, a hairline, return. The button stands under it,
       so a pill does not fight the corners of a card. ::before is the card, ::after the hairline; both are grid items,
       so every cell is placed by hand. */
    .when__row { grid-template-columns: 1.2fr .8fr; padding: 6px 6px 0; border-radius: 0; background: none; box-shadow: none; }
    .when__row::before {
        content: ''; grid-area: 1 / 1 / 3 / 3; align-self: stretch; margin: -6px;
        border-radius: 18px; background: var(--white); box-shadow: 2px 4px 12px rgba(0, 0, 0, .06);
    }
    .when__row::after {
        content: ''; grid-area: 1 / 1 / 2 / 3; align-self: end;
        height: 1px; margin-inline: 16px; background: var(--hair);
    }
    .field--pickup-date { grid-area: 1 / 1; }
    .field--pickup-time { grid-area: 1 / 2; }
    .field--return-date { grid-area: 2 / 1; }
    .field--return-time { grid-area: 2 / 2; }
    .field + .field--return-date::before { content: none; }           /* first on its row: nothing to divide it from */
    .when__save { grid-area: 3 / 1 / 4 / 3; margin: 18px -6px 0; }
    .classes__note { font-size: 11px; letter-spacing: -0.02em; }     /* eight prices side by side must not touch */
    .shopgrid { --card-x: 20px; }
    .shopgrid .card__title { font-size: 19px; line-height: 1.21053; letter-spacing: .012em; }
}

/* ─── PHONE ───────────────────────────────────────────────────────────────── */

@media (max-width: 734px) {
    .shop { padding-bottom: 88px; }
    .shop__head { padding-top: 40px; }
    .shop__title { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
    .when { margin-top: 32px; }
    .shopbar { margin-top: 48px; align-items: center; }
    .toolbar__actions { flex: 1 1 100%; }
    .priceview { flex: 1 1 100%; }
    .priceview button { flex: 1 1 0; }
    .shopbar__title { font-size: 24px; line-height: 1.16667; letter-spacing: .009em; }
    .classes { width: 100%; margin-top: 12px; }
    .classes__list { padding-inline: calc((100% - var(--w)) / 2); scroll-padding-inline: calc((100% - var(--w)) / 2); }
    .classes__list { gap: 4px; }
    .classes__list li { flex: none; }
    .classes__item { min-width: 104px; padding-inline: 6px; }
    .classes__note { font-size: 12px; letter-spacing: -0.01em; }
    .classes__item img { width: 92px; height: 42px; }
    .classes__glyph { height: 42px; width: 42px; }
    .shopgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .results__note { padding: 64px 20px; }

    /* The calendar opens centred on the screen, not pinned to the left edge under a half-width field. */
    .results__note-title { font-size: 24px; line-height: 1.16667; }

    /* The sheet comes up from the bottom. */
    .overlay { place-items: end center; }
    .overlay__panel {
        width: 100%; height: calc(100dvh - 24px);
        border-radius: 18px 18px 0 0;
        transform: translateY(40px);
    }
    .sheet__head { padding: 20px 16px 8px 24px; }
    .sheet__title { font-size: 28px; line-height: 1.14286; letter-spacing: .007em; }
    .overlay__scroll { padding: 8px 24px 28px; }
    .overlay__foot { padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); }
    .apply { width: 100%; min-width: 0; }
}

@media (max-width: 559px) {
    .shopgrid { grid-template-columns: minmax(0, 1fr); }
    .shopgrid { --card-x: 24px; }
    .shopgrid .card__title { font-size: 21px; line-height: 1.19048; letter-spacing: .011em; }
}

/* ─── PREFERENCES ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .shopgrid .card.is-armed { transform: none; }
    .shopgrid .card, .shopgrid .card:hover, .shopgrid .card__go, .shopgrid .card__media img { transition-duration: .01ms; transform: none; }
    .classes__item img, .classes__item:hover img { transition: none; transform: none; }
    .overlay, .overlay__panel, .calendar { transition: none; }
    .overlay__panel { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .calendar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
    .shopgrid .card, .when__row, .overlay__panel { box-shadow: inset 0 0 0 2px var(--ink); }
    @media (max-width: 900px) {
        .when__row { box-shadow: none; }
        .when__row::before { box-shadow: inset 0 0 0 2px var(--ink); }
    }
    .chip { border-color: var(--ink); }
    .classes__item[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
}

/* ─── FLEET INDEX ─────────────────────────────────────────────────────────── */

/* "Every car in the fleet.": the index under the grid, written by the server (lib/fleetIndex.js). */
.fleet-index { padding: 64px 0 96px; }
.fleet-index__title { font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: .007em; margin-bottom: 32px; }
.fleet-index__cols { columns: 4 220px; column-gap: 32px; }
.fleet-index__make { break-inside: avoid; margin-bottom: 28px; }
.fleet-index__name { font-size: 17px; line-height: 1.23536; font-weight: 600; letter-spacing: -0.022em; margin-bottom: 8px; }
.fleet-index ul { display: grid; gap: 6px; font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }
.fleet-index a { color: var(--link); }
.fleet-index span { color: var(--ink-2); }
