/* ==========================================================================
   KINGSLAND — LUXURY LAYER
   Loaded after style.css. Adds motion, depth and detail.
   Safe to delete this one file if you ever want the plain version back.
   ========================================================================== */

/* ---------- refined type detail ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

h1, h2 { text-wrap: balance; }

/* thin gold rule you can drop anywhere */
.rule {
  height: 1px;
  border: 0;
  margin: 34px 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(192,154,87,.35) 32%, transparent 78%);
}
.section--forest .rule,
.hero .rule {
  background: linear-gradient(90deg, var(--gold-light) 0%, rgba(227,197,141,.3) 34%, transparent 80%);
}

/* drop cap for story copy */
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.4em;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--terracotta);
}

/* ---------- scroll reveal ---------- */

[data-rise] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-rise].in { opacity: 1; transform: none; }

/* stagger helper: children rise one after another */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
[data-stagger].in > *  { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].in > *:nth-child(2) { transition-delay: 110ms; }
[data-stagger].in > *:nth-child(3) { transition-delay: 220ms; }
[data-stagger].in > *:nth-child(4) { transition-delay: 330ms; }
[data-stagger].in > *:nth-child(5) { transition-delay: 440ms; }
[data-stagger].in > *:nth-child(6) { transition-delay: 550ms; }

/* line that draws itself in */
.draw {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.draw.in { transform: scaleX(1); }

/* ---------- hero: slow ken-burns drift ---------- */

.hero > img {
  animation: kb 26s ease-in-out infinite alternate;
}
@keyframes kb {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1.4%, 0); }
}

/* scroll cue on the tall hero */
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255,251,243,.62);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scrollcue span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,251,243,.7), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: .3; transform: scaleY(.55); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);   transform-origin: top; }
}

/* ---------- image treatments ---------- */

.pillar img,
.shot img,
.gal__fig img {
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.pillar:hover img,
.shot:hover img { transform: scale(1.07); }

/* gold hairline that sweeps across a card on hover */
.pillar::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(227,197,141,.45);
  border-radius: 8px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s ease, transform .5s ease;
  z-index: 2;
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; transform: scale(1); }

.pillar__go { transition: gap .3s ease, border-color .3s ease; }
.pillar:hover .pillar__go { border-color: var(--gold-light); }

/* ---------- buttons: sheen ---------- */

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.16,1,.3,1);
}
.btn:hover::after { left: 120%; }
.btn--wa::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); }

/* ---------- amenity marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3.4vw, 1.7rem);
  color: rgba(255,251,243,.72);
  white-space: nowrap;
}
.marquee span::after {
  content: "·";
  margin-left: 46px;
  color: var(--gold);
}
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- stat counters ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.stats > div {
  background: var(--forest);
  padding: 22px 18px;
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}
.stats span {
  display: block;
  margin-top: 8px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,251,243,.6);
}

/* ---------- GALLERY ---------- */

.gal__filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.gal__filters::-webkit-scrollbar { display: none; }

.gal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gal__fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  cursor: zoom-in;
  aspect-ratio: 3 / 4;   /* photos are shot portrait on a phone */
}

.gal__fig--land { aspect-ratio: 16 / 10; }
.gal__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gal__fig:hover img { transform: scale(1.06); }

.gal__fig figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 14px;
  background: linear-gradient(0deg, rgba(11,8,5,.9), transparent);
  color: var(--cream);
  font-size: .78rem;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.gal__fig:hover figcaption,
.gal__fig:focus-visible figcaption { opacity: 1; transform: none; }

.gal__fig::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(227,197,141,.5);
  border-radius: 7px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gal__fig:hover::after { opacity: 1; }

.gal__fig.is-out { display: none; }

/* ---------- ELEGANT PLACEHOLDER (used until a real photo exists) ----------
   A gold jali lattice on deep forest with the Kingsland monogram.
   Looks deliberate rather than broken, so an unfinished gallery
   still reads as a designed page.                                     */

.ph,
.ph-bg {
  background-color: #143029;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cpath d='M23 0 46 23 23 46 0 23z' fill='none' stroke='%23c09a57' stroke-opacity='.17'/%3E%3Cpath d='M23 11.5 34.5 23 23 34.5 11.5 23z' fill='none' stroke='%23c09a57' stroke-opacity='.1'/%3E%3Ccircle cx='23' cy='23' r='2.4' fill='%23c09a57' fill-opacity='.14'/%3E%3C/svg%3E");
  background-size: 46px 46px;
  position: relative;
  overflow: hidden;
}

