/* =========================================================================
   Rentpa — mobile first.
   The base rules below target a phone. Everything wider is layered on top
   through min-width media queries: 600px (large phone), 768px (tablet),
   1024px (desktop). No max-width query decides layout anywhere.
   ========================================================================= */

:root {
    --bg: #f4f7fa;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --border: #d4dee8;
    --text: #17242f;
    --muted: #5c6f80;
    --accent: #0b6fa4;
    --accent-strong: #07547d;
    --accent-soft: #d9edf9;
    --free: #e7f6ec;
    --free-border: #9fd6b1;
    --booked: #fde3e3;
    --booked-border: #eba3a3;
    --blocked: #e7e9ec;
    --blocked-border: #c3c8ce;
    --danger: #b3261e;
    --ok: #1f7a44;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 36, 54, .06), 0 8px 24px rgba(16, 36, 54, .06);

    /* Minimum comfortable touch target. */
    --tap: 44px;
    --gutter: 1rem;
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    /* 16px base keeps iOS from zooming when a field takes focus. */
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 .6rem;
    overflow-wrap: break-word;
}

h1 {
    font-size: 1.4rem;
}

h2 {
    font-size: 1.15rem;
}

h3 {
    font-size: 1rem;
}

h1:focus {
    outline: none;
}

a {
    color: var(--accent);
}

img {
    max-width: 100%;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: calc(var(--gutter) + var(--safe-l)) calc(var(--gutter) + var(--safe-r));
}

/* ---------- header ---------- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    /* Lets the open nav panel wrap onto its own line under the brand row. */
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding-block: .6rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
    min-width: 0;
}

.brand-mark {
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
}

.brand small {
    display: none;
    color: var(--muted);
    font-size: .78rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
}

/* Closed by default on a phone; the toggle opens it as a full-width panel. */
.site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    width: 100%;
    padding-bottom: .5rem;
}

.site-nav.is-open {
    display: flex;
    border-top: 1px solid var(--border);
    padding-top: .5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: .5rem .7rem;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
}

.nav-link:hover {
    background: var(--surface-2);
}

.nav-link.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
}

