:root {
  --primary: #5C0A2A;
  --primary-dark: #3D061C;
  --primary-soft: #7A1438;
  --accent: #E20063;
  --accent-hot: #FF2D87;
  --accent-soft: #F7B6D2;
  --beige: #F8EEF3;
  --cream: #FFF8FB;
  --gold: #C9A227;
  --text: #2A1A1F;
  --muted: #6B5560;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(61, 6, 28, 0.78);
  --shadow: 0 18px 50px rgba(61, 6, 28, 0.12);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

[data-theme="dark"] {
  --beige: #1A0F14;
  --cream: #120A0E;
  --text: #F8EEF3;
  --muted: #C9B2BC;
  --white: #1F1218;
  --glass: rgba(31, 18, 24, 0.78);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a { color: var(--accent); text-decoration: none; transition: .25s ease; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* Loading screen */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { text-align: center; }
.loader-mark img { width: 110px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); animation: pulse 1.4s ease-in-out infinite; }
.loader-mark p { margin-top: 1rem; letter-spacing: .28em; text-transform: uppercase; font-size: .75rem; opacity: .9; }

@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* Floating nav */
.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  z-index: 1000;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 0, 99, 0.12);
  transition: .3s ease;
}
.site-header.scrolled {
  top: 8px;
  background: rgba(255,255,255,.92);
}
[data-theme="dark"] .site-header.scrolled { background: rgba(31,18,24,.92); }

.navbar { padding: .55rem 1rem; }
.navbar-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.45rem; color: var(--primary) !important; }
.navbar-brand img { height: 42px; width: auto; }
.nav-link { color: var(--text) !important; font-weight: 500; padding: .55rem .9rem !important; border-radius: 999px; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; background: rgba(226,0,99,.08); }

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-gold {
  --bs-btn-color: #fff;
  --bs-btn-bg: #E20063;
  --bs-btn-border-color: #E20063;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5C0A2A;
  --bs-btn-hover-border-color: #5C0A2A;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #3D061C;
  --bs-btn-active-border-color: #3D061C;
  background: linear-gradient(135deg, #E20063, #5C0A2A) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(226,0,99,.28);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, #5C0A2A, #3D061C) !important;
  color: #fff !important;
}
.btn-outline-primary {
  border-radius: 999px;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-ripple::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35); transform: scale(0);
  animation: ripple .6s linear; inset: auto;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,6,28,.35) 0%, rgba(61,6,28,.78) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 0 7rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: .9;
  margin: 0 0 .6rem;
}
.hero-brand span { color: var(--accent-hot); }
.hero p.lead { max-width: 34rem; color: rgba(255,255,255,.9); }

.booking-bar {
  margin-top: -3.5rem;
  position: relative; z-index: 5;
}
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .4rem;
}
.section-sub { color: var(--muted); max-width: 40rem; }

.room-card {
  border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.room-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(61,6,28,.18); }
.room-card .img-wrap { overflow: hidden; height: 240px; }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover img { transform: scale(1.08); }
.price-tag { color: var(--accent); font-weight: 700; font-size: 1.2rem; }

.amenity-item {
  background: var(--white); border-radius: 16px; padding: 1.25rem;
  box-shadow: var(--shadow); height: 100%;
  border: 1px solid rgba(226,0,99,.06);
  transition: .3s ease;
}
.amenity-item:hover { transform: translateY(-6px); border-color: rgba(226,0,99,.2); }
.amenity-item i { font-size: 1.6rem; color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid .item {
  position: relative; overflow: hidden; border-radius: 16px; min-height: 180px;
  cursor: pointer;
}
.gallery-grid .item:nth-child(1),
.gallery-grid .item:nth-child(6) { grid-row: span 2; min-height: 380px; }
.gallery-grid .item img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.gallery-grid .item:hover img { transform: scale(1.08); }

.testimonial-card {
  background: linear-gradient(160deg, var(--primary), var(--accent));
  color: #fff; border-radius: var(--radius); padding: 2rem; height: 100%;
}
.promo-banner {
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--primary-dark), var(--accent));
  color: #fff; padding: 2.5rem; position: relative; overflow: hidden;
}
.promo-banner::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.mega-footer {
  background: linear-gradient(180deg, var(--primary-dark), #1a0610);
  color: rgba(255,255,255,.85); padding: 4rem 0 2rem; margin-top: 4rem;
}
.mega-footer a { color: rgba(255,255,255,.8); }
.mega-footer a:hover { color: var(--accent-soft); }
.mega-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }

.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 12px 30px rgba(226,0,99,.4);
  animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Booking wizard */
.wizard-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.wizard-steps .step {
  flex: 1; min-width: 120px; text-align: center; padding: .85rem;
  border-radius: 14px; background: var(--white); color: var(--muted);
  border: 1px solid rgba(226,0,99,.08); font-weight: 600;
}
.wizard-steps .step.active {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; box-shadow: 0 10px 24px rgba(226,0,99,.25);
}
.wizard-steps .step.done { background: var(--beige); color: var(--primary); }

.cal-day {
  border-radius: 12px; padding: .65rem .4rem; text-align: center;
  font-size: .85rem; border: 1px solid transparent;
}
.cal-day.green { background: #e8f8ef; color: #137333; }
.cal-day.yellow { background: #fff6db; color: #9a6b00; }
.cal-day.red { background: #fde8ef; color: #a10f45; }

/* Auth */
.auth-shell {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(226,0,99,.25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(92,10,42,.35), transparent 40%),
    linear-gradient(160deg, #fff, var(--beige));
  padding: 2rem 1rem;
}
.auth-card { width: min(460px, 100%); padding: 2rem; border-radius: 24px; }

/* Customer / Admin */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 270px; background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 1.25rem; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 2rem; }
.sidebar .brand img { height: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.sidebar a {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.8); padding: .7rem .9rem; border-radius: 12px; margin-bottom: .25rem;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.app-main { flex: 1; background: var(--beige); }
.app-topbar {
  background: var(--glass); backdrop-filter: blur(12px);
  padding: 1rem 1.5rem; border-bottom: 1px solid rgba(226,0,99,.08);
  display: flex; justify-content: space-between; align-items: center;
}
.app-content { padding: 1.5rem; }

.stat-card {
  border: 0; border-radius: 18px; padding: 1.25rem; background: var(--white);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; inset: auto -20px -20px auto;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(226,0,99,.08);
}
.stat-card .value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-card .label { color: var(--muted); font-size: .9rem; }

.table thead th { color: var(--primary); font-weight: 600; border-bottom-width: 1px; }
.badge { border-radius: 999px; padding: .4em .7em; }

.theme-toggle {
  border: 0; background: rgba(226,0,99,.1); color: var(--primary);
  width: 40px; height: 40px; border-radius: 50%;
}

.page-hero {
  padding: 8.5rem 0 3rem;
  background:
    linear-gradient(120deg, rgba(61,6,28,.88), rgba(226,0,99,.72)),
    url('../images/hero/hero1.jpg') center/cover;
  color: #fff;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.toast-container { z-index: 2000; }

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .item:nth-child(1),
  .gallery-grid .item:nth-child(6) { grid-row: span 1; min-height: 180px; }
  .sidebar { position: fixed; left: -290px; z-index: 1200; transition: .3s ease; }
  .sidebar.open { left: 0; }
  .site-header { border-radius: 20px; top: 10px; }
  .navbar-collapse {
    background: var(--white); margin-top: .75rem; border-radius: 16px; padding: .75rem;
  }
}
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
