/* ============================================================
   Şirin Han Hotel — v2 cinematic prototype
   Design tokens (warm-black + brass · Cormorant + Inter)
============================================================ */
:root {
  --bg: #0d0a06;
  --bg-2: #1a130a;
  --paper: #f5efe6;
  --brass: #c9a86a;
  --brass-bright: #e2c184;
  --warm: rgba(255, 250, 242, 0.94);
  --warm-soft: rgba(255, 250, 242, 0.65);
  --warm-faint: rgba(255, 250, 242, 0.25);
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: auto; } /* GSAP handles smoothness */
body {
  background: var(--bg);
  color: var(--warm);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ============================================================
   FIXED CANVAS (Three.js)
============================================================ */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  background: var(--bg);
}

/* ============================================================
   FIXED UI (nav, progress, skip)
============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.brand-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.brand-text { font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.lang-switch { display: flex; gap: 14px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.2em; }
.lang-switch a { color: var(--warm-soft); cursor: pointer; transition: color 0.3s; }
.lang-switch a.active, .lang-switch a:hover { color: var(--warm); }
.cta-book {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  background: rgba(255, 250, 242, 0.05);
  border: 1px solid var(--warm-faint);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.cta-book::after { content: "→"; font-size: 14px; transition: transform 0.3s; }
.cta-book:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}
.cta-book:hover::after { transform: translateX(4px); }

/* Progress indicator */
.scroll-progress {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.progress-bar {
  width: 1px;
  height: 200px;
  background: var(--warm-faint);
  position: relative;
}
.progress-bar::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 3px;
  height: 0%;
  background: var(--brass);
  box-shadow: 0 0 8px rgba(201, 168, 106, 0.5);
  transition: height 0.2s linear;
}
.progress-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--warm-soft);
  letter-spacing: 0.2em;
}

/* Skip intro */
.skip-intro {
  position: fixed;
  bottom: 28px;
  left: 30px;
  z-index: 50;
  padding: 10px 18px;
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid var(--warm-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: opacity 0.4s, background 0.3s;
}
.skip-intro:hover { background: rgba(255, 250, 242, 0.12); }
.skip-intro.hidden { opacity: 0; pointer-events: none; }

/* ============================================================
   SCROLL SECTIONS
============================================================ */
.scroll-content {
  position: relative;
  z-index: 5;
}
.frame {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 48px;
  z-index: 5;
}
.frame.frame-3d { background: transparent; }
.frame.frame-photo { background: var(--bg); overflow: hidden; }
.frame.frame-gallery, .frame.frame-footer { min-height: auto; }

/* Frame content (text overlays) */
.frame-content {
  position: relative;
  max-width: 720px;
  z-index: 10;
}
.frame-content-center {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-h {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 300;
  margin-bottom: 26px;
}
.hero-h em {
  font-style: italic;
  color: var(--brass-bright);
}
.hero-h-xl {
  font-size: clamp(56px, 9vw, 128px);
}
.hero-sub {
  font-size: 16px;
  color: var(--warm-soft);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.scroll-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--warm-soft);
  margin-top: 50px;
  animation: bobble 2s infinite ease-in-out;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Metric chips */
.metric {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--warm-faint);
  margin-top: 12px;
}
.metric .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-soft);
}
.metric .value {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  color: var(--warm);
}
.metrics-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }

/* ============================================================
   PHOTO FRAMES (intermissions)
============================================================ */
.photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) brightness(0.88);
  z-index: 1;
}
.photo-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(13,10,6,0.55) 100%),
    linear-gradient(to bottom, rgba(13,10,6,0.45) 0%, transparent 30%, transparent 65%, rgba(13,10,6,0.85) 100%);
  z-index: 2;
  pointer-events: none;
}
.photo-vignette-warm {
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(40,20,8,0.55) 100%),
    linear-gradient(to bottom, rgba(13,10,6,0.3) 0%, transparent 25%, transparent 60%, rgba(13,10,6,0.85) 100%);
}

