/*
 * Online booking — mobile-first styles. Brand values come from CSS variables:
 * the defaults follow Luzes Motel's site (dark surfaces, magenta accents) and
 * each motel overrides --brand-* from its published branding (layouts/app).
 *
 * Themes: the visitor's system setting by default; the header toggle stores a
 * choice in the "theme" cookie and the server sets <html data-theme>. The
 * motel's background/surface/text colours are its dark theme (--dark-*); the
 * light theme keeps its primary/accent colours on light surfaces.
 */
:root {
    --brand-primary: #ca0fd1;
    --brand-accent: #ed06d2;
    --dark-bg: #121212;
    --dark-surface: #1f1f1f;
    --dark-text: #ffffff;
    --brand-bg: var(--dark-bg);
    --brand-surface: var(--dark-surface);
    --brand-text: var(--dark-text);
    --brand-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --surface-2: color-mix(in srgb, var(--brand-surface) 80%, #ffffff 8%);
    --border: color-mix(in srgb, var(--brand-text) 14%, transparent);
    --muted: color-mix(in srgb, var(--brand-text) 62%, transparent);
    --ok: #2ecc71;
    --warn: #f5a623;
    --err: #ff4d6d;
    /* Promotions (sale red, with white text in both themes). */
    --deal: #d61f2c;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --gutter: 16px;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --brand-bg: #f5f4f7;
        --brand-surface: #ffffff;
        --brand-text: #1b1b1f;
        --surface-2: color-mix(in srgb, var(--brand-text) 6%, var(--brand-surface));
        --ok: #1e8e4e;
        --warn: #a8630a;
        --err: #d1294b;
        --shadow: 0 10px 30px rgba(0, 0, 0, .12);
        color-scheme: light;
    }
}
:root[data-theme="light"] {
    --brand-bg: #f5f4f7;
    --brand-surface: #ffffff;
    --brand-text: #1b1b1f;
    --surface-2: color-mix(in srgb, var(--brand-text) 6%, var(--brand-surface));
    --ok: #1e8e4e;
    --warn: #a8630a;
    --err: #d1294b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--brand-font);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .9em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand-primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--muted); }
.note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.link, .link-btn { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { margin-top: 1.5rem; }
.stack { display: grid; gap: 10px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header / footer */
/* The top bar stays dark in both themes: motel logos are drawn for dark backgrounds. */
.site-header {
    --brand-bg: var(--dark-bg);
    --brand-surface: var(--dark-surface);
    --brand-text: var(--dark-text);
    --surface-2: color-mix(in srgb, var(--dark-surface) 80%, #ffffff 8%);
    --border: color-mix(in srgb, var(--dark-text) 14%, transparent);
    --muted: color-mix(in srgb, var(--dark-text) 62%, transparent);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
    color: var(--brand-text);
}
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--brand-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a { text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: .9rem; white-space: nowrap; color: var(--muted); }
.main-nav a.active, .main-nav a:hover { color: var(--brand-text); background: var(--surface-2); }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-size: .8rem; font-weight: 700; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--brand-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 150px; }
.lang-switch a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.lang-switch a:hover, .lang-switch a[aria-current] { background: var(--surface-2); }
.theme-toggle { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--brand-text); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
/* The icon shows the theme a click switches to. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}
.test-banner { background: repeating-linear-gradient(135deg, #f5a623 0 14px, #e8961a 14px 28px); color: #1b1b1f; font-weight: 700; text-align: center; padding: 8px 16px; font-size: .9rem; }
.site-main { flex: 1; padding: 20px 0 48px; }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.site-footer strong { color: var(--brand-text); }
.footer-inner { display: grid; gap: 16px; }
.footer-inner p { margin: .2em 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Progress */
.progress { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 20px; counter-reset: step; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); text-align: center; position: relative; }
.progress li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--border); }
.progress li.done:not(:last-child)::after { background: var(--brand-primary); }
.progress-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); font-weight: 700; font-size: .8rem; background: var(--brand-bg); position: relative; z-index: 1; }
.progress li.done .progress-dot { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.progress li.current .progress-dot { border-color: var(--brand-accent); color: var(--brand-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 25%, transparent); }
.progress li.current { color: var(--brand-text); font-weight: 600; }
@media (max-width: 420px) { .progress-label { display: none; } .progress li.current .progress-label { display: block; position: absolute; top: 34px; white-space: nowrap; } .progress { margin-bottom: 36px; } }

/* Cards, alerts, badges */
.card { background: var(--brand-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.alert-error { background: color-mix(in srgb, var(--err) 14%, transparent); border-color: color-mix(in srgb, var(--err) 45%, transparent); }
.alert-info { background: color-mix(in srgb, var(--brand-primary) 14%, transparent); border-color: color-mix(in srgb, var(--brand-primary) 45%, transparent); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.badge-wait { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.badge-no { background: color-mix(in srgb, var(--err) 20%, transparent); color: var(--err); }
.badge-unknown, .badge-status { background: var(--surface-2); color: var(--brand-text); }
.empty { text-align: center; padding: 28px 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary { background: transparent; border-color: var(--brand-primary); color: var(--brand-text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--brand-text); font-size: 1.2rem; display: inline-grid; place-items: center; text-decoration: none; cursor: pointer; }
.icon-btn.disabled { opacity: .3; }

/* Hero */
.hero { margin-bottom: 18px; }
.hero h1 { background: linear-gradient(90deg, var(--brand-text), color-mix(in srgb, var(--brand-accent) 60%, var(--brand-text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.switch-flow { font-size: .92rem; }

/* Suites */
.suite-grid { display: grid; gap: 16px; }
.suite-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.suite-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.suite-media img { width: 100%; height: 100%; object-fit: cover; }
.suite-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: color-mix(in srgb, var(--brand-primary) 60%, transparent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand-primary) 35%, transparent), transparent 60%); }
.suite-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.suite-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.suite-head h2, .suite-head h1 { margin: 0 0 .4em; }
.amenities { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.amenities li { font-size: .78rem; border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.amenities-large li { font-size: .9rem; }
.amenities .amenity-more { padding: 0; border-color: var(--brand-primary); }
.amenities .amenity-more a { display: block; padding: 3px 9px; color: var(--brand-primary); font-weight: 700; text-decoration: none; }
.period-form { margin-top: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.periods { display: grid; gap: 8px; }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.period:has(input:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.period input { accent-color: var(--brand-primary); width: 18px; height: 18px; margin: 0; }
.period-name { flex: 1 0 auto; white-space: nowrap; }
.people-note { margin: 8px 0 0; }
/* The name and perks take the room left by the price, wrapping when needed; never pushing the price out. */
.period-main { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.period-perks { flex: 1 0 100%; min-width: 0; }
.period-main .period-name { flex: none; white-space: normal; overflow-wrap: anywhere; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--ok); font-weight: 600; }
/* A plain white icon on a coloured badge. */
.perk-badge { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #1e8e4e; color: #fff; align-self: center; }
.perk-badge svg { width: 12px; height: 12px; }
.perks li, .price-list .perks li { display: inline-flex; justify-content: flex-start; align-items: center; gap: 6px; padding: 0; border: 0; min-width: 0; }
.perk-title { overflow-wrap: anywhere; }
.perks-details { flex-direction: column; margin-top: 4px; }
.perks-details li, .price-list .perks-details li { flex-wrap: wrap; row-gap: 0; }
.perk-desc { width: 100%; padding-left: 26px; color: var(--muted); font-weight: 400; font-size: .72rem; font-style: italic; line-height: 1.35; white-space: pre-line; }
.price-list-name { display: flex; flex-direction: column; }
.period-price { font-weight: 700; flex: 0 0 auto; max-width: 55%; text-align: right; white-space: nowrap; }
.period-price .price-adjusted { white-space: normal; }
.price-adjusted { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.price-was { color: var(--muted); font-weight: 400; font-size: .85em; }
.price-off { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.suite-detail-body { display: grid; gap: 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 10px; }
.price-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Schedule */
.schedule-layout { display: grid; gap: 16px; margin-bottom: 18px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-head h2 { margin: 0; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-wd { font-size: .72rem; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.calendar-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 600; font-size: .95rem; }
a.calendar-day:hover { background: var(--surface-2); }
.calendar-day.disabled { color: color-mix(in srgb, var(--brand-text) 25%, transparent); font-weight: 400; }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--border); }
.calendar-day.selected { background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; overflow-y: auto; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; text-decoration: none; font-variant-numeric: tabular-nums; font-size: .92rem; }
.chip:hover { border-color: var(--brand-primary); }
.chip.selected { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* Extras */
.extras-layout { display: grid; gap: 18px; }
.extras-group { margin-bottom: 18px; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.product:has(.extra-check:checked) { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.product-image { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.product-image-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.product-image-empty svg { width: 44px; height: 44px; opacity: .6; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
@media (max-width: 559px) {
    /* Two square tiles per row on phones; the summary stays short while sticky. */
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-body { padding: 10px 12px 12px; }
    .product-body h3 { font-size: .98rem; }
    .product-price { font-size: 1.1rem; }
    .extra-toggle { width: 100%; padding: 8px 10px; font-size: .8rem; }
    .extras-layout .sticky-summary > h2, .extras-layout .sticky-summary > .muted { display: none; }
    .extras-layout .sticky-summary { padding: 12px 14px; }
}
.product-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-accent); margin-bottom: 4px; }
.product-body h3 { font-size: 1.1rem; margin-bottom: .4em; }
.product-desc { white-space: pre-line; }
.product-text { margin: 0 0 .9em; }
.product-text summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.product-text summary::-webkit-details-marker { display: none; }
.product-text .clamp-3 { white-space: pre-line; }
.product-text[open] .clamp-3 { display: block; -webkit-line-clamp: unset; overflow: visible; }
.product-text .product-less, .product-text[open] .product-more { display: none; }
.product-text[open] .product-less { display: inline; }
.product-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.visually-hidden, .extra-check { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.extra-toggle { min-height: 40px; padding: 8px 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.extra-toggle svg { width: 16px; height: 16px; flex: none; }
.extra-toggle > span { display: inline-flex; align-items: center; gap: 6px; }
.extra-remove, .extra-check:checked + .extra-toggle .extra-add { display: none !important; }
.extra-check:checked + .extra-toggle .extra-remove { display: inline-flex !important; }
.extra-check:checked + .extra-toggle { border-color: var(--border); color: var(--muted); }
.extra-check:checked + .extra-toggle .extra-remove svg { color: var(--err); }
.extra-check:focus-visible + .extra-toggle { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.extras-count { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; }
.extras-count svg { width: 18px; height: 18px; flex: none; }
.extras-sum { margin-left: auto; background: var(--brand-primary); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.sticky-summary { position: sticky; bottom: 0; align-self: start; display: grid; gap: 8px; box-shadow: var(--shadow); }
.total-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin: 0; }
.total-line strong { font-size: 1.35rem; }

/* Summary / review */
.review-layout, .reservation-details, .form-grid { display: grid; gap: 16px; }
.summary-list { margin: 0 0 14px; display: grid; gap: 8px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 600; }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines td, .lines th { padding: 8px 0; border-top: 1px solid var(--border); text-align: left; font-weight: 400; }
.lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .total { font-size: 1.3rem; font-weight: 800; color: var(--brand-text); }
.lines tfoot th { font-weight: 700; }
.summary-edit { margin: 12px 0 0; font-size: .9rem; }
.how-steps { padding-left: 20px; color: var(--muted); }
.how-steps li { margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-primary); flex: none; }
.check.has-error span { color: var(--err); }

/* Forms */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input:not([type]), select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--brand-bg); color: var(--brand-text); font: inherit; font-size: 16px;
}
input:disabled { opacity: .6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 30%, transparent); }
.has-error input { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.row-2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.auth-layout { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.auth-card.narrow { max-width: 520px; margin: 0 auto; }
.auth-card.alt { background: transparent; }

/* Reservation status */
.status-card { text-align: center; padding: 28px 20px; margin-bottom: 16px; }
.status-card h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
.status-card .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.status-card .stack-row { justify-content: center; }
.spinner { width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%; border: 5px solid color-mix(in srgb, var(--brand-primary) 25%, transparent); border-top-color: var(--brand-accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.status-icon.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.status-icon.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.status-icon.err { background: color-mix(in srgb, var(--err) 20%, transparent); color: var(--err); }
.reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; font-size: 1.1rem; }
.pix { display: grid; gap: 18px; align-items: center; text-align: left; margin: 10px 0 18px; }
.pix-qr { background: #fff; border-radius: var(--radius); padding: 12px; width: min(100%, 280px); margin: 0 auto; }
.pix-qr svg { display: block; width: 100%; height: auto; }
.pix-qr svg .dark, .pix-qr svg rect, .pix-qr svg path { fill: #000; }
.pix-info .amount { font-size: 2rem; font-weight: 800; margin: 0 0 4px; }
.pix-code { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; resize: none; margin-bottom: 10px; word-break: break-all; }
.status-card .how-steps { text-align: left; max-width: 480px; margin: 0 auto 14px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.instructions { text-align: left; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
.invite { margin-bottom: 16px; }

/* Account */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tabs a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--muted); }
.tabs a.active { background: var(--surface-2); color: var(--brand-text); }
.tabs form { margin-left: auto; }
.list-section { margin-bottom: 22px; }
.reservation-row { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; margin-bottom: 10px; padding: 14px 16px; }
.reservation-row:hover { border-color: var(--brand-primary); }
.reservation-row .right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.date-list { list-style: none; padding: 0; margin: 0 0 14px; }
.date-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

@media (min-width: 640px) {
    .suite-grid { grid-template-columns: repeat(2, 1fr); }
    .row-2 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
    .pix { grid-template-columns: 280px 1fr; }
    .auth-layout { grid-template-columns: 3fr 2fr; align-items: start; }
}

@media (min-width: 960px) {
    :root { --gutter: 24px; }
    .suite-grid { grid-template-columns: repeat(3, 1fr); }
    .schedule-layout { grid-template-columns: 3fr 2fr; align-items: start; }
    .extras-layout { grid-template-columns: 1fr 320px; align-items: start; }
    .sticky-summary { top: 84px; bottom: auto; }
    .review-layout, .reservation-details { grid-template-columns: 1fr 1fr; align-items: start; }
    .form-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .suite-detail-body { grid-template-columns: 2fr 1fr; }
}

@media (max-width: 420px) {
    .brand-text { font-size: .95rem; white-space: nowrap; }
    .brand img { height: 32px; }
    .main-nav a { padding: 6px 8px; font-size: .82rem; }
    .header-inner { gap: 8px; }
    .theme-toggle { width: 30px; height: 30px; }
}

/* Suite video: thumbnail until the visitor plays it */
.video { margin-bottom: 18px; }
.video-facade { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); box-shadow: var(--shadow); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video p { margin-top: 6px; }
.media-video { z-index: 3; position: absolute; left: 10px; bottom: 10px; color: #fff; background: rgba(0,0,0,.65); padding: 4px 10px; border-radius: 999px; font-size: .8rem; text-decoration: none; }

/* Photo carousel (suite cards and suite page) */
.carousel { position: relative; overflow: hidden; background: var(--surface-2); outline-offset: -3px; }
.carousel-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.carousel-card { position: absolute; inset: 0; }
.carousel-detail { aspect-ratio: 3 / 2; max-height: 70vh; width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: opacity .15s ease, background .15s ease; }
.carousel-btn:hover { background: rgba(0,0,0,.8); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.carousel-dot[aria-current="true"] { background: #fff; transform: scale(1.25); }
.carousel-count { position: absolute; right: 10px; top: 10px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 999px; font-size: .75rem; z-index: 2; }
/* On phones the arrows stay small; swiping is the main gesture */
@media (max-width: 639px) { .carousel-btn { width: 34px; height: 34px; font-size: 1.3rem; } .carousel-card .carousel-btn:not(:disabled) { opacity: .85; } }
@media (hover: hover) and (min-width: 640px) { .carousel-card .carousel-btn { opacity: 0; } .carousel-card:hover .carousel-btn:not(:disabled), .carousel-card:focus-within .carousel-btn:not(:disabled) { opacity: 1; } }

/* Suite customisation step */
.customize-form { display: grid; gap: 18px; }
.customize-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.customize-group legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; padding: 0; text-transform: none; letter-spacing: normal; color: inherit; }
.customize-warning { margin-bottom: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font-size: .9rem; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-text) 25%, transparent); flex: none; }
.swatch-none .swatch-dot { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--brand-text) 20%, transparent) 4px 6px); }
.swatch:has(input:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent); font-weight: 600; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.summary-customization { font-size: .85rem; }

/* Analytics cookie consent (only for motels with Google Analytics) */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--brand-surface); border-top: 1px solid var(--border); box-shadow: var(--shadow); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.consent-inner p { flex: 1 1 320px; margin: 0; font-size: .9rem; color: var(--muted); }
.consent-inner strong { color: var(--brand-text); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 480px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* Promotions (App\Services\Deals): the badge next to a price, the notice and the calendar's marked days. */
.price-with-deal { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: normal; }
.price-deal { display: inline-block; background: var(--deal); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.period-price:has(.price-with-deal) { white-space: normal; }
.deal-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: color-mix(in srgb, var(--deal) 12%, transparent); border-color: color-mix(in srgb, var(--deal) 45%, transparent); }
.calendar-day.deal { position: relative; }
.calendar-day.deal::after { content: ""; position: absolute; bottom: 14%; width: 5px; height: 5px; border-radius: 50%; background: var(--deal); }
.calendar-day.deal.selected::after { background: #fff; }
