/* =========================================================================
   Hotel Prince - door-opening intro (home page, plays on every visit)
   Light on purpose: only transforms and opacity are animated.
   ========================================================================= */
.hp-intro { display: none; }
.js:not(.hp-seen) .hp-intro {
  display: block; position: fixed; inset: 0; z-index: 10000; overflow: hidden; perspective: 1800px;
  background: #0e0605;
  animation: hpIntroOut 0.8s ease 4.4s forwards;
}
.hp-intro.is-done { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; animation: none; }
html.hp-intro-on, html.hp-intro-on body { overflow: hidden; }

.hp-intro__scene {
  position: absolute; inset: -2%; background: url("../images/hotel-front-1920.webp") 50% 55% / cover no-repeat;
  transform: scale(1.02); will-change: transform;
  animation: hpIntroWalk 4.6s cubic-bezier(0.45, 0, 0.25, 1) 1.2s forwards;
}
.hp-intro__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(8, 3, 2, 0.75) 100%);
}
.hp-intro__shade::before { content: ""; position: absolute; inset: 0; background: rgba(8, 3, 2, 0.55); animation: hpIntroDim 1.4s ease 1.2s forwards; }
.hp-intro__door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 2; backface-visibility: hidden; will-change: transform;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(90deg, #3b1812 0 42px, #451b13 42px 44px),
    #2b1410;
  box-shadow: inset 0 0 0 10px #1c0c09, inset 0 0 0 12px #c9972b;
}
.hp-intro__door::before { content: ""; position: absolute; inset: 9% 10%; border: 2px solid rgba(201, 151, 43, 0.75); border-radius: 4px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%); }
.hp-intro__door::after { content: ""; position: absolute; inset: 15% 16%; border: 1px solid rgba(201, 151, 43, 0.35); }
.hp-intro__door--l { left: 0; transform-origin: 0 50%; animation: hpDoorL 2s cubic-bezier(0.65, 0, 0.2, 1) 1.4s forwards; }
.hp-intro__door--r { right: 0; transform-origin: 100% 50%; animation: hpDoorR 2s cubic-bezier(0.65, 0, 0.2, 1) 1.4s forwards; }
.hp-intro__handle { position: absolute; top: 76%; width: 10px; height: 76px; border-radius: 6px; background: linear-gradient(#f6d98a, #b8821b); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); z-index: 1; }
.hp-intro__door--l .hp-intro__handle { right: 22px; }
.hp-intro__door--r .hp-intro__handle { left: 22px; }

.hp-intro__caption {
  position: absolute; left: 0; right: 0; bottom: 11%; z-index: 3; margin: 0; text-align: center; color: #fff;
  font-family: var(--bb-font-display, Georgia, serif);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85); opacity: 0; animation: hpCaption 1.6s ease 3.2s forwards;
}
.hp-intro__caption b { display: block; color: #fff; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; margin-bottom: 0.3rem; }
.hp-intro__caption span { display: block; font-size: clamp(0.95rem, 3.4vw, 1.3rem); color: #f4d27a; letter-spacing: 0.06em; }
.hp-intro__skip {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 5; min-height: 44px; padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: #fff;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.hp-intro__skip:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 767px) { .hp-intro__scene { background-image: url("../images/hotel-front-mobile.webp"); background-position: 50% 50%; } }

@keyframes hpDoorL { to { transform: rotateY(-108deg); } }
@keyframes hpDoorR { to { transform: rotateY(108deg); } }
@keyframes hpIntroWalk { to { transform: scale(1.22); } }
@keyframes hpIntroDim { to { opacity: 0; } }
@keyframes hpCaption { 0% { opacity: 0; transform: translateY(18px); } 40% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes hpIntroOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .hp-intro { display: none !important; } }

/* the hotel emblem is engraved across the two doors: each door carries one half, so the logo splits open with them */
.hp-intro { --hw: min(40vw, 310px); }
.hp-intro__half {
  position: absolute; top: 40%; width: var(--hw); aspect-ratio: 1 / 1.4679; transform: translateY(-50%);
  background: url("../images/logo-gold-door.webp") no-repeat; background-size: 200% 100%; opacity: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(244, 178, 35, 0.25));
  animation: hpHalf 1.3s ease 0.2s forwards;
}
.hp-intro__door--l .hp-intro__half { right: 0; background-position: 0 50%; }
.hp-intro__door--r .hp-intro__half { left: 0; background-position: 100% 50%; }
@keyframes hpHalf { 0% { opacity: 0; transform: translateY(-46%) scale(0.96); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