/* The Reveal frame extra glow on text */
.frame-reveal .hero-h {
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ============================================================
   ROOM CAROUSEL
============================================================ */
.room-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.room-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.room-slide.active { opacity: 1; }
.room-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) brightness(0.85);
}
.frame-content-rooms {
  background: rgba(13,10,6,0.45);
  backdrop-filter: blur(10px);
  padding: 36px 40px;
  border-left: 2px solid var(--brass);
  max-width: 520px;
}
.room-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.room-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border: 1px solid var(--warm-faint);
  font-family: var(--body);
  text-align: left;
  transition: all 0.3s;
}
.room-pill:hover, .room-pill.active {
  border-color: var(--brass);
  background: rgba(201, 168, 106, 0.1);
}
.room-pill .pill-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--warm);
}
.room-pill .pill-size {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--brass);
  text-transform: uppercase;
}

/* ============================================================
   PRIMARY CTA (aerial scene)
============================================================ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--bg);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 30px;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(201, 168, 106, 0.3);
}
.cta-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 106, 0.5);
}

/* ============================================================
   GALLERY (masonry)
============================================================ */
.frame-gallery {
  background: var(--bg);
  padding: 0;
  display: block;
}
.gallery-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 100px 48px 60px;
}
.gallery-head { margin-bottom: 40px; }
.gallery-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.g-tab {
  padding: 8px 18px;
  border: 1px solid var(--warm-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-soft);
  transition: all 0.25s;
}
.g-tab:hover { color: var(--warm); border-color: var(--brass); }
.g-tab.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}

.masonry {
  column-count: 4;
  column-gap: 8px;
}
@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 768px) { .masonry { column-count: 2; } }
.masonry .m-tile {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.masonry .m-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.92);
}
.masonry .m-tile:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 6, 0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid var(--warm-faint);
  color: var(--warm);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s;
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: rgba(255, 250, 242, 0.2);
  transform: scale(1.08);
}
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm-soft);
  letter-spacing: 0.2em;
}

/* ============================================================
   CONTACT FORM SECTION (between gallery & footer)
============================================================ */
.frame-contact {
  background: var(--bg-2);
  display: block;
  padding: 100px 48px 80px;
  min-height: auto;
  border-top: 1px solid rgba(255, 250, 242, 0.08);
}
.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}
.contact-h {
  font-family: var(--display);
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 700px;
}
.contact-h em { color: var(--brass); font-style: italic; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-card {
  padding: 36px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background: rgba(13, 10, 6, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}
.cc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: 12px;
}
.cc-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--warm);
  margin-bottom: 16px;
}
.cc-body {
  color: var(--warm-soft);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.cc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid var(--warm-faint);
  color: var(--warm);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s;
  margin-top: auto;
}
.cc-cta:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}
.cc-cta-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}
.cc-cta-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  transform: translateY(-1px);
}
.cc-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm-soft);
  letter-spacing: 0.15em;
}

/* Form layout */
.cc-form { display: flex; flex-direction: column; gap: 12px; }
.cc-form-row { display: flex; flex-direction: column; }
.cc-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-form input, .cc-form select, .cc-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.04);
  border: 1px solid var(--warm-faint);
  color: var(--warm);
  font-family: var(--body);
  font-size: 14px;
  transition: all 0.25s;
  border-radius: 0;
}
.cc-form input:focus, .cc-form select:focus, .cc-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255, 250, 242, 0.07);
}
.cc-form input::placeholder, .cc-form textarea::placeholder { color: var(--warm-soft); }
.cc-form select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.cc-form select option { background: var(--bg); color: var(--warm); }
.cc-form textarea { resize: vertical; min-height: 80px; font-family: var(--body); }
.cc-form button.cc-cta {
  width: 100%;
  margin-top: 8px;
  align-self: stretch;
  justify-content: center;
}

/* ============================================================
   FOOTER
============================================================ */
.frame-footer {
  background: var(--bg);
  display: block;
  padding: 80px 48px 50px;
  border-top: 1px solid rgba(255, 250, 242, 0.1);
}
.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.footer-h {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 800px;
}
.footer-h em { color: var(--brass); font-style: italic; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 250, 242, 0.1);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
.f-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.f-value {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.7;
  color: var(--warm);
  font-weight: 400;
}
.f-value a { transition: color 0.3s; }
.f-value a:hover { color: var(--brass-bright); }
.wa-link { color: var(--brass) !important; }
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 250, 242, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--warm-soft);
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .topbar { padding: 20px 24px; }
  .nav-right { gap: 14px; }
  .cta-book { padding: 9px 16px; font-size: 10px; }
  .brand-text { display: none; }
  .frame { padding: 100px 24px 60px; }
  .scroll-progress { right: 14px; }
  .progress-bar { height: 120px; }
  .skip-intro { bottom: 18px; left: 18px; padding: 8px 14px; font-size: 9px; }
  .footer-base { flex-direction: column; gap: 10px; }
}

