/* ═══════════════════════════════════════════════════════════
   HotelOPEX — Preview (module carousel)
   Layout only. Colours, fonts and tokens come from /styles.css,
   so this page matches the site exactly.
   ═══════════════════════════════════════════════════════════ */

body.preview { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }

/* header: back-to-home (the brand) + language switch */
.pv-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 6px; gap: 12px;
}
.pv-head .brand { font-size: 22px; }
.pv-head .brand .back { color: var(--accent-text); margin-right: 6px; font-weight: 700; }
.pv-head .brand:hover .back { color: var(--accent); }

.pv-lang { display: flex; gap: 4px; }
.pv-lang button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--faint); background: transparent; border: none; cursor: pointer;
  padding: 4px 6px; border-radius: 6px; transition: color .2s, background .2s;
}
.pv-lang button:hover { color: var(--ink); }
.pv-lang button.on { color: var(--accent-ink); background: var(--accent); }

/* the swipe track */
.pv-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1;
}
.pv-track::-webkit-scrollbar { display: none; }

.pv-slide {
  flex: 0 0 100%; min-width: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  padding: 6px 20px 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow-y: auto;
}

.pv-shot {
  width: 100%; max-width: 520px;
  display: flex; align-items: center; justify-content: center;
}
.pv-shot img { max-width: 100%; max-height: min(44dvh, 480px); object-fit: contain; display: block; }

.pv-cap { width: 100%; max-width: 520px; margin-top: 22px; }
.pv-kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-text); font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.pv-kicker .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pv-hl {
  font-weight: 700; font-size: clamp(26px, 7vw, 34px); line-height: 1.1;
  letter-spacing: -.5px; color: var(--ink); margin-bottom: 16px;
}
.pv-lede { font-size: clamp(16px, 4.4vw, 19px); line-height: 1.5; color: var(--muted); font-weight: 500; max-width: 460px; }
.pv-b { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 11px; }
.pv-chk {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  box-shadow: 0 4px 9px -3px color-mix(in oklch, var(--accent) 60%, transparent);
}
.pv-bt { font-size: clamp(15px, 4.2vw, 17px); line-height: 1.34; color: var(--ink); font-weight: 500; }

/* footer: dots */
.pv-foot { padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.pv-dots { display: flex; gap: 9px; }
.pv-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  border: none; padding: 0; cursor: pointer; transition: all .25s;
}
.pv-dot.on { width: 26px; border-radius: 5px; background: var(--accent); }

/* swipe hint (mobile) */
.pv-hint {
  position: fixed; right: 16px; top: 52%; transform: translateY(-50%); pointer-events: none;
  font-family: var(--mono); font-size: 12px; color: var(--muted); opacity: .9;
  animation: pv-nudge 1.6s ease-in-out infinite;
}
@keyframes pv-nudge { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(-50%) translateX(-7px)} }
.pv-hint.gone { display: none; }

/* nav arrows (desktop) */
.pv-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 18px; display: none; align-items: center; justify-content: center;
}
.pv-nav.prev { left: 16px; } .pv-nav.next { right: 16px; }

@media (min-width: 820px) {
  .pv-slide { flex-direction: row; gap: 48px; padding: 20px 40px; max-width: 1120px; margin: 0 auto; align-items: center; justify-content: center; }
  .pv-shot { flex: 0 0 46%; }
  .pv-shot img { max-height: min(72dvh, 660px); }
  .pv-cap { max-width: 420px; margin-top: 0; }
  .pv-nav { display: flex; }
  .pv-hint { display: none; }
}
