/* =====================================================================
   Gepton Hotel — design tokens, typography & motion
   ===================================================================== */

:root {
  --ink:           #0A0A0A;
  --ink-2:         #1b1b1b;
  --ivory:         #FAF8F3;
  --ivory-2:       #F5F1E8;
  --cream:         #EDE6D3;
  --gold:          #C9A85C;
  --gold-2:        #B8913D;
  --bronze:        #6B5B3F;
  --mist:          #E6DEC9;
  --charcoal:      #2a2a2a;
  --muted:         #6b6b6b;
  --white:         #FFFFFF;

  --bg:            var(--ivory);
  --bg-alt:        var(--ivory-2);
  --fg:            var(--ink);
  --fg-muted:      var(--muted);
  --divider:       var(--mist);
  --card:          #ffffff;
  --accent:        var(--gold);
  --accent-ink:    var(--ink);

  --shadow-sm:     0 1px 2px rgba(10,10,10,0.04), 0 1px 1px rgba(10,10,10,0.03);
  --shadow-md:     0 8px 28px rgba(10,10,10,0.08);
  --shadow-lg:     0 24px 60px rgba(10,10,10,0.12);

  --radius-sm:     2px;
  --radius-md:     4px;

  --header-h:      88px;

  --font-serif:    'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html.dark {
  --bg:            #0A0A0A;
  --bg-alt:        #121212;
  --fg:            #F2ECD9;
  --fg-muted:      #8a8676;
  --divider:       #2a2519;
  --card:          #161412;
  --ink:           #F2ECD9;
  --ivory:         #0A0A0A;
  --ivory-2:       #121212;
  --cream:         #1b1712;
  --gold:          #D4B36A;
  --mist:          #2a2519;
  --charcoal:      #f2ecd9;
}

/* Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Swiper: only let horizontal gestures be intercepted */
.swiper-cards, .swiper-hero { touch-action: pan-y; }
.swiper { max-width: 100%; }

/* Alpine.js x-cloak */
[x-cloak] { display: none !important; }

