/* ==========================================================================
   Fully Ups accommodation demos: shared foundation
   Each property sets its own tokens and layout in its own stylesheet.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* Motion tokens shared by every demo */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrances, presses, hovers that move */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* things that change on screen: menus, crossfades */
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1.1rem; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.6; }

/* ---- Photo frames with a graceful fallback ----------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph, #d9d3c7);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--failed img { opacity: 0; }
.ph--failed::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 1rem; text-align: center;
  font: 500 .8125rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ph-ink, rgba(0,0,0,.45));
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(0,0,0,.06) 50%, transparent 50.4%),
    var(--ph, #d9d3c7);
}

/* ---- Demo label: a quiet, persistent way back to the Fully Ups demos ---- */
.demo-pill {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .8rem .5rem .6rem;
  background: rgba(18, 20, 22, .72); color: #F4F1EA;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .75rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .02em;
  text-decoration: none; border-radius: 4px;
  transition: background .2s ease, transform .14s var(--ease-out);
}
.demo-pill:hover { background: #131A42; }
.demo-pill:active { transform: scale(.97); }
.demo-pill .icon { width: .9rem; height: .9rem; }

/* ---- Date fields shown as "Fri 30 Oct" ------------------------------- */
.datefield { position: relative; }
.datefield input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  opacity: 0; cursor: pointer; z-index: 1; padding: 0; border: 0;
}
.datefield input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.datefield__value { display: flex; align-items: center; min-height: 3rem; padding: .7rem .85rem; background: var(--field-bg, #fff); border: 1px solid var(--line); border-radius: var(--radius-field, 10px); font-size: 1rem; line-height: 1.3; transition: border-color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.datefield.is-empty .datefield__value { color: var(--muted); }
.datefield:hover .datefield__value { border-color: var(--muted); }
.datefield:focus-within .datefield__value { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring, rgba(0,0,0,.12)); }
.datefield input[aria-invalid="true"] + .datefield__value { border-color: var(--error); }

/* ---- Hero slideshow ----------------------------------------------------- */
.show { position: absolute; inset: 0; overflow: hidden; }
.show__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.show__slide.is-active { opacity: 1; }
.show__slide img { transform: scale(1.1); }
.show__slide.is-active img { animation: kenburns 9s linear forwards; }
.show.is-paused .show__slide img { animation-play-state: paused; }
.show__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease-in-out); pointer-events: none; }
.show.has-video .show__video { opacity: 1; }
.show.has-video .show__slide img { animation: none; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1.0); } }
.show-toggle {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: transparent; color: #fff;
  transition: background .25s ease, border-color .25s ease;
}
.show-toggle:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.show-toggle__pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.show-toggle__play { display: none; width: 0; height: 0; margin-left: 3px; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.show-toggle[aria-pressed="true"] .show-toggle__pause { display: none; }
.show-toggle[aria-pressed="true"] .show-toggle__play { display: block; }

/* ---- Plain question and answer list ---------------------------------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 4.5rem); margin: 0; }
.qa div { display: grid; gap: .5rem; align-content: start; }
.qa dt { font-weight: 600; }
.qa dd { margin: 0; color: var(--muted); }

/* ---- Forms (structure; colours come from each property) ---------------- */
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field .label { font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .8rem 1rem;
  background: var(--field-bg, #fff); border: 1px solid var(--line); border-radius: var(--radius-field, 10px);
  font: inherit; font-size: 1rem; line-height: 1.3; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23736A5E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 11px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring, rgba(0,0,0,.12)); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 14%, transparent); }
