/* 
  Lumina Resort - Premium Styling System
  Designed with absolute luxury: Dark glassmorphism, golden gradients, and premium typography.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color System */
  --bg-primary: #070a13;
  --bg-secondary: #0c1222;
  --bg-glass: rgba(15, 22, 42, 0.65);
  --bg-glass-heavy: rgba(10, 15, 30, 0.9);
  --border-glass: rgba(212, 175, 55, 0.15);
  --border-glass-hover: rgba(212, 175, 55, 0.4);
  
  --bg-header: rgba(7, 10, 19, 0.85);
  --border-header: rgba(255, 255, 255, 0.05);
  
  --gold-primary: #d4af37;
  --gold-hover: #f3e5ab;
  --gold-dark: #aa8410;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8410 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 10px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Exquisite Light Theme Overrides */
body.light-theme {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);
  --border-glass: rgba(212, 175, 55, 0.2);
  --border-glass-hover: rgba(212, 175, 55, 0.5);
  
  --bg-header: rgba(255, 255, 255, 0.85);
  --border-header: rgba(0, 0, 0, 0.06);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.01);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-secondary);
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}

/* Utility Classes */
.text-gold {
  color: var(--gold-primary);
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-header);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.logo span {
  font-size: 2.2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.btn-admin-toggle {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-admin-toggle:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: var(--gold-glow);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(7, 10, 19, 0.4), rgba(7, 10, 19, 0.9)), 
              url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Search Bar Panel */
.search-container {
  max-width: 1100px;
  margin: -4rem auto 4rem auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  font-weight: 600;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.btn-search {
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

/* Main Booking View */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
}

.filter-controls {
  display: flex;
  gap: 1rem;
}

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-select:focus {
  border-color: var(--gold-primary);
}

/* Room Grid & Cards */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.room-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-image {
  transform: scale(1.1);
}

.room-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.room-price-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(7, 10, 19, 0.9), transparent);
  padding: 1rem 1.5rem;
  width: 100%;
}

.room-price {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-primary);
}

.room-price span {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-weight: 400;
}