/* Currency switcher pill (vanilla JS, no Alpine dependency) */
.currency-switch { position: relative; }
.currency-btn { text-transform: uppercase; letter-spacing: 0.18em; }
.currency-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 220px; max-height: 320px; overflow: auto; z-index: 65;
  background: var(--card, #fff); color: var(--fg, #111);
  border: 1px solid var(--divider, #E6DEC9);
  box-shadow: 0 8px 28px rgba(10,10,10,0.12);
}
.currency-menu[hidden] { display: none !important; }
.currency-menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--divider, #eee);
  text-align: left; cursor: pointer; font-family: var(--font-sans); color: inherit; font-size: 0.92rem;
}
.currency-menu button:hover { background: var(--bg-alt, #F5F1E8); }
.currency-menu button.is-active { font-weight: 600; background: var(--bg-alt, #f7f4ec); }
.currency-menu button:last-child { border-bottom: 0; }

/* Hamburger with "Menu" label (mobile/tablet) */
.hamburger { display: none; flex-direction: column; align-items: center; gap: 4px; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 4px 8px; }
.hamburger .ham-label { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: currentColor; line-height: 1; }
.hamburger .ham-lines { display: block; }
.hamburger .ham-lines span {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: 4px 0;
  transition: transform 200ms ease, opacity 200ms;
}
@media (max-width: 1024px) { .hamburger { display: inline-flex; } }
.mobile-drawer .hamburger { gap: 0; }
.mobile-drawer .hamburger .ham-label { display: none; }
.mobile-drawer .hamburger > span {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0;
}

/* Centre the brand on auth pages */
.auth-wrap .brand { display: block; text-align: center; }

/* Scroll-to-top floating button (sits below the WhatsApp circle) */
.to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 50;
  width: 44px; height: 44px;
  background: var(--ink); color: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; cursor: pointer;
  box-shadow: 0 4px 18px rgba(10,10,10,0.18);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, background 200ms;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--ink); }
html.dark .to-top { background: var(--gold); color: var(--ink); }
html.dark .to-top:hover { background: var(--ivory); color: var(--ink); }

/* Spinner used by the auth submit-button label swap */
@keyframes bpSpin { to { transform: rotate(360deg); } }

/* Inline form status banner (shown on AJAX success) */
.form-status {
  display: none;
  margin: 14px 0 6px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--bg-alt, #F5F1E8);
  color: var(--fg, #1a1a1a);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: #b23b3b; }
.form-status strong { color: var(--ink); }

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

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* Typography -------------------------------------------------------- */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans);  }

h1, h2, h3, h4, .heading {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 0.4em 0;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow-muted {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lede { font-size: 1.18rem; line-height: 1.7; color: var(--fg); }

.ink   { color: var(--ink); }
.muted { color: var(--fg-muted); }
.gold  { color: var(--gold); }
.small { font-size: 0.87rem; }

/* Layout primitives ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-wide   { max-width: 1560px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) {
  .container, .container-narrow, .container-wide { padding: 0 18px; }
}

.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 140px 0; }
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .section-lg { padding: 88px 0; }
}

/* Gold hairline */
.hairline { display: inline-block; width: 56px; height: 1px; background: var(--gold); }
.hairline-center {
  display: block; width: 56px; height: 1px; background: var(--gold); margin: 0 auto 28px;
}
.divider { height: 1px; background: var(--divider); border: 0; margin: 0; }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn-ghost { color: var(--fg); border-color: currentColor; }
.btn-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-lg { padding: 18px 40px; }
.btn-sm { padding: 10px 20px; font-size: 0.72rem; }
.btn-block { width: 100%; }

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--fg);
}
.link-underline::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 300ms ease;
}
.link-underline:hover::after { transform: scaleX(1); }

/* Header & navigation ----------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center;
  height: var(--header-h);
  transition: background 300ms ease, backdrop-filter 300ms ease, color 300ms ease;
  color: var(--ivory);
}
.site-header .inner { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; }
.site-header.is-scrolled,
.site-header.is-inverse,
.site-header.is-menu-open {
  background: rgba(10,10,10,0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  color: var(--ivory);
}
html.dark .site-header.is-scrolled,
html.dark .site-header.is-inverse { background: rgba(10,10,10,0.95); }
.site-header.is-solid { background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--divider); }

.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logo small { display: block; font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.4em; color: var(--gold); margin-top: 2px; }

.nav-list { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-list a { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 6px 2px; display: block; position: relative; }
.nav-list a::after { content:''; position:absolute; left:0; right:0; bottom:-4px; height:1px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 250ms ease; }
.nav-list a:hover::after, .nav-list li.active a::after { transform: scaleX(1); }

.site-header .right-actions { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.icon-btn { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; transition: all 200ms ease; }
.icon-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Older hamburger fallback rules — superseded by .hamburger .ham-lines below.
   Kept blank intentionally to avoid double-styling. */

/* Mega menu --------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: none;
  box-shadow: var(--shadow-md);
}
.mega.is-open { display: block; }
.mega .grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 48px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega ul li a { display: block; padding: 10px 0; font-family: var(--font-serif); font-size: 1.25rem; color: var(--fg); border-bottom: 1px solid transparent; }
.mega ul li a:hover { color: var(--gold); }
.mega .features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.mega .feature { position: relative; overflow: hidden; }
.mega .feature img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.mega .feature:hover img { transform: scale(1.05); }
.mega .feature .cap { padding: 16px 0 0 0; }
.mega .feature .cap h4 { margin: 0 0 4px 0; }
.mega .feature .cap p  { margin: 0 0 10px 0; color: var(--fg-muted); font-size: 0.92rem; }

/* Mobile drawer ----------------------------------------------------- */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--bg);
  color: var(--fg);
  z-index: 80;
  transform: translateY(-100%);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer .top { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--divider); }
.mobile-drawer nav { padding: 24px; }
.mobile-drawer details { border-bottom: 1px solid var(--divider); padding: 14px 0; }
.mobile-drawer details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-serif); font-size: 1.4rem; cursor: pointer; padding: 6px 0; }
.mobile-drawer details > summary::-webkit-details-marker { display: none; }
.mobile-drawer details > summary::after { content: '+'; font-family: var(--font-sans); color: var(--gold); font-size: 1.4rem; transition: transform 200ms ease; }
.mobile-drawer details[open] > summary::after { content: '–'; }
.mobile-drawer details .sub { padding: 4px 0 8px 2px; }
.mobile-drawer details .sub a { display: block; padding: 6px 0; font-size: 0.95rem; color: var(--fg-muted); }
.mobile-drawer details .sub a:hover { color: var(--gold); }
.mobile-drawer .feat { margin-top: 16px; }
.mobile-drawer .feat img { margin-bottom: 8px; aspect-ratio: 3/2; object-fit: cover; }