/* ============================================================
   HERO LOGO (fades on scroll)
============================================================ */
.hero-logo {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: auto;
  color: var(--brass-bright);
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  animation: heroLogoIn 2s ease-out 0.6s forwards;
  filter: drop-shadow(0 8px 32px rgba(201, 168, 106, 0.35));
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.94); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* When user has scrolled, fade out (JS toggles body.scrolled) */
body.scrolled .hero-logo {
  opacity: 0 !important;
  transform: translateY(calc(-50% - 24px)) scale(0.97) !important;
}

/* Smaller screens: shrink and reposition */
@media (max-width: 1200px) {
  .hero-logo { width: 280px; right: 60px; }
}
@media (max-width: 900px) {
  .hero-logo { display: none; }  /* mobile: hide to prioritize 3D scene */
}

/* RTL: mirror to left side */
[dir="rtl"] .hero-logo {
  right: auto;
  left: 100px;
}
@media (max-width: 1200px) {
  [dir="rtl"] .hero-logo { left: 60px; right: auto; }
}

/* Hide empty eyebrows (for removed intermission labels) */
.eyebrow:empty { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .scroll-hint { animation: none; }
  .hero-logo { animation: none; opacity: 1; }
}

/* ============================================================
   RTL (Arabic) — minimal direction-aware adjustments
============================================================ */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .nav-right { flex-direction: row-reverse; }
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .cta-book::after { content: "←"; transform: scaleX(-1); }
[dir="rtl"] .cta-book:hover::after { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .frame { padding: 80px 48px; }
[dir="rtl"] .frame-content { text-align: right; }
[dir="rtl"] .metric { border-left: 0; border-right: 1px solid var(--warm-faint); padding-left: 0; padding-right: 18px; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .scroll-progress { right: auto; left: 30px; }
[dir="rtl"] .skip-intro { left: auto; right: 30px; }
[dir="rtl"] .frame-content-rooms { border-left: 0; border-right: 2px solid var(--brass); }
[dir="rtl"] .ui-content,
[dir="rtl"] .frame-contact,
[dir="rtl"] .contact-wrap,
[dir="rtl"] .gallery-wrap { text-align: right; }
[dir="rtl"] .cta-primary { flex-direction: row-reverse; }

/* Use a serif that handles Arabic well alongside Latin */
[dir="rtl"] .hero-h,
[dir="rtl"] .footer-h,
[dir="rtl"] .contact-h,
[dir="rtl"] .masonry-title {
  font-family: 'Cormorant Garamond', 'Amiri', 'Noto Naskh Arabic', Georgia, serif;
  line-height: 1.2;  /* Arabic needs more line height */
}

/* Russian / Latin languages: keep default */
[lang="ru"] body { font-family: 'Inter', 'PT Sans', sans-serif; }

/* ============================================================
   BOOKING MODAL
   Mobile: fullscreen · Desktop: centered 1100×800
============================================================ */
body.booking-modal-open { overflow: hidden; }

.booking-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
}
.booking-modal.active { display: flex; }

.booking-overlay {
  position: absolute; inset: 0;
  background: rgba(13, 10, 6, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bm-fade-in 0.3s ease;
}
@keyframes bm-fade-in { from { opacity: 0 } to { opacity: 1 } }

.booking-panel {
  position: relative;
  width: 1100px;
  max-width: calc(100vw - 40px);
  height: 800px;
  max-height: calc(100vh - 40px);
  background: var(--bg-2);
  color: var(--warm);
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: bm-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
@keyframes bm-pop {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile fullscreen */
@media (max-width: 768px) {
  .booking-panel {
    width: 100vw; max-width: 100vw;
    height: 100vh; max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

.booking-close {
  position: absolute;
  top: 18px; right: 22px;
  z-index: 5;
  width: 40px; height: 40px;
  border: 1px solid var(--warm-faint);
  background: rgba(255, 250, 242, 0.05);
  color: var(--warm);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
}
.booking-close:hover { background: var(--brass); border-color: var(--brass); color: var(--bg); transform: rotate(90deg); }

.booking-content {
  flex: 1;
  padding: 70px 60px 50px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .booking-content { padding: 60px 24px 40px; }
}

/* Header */
.booking-header { margin-bottom: 36px; }
.booking-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.booking-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.booking-title em { color: var(--brass); font-style: italic; }
.booking-sub {
  color: var(--warm-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.booking-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--warm-soft);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.booking-back:hover { color: var(--brass); }

/* Form */
.booking-form { max-width: 620px; }
.bf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 540px) {
  .bf-row { grid-template-columns: 1fr; gap: 14px; }
}
.bf-row label { display: flex; flex-direction: column; }
.bf-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-soft);
  margin-bottom: 8px;
}
.bf-row input, .bf-row select {
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.04);
  border: 1px solid var(--warm-faint);
  color: var(--warm);
  font-family: var(--body);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.bf-row input:focus, .bf-row select:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255, 250, 242, 0.07);
}
/* Date input dark scheme */
.bf-row input[type="date"] {
  color-scheme: dark;
}

/* Big primary CTA */
.booking-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--bg);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  margin-top: 12px;
}
.booking-cta:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.3);
}
.booking-cta-secondary {
  background: rgba(255, 250, 242, 0.06);
  color: var(--warm);
  border-color: var(--warm-faint);
}
.booking-cta-secondary:hover {
  background: rgba(255, 250, 242, 0.12);
  color: var(--warm);
  border-color: var(--warm);
  box-shadow: none;
}