.field-error { display: flex; gap: .4rem; align-items: baseline; font-size: .8125rem; line-height: 1.4; color: var(--error); font-weight: 500; }
.field-error:not(:empty)::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; transform: translateY(-.05rem); }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: 1.25rem; height: 1.25rem; border-radius: 4px; min-height: 0; margin: .2rem 0 0; accent-color: var(--accent); flex: none; }
.field--check label { text-transform: none; letter-spacing: 0; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.field--check .field-error { flex-basis: 100%; }
.field--check { flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }
.js-note { font-size: .875rem; color: var(--muted); }

.counter { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--field-bg, #fff); border-radius: var(--radius-field, 10px); min-height: 3.25rem; overflow: hidden; }
.counter input { border: 0 !important; box-shadow: none !important; text-align: center; min-height: 0; -moz-appearance: textfield; appearance: textfield; padding: 0; background: transparent; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter button { width: 3.25rem; flex: none; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.counter button:disabled { opacity: .3; cursor: not-allowed; }
.counter button:hover:not(:disabled) { color: var(--accent); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-btn, 0);
  font-weight: 600; font-size: .9375rem; line-height: 1.2; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .14s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon--go { transform: translateX(3px); } }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover, var(--ink)); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--link { min-height: 0; padding: .4rem 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

/* ---- Booking ----------------------------------------------------------- */
.booking__note {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .85rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-field, 10px) var(--radius-field, 10px) 0;
  background: var(--note-bg, rgba(0,0,0,.04));
  font-size: .9rem; line-height: 1.5;
}
.booking__note .icon { margin-top: .15rem; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; margin-top: -1px; padding: .9rem 1rem 0 0; border-top: 2px solid transparent; font-size: .8125rem; font-weight: 500; line-height: 1.35; color: var(--muted); transition: border-color .3s ease, color .3s ease; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .2rem; font-size: .75rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.steps li[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); }
.steps li.is-done { border-top-color: var(--line); color: var(--ink); }
.steps li.is-done::before { content: "\2713  Done"; color: var(--accent); }
.steps li[aria-current="step"]::before { color: var(--accent); }
@media (max-width: 479px) { .steps li { font-size: .72rem; padding-right: .5rem; } }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bk-step, .bk-step > fieldset { display: grid; gap: 1.5rem; }
.bk-step [data-step-title] { outline: none; }
.bk-step [data-step-title]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.bk-grid .full { grid-column: 1 / -1; }
.bk-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }

.results__intro { font-weight: 500; }
.results { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.result {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card, 16px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.result__img { aspect-ratio: 4 / 3; border-radius: calc(var(--radius-card, 16px) * .6); overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .result:not(.result--off):hover { border-color: var(--muted); box-shadow: 0 14px 30px -22px rgba(30, 24, 16, .45); transform: translateY(-2px); }
}
.result__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; font-weight: var(--display-weight, 500); }
.result__meta { font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.result__reason { font-size: .8125rem; color: var(--error); margin-top: .35rem; font-weight: 500; }
.result__price { text-align: right; display: grid; gap: .35rem; justify-items: end; }
.result__price p span { color: var(--muted); font-size: .8125rem; }
.result__total { font-size: .8125rem; color: var(--muted); }
.result--off { opacity: .62; }
.result--off .result__img { filter: grayscale(.7); }
.result--preferred:not(.result--off) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.summary { position: sticky; top: 6.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card, 16px); display: grid; gap: 1rem; }
.summary__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; font-weight: var(--display-weight, 500); }
.summary__empty, .summary__inc, .summary__demo { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.summary__demo { padding-top: .9rem; border-top: 1px solid var(--line); font-size: .78rem; }
.lines { display: grid; gap: .55rem; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.lines dt { color: var(--muted); }
.lines dd { text-align: right; font-weight: 500; }
.lines--price { padding-top: .9rem; border-top: 1px solid var(--line); }
.lines__total { padding-top: .6rem; margin-top: .2rem; border-top: 1px solid var(--line); }
.lines__total dt { color: var(--ink); font-weight: 600; }
.lines__total dd { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.bk-review { display: grid; gap: 1rem; }
.review__capacity { display: grid; gap: .6rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card, 16px); }
.meter { height: .45rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.review__note { font-size: .9rem; color: var(--muted); }

.confirm__ref { font-size: .875rem; color: var(--muted); }
.confirm__ref strong { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.confirm__lead { font-size: 1.125rem; }
.confirm__notice { padding: 1rem 1.15rem; border: 1px dashed var(--accent); border-radius: var(--radius-field, 10px); background: var(--note-bg, rgba(0,0,0,.04)); font-size: .9375rem; line-height: 1.55; }
.confirmation { display: grid; gap: 1.25rem; }

/* ---- Motion: hidden states only while animation is running ------------ */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i { display: inline-block; will-change: transform; }
.js-anim [data-reveal], .js-anim [data-hero-item], .js-anim [data-hero-panel] { opacity: 0; visibility: hidden; }
.js-anim [data-stagger] > * { opacity: 0; visibility: hidden; }
.js-anim [data-hero-media], .js-anim [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---- Scroll scenes (demo-scroll.js). Defaults are the final, readable state. */
.expand { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; isolation: isolate; }
.expand__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.expand__ph { width: 100%; height: 100%; }
.expand__lead { display: none; }
.expand.is-scrolling .expand__lead { display: block; position: absolute; left: 0; right: 0; bottom: 7%; z-index: 1; padding-inline: 1.25rem; text-align: center; text-wrap: balance; }
[data-hpin].is-hpinned { overflow: hidden; }
[data-hpin].is-hpinned [data-hpin-track] { overflow: visible; scroll-snap-type: none; }
[data-scale-in] { transform-origin: 50% 60%; }
@media (max-width: 767px) { .expand.is-scrolling .expand__lead { bottom: 9%; } }

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 1023px) {
  .booking__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 767px) { .qa { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .bk-grid { grid-template-columns: 1fr; }
  .result { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; }
  .result__price { grid-column: 1 / -1; grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: center; padding-top: .75rem; border-top: 1px solid var(--line); }
  .result__price .btn { grid-row: span 2; justify-self: end; }
  .demo-pill { left: .75rem; bottom: .75rem; }
  .demo-pill span { display: none; }
  .search__note { padding-left: 3.75rem !important; text-align: left !important; }
}
/* Touch screens: every control gets at least a 44px target without changing the layout */
@media (pointer: coarse) {
  .demo-pill { min-height: 2.75rem; min-width: 2.75rem; justify-content: center; }
  .show-toggle { width: 2.75rem !important; height: 2.75rem !important; }
  .search select, .search .datefield__value { min-height: 2.75rem !important; }
  .search .counter, .search .counter button { min-height: 2.75rem; }
  .search .counter button { width: 2.75rem; }
  .brand, .textlink, .nav__menu, .nav__reserve, .nav__toggle { position: relative; }
  .brand::after, .textlink::after, .nav__menu::after, .nav__reserve::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 2.75rem); height: max(100%, 2.75rem); transform: translate(-50%, -50%);
  }
  .nav__book { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .footer nav { gap: 0 !important; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Reduced motion: keep colour and opacity changes, drop movement and zoom */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .show__slide img, .show__slide.is-active img { animation: none; transform: none; }
  .btn:active, .demo-pill:active { transform: none; }
}