@media (max-width: 1024px) {
  .nav-list, .plan-btn { display: none; }
  .hamburger { display: inline-flex; }
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero .media { position: absolute; inset: 0; z-index: 1; }
.hero .media img, .hero .media video { width: 100%; height: 100%; object-fit: cover; }
.hero .media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.72) 100%);
}
.hero .inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 980px; }
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7.5vw, 6rem);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero .tagline { color: rgba(255,255,255,0.88); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .scroll-cue {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase;
  z-index: 3;
}
.hero .scroll-cue::after {
  content: ''; display: block; width: 1px; height: 42px; background: rgba(255,255,255,0.6); margin: 10px auto 0;
  animation: scrollCue 1800ms ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (smaller, for non-home) */
.page-hero {
  position: relative; height: 62vh; min-height: 420px;
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: var(--hero-bg, none);
  transform: scale(1.03);
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.55) 100%); }
.page-hero .inner { position: relative; z-index: 2; padding: 0 24px 64px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }

/* Booking widget ---------------------------------------------------- */
.booking-widget {
  background: var(--bg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 14px;
  align-items: end;
}
@media (max-width: 880px) { .booking-widget { grid-template-columns: 1fr 1fr; } .booking-widget > :last-child { grid-column: 1 / -1; } }
.booking-widget label { display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.booking-widget input, .booking-widget select {
  width: 100%; border: 0; border-bottom: 1px solid var(--divider);
  padding: 6px 0 10px; font-family: var(--font-sans); background: transparent; color: var(--fg);
  font-size: 1rem; border-radius: 0; outline: 0;
}
.booking-widget input:focus, .booking-widget select:focus { border-bottom-color: var(--gold); }

.booking-hero-float { margin-top: -58px; position: relative; z-index: 10; }

/* Cards ------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--divider);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { overflow: hidden; aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { margin: 0 0 6px 0; }
.card-body p { margin: 0 0 16px 0; color: var(--fg-muted); }

.room-card h3 { font-size: 1.6rem; }
.room-card .price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); }
.room-card .meta { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }

/* Grids ------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Section header ---------------------------------------------------- */
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.sec-head .hairline { display: inline-block; margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p  { color: var(--fg-muted); font-size: 1.1rem; }

/* Feature block (side by side image + text) ------------------------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-split.reverse .img-col { order: 2; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } .feature-split.reverse .img-col { order: 0; } }

/* Testimonial ------------------------------------------------------- */
.testimonial {
  text-align: center; max-width: 820px; margin: 0 auto;
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-style: italic;
  line-height: 1.5; color: var(--fg);
}
.testimonial .cite { display: block; margin-top: 18px; font-family: var(--font-sans); font-style: normal; font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-muted); }

/* Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #d9d2bd; padding: 88px 0 28px; font-size: 0.95rem; }
html.dark .site-footer { background: #050505; }
.site-footer .grid-foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 48px; }
.site-footer h5 { color: #f3ecd7; font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem; margin: 0 0 14px; letter-spacing: 0.04em; }
.site-footer a { color: #d9d2bd; transition: color 200ms ease; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer .brand { font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f3ecd7; margin-bottom: 18px; display: block; }
.site-footer .address-block { color: #b8b09a; line-height: 1.7; font-size: 0.92rem; }
.site-footer .social { display: flex; gap: 14px; margin-top: 14px; }
.site-footer .social a { width: 38px; height: 38px; border: 1px solid #3a342a; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.site-footer .social a:hover { border-color: var(--gold); }
.site-footer .newsletter { background: #141311; padding: 22px; border: 1px solid #2a251c; }
.site-footer .newsletter input[type="email"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #3a342a; padding: 10px 0; color: #f3ecd7; outline: 0; font-family: var(--font-sans); }
.site-footer .newsletter input[type="email"]:focus { border-bottom-color: var(--gold); }
.site-footer .base { margin-top: 60px; padding-top: 22px; border-top: 1px solid #2a251c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: #8a836e; }
.site-footer .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #3a342a; color: #d9d2bd; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; background: transparent; cursor: pointer; border-radius: 0; transition: all 200ms; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 980px) { .site-footer .grid-foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer .grid-foot { grid-template-columns: 1fr; } }

/* WhatsApp float ---------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 56px; height: 56px;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; box-shadow: var(--shadow-md);
  transition: transform 200ms;
}
.wa-float:hover { transform: scale(1.06); }

/* Cookie banner ----------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ivory); color: var(--ink);
  border: 1px solid var(--gold);
  padding: 14px 18px; display: flex; gap: 16px; align-items: center;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  font-size: 0.88rem;
}
html.dark .cookie-banner { background: #141311; color: #f3ecd7; }
.cookie-banner button { padding: 8px 16px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; background: var(--ink); color: var(--ivory); border: 0; cursor: pointer; }
html.dark .cookie-banner button { background: var(--gold); color: var(--ink); }

/* Reveal animation utility ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 900ms ease, transform 900ms ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Forms ------------------------------------------------------------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--divider);
  background: transparent; color: var(--fg); font-size: 1rem; font-family: var(--font-sans);
  border-radius: 0; outline: 0; transition: border-color 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.field .help { font-size: 0.82rem; color: var(--fg-muted); margin-top: 8px; }
.field.inline-row { display: flex; gap: 16px; align-items: end; }

.form-card { background: var(--card); border: 1px solid var(--divider); padding: 32px; }
.form-card h2 { margin-bottom: 6px; }
.form-card .sub { color: var(--fg-muted); margin-bottom: 24px; }

.flash { padding: 14px 18px; margin-bottom: 18px; border-left: 2px solid var(--gold); background: var(--bg-alt); font-size: 0.92rem; }
.flash-error { border-left-color: #b23b3b; }
.flash-success { border-left-color: #3b8c5a; }

/* Auth specific ----------------------------------------------------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-wrap .visual { background: #000 center/cover no-repeat; position: relative; }
.auth-wrap .visual::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.6) 100%); }
.auth-wrap .visual .quote { position: absolute; bottom: 56px; left: 56px; right: 56px; color: #fff; font-family: var(--font-serif); font-size: 1.6rem; font-style: italic; line-height: 1.4; z-index:1; }
.auth-wrap .panel { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-wrap .inner { width: 100%; max-width: 440px; }
.auth-wrap .brand { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.24em; text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.auth-wrap .brand small { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.38em; color: var(--gold); margin-top: 4px; }
.auth-wrap h1 { text-align: center; margin-top: 36px; margin-bottom: 8px; }
.auth-wrap .sub { text-align: center; color: var(--fg-muted); margin-bottom: 32px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .visual { min-height: 240px; } .auth-wrap .panel { padding: 40px 24px; } }

.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.otp-boxes input { text-align: center; font-family: var(--font-serif); font-size: 2rem; padding: 10px 0; border: 1px solid var(--divider); background: var(--card); color: var(--fg); width: 100%; }
.otp-boxes input:focus { border-color: var(--gold); outline: 0; }

.google-btn {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  width: 100%; padding: 13px 18px;
  border: 1px solid var(--divider); background: var(--card); color: var(--fg);
  font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border-radius: 0; transition: all 200ms;
}
.google-btn:hover { border-color: var(--gold); color: var(--gold); }
.divider-or { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--fg-muted); font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; }
.divider-or::before, .divider-or::after { content:''; flex: 1; height: 1px; background: var(--divider); }

/* Masonry gallery --------------------------------------------------- */
.masonry { column-count: 3; column-gap: 14px; }
.masonry .item { break-inside: avoid; margin-bottom: 14px; overflow: hidden; }
.masonry .item img { width: 100%; display: block; transition: transform 600ms; }
.masonry .item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.chips button {
  padding: 8px 18px; background: transparent; border: 1px solid var(--divider); color: var(--fg);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all 200ms;
}
.chips button.is-active, .chips button:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
html.dark .chips button.is-active, html.dark .chips button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Swiper gallery tweaks */
.swiper-hero { aspect-ratio: 16/9; }
.swiper-hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: #fff !important; }

/* Dashboard shells -------------------------------------------------- */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash aside { background: var(--bg-alt); border-right: 1px solid var(--divider); padding: 32px 24px; }
.dash aside .brand { display: block; font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; }
.dash aside nav a { display: block; padding: 10px 0; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 1px solid var(--divider); }
.dash aside nav a.is-active, .dash aside nav a:hover { color: var(--fg); border-bottom-color: var(--gold); }
.dash main { padding: 48px 56px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
@media (max-width: 1024px) { .dash { grid-template-columns: 1fr; } .dash aside { border-right: 0; border-bottom: 1px solid var(--divider); } .dash main { padding: 28px; } .dash-cards { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--divider); padding: 22px; }
.stat .label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }
.stat .value { font-family: var(--font-serif); font-size: 2rem; margin-top: 4px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--divider); text-align: left; font-size: 0.92rem; }
.table th { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }

.badge { display: inline-block; padding: 3px 10px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--divider); }
.badge-gold { border-color: var(--gold); color: var(--gold); }
.badge-ok { border-color: #3b8c5a; color: #3b8c5a; }
.badge-warn { border-color: #b07c24; color: #b07c24; }
.badge-err { border-color: #b23b3b; color: #b23b3b; }

/* Menu list (restaurant page) */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--divider); align-items: baseline; }
.menu-list .name { font-family: var(--font-serif); font-size: 1.3rem; }
.menu-list .desc { color: var(--fg-muted); font-size: 0.92rem; margin-top: 4px; }
.menu-list .price { font-family: var(--font-serif); color: var(--gold); font-size: 1.2rem; white-space: nowrap; }

/* Swiper overrides */
.swiper { --swiper-theme-color: var(--gold); }