.booking-error {
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(180, 30, 30, 0.15);
  border: 1px solid rgba(180, 30, 30, 0.4);
  color: rgba(255, 180, 180, 0.95);
  font-size: 13px;
}

.booking-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 242, 0.08);
  font-size: 13px;
  color: var(--warm-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-wa-link {
  color: var(--brass);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.booking-wa-link:hover { color: var(--brass-bright); }

/* Loading state */
.booking-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px;
  gap: 24px;
  color: var(--warm-soft);
}
.spinner {
  width: 44px; height: 44px;
  border: 2px solid rgba(201, 168, 106, 0.2);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state (no rates configured) */
.booking-empty {
  text-align: center;
  padding: 40px 0;
  max-width: 700px;
  margin: 0 auto;
}
.be-icon { font-size: 56px; margin-bottom: 24px; opacity: 0.7; }
.booking-empty h3 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--warm);
}
.booking-empty > p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--warm-soft);
  margin-bottom: 36px;
}
.be-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 50px;
}
.be-actions .booking-cta { width: 100%; }
.booking-cta-primary { background: var(--brass); color: var(--bg); }

.be-rooms-preview {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 24px;
  text-align: center;
}
.be-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  text-align: left;
}
.be-room {
  border: 1px solid rgba(255, 250, 242, 0.1);
  background: rgba(255, 250, 242, 0.03);
  overflow: hidden;
}
.be-room-img {
  width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: rgba(255, 250, 242, 0.04);
}
.be-room-info { padding: 12px 14px; }
.be-room-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--warm);
  margin-bottom: 4px;
}
.be-room-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--warm-soft);
}

/* Room list (Step 2 with availability) */
.booking-rooms { display: flex; flex-direction: column; gap: 16px; }
.booking-room-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background: rgba(255, 250, 242, 0.02);
  overflow: hidden;
  transition: border-color 0.25s;
}
@media (max-width: 640px) {
  .booking-room-card { grid-template-columns: 1fr; }
}
.booking-room-card:hover { border-color: var(--brass); }
.brc-img {
  background-size: cover; background-position: center;
  min-height: 200px;
}
.brc-info { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.brc-name {
  font-family: var(--display);
  font-size: 24px;
  color: var(--warm);
}
.brc-meta { color: var(--warm-soft); font-size: 13.5px; line-height: 1.5; }
.brc-price-block { margin-top: auto; }
.brc-price {
  font-family: var(--display);
  font-size: 30px;
  color: var(--brass);
  line-height: 1;
}
.brc-price-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warm-soft);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.brc-amenities {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--brass);
  text-transform: uppercase;
}