.room-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-type {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.room-features {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.room-feature {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.room-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-book {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.room-card:hover .btn-book {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-glass-hover);
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.6rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 2rem;
}

/* Booking Form */
.booking-summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  font-weight: 500;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-submit-booking {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}

/* Stripe Checkout Screen Mockup */
.stripe-modal-container {
  position: relative; /* Anchor for absolute processing overlay */
  width: 100%;
  max-width: 850px;
  background: #f8f9fa; /* Light mode theme matching authentic Stripe Checkout */
  color: #30313d;
  border-radius: 12px;
  max-height: 92vh; /* Limit height on all screen types */
  overflow-y: auto; /* Enable scrolling for overflow content */
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 768px) {
  .stripe-modal-container {
    grid-template-columns: 1fr !important;
  }
  .stripe-sidebar {
    padding: 1.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid #e6e8eb !important;
  }
  .stripe-main {
    padding: 1.75rem !important;
  }
}

/* Height-based media query for smaller screens (e.g., 14-inch laptops or small heights) */
@media (max-height: 800px) {
  .stripe-sidebar {
    padding: 2rem 2.25rem !important;
  }
  .stripe-main {
    padding: 2rem 2.25rem !important;
  }
  .stripe-brand {
    margin-bottom: 1.25rem !important;
  }
  .stripe-price-display {
    font-size: 2rem !important;
  }
  .stripe-header-form {
    margin-bottom: 1rem !important;
  }
  .stripe-form-group {
    margin-bottom: 1rem !important;
  }
  .stripe-btn-pay {
    margin-top: 1.25rem !important;
    padding: 0.8rem !important;
  }
  .stripe-footer {
    margin-top: 1.25rem !important;
  }
  .stripe-method-selector {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  .stripe-method-tab {
    padding: 0.5rem !important;
  }
  .stripe-qr-wrapper {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  #stripe-promptpay-qr-img {
    width: 140px !important;
    height: 140px !important;
  }
}

@media (max-height: 680px) {
  .stripe-sidebar {
    padding: 1.5rem 1.75rem !important;
  }
  .stripe-main {
    padding: 1.5rem 1.75rem !important;
  }
  .stripe-brand {
    margin-bottom: 0.75rem !important;
  }
  .stripe-price-display {
    font-size: 1.75rem !important;
  }
  .stripe-item-name {
    margin-bottom: 0.25rem !important;
  }
  .stripe-header-form {
    margin-bottom: 0.75rem !important;
  }
  .stripe-form-group {
    margin-bottom: 0.75rem !important;
  }
  .stripe-btn-pay {
    margin-top: 0.75rem !important;
    padding: 0.75rem !important;
  }
  .stripe-footer {
    margin-top: 1rem !important;
  }
  .stripe-method-selector {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
  }
  .stripe-method-tab {
    padding: 0.4rem !important;
    font-size: 0.85rem !important;
  }
  .stripe-qr-wrapper {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  #stripe-promptpay-qr-img {
    width: 120px !important;
    height: 120px !important;
  }
}


@media (max-width: 480px) {
  .stripe-sidebar {
    padding: 1.25rem !important;
  }
  .stripe-main {
    padding: 1.25rem !important;
  }
  .stripe-method-selector {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  .stripe-price-display {
    font-size: 2rem !important;
  }
  .stripe-brand {
    margin-bottom: 1rem !important;
  }
  .stripe-field {
    padding: 0.65rem !important;
    font-size: 0.9rem !important;
  }
  .stripe-btn-pay {
    padding: 0.8rem !important;
    font-size: 0.95rem !important;
    margin-top: 1rem !important;
  }
}

.stripe-sidebar {
  background: #ffffff;
  padding: 3rem;
  border-right: 1px solid #e6e8eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stripe-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4f566b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.stripe-amount-due {
  color: #a3acbf;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.stripe-price-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0.5rem 0;
}

.stripe-item-name {
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 0.5rem;
}

.stripe-item-desc {
  font-size: 0.85rem;
  color: #4f566b;
  line-height: 1.5;
}

.stripe-main {
  background: #f8f9fa;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stripe-header-form {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 1.5rem;
}

.stripe-form-group {
  margin-bottom: 1.25rem;
}

.stripe-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4f566b;
  margin-bottom: 0.4rem;
}

.stripe-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e6e8eb;
  background: #ffffff;
  border-radius: 5px;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 1px 1px rgba(0,0,0,0.03), 0 3px 6px rgba(0,0,0,0.02);
  transition: border-color 0.15s ease;
  color: #30313d;
}

.stripe-field:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.stripe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stripe-btn-pay {
  width: 100%;
  padding: 0.9rem;
  background: #635bff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 4px 12px rgba(99,91,255,0.3);
  transition: all 0.2s ease;
}

.stripe-btn-pay:hover {
  background: #0a2540;
  transform: translateY(-1px);
}

.stripe-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #a3acbf;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Stripe Checkout Screen Processing Overlay */
.stripe-processing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
  display: none;
}

.stripe-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 91, 255, 0.1);
  border-left-color: #635bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.stripe-success-checkmark {
  width: 80px;
  height: 80px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Success landing screen in dashboard */
.success-screen {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.success-screen h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.success-screen p {
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 2.5rem auto;
}

.btn-success-action {
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-success-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

/* Admin Dashboard Section Styles */
.admin-container {
  display: none; /* Toggled via JS */
  animation: fadeIn 0.6s ease;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.admin-tab.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Admin Stats Panel */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.stat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Admin Panels (Tables & Forms) */
.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.panel-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-add-room {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-add-room:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

/* Premium Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.2rem 1.5rem;
}

th {
  background: var(--bg-secondary);
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

td {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.td-secondary {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
}

.badge-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-status.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-status.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-status.maintenance {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-action:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-action.btn-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scaleBounce {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .nav-menu {
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .search-container {
    margin-top: -2rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filter-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* Room Amenity Tags (VikBooking Pro upgrades) */
.room-amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 25px;
}

.amenity-tag {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ================= Real-Time Availability Alerts ================= */
.availability-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.availability-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.availability-alert.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ff6b6b;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

/* Blocked Dates List styling */
.blocked-date-item {
  animation: fadeIn 0.3s ease;
}

.blocked-date-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ================= Resort Scheduler Timeline Calendar CSS ================= */
.scheduler-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.scheduler-table th, .scheduler-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  white-space: nowrap;
}

.scheduler-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
}

.scheduler-table th.scheduler-room-col-header,
.scheduler-table td.scheduler-room-col {
  text-align: left;
  padding-left: 1.25rem;
  position: sticky;
  left: 0;
  background: #0f1424; /* Solid backing to prevent horizontal overlap during scrolling */
  z-index: 5;
  width: 180px;
  min-width: 180px;
  max-width: 220px;
  border-right: 2px solid var(--border-glass-hover);
  color: var(--gold-primary);
  font-weight: 500;
}

.scheduler-day-header {
  min-width: 35px;
  width: 35px;
}

.scheduler-day-header.weekend {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-primary);
}

.scheduler-cell-empty {
  opacity: 0.3;
}

.scheduler-cell-booked {
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--gold-glow);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.scheduler-cell-booked:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Tooltip container styling */
.scheduler-cell-booked .scheduler-tooltip {
  visibility: hidden;
  width: 250px;
  background: rgba(10, 15, 30, 0.95);
  color: var(--text-primary);
  text-align: left;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.scheduler-cell-booked .scheduler-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--gold-primary) transparent transparent transparent;
}

.scheduler-cell-booked:hover .scheduler-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lumina-toast.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* ================= Mini Monthly Calendar Grid inside Booking Modal ================= */
.mini-calendar-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.mini-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.mini-calendar-title {
  font-weight: 600;
  color: var(--gold-primary);
}

.mini-calendar-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.mini-calendar-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.mini-calendar-day-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0;
  text-transform: uppercase;
}

