/* Belle Ville – walk-in photo tour */
:root {
  --navy: #21274c;
  --ink: #131730;
  --teal: #187999;
  --mint: #a2d9d0;
  --light: #cfd6e3;
  --glass: rgba(19, 23, 48, .62);
  --line: rgba(207, 214, 227, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d1024; }
body { overflow: hidden; font-family: "Manrope", "Segoe UI", sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.tour { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.tour-stage { position: absolute; inset: 0; overflow: hidden; }
.tour-backdrop { position: absolute; inset: -8%; background: center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(120%); transition: background-image .8s; }
.tour.is-flat .tour-backdrop { display: none; }
.tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.tour-canvas:active { cursor: grabbing; }
.tour-flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* soft shading so the controls stay readable over bright rooms */
.tour-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 16, 36, .55), transparent 18%), linear-gradient(0deg, rgba(13, 16, 36, .78), transparent 34%);
}

.tour-pill, .tour-buildings, .tour-sets, .tour-tools, .tour-hint, .tour-arrow {
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}

.tour-top { position: absolute; z-index: 5; top: calc(18px + env(safe-area-inset-top)); left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tour-logo img { display: block; width: 124px; height: auto; }
.tour-buildings { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.tour-buildings button { border: 0; border-radius: 999px; padding: 9px 20px; background: transparent; font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .82); white-space: nowrap; transition: background .25s, color .25s; }
.tour-buildings button[aria-selected="true"] { background: var(--mint); color: var(--navy); }
.tour-top-right { display: flex; gap: 8px; }
.tour-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 700; }

.tour-tools { position: absolute; z-index: 5; right: 22px; top: 50%; transform: translateY(-58%); display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 26px; }
.tour-tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; transition: background .25s, color .25s; }
.tour-tool i { font-size: 15px; color: var(--mint); }
.tour-tool span {
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%); padding: 7px 12px; border-radius: 999px;
  background: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tour-tool:hover, .tour-tool[aria-pressed="true"] { background: rgba(162, 217, 208, .2); }
.tour-tool:hover span, .tour-tool:focus-visible span { opacity: 1; }

.tour-hint { position: absolute; z-index: 4; left: 50%; top: calc(86px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 18px; border-radius: 999px; font-size: 12.5px; text-align: center; white-space: nowrap; pointer-events: none; transition: opacity .8s; }
.tour-hint.is-faded { opacity: 0; }

.tour-bottom { position: absolute; z-index: 5; left: 22px; right: 22px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; pointer-events: none; }
.tour-caption { flex: 1 1 auto; min-width: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.tour-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); }
.tour-title { margin: 4px 0 8px; font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; line-height: 1.02; }
.tour-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; }
.tour-tag { padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(162, 217, 208, .55); color: var(--mint); }
.tour-count { color: var(--light); }
.tour-note { margin-top: 8px; font-size: 11px; color: rgba(255, 255, 255, .6); }

.tour-browser { flex: 0 1 auto; min-width: 0; max-width: min(760px, 60%); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: auto; }
.tour-sets { display: flex; gap: 4px; max-width: 100%; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tour-sets button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 8px 15px; background: transparent; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .8); white-space: nowrap; transition: background .25s, color .25s; }
.tour-sets button[aria-selected="true"] { background: #fff; color: var(--navy); }
.tour-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.tour-arrow { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.tour-strip { display: flex; gap: 8px; min-width: 0; padding: 3px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tour-sets::-webkit-scrollbar, .tour-strip::-webkit-scrollbar { display: none; }
.tour-strip button { position: relative; flex: 0 0 auto; width: 112px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 18px 0; overflow: hidden; background: var(--navy); scroll-snap-align: center; opacity: .72; transition: opacity .25s, border-color .25s, transform .25s; }
.tour-strip button:hover { opacity: 1; transform: translateY(-3px); }
.tour-strip button.is-active { opacity: 1; border-color: var(--mint); }
.tour-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 4px; font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; background: linear-gradient(transparent, rgba(13, 16, 36, .9)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tour-spots { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .35s; }
.tour-spots.is-hidden { opacity: 0; visibility: hidden; }
.tour-spot { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .93); color: var(--navy); font-size: 12.5px; font-weight: 800; white-space: nowrap; pointer-events: auto; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); }
.tour-spot i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.tour-spot i::before { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 5px; border: solid #fff; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.tour-spot i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); animation: pulse 2s ease-out infinite; }
.tour-spot:hover { background: var(--mint); }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.tour.is-flat .tour-spots, .tour.is-flat .tour-hint, .tour.is-flat .tour-note { display: none; }

.tour-loading { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 28px; border-radius: 26px; background: var(--glass); font-size: 13.5px; font-weight: 600; transition: opacity .4s, visibility .4s; pointer-events: none; }
.tour-loading.is-done { opacity: 0; visibility: hidden; }
.tour-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(162, 217, 208, .25); border-top-color: var(--mint); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .tour-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .tour-browser { max-width: 100%; align-items: stretch; }
  .tour-sets { align-self: flex-start; }
  .tour-note { display: none; }
}
@media (max-width: 700px) {
  .tour-top { top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; flex-wrap: wrap; gap: 8px; }
  .tour-logo img { width: 100px; }
  .tour-buildings { order: 3; width: 100%; }
  .tour-buildings button { flex: 1; padding: 8px 6px; font-size: 13px; }
  .tour-back span { display: none; }
  .tour-tools { right: 8px; top: calc(104px + env(safe-area-inset-top)); transform: none; padding: 4px; }
  .tour-tool { width: 40px; height: 40px; }
  .tour-tool span { display: none; }
  .tour-hint { top: calc(108px + env(safe-area-inset-top)); left: 8px; right: 62px; max-width: none; transform: none; white-space: normal; border-radius: 16px; font-size: 12px; }
  .tour-bottom { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .tour-title { margin: 2px 0 6px; font-size: 30px; }
  .tour-arrow { display: none; }
  .tour-strip button { width: 94px; height: 66px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .tour-top { top: 6px; }
  .tour-tools { top: 56px; transform: none; flex-direction: row; right: 10px; }
  .tour-tool span { display: none; }
  .tour-bottom { bottom: 6px; flex-direction: row; align-items: flex-end; }
  .tour-title { font-size: 26px; }
  .tour-note { display: none; }
  .tour-sets button { padding: 5px 11px; font-size: 11.5px; }
  .tour-strip button { width: 76px; height: 50px; }
  .tour-strip span { display: none; }
  .tour-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot i::after { animation: none; }
}