/* ============================================================
   BOOKING MODAL CHROME (iframe wrapper)
============================================================ */
.booking-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 250, 242, 0.1);
  flex-shrink: 0;
}
.bc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.bc-name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--warm);
  font-weight: 500;
}
.bc-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--brass-bright);
  flex: 1;
  text-align: center;
  margin: 0 24px;
}
@media (max-width: 768px) {
  .bc-name { display: none; }
  .bc-title { font-size: 15px; margin: 0 12px; }
}

.booking-iframe-wrap {
  position: relative;
  flex: 1;
  background: #fff;
  overflow: hidden;
}
.booking-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.booking-iframe-wrap .booking-loading {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--warm-soft);
  transition: opacity 0.4s ease;
}
.booking-iframe-wrap .booking-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.booking-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 28px;
  background: var(--bg);
  border-top: 1px solid rgba(255, 250, 242, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-soft);
  flex-shrink: 0;
}
.booking-footnote .bc-sep { opacity: 0.4; }
.booking-footnote .bc-wa-link {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.2s;
}
.booking-footnote .bc-wa-link:hover { color: var(--brass-bright); }
@media (max-width: 540px) {
  .booking-footnote { flex-direction: column; gap: 4px; padding: 10px 16px; }
  .booking-footnote .bc-sep { display: none; }
}

/* Make the existing modal panel a column flex so chrome/iframe/footer stack */
.booking-panel {
  display: flex;
  flex-direction: column;
  padding: 0;  /* override default — chrome handles padding */
}
.booking-panel > .booking-close { display: none; }  /* chrome has its own close */

/* Step 3 form additions */
.bf-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 242, 0.1);
}
.bf-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.bf-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--warm-soft);
  line-height: 1.5;
  cursor: pointer;
}
.bf-consent input { margin-top: 3px; accent-color: var(--brass); }

/* Step 4 summary */
.booking-summary {
  max-width: 460px;
  margin: 30px auto 0;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background: rgba(255, 250, 242, 0.03);
  padding: 4px 0;
  text-align: left;
}
.bs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.06);
}
.bs-row:last-child { border-bottom: 0; }
.bs-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-soft);
}
.bs-value {
  font-family: var(--display);
  font-size: 18px;
  color: var(--warm);
}
.brc-select { margin-top: 8px; width: 100%; }

[dir="rtl"] .booking-back::before { content: "→ "; }
[dir="rtl"] .booking-cta::after { transform: scaleX(-1); }

/* ============================================================
   SEO-ONLY IMAGES
   Semantic <img> tags for image SEO / Google Images / OG share.
   Visually transparent so canvas/background-image continues to be
   the user-facing visual. Crawlers, screen readers, and social
   scrapers still index src + alt.
============================================================ */
.seo-hero-img,
.seo-only-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   STEP 4 · Payment-iframe mode
   Booking-content kills its padding so the iframe fills the panel
   below the chrome bar. Small info band on top for back/summary/WA.
============================================================ */
.booking-content--iframe {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.bsi-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 250, 242, 0.08);
  flex-shrink: 0;
}
.bsi-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--warm-soft);
  background: none;
  border: 0;
  padding: 8px 12px;
  margin-left: -8px;
  cursor: pointer;
  transition: color 0.2s;
}
.bsi-back:hover { color: var(--brass); }
.bsi-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;  /* allow text-overflow on mobile */
}
.bsi-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}
.bsi-detail {
  font-size: 13px;
  color: var(--warm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bsi-detail strong { color: var(--brass); font-weight: 600; }
.bsi-wa {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--warm-faint);
  transition: all 0.2s;
}
.bsi-wa:hover { color: var(--bg); background: var(--brass); border-color: var(--brass); }

@media (max-width: 640px) {
  .bsi-info { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .bsi-detail { white-space: normal; font-size: 12px; }
  .bsi-wa { font-size: 9px; padding: 6px 10px; }
}

.bsi-frame-wrap {
  position: relative;
  flex: 1;
  background: #fff;
  overflow: hidden;
}
.bsi-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.bsi-frame-wrap .booking-loading {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--warm-soft);
  transition: opacity 0.4s ease;
}
.bsi-frame-wrap .booking-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