.nav-link.as-button {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lang-picker {
    display: flex;
    margin-top: .35rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.lang-picker .lang {
    flex: 1;
    min-height: var(--tap);
    border: 0;
    background: var(--surface);
    padding: .4rem .5rem;
    font-size: .85rem;
    cursor: pointer;
    color: var(--muted);
}

.lang-picker .lang + .lang {
    border-left: 1px solid var(--border);
}

.lang-picker .lang.is-current {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.site-main {
    padding-block: 1.1rem 2rem;
    /* Room for the sticky booking bar and the home indicator. */
    padding-bottom: calc(2rem + var(--safe-b));
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: .85rem;
    padding-block: 1rem;
    padding-bottom: calc(1rem + var(--safe-b));
}

/* ---------- surfaces ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .9rem;
}

.stack > * + * {
    margin-top: .9rem;
}

.grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: 1fr;
}

.split {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: start;
}

.muted {
    color: var(--muted);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: end;
}

/* ---------- forms ---------- */

.field {
    display: block;
    margin-bottom: .8rem;
}

.field > span {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .25rem;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=date],
select,
textarea {
    width: 100%;
    min-height: var(--tap);
    padding: .55rem .65rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: inherit;
    /* Never below 16px: smaller text makes iOS Safari zoom the page on focus. */
    font: inherit;
    font-size: 1rem;
}

input[type=file] {
    width: 100%;
    font-size: .95rem;
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: var(--tap);
}

.checkbox input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    flex: 0 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* On a phone a lone action reads better full width. */
.btn.block {
    width: 100%;
}

.btn:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.btn.secondary {
    background: var(--surface);
    color: var(--accent-strong);
}

.btn.secondary:hover {
    background: var(--accent-soft);
}

.btn.danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn.small {
    min-height: 40px;
    padding: .3rem .7rem;
    font-size: .85rem;
}

/* ---------- payment method picker ---------- */

.pay-methods {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
}

.pay-methods legend {
    padding: 0;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .35rem;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: var(--tap);
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.pay-method + .pay-method {
    margin-top: .5rem;
}

.pay-method.is-current {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pay-method input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.pay-method small {
    display: block;
    font-size: .8rem;
}

.provider-head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: .5rem;
}

/* ---------- messages ---------- */

.alert {
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 10px;
    padding: .7rem .8rem;
    background: var(--surface);
}

.alert-error {
    border-left-color: var(--danger);
    color: #7a1a15;
    background: #fdecea;
}

.alert-ok {
    border-left-color: var(--ok);
    background: #e8f6ee;
}

.alert-info {
    border-left-color: var(--accent);
    background: var(--accent-soft);
}

.validation-message {
    color: var(--danger);
    font-size: .85rem;
}

.invalid {
    outline: 1px solid var(--danger);
}

/* ---------- tables ----------
   Phones get stacked cards driven by each cell's data-label; from 768px up
   the same markup becomes a real table again. */

.table-scroll {
    overflow-x: visible;
}

/* Each row is its own card on a phone, so the wrapper must not draw a second one. */
.table-scroll.card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

table.data {
    display: block;
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background: transparent;
}

table.data thead {
    /* Visually hidden, still announced to screen readers on wide layouts. */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

table.data tbody,
table.data tr,
table.data td {
    display: block;
    width: 100%;
}

table.data tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .5rem .75rem;
    margin-bottom: .6rem;
}

table.data td {
    border: 0;
    padding: .3rem 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    overflow-wrap: anywhere;
}

table.data td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    text-align: left;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

table.data td:empty {
    display: none;
}

/* The actions cell holds buttons; give them room and drop the label. */
table.data td.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .4rem;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
    margin-top: .35rem;
}

table.data td.actions::before {
    display: none;
}

.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.badge.ok {
    background: var(--free);
    border-color: var(--free-border);
    color: #14532d;
}

.badge.warn {
    background: #fff3d6;
    border-color: #e5c168;
    color: #6b4a05;
}

.badge.off {
    background: var(--booked);
    border-color: var(--booked-border);
    color: #7a1a15;
}

/* ---------- vehicle cards ---------- */

.vehicle-card h3 {
    margin-bottom: .15rem;
}

.vehicle-card .price {
    font-size: 1.05rem;
    font-weight: 600;
}

.price-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem .75rem;
    font-size: .95rem;
}

.price-list dt {
    color: var(--muted);
}

.price-list dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- pictures ---------- */

.vehicle-card .cover {
    display: block;
    margin: -.9rem -.9rem 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
}

.vehicle-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery {
    padding: .5rem;
}

.gallery-main {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-2);
    display: block;
}

.gallery-strip,
.image-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.gallery-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-pick {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
}

.gallery-pick.is-current {
    border-color: var(--accent);
}

.gallery-pick img {
    width: 4.5rem;
    height: 3.4rem;
    object-fit: cover;
    display: block;
}

.image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}

.image-thumb {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    width: 100%;
}

.image-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.image-thumb figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    padding: .35rem .4rem;
    background: var(--surface);
    font-size: .75rem;
}

/* ---------- week calendar ----------
   Phone: one day at a time, full-width rows big enough to tap.
   Tablet and up: the seven-day grid. */

.calendar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
}

.calendar-range {
    flex: 1 0 100%;
    order: -1;
    font-weight: 600;
    font-size: .95rem;
}

.calendar-head .btn {
    flex: 1;
}

/* -- phone day view -- */

.day-tabs {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
    margin-bottom: .5rem;
}

/* Swipeable strips: the scrollbar is noise on a touch screen. */
.day-tabs,
.gallery-strip {
    scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar,
.gallery-strip::-webkit-scrollbar {
    display: none;
}

.day-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 3.6rem;
    min-height: var(--tap);
    padding: .3rem .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .8rem;
    line-height: 1.25;
    cursor: pointer;
    text-align: center;
}

