/* ALKYON Yachts: the 360° walk-through. Full screen; the same colours and type as the rest of the site. */
:root { --deep: #06131d; --ice: #eaf4f6; --serif: "Cormorant Garamond", Georgia, serif; --mono: "DM Mono", ui-monospace, monospace; --sans: "Inter", ui-sans-serif, sans-serif; --ease: cubic-bezier(0.22, 1, 0.36, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--ice); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.tour { position: fixed; inset: 0; }
.t-view { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; }
.t-view:active { cursor: grabbing; }
.t-view canvas { display: block; width: 100%; height: 100%; }
.t-fade { position: absolute; inset: 0; background: #000; opacity: 1; pointer-events: none; }

/* doors */
.t-doors { position: absolute; inset: 0; pointer-events: none; }
.t-door { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transition: opacity 250ms; }
.t-door.is-hidden { opacity: 0; pointer-events: none; }
.t-ring { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.9); background: rgb(6 19 29 / 0.35); backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); transition: transform 300ms var(--ease), background 300ms; }
.t-ring::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }
.t-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.t-door:hover .t-ring, .t-door:focus-visible .t-ring { transform: scale(1.12); background: rgb(255 255 255 / 0.25); }
.t-door-lbl { padding: 7px 12px; border-radius: 99px; background: rgb(6 19 29 / 0.78); font: 500 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; color: #fff; }

/* top bar */
.t-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 18px; padding: 18px 22px 40px; background: linear-gradient(180deg, rgb(4 14 22 / 0.7), rgb(4 14 22 / 0)); pointer-events: none; }
.t-top > * { pointer-events: auto; }
.t-exit { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.4); color: #fff; text-decoration: none; font-size: 20px; background: rgb(6 19 29 / 0.4); }
.t-exit:hover { background: rgb(255 255 255 / 0.14); }
.t-where { margin-right: auto; }
.t-yacht { margin: 0 0 4px; font: 500 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
.t-room { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; text-shadow: 0 2px 14px rgb(0 0 0 / 0.4); }
.t-rooms-btn { height: 44px; padding: 0 20px; border-radius: 99px; border: 0; background: #fff; color: var(--deep); font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.t-rooms { position: absolute; right: 22px; top: 76px; display: grid; min-width: 220px; padding: 8px; border-radius: 12px; background: rgb(6 19 29 / 0.92); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgb(0 0 0 / 0.4); }
.t-rooms[hidden] { display: none; }
.t-rooms button { padding: 12px 14px; border: 0; border-radius: 8px; background: none; text-align: left; font-family: var(--serif); font-size: 20px; cursor: pointer; }
.t-rooms button:hover { background: rgb(255 255 255 / 0.08); }
.t-rooms button[aria-current] { background: rgb(255 255 255 / 0.14); }

/* switches */
.t-panel { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgb(6 19 29 / 0.7); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgb(0 0 0 / 0.4); }
.t-switch { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 14px; border: 0; border-radius: 99px; background: none; color: rgb(255 255 255 / 0.85); font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 250ms, color 250ms; }
.t-switch:hover { background: rgb(255 255 255 / 0.1); }
.t-switch[aria-pressed="true"] { background: #fff; color: var(--deep); }
.t-switch[hidden] { display: none; }
.t-ico { display: grid; width: 22px; height: 22px; }
.t-ico svg { width: 22px; height: 22px; }
.t-help { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 8px); margin: 0; padding: 8px 14px; border-radius: 99px; background: rgb(6 19 29 / 0.6); font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity 600ms, transform 600ms var(--ease); pointer-events: none; }
.t-help.is-in { opacity: 1; transform: translate(-50%, 0); }
.t-help.is-off { opacity: 0; }
.t-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.t-loading[hidden] { display: none; }
.t-note { position: absolute; right: 18px; bottom: 10px; margin: 0; font-size: 11px; color: rgb(255 255 255 / 0.55); }

@media (max-width: 760px) {
  .t-top { padding: 14px 14px 30px; gap: 12px; }
  .t-room { font-size: 26px; }
  .t-rooms-btn { height: 44px; padding: 0 14px; font-size: 10px; }
  .t-rooms { right: 14px; left: 14px; top: 70px; }
  .t-panel { bottom: 34px; width: calc(100% - 28px); justify-content: space-between; }
  .t-switch { flex: 1; justify-content: center; padding: 0 10px; gap: 6px; font-size: 9px; letter-spacing: 0.1em; }
  .t-help { bottom: 100px; font-size: 9px; }
  .t-note { left: 14px; right: 14px; bottom: 8px; text-align: center; font-size: 10px; }
}

/* engine markers and the engine panel */
.t-eng { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 14px; background: rgb(6 19 29 / 0.72); backdrop-filter: blur(6px); color: #fff; cursor: pointer; pointer-events: auto; box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); transition: opacity 250ms, background 200ms; }
.t-eng:hover { background: rgb(6 19 29 / 0.9); }
.t-eng.is-hidden { opacity: 0; pointer-events: none; }
.t-eng-hp { font-family: var(--serif); font-size: 30px; line-height: 1; }
.t-eng-lbl { font: 500 9px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }
.eng { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #0a1a26; color: var(--ice); overflow: hidden; }
.eng[open] { display: grid; grid-template-columns: 1.3fr 1fr; }
.eng::backdrop { background: rgb(2 8 12 / 0.75); backdrop-filter: blur(6px); }
.eng-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(6 19 29 / 0.6); font-size: 24px; cursor: pointer; }
.eng-view { position: relative; min-height: 460px; background: radial-gradient(ellipse at 50% 30%, #2a3a48, #0b141c 70%); }
.eng-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: none; }
.eng-view.has-film canvas { opacity: 1; }
.eng-still { position: absolute; inset: 0; background-size: 520% auto; background-repeat: no-repeat; }
.eng-view.has-film .eng-still { display: none; }
.eng-explode { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); height: 46px; padding: 0 24px; border: 0; border-radius: 99px; background: #fff; color: var(--deep); font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.eng-explode[hidden], .eng-hint[hidden] { display: none; }
.eng-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.eng-info { padding: 34px 34px 30px; overflow-y: auto; }
.eng-kicker { margin: 0 0 8px; font: 500 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgb(255 255 255 / 0.65); }
.eng-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.eng-hp { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 22px; }
.eng-hp b { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.eng-hp span { font: 500 14px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.eng-hp em { font-style: normal; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 0.65); }
.eng-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 24px; }
.eng-specs dt { font: 500 9px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); }
.eng-specs dd { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; }
.eng-parts-title { margin: 0 0 10px; font: 500 9px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); }
.eng-parts { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: rgb(255 255 255 / 0.85); }
@media (max-width: 760px) {
  .eng[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .eng-view { min-height: 280px; }
  .eng-info { padding: 22px 18px; }
  .eng-hp b { font-size: 56px; }
}

@media (max-width: 760px) { .t-switch { padding: 0 6px; font-size: 8px; } .t-switch .t-ico, .t-switch .t-ico svg { width: 18px; height: 18px; } }

/* ---------- Rooms and 3D tour in the bar (owner, 14/11/2026) ---------- */
.t-go, .t-sws { display: flex; gap: 6px; }
.t-sep { width: 1px; margin: 10px 4px; background: rgb(255 255 255 / 0.18); }
.t-nav { color: #fff; }
.t-nav[aria-expanded="true"] { background: rgb(255 255 255 / 0.16); }
.t-play { background: rgb(255 255 255 / 0.1); }
.t-play[aria-pressed="true"] { background: #e9c98b; color: var(--deep); }
.t-ico svg[fill="currentColor"] { width: 18px; height: 18px; margin: 2px; }
/* the room cards: a row above the bar */
.t-deck { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(1100px, calc(100% - 44px)); padding: 16px 16px 18px; border-radius: 18px; background: rgb(6 19 29 / 0.86); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); animation: t-rise 420ms var(--ease); }
.t-deck[hidden] { display: none; }
@keyframes t-rise { from { opacity: 0; transform: translate(-50%, 14px); } }
.t-deck-title { margin: 0 4px 12px; font: 500 10px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.t-deck-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.t-card { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0b1e2b; color: #fff; text-align: left; cursor: pointer; aspect-ratio: 16 / 10; outline-offset: 2px; transition: transform 350ms var(--ease), box-shadow 350ms; }
.t-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.78); transition: transform 700ms var(--ease), filter 350ms; }
.t-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(4 14 22 / 0.85), rgb(4 14 22 / 0) 55%); }
.t-card span { position: absolute; z-index: 1; left: 10px; bottom: 9px; right: 8px; font-family: var(--serif); font-size: 18px; line-height: 1.05; }
.t-card em { position: absolute; z-index: 1; right: 8px; top: 8px; padding: 4px 7px; border-radius: 99px; background: rgb(6 19 29 / 0.75); font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: 0.12em; }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(0 0 0 / 0.4); }
.t-card:hover img { transform: scale(1.06); filter: brightness(1); }
.t-card[aria-current] { box-shadow: inset 0 0 0 2px #fff; }
.t-card[aria-current]::before { content: "You are here"; position: absolute; z-index: 2; left: 8px; top: 8px; padding: 4px 7px; border-radius: 99px; background: #fff; color: var(--deep); font: 500 8px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
/* the tour's progress, above the bar */
.t-guide { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; min-width: 300px; padding: 10px 16px 12px; border-radius: 14px; background: rgb(6 19 29 / 0.72); backdrop-filter: blur(10px); font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.t-guide[hidden] { display: none; }
.t-guide-bar { display: block; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.t-guide-bar i { display: block; height: 100%; background: #e9c98b; transform-origin: left; transform: scaleX(0); transition: transform 800ms var(--ease); }
.t-guide:not([hidden]) ~ .t-help { opacity: 0; }

@media (max-width: 760px) {
  .t-panel { flex-wrap: wrap; justify-content: center; border-radius: 22px; bottom: 26px; }
  .t-go { width: 100%; }
  .t-go .t-switch { flex: 1; }
  .t-sep { width: 100%; height: 1px; margin: 0 6px; }
  .t-sws { width: 100%; }
  .t-sws .t-switch { flex: 1; }
  .t-deck { bottom: 150px; width: calc(100% - 28px); padding: 12px; }
  .t-deck-row { grid-auto-columns: 132px; }
  .t-card span { font-size: 15px; }
  .t-guide { bottom: 150px; min-width: 0; width: calc(100% - 28px); font-size: 9px; }
  .t-help { bottom: 154px; }
}
/* the music track list opens above the Music switch (music.js) */
.t-sws { position: relative; }
.t-sws .mpick { right: 0; bottom: calc(100% + 18px); }
@media (max-width: 760px) { .t-sws .mpick { right: 0; left: 0; bottom: calc(100% + 72px); } }
/* the bar keeps its labels on one line, and the help hint steps aside once the bar is used */
.t-panel { width: max-content; max-width: calc(100% - 28px); }
.t-switch { white-space: nowrap; }
.t-help.is-off, .t-deck:not([hidden]) ~ .t-help { opacity: 0; }
@media (max-width: 760px) { .t-panel { width: calc(100% - 28px); } .t-switch { white-space: normal; } }