.mini-calendar-cell {
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.mini-calendar-cell.empty {
  opacity: 0.1;
}

.mini-calendar-cell.available {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
}

.mini-calendar-cell.available:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.mini-calendar-cell.booked {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: bold;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
}

.mini-calendar-cell.past {
  color: var(--text-muted);
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.mini-calendar-cell.selected-checkin {
  background: var(--gold-gradient) !important;
  color: var(--bg-primary) !important;
  font-weight: bold;
  border-radius: 4px 0 0 4px !important;
  box-shadow: var(--gold-glow);
}

.mini-calendar-cell.selected-checkout {
  background: var(--gold-gradient) !important;
  color: var(--bg-primary) !important;
  font-weight: bold;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: var(--gold-glow);
}

.mini-calendar-cell.selected-checkin.selected-checkout {
  border-radius: 4px !important;
}

.mini-calendar-cell.selected-range {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--gold-primary) !important;
  border-radius: 0 !important;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.mini-calendar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  justify-content: center;
}

.mini-calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ================= Premium Theme Switcher & Light Theme Refinements ================= */

.btn-theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.btn-theme-toggle:hover {
  border-color: var(--border-glass-hover);
  color: var(--gold-hover);
  transform: rotate(20deg) scale(1.05);
  box-shadow: var(--gold-glow);
}

.premium-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

/* Specific Light Theme Elements Overrides */

body.light-theme {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
}

body.light-theme .premium-form-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .form-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .form-input:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
}

body.light-theme .scheduler-table th.scheduler-room-col-header,
body.light-theme .scheduler-table td.scheduler-room-col {
  background: #ffffff;
}

body.light-theme .mini-calendar-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .mini-calendar-cell.available {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

body.light-theme .mini-calendar-cell.available:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

body.light-theme .mini-calendar-cell.past {
  color: var(--text-muted);
  opacity: 0.35;
  background: transparent;
  border-color: transparent;
}

body.light-theme .booking-summary-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.light-theme .table-container {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme th {
  background: #f1f5f9;
}

body.light-theme tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Ensure smooth scrolling and transitions */
html {
  scroll-behavior: smooth;
}

/* --- EXTRA FLUID TRANSITIONS FOR THEME CHANGE --- */
body, header, .glass-panel, .form-input, .search-input, .filter-select, 
th, td, tr, .stat-card, .table-container, .mini-calendar-container, 
.premium-form-card, .booking-summary-card, .scheduler-room-col, 
.scheduler-room-col-header, .btn-theme-toggle, .btn-admin-toggle, 
.btn-book, .btn-search, .logo, .nav-link {
  transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- MOBILE RESPONSIVENESS AND FLUIDITY POLISHING --- */
@media (max-width: 576px) {
  .hero {
    height: auto;
    padding: 6rem 1rem 4rem 1rem;
    min-height: 380px;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
  }
  .search-container {
    margin: -1.5rem 1rem 2.5rem 1rem !important;
    padding: 1.5rem !important;
  }
  .search-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .main-content {
    padding: 0 1rem 4rem 1rem !important;
  }
  .section-title h2 {
    font-size: 1.8rem !important;
  }
  .room-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .room-card {
    border-radius: var(--radius-md) !important;
  }
  .room-image-wrapper {
    height: 200px !important;
  }
  .modal-container {
    padding: 0 !important;
    max-height: 95vh !important;
  }
  .modal-header {
    padding: 1rem 1.5rem !important;
  }
  .modal-body {
    padding: 1.25rem !important;
  }
  .form-group {
    margin-bottom: 1.25rem !important;
  }
  .admin-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
  }
  .admin-tabs {
    flex-direction: column !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.5rem !important;
  }
  .admin-tab {
    text-align: center !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  .panel-header-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .btn-add-room {
    justify-content: center !important;
  }
}

/* Scrollbar Customization for Light Mode */
body.light-theme::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.light-theme::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border: 2px solid #f1f5f9;
}


