/* KOWI SEI — Explora el bungalow */
:root {
  --marea: #2E5468; --manglar: #3A5C42; --oro: #C9A24B; --caliza: #F2ECDC;
  --cinzel: "Cinzel", "Trajan Pro", Georgia, serif;
  --marcellus: "Marcellus", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(1rem, 3vw, 2.5rem);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0d10; color: var(--caliza); font-family: var(--marcellus); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; }

.tour { position: fixed; inset: 0; overflow: hidden; }
.pano { position: absolute; inset: 0; }
.pnlm-container { background: #0b0d10 !important; font-family: var(--marcellus) !important; }
.pnlm-load-box { background: rgba(11, 13, 16, .6) !important; border-radius: 0 !important; font-family: var(--marcellus) !important; }
.pnlm-load-box p, .pnlm-lbox, .pnlm-lbar { display: none; }
.pnlm-about-msg { display: none !important; }

/* top bar */
.t-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: clamp(1rem, 2.6vh, 1.75rem) var(--gut) 3rem; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 10, 12, .55), rgba(8, 10, 12, 0)); }
.t-top > * { pointer-events: auto; }
.t-lockup { display: flex; align-items: center; gap: .8rem; justify-self: start; min-height: 44px; }
.t-lockup img:first-child { width: clamp(26px, 2.4vw, 34px); height: auto; }
.t-lockup .bar { width: 1px; height: 26px; background: var(--oro); }
.t-lockup .word { width: clamp(88px, 8vw, 128px); height: auto; }
.t-title { text-align: center; display: grid; gap: .35rem; }
.t-eyebrow { margin: 0; font-size: .8125rem; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.t-name { margin: 0; font-family: var(--cinzel); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: .1em;
  text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.t-close { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.1rem;
  border: 1px solid rgba(242, 236, 220, .45); font-size: .9375rem; letter-spacing: .03em;
  transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease); }
.t-close:hover { color: var(--oro); border-color: var(--oro); box-shadow: 0 0 22px 2px rgba(201, 162, 75, .3); }

/* hint */
.t-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; margin: 0; pointer-events: none;
  padding: .7rem 1.2rem; background: rgba(8, 10, 12, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 1rem; letter-spacing: .04em; transition: opacity .8s var(--ease); }
.t-hint.is-gone { opacity: 0; }

/* bottom: every space one click away, and the visit */
.t-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; padding: 3rem var(--gut) clamp(1rem, 2.6vh, 1.75rem); pointer-events: none;
  background: linear-gradient(to top, rgba(8, 10, 12, .6), rgba(8, 10, 12, 0)); }
.t-bottom > * { pointer-events: auto; }
.t-stops { display: flex; flex-wrap: wrap; gap: .4rem; }
.t-stop { display: inline-flex; align-items: baseline; gap: .55rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(242, 236, 220, .3); background: rgba(8, 10, 12, .25);
  font-size: .9375rem; letter-spacing: .02em; transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); align-items: center; }
.t-stop .n { font-size: .75rem; letter-spacing: .14em; opacity: .7; }
.t-stop:hover { color: var(--oro); border-color: var(--oro); }
.t-stop.is-on { color: var(--oro); border-color: var(--oro); background: rgba(201, 162, 75, .12); }
.t-cta { flex: none; min-height: 56px; display: inline-flex; align-items: center; padding: 0 2.2rem;
  border: 1px solid var(--oro); background: rgba(0, 0, 0, .25); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); letter-spacing: .04em;
  transition: color .35s var(--ease), box-shadow .45s var(--ease), background .35s var(--ease); }
.t-cta:hover { color: var(--oro); background: rgba(201, 162, 75, .16); box-shadow: 0 0 0 1px rgba(201, 162, 75, .5), 0 0 28px 4px rgba(201, 162, 75, .45); }
.t-cta:active, .t-stop:active, .t-close:active { transform: scale(.98); }

/* the gold points */
.t-hot { width: 0; height: 0; }
.t-point { cursor: pointer; }   /* Pannellum positions the base absolutely; do not override */
.t-point .ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--oro); background: rgba(201, 162, 75, .18); box-shadow: 0 0 18px 2px rgba(201, 162, 75, .45);
  transition: transform .4s var(--ease), background .4s var(--ease); }
.t-point .ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--oro); }
.t-point .ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(201, 162, 75, .55);
  animation: t-pulse 2.4s var(--ease) infinite; }
.t-point .lab { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .4rem .75rem; background: rgba(8, 10, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .9375rem; letter-spacing: .03em; color: var(--caliza); transition: color .3s var(--ease); }
.t-point:hover .ring, .t-point:focus-visible .ring { transform: scale(1.12); background: rgba(201, 162, 75, .35); }
.t-point:hover .lab, .t-point:focus-visible .lab { color: var(--oro); }
@keyframes t-pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t-point .ring::before { animation: none; } }

@media (max-width: 760px) {
  .t-top { grid-template-columns: 1fr auto; }
  .t-title { grid-column: 1 / -1; grid-row: 2; margin-top: .75rem; }
  .t-lockup .word, .t-lockup .bar { display: none; }
  .t-bottom { flex-direction: column; align-items: stretch; }
  .t-stops { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .t-stop { flex: none; }
  .t-cta { justify-content: center; }
}

/* arriving from the site: the Caliza curtain lifts off the first space */
.t-curtain { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--caliza);
  transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.t-curtain img { width: clamp(56px, 6vw, 96px); height: auto; }
.t-curtain.is-gone { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .t-curtain { transition: none; } }
