/* hotel-nocturne: editorial and interaction layer (2026-10-12), loaded after the shared demo bundle. */

/* Depth (2026-10-12). A night under the desert sky: the stars sit at a different depth from the hotel, so the scene parallaxes like looking up from the courtyard. Pointer devices only; off under reduced motion. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body[data-demo="hotel-nocturne"] .hero > img {
    translate: calc(var(--dx-px, 0) * -10px) calc(var(--dx-py, 0) * -6px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  /* The room selector pins its cards flat; let the pointer tilt win on pointer devices. */
  body[data-demo="hotel-nocturne"] .room-selector-section .room-card.dx-tilt {
    transform: perspective(1000px) rotateX(var(--dx-rx, 0deg)) rotateY(var(--dx-ry, 0deg));
  }

  body[data-demo="hotel-nocturne"] .hero > .nocStars {
    translate: calc(var(--dx-px, 0) * -26px) calc(var(--dx-py, 0) * -16px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

/* Registered foreground layers: original source pixels, segmented alpha (2026-10-13). */
body[data-authored-demo][data-demo="hotel-nocturne"] .hero { isolation: isolate; }
body[data-authored-demo][data-demo="hotel-nocturne"] .hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; pointer-events:none; scale:1.08; z-index:-5; }
body[data-authored-demo][data-demo="hotel-nocturne"] .hero > .dx-foreground { z-index:-3; }
body[data-authored-demo][data-demo="hotel-nocturne"] .hero > .veil { z-index:-1; }
body[data-authored-demo][data-demo="hotel-nocturne"] .hero > .dx-light { z-index:-2; }
body[data-authored-demo][data-demo="hotel-nocturne"] .hero > .nocStars { z-index:-4; }
@media(prefers-reduced-motion:reduce) { body[data-authored-demo][data-demo="hotel-nocturne"] .hero > img { animation:none!important; translate:none!important; transition:none!important; } }
@supports(animation-timeline:scroll()) { @media(prefers-reduced-motion:no-preference) and (hover:none) { body[data-authored-demo][data-demo="hotel-nocturne"] .hero > img { animation-name:dx-settle,dx-drift; animation-duration:2.4s,auto; animation-timing-function:cubic-bezier(.2,.7,.2,1),linear; animation-fill-mode:both; animation-timeline:auto,scroll(root); animation-range:normal,0 100vh; } } }

/* Booking bar (2026-10-13). Leading boutique hotel sites put dates and guests on the first screen, next to the
   best-rate guarantee, so checking a stay is one step. The choices travel to the visit page's booking brief through
   the shared data-carry mechanism (no form is submitted from here). */
body[data-demo="hotel-nocturne"] .hero .copy .nocBook {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  margin-top: 28px;
  border: 1px solid rgba(235, 224, 200, 0.28);
  background: rgba(235, 224, 200, 0.18);
  color-scheme: dark;
}
body[data-demo="hotel-nocturne"] .nocBook label {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(9, 9, 13, 0.82);
  color: #d2a45c;
  font-family: "Demo Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body[data-demo="hotel-nocturne"] .nocBook :is(input, select) {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ebe0c8;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
body[data-demo="hotel-nocturne"] .nocBook select option {
  background: #121216;
}
body[data-demo="hotel-nocturne"] .nocBook :is(input, select):focus-visible {
  outline: 2px solid #d2a45c;
  outline-offset: 4px;
}
body[data-demo="hotel-nocturne"] .hero .copy .nocBook > a {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 18px 22px;
  border-radius: 0;
  clip-path: none;
  background: #d2a45c;
  color: #111;
  font-family: "Demo Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
body[data-demo="hotel-nocturne"] .hero .copy .nocBook > a:hover {
  background: #e4bd7a;
}
@media (max-width: 800px) {
  body[data-demo="hotel-nocturne"] .hero .copy .nocBook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-demo="hotel-nocturne"] .nocBook label:nth-of-type(3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  body[data-demo="hotel-nocturne"] .nocBook :is(input, select) {
    min-height: 40px;
    font-size: 16px;
  }
}
@media (max-width: 800px) {
  body[data-demo="hotel-nocturne"] .nocBook label {
    font-size: 11px;
  }
  body[data-demo="hotel-nocturne"] a[href="/work/hotel-nocturne/experience"]:not(header a):not(nav a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Keyboard focus on the day timeline (2026-10-13): the time buttons showed no focus indicator. */
body[data-demo="hotel-nocturne"] .clock-time:focus-visible {
  outline: 2px solid #d2a45c;
  outline-offset: 4px;
}