.day-tab.is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.day-tab strong {
    display: block;
    font-size: .95rem;
}

.day-tab .free-count {
    display: block;
    font-size: .7rem;
    opacity: .8;
}

.day-tab.is-full .free-count {
    opacity: .55;
}

.hour-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
}

.hour-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    min-height: var(--tap);
    padding: .4rem .6rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    text-align: left;
}

.hour-slot .hour {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hour-slot .state {
    font-size: .72rem;
    color: var(--muted);
}

.hour-slot.free {
    background: var(--free);
    border-color: var(--free-border);
}

.hour-slot.booked {
    background: var(--booked);
    border-color: var(--booked-border);
}

.hour-slot.blocked {
    background: var(--blocked);
    border-color: var(--blocked-border);
}

.hour-slot.past {
    background: var(--surface-2);
    color: var(--muted);
    opacity: .65;
}

.hour-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.hour-slot.selected .state {
    color: rgba(255, 255, 255, .85);
}

.hour-slot[disabled] {
    cursor: not-allowed;
}

/* -- the seven-day grid, hidden on phones -- */

.calendar-scroll {
    display: none;
    overflow-x: auto;
}

table.calendar {
    border-collapse: collapse;
    width: 100%;
    font-size: .8rem;
}

table.calendar th {
    background: var(--surface-2);
    padding: .3rem;
    font-weight: 600;
    border: 1px solid var(--border);
    white-space: nowrap;
}

table.calendar th.hour-col {
    width: 3.4rem;
    text-align: right;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

table.calendar td {
    border: 1px solid var(--border);
    padding: 0;
    height: 1.6rem;
}

.slot {
    display: block;
    width: 100%;
    height: 1.6rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.slot.free {
    background: var(--free);
}

.slot.free:hover {
    background: var(--free-border);
}

.slot.booked {
    background: var(--booked);
    cursor: not-allowed;
}

.slot.blocked {
    background: var(--blocked);
    cursor: not-allowed;
}

.slot.past {
    background: repeating-linear-gradient(45deg, #f0f2f5, #f0f2f5 4px, #e6e9ed 4px, #e6e9ed 8px);
    cursor: not-allowed;
}

.slot.selected {
    background: var(--accent);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .6rem;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.legend i {
    width: 1rem;
    height: .8rem;
    border: 1px solid var(--border);
    display: inline-block;
}

.legend i.free {
    background: var(--free);
}

.legend i.booked {
    background: var(--booked);
}

.legend i.blocked {
    background: var(--blocked);
}

.legend i.selected {
    background: var(--accent);
}

/* ---------- sticky booking bar (phone only) ---------- */

.booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem calc(var(--gutter) + var(--safe-r)) calc(.6rem + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16, 36, 54, .12);
}

.booking-bar .summary {
    min-width: 0;
    flex: 1;
    font-size: .85rem;
    line-height: 1.3;
}

.booking-bar .summary strong {
    display: block;
    font-size: 1rem;
}

.booking-bar .btn {
    flex: 0 0 auto;
}

/* Keeps the last card clear of the fixed bar. */
.booking-bar-spacer {
    height: calc(4.5rem + var(--safe-b));
}

/* ---------- misc ---------- */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: var(--radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* =========================================================================
   Indexable extras — town links and the front page prose
   ========================================================================= */

/* The dropdown filters the catalogue for people; these links do the same job for a
   crawler, which follows anchors and never fires a change event. */
.town-links,
.type-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.5rem;
}

/* The kind of machine is the first choice a visitor makes, so it reads as a segmented
   control rather than as one more chip row. */
.type-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: .35rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.type-links a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.type-links a.is-current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.town-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: .35rem .75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-strong);
    font-size: .9rem;
    text-decoration: none;
}

.town-links a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.town-links a.is-current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.seo-copy {
    margin-top: 1.5rem;
}

.seo-copy h2 {
    margin: 0;
    font-size: 1.15rem;
}

.faq {
    margin: 0;
}

.faq dt {
    margin-top: 1rem;
    font-weight: 600;
}

.faq dt:first-child {
    margin-top: 0;
}

.faq dd {
    margin: .25rem 0 0;
    color: var(--muted);
}

/* =========================================================================
   600px and up — large phones and small tablets
   ========================================================================= */

@media (min-width: 600px) {
    :root {
        --gutter: 1.25rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .brand small {
        display: block;
    }

    .card {
        padding: 1rem 1.1rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .calendar-head .btn {
        flex: 0 0 auto;
    }

    .calendar-range {
        flex: 0 0 auto;
        order: 0;
        margin-left: .25rem;
    }

    .hour-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .btn.block {
        width: auto;
    }

    .vehicle-card .cover {
        margin: -1rem -1.1rem 0;
    }
}

/* =========================================================================
   768px and up — tablets. Tables become tables, calendar becomes the grid.
   ========================================================================= */

@media (min-width: 768px) {
    .table-scroll {
        overflow-x: auto;
        border-radius: var(--radius);
    }

    .table-scroll.card {
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .btn.small {
        min-height: 32px;
        padding: .3rem .55rem;
    }

    table.data {
        display: table;
        background: var(--surface);
        font-size: .92rem;
        /* Columns size to their content and the wrapper scrolls, rather than
           squeezing cells until words break mid-letter. */
        width: 100%;
        min-width: max-content;
    }

    table.data thead {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        clip-path: none;
    }

    table.data tbody {
        display: table-row-group;
    }

    table.data tr {
        display: table-row;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    table.data th,
    table.data td {
        display: table-cell;
        width: auto;
        border: 0;
        border-bottom: 1px solid var(--border);
        padding: .5rem .6rem;
        text-align: left;
        vertical-align: top;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    /* Free text is the one thing allowed to wrap. */
    table.data td.wrap {
        white-space: normal;
        max-width: 22rem;
    }

    table.data th {
        background: var(--surface-2);
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--muted);
    }

    table.data td::before {
        display: none;
    }

    table.data td.actions {
        display: table-cell;
        border-top: 0;
        margin-top: 0;
        padding-top: .5rem;
        white-space: nowrap;
    }

    table.data td:empty {
        display: table-cell;
    }

    /* Day view gives way to the full week. */
    .day-tabs,
    .hour-list {
        display: none;
    }

    .calendar-scroll {
        display: block;
    }

    table.calendar {
        min-width: 620px;
    }

    table.calendar th {
        position: sticky;
        top: 0;
    }

    /* The bar is a phone affordance; the sidebar CTA is visible on tablets. */
    .booking-bar,
    .booking-bar-spacer {
        display: none;
    }

    .gallery-main {
        aspect-ratio: 16 / 10;
        max-height: 26rem;
        object-fit: contain;
    }

    .gallery-pick img {
        width: 5rem;
        height: 3.75rem;
    }
}

/* =========================================================================
   1024px and up — desktop. Horizontal nav, two-column pages.
   ========================================================================= */

@media (min-width: 1024px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
        padding-block: .75rem;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav,
    .site-nav.is-open {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        gap: .25rem .4rem;
        padding-top: 0;
        padding-bottom: 0;
        border-top: 0;
    }

    .nav-link {
        min-height: 0;
        padding: .4rem .6rem;
        font-size: .93rem;
    }

    .nav-link.as-button {
        width: auto;
    }

    .lang-picker {
        margin: 0 0 0 .5rem;
    }

    .lang-picker .lang {
        flex: 0 0 auto;
        min-height: 0;
        padding: .35rem .55rem;
        font-size: .8rem;
    }

    .split {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 1.25rem;
    }

    .site-main {
        padding-block: 1.5rem 3rem;
    }
}

/* =========================================================================
   Preferences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
