@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* ── Brand variables ── */
:root {
  --brand-bg: #08080d;
  --brand-surface: #1a1d22;
  --brand-surface-soft: #23262c;
  --brand-gold: #d7ab58;
  --brand-gold-light: #f0d39a;
  --brand-gold-deep: #b57d34;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  background-color: var(--brand-surface);
}

::selection {
  background: rgba(215, 171, 88, 0.32);
  color: #fff;
}

a { text-decoration: none; }

img, svg { display: block; }

/* ── Logo glow ── */
.brand-logo {
  filter: drop-shadow(0 0 20px rgba(215, 171, 88, 0.18));
}

/* ── Hero zoom animation ── */
@keyframes hero-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-zoom {
  animation: hero-zoom 7s ease-in-out infinite alternate;
}

/* ── Header ── */
#site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled,
#site-header.menu-open {
  border-bottom-color: rgba(215, 171, 88, 0.15);
  background: rgba(8, 8, 13, 0.88);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

@media (min-width: 1024px) {
  .header-inner { padding: 16px 32px; }
}

#header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height 0.5s;
}

#site-header.scrolled #header-logo {
  height: 64px;
}

@media (min-width: 640px) {
  #header-logo { height: 56px; }
  #site-header.scrolled #header-logo { height: 80px; }
}

.desktop-nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  color: var(--brand-gold);
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  color: var(--brand-gold);
  transition: color 0.2s;
}

.desktop-nav a:hover { color: var(--brand-gold-light); }

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .header-actions { display: flex; }
}

.btn-connect {
  border-radius: 9999px;
  border: 1px solid rgba(215, 171, 88, 0.6);
  background: linear-gradient(135deg, rgba(215, 171, 88, 0.12), rgba(240, 211, 154, 0.04));
  padding: 8px 16px;
  color: var(--brand-gold-light);
  font-size: 0.875rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-connect:hover {
  border-color: var(--brand-gold-light);
  background: linear-gradient(135deg, #c9933d, #f0d39a);
  color: #08080d;
}

.btn-community {
  border-radius: 9999px;
  background: linear-gradient(135deg, #25d366, #7bf39d);
  padding: 8px 16px;
  font-weight: 700;
  color: #04140b;
  font-size: 0.875rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.22);
  transition: transform 0.2s;
}

.btn-community:hover { transform: translateY(-2px); }

/* ── Mobile menu button ── */
#menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(215, 171, 88, 0.4);
  color: var(--brand-gold);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#menu-toggle:hover {
  border-color: var(--brand-gold-light);
  color: var(--brand-gold-light);
}

@media (min-width: 768px) {
  #menu-toggle { display: none; }
}

/* ── Mobile drawer ── */
#mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
}

#mobile-menu-overlay.visible { display: block; }

#mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  border: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#mobile-menu-overlay.open #mobile-menu-backdrop { opacity: 1; }

#mobile-drawer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100svh;
  width: 90vw;
  max-width: 360px;
  border-right: 1px solid rgba(215, 171, 88, 0.2);
  background: #08080d;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

#mobile-menu-overlay.open #mobile-drawer { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header img { height: 48px; width: auto; object-fit: contain; }

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(215, 171, 88, 0.4);
  color: var(--brand-gold);
  background: transparent;
  cursor: pointer;
}

.drawer-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1rem;
  color: var(--brand-gold);
}

.drawer-nav a {
  color: var(--brand-gold);
  border-radius: 8px;
  padding: 8px 12px;
  transition: background 0.2s, color 0.2s;
}

.drawer-nav a:hover {
  background: rgba(215, 171, 88, 0.08);
  color: var(--brand-gold-light);
}

.drawer-connect {
  margin-top: 12px;
  border-radius: 9999px;
  border: 1px solid rgba(215, 171, 88, 0.6);
  background: linear-gradient(135deg, rgba(215, 171, 88, 0.12), rgba(240, 211, 154, 0.04));
  padding: 12px 16px;
  text-align: center;
  color: var(--brand-gold-light);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.drawer-connect:hover {
  border-color: var(--brand-gold-light);
  background: linear-gradient(135deg, #c9933d, #f0d39a);
  color: #08080d;
}

.drawer-community {
  margin-top: 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25d366, #7bf39d);
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  color: #04140b;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.22);
  transition: transform 0.2s;
}

.drawer-community:hover { transform: translateY(-2px); }

/* ── Section common ── */
.section-kicker {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #D4AF37;
  margin: 0 0 16px;
}

.section-heading {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: #fff;
}

/* ── Gallery lightbox ── */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 32px 16px;
}

#gallery-lightbox.open { display: flex; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-figure {
  max-height: 100%;
  max-width: 92vw;
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ── Bookings page (from BookingsView) ── */
.bookings-page {
  min-height: 100svh;
  padding: 24px;
  background: linear-gradient(180deg, #0b0d13 0%, #161a23 100%);
  color: #f7f0dc;
  font-family: 'Lato', sans-serif;
}

.bookings-shell {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(215, 171, 88, 0.22);
  border-radius: 20px;
  background: rgba(18, 22, 30, 0.92);
  padding: 20px;
}

.bookings-kicker {
  margin: 0;
  color: #f0d39a;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.bookings-header h1 { margin: 8px 0 18px; }

.auth-box,
.booking-card {
  border: 1px solid rgba(215, 171, 88, 0.2);
  border-radius: 14px;
  background: rgba(28, 34, 44, 0.8);
  padding: 14px;
}

.auth-row { display: flex; gap: 10px; }

.bookings-input {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0 12px;
  font-family: 'Lato', sans-serif;
}

.bookings-btn {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #d7ab58, #f0d39a);
  font-family: 'Lato', sans-serif;
}

.bookings-btn.secondary {
  min-height: 36px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f0dc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bookings-btn.secondary.tab-active {
  background: linear-gradient(135deg, #d7ab58, #f0d39a);
  color: #111;
}

.actions-row { display: flex; gap: 8px; margin-bottom: 12px; }

.bookings-list { display: grid; gap: 10px; }

.booking-card h2 { margin: 0 0 8px; font-size: 1.05rem; }

.booking-card p { margin: 6px 0; color: #e8ebf2; }

.error-text { color: #ff8d74; margin: 8px 0 0; font-size: 0.875rem; }