/* .ph centres a monogram panel. .ph-bg is background only, so cards
   that already position their own text (like .pillar) keep their layout. */
.ph {
  display: grid;
  place-items: center;
  text-align: center;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(192, 154, 87, .3);
  border-radius: 7px;
  pointer-events: none;
}

.ph__in {
  position: relative;
  padding: 20px 18px;
  max-width: 88%;
}

.ph__k {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 1px solid rgba(227, 197, 141, .45);
  border-radius: 12px;
  object-fit: cover;
  background: #050505;
}

.ph__t {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.2;
  color: rgba(255, 251, 243, .92);
}

.ph__s {
  display: block;
  margin-top: 9px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(227, 197, 141, .72);
}

/* gallery tiles that fell back to a placeholder */
.gal__fig--empty { cursor: default; }
.gal__fig--empty::after { display: none; }

/* ---------- LIGHTBOX ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(9, 7, 5, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 16px;
}
.lb.open { display: grid; }

.lb__img {
  max-width: min(1100px, 94vw);
  max-height: 78svh;
  object-fit: contain;
  border-radius: 8px;
  animation: lbin .5s cubic-bezier(.16,1,.3,1);
}
@keyframes lbin { from { opacity: 0; transform: scale(.97); } }

.lb__cap {
  margin-top: 16px;
  text-align: center;
  color: rgba(255,251,243,.82);
  font-size: .82rem;
  letter-spacing: .03em;
}
.lb__count {
  display: block;
  margin-top: 6px;
  color: rgba(255,251,243,.45);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.lb__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,251,243,.3);
  border-radius: 50%;
  background: rgba(255,251,243,.06);
  color: var(--cream);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.lb__btn:hover { background: rgba(255,251,243,.16); border-color: var(--gold-light); }
.lb__prev { left: 14px; }
.lb__next { right: 14px; }

.lb__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,251,243,.3);
  border-radius: 50%;
  background: rgba(255,251,243,.06);
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
}
.lb__close:hover { background: rgba(255,251,243,.16); }

/* ---------- HOTEL TOUR ---------- */

.tour { counter-reset: stop; }

.tour__stop {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.tour__stop:first-child { border-top: 0; }

.tour__no {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.tour__no::before {
  counter-increment: stop;
  content: "0" counter(stop);
}
.tour__no::after {
  content: "";
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: .6;
}

.tour__stop h3 { margin-bottom: 10px; }
.tour__stop p { color: var(--ink-soft); max-width: 56ch; }

.section--forest .tour__stop { border-color: var(--line-light); }
.section--forest .tour__stop p { color: rgba(255,251,243,.74); }
.section--forest .tour__no { color: var(--gold-light); }

.tour__media {
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
}
.tour__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page-load curtain ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--forest);
  display: grid;
  place-items: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.curtain.gone { opacity: 0; visibility: hidden; }
.curtain span {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: .3em;
  color: var(--gold-light);
  animation: pulse 1.5s ease-in-out infinite alternate;
}
@keyframes pulse { to { opacity: .45; } }

/* ---------- misc polish ---------- */

::selection { background: var(--gold-light); color: var(--ink); }

.hdr { transition: box-shadow .3s ease, background-color .3s ease; }
.hdr.stuck { box-shadow: 0 6px 30px rgba(30, 20, 10, .1); }

.actionbar a { transition: background-color .2s ease; }
.actionbar a:active { background: rgba(255,255,255,.08); }

/* nicer focus for gallery tiles */
.gal__fig:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- responsive ---------- */

@media (min-width: 620px) {
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tour__stop { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .tour__media { margin-top: 0; }
  .tour__stop:nth-child(even) .tour__media { order: -1; }
}

@media (min-width: 900px) {
  .gal__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .gal__fig--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .tour__stop { padding: 64px 0; gap: 64px; }
}

/* ---------- respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero > img { animation: none; }
  .marquee__track { animation: none; }
  .scrollcue span { animation: none; }
  .curtain span { animation: none; }
  [data-rise], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .btn::after { display: none; }
}
