/* 
  La Aurelia Resort App - Global Stylesheet
  Theme: Tropical Luxury (Emerald, Cream, Gold, Warm Sand)
*/

/* --- Design Tokens --- */
:root {
  --color-emerald: #062E1B;
  --color-emerald-light: #0d462c;
  --color-cream: #FAF8F5;
  --color-sand: #EFECE6;
  --color-gold: #D4AF37;
  --color-gold-dark: #b89326;
  --color-charcoal: #151C17;
  --color-gray-light: #e8e8e8;
  --color-gray-muted: #8c9690;
  
  --color-danger: #a92323;
  --color-success: #2e7d32;
  --color-warning: #f57c00;
  --color-info: #0288d1;
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.15s ease;
  
  --box-shadow-soft: 0 4px 20px rgba(6, 46, 27, 0.05);
  --box-shadow-hover: 0 8px 30px rgba(6, 46, 27, 0.12);
  --border-glass: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- Base & Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald);
}

/* --- Layout --- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

#app-main {
  padding: 40px 0 80px 0;
  min-height: calc(100vh - 80px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-gold); }
.text-white { color: #ffffff !important; }
.text-warning { color: var(--color-warning) !important; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.max-width-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-emerald);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* --- SPA View Routing --- */
.app-view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Header Section --- */
#app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-sand);
  padding: 15px 0;
  box-shadow: var(--box-shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.app-logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.brand-text h1 {
  font-size: 1.4rem;
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-gold-dark);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.btn-primary {
  background-color: var(--color-emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-emerald-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-gold);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-emerald);
  color: var(--color-emerald);
}

.btn-outline:hover {
  background-color: rgba(6, 46, 27, 0.05);
}

.btn-block {
  width: 100%;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--color-gray-muted);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  transition: var(--transition-fast);
}

.btn-back:hover {
  color: var(--color-emerald);
}

/* --- Premium Glassmorphism Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--box-shadow-hover);
}

/* --- Form Fields --- */
.premium-form .form-group {
  margin-bottom: 20px;
}

.premium-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-emerald);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius-md);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.premium-form input[readonly] {
  background: rgba(240, 240, 240, 0.7);
  color: var(--color-gray-muted);
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.1);
}

.premium-form input[readonly]:focus {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
  background: rgba(240, 240, 240, 0.7);
}

/* --- View 1: Welcome Portal --- */
.welcome-banner {
  margin-bottom: 50px;
}

.welcome-banner h2 {
  font-size: 2.6rem;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.welcome-banner .subtitle {
  font-size: 1.15rem;
  color: var(--color-gray-muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portal-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  min-height: 320px;
}

.portal-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(6, 46, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-emerald);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.portal-card:hover .portal-card-icon {
  background-color: var(--color-emerald);
  color: #ffffff;
}

.portal-card h3 {
  margin-bottom: 12px;
}

.portal-card p {
  font-size: 0.92rem;
  color: var(--color-gray-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.portal-action-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- View 2: Booking Layout --- */
.view-header {
  margin-bottom: 40px;
}

.view-header h2 {
  font-size: 2.2rem;
}

.view-header p {
  color: var(--color-gray-muted);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--color-gray-muted);
  margin-bottom: 25px;
}

/* Cart Room Selector Block */
.cart-room-block {
  margin-bottom: 20px;
  border: 1px solid var(--color-sand);
  border-left: 4px solid var(--color-gold);
  position: relative;
}

.btn-remove-room {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--color-danger);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.btn-remove-room:hover {
  opacity: 1;
}

/* Services checkbox grid */
.services-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-checkbox-card {
  cursor: pointer;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.service-checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-emerald);
  margin-top: 3px;
  cursor: pointer;
}

.service-card-content {
  display: flex;
  flex-direction: column;
}

.service-name {
  font-weight: 600;
  font-family: var(--font-headings);
  color: var(--color-emerald);
}

.service-price {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

.service-icon {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
  display: block;
}

/* Reservation Summary Stick Panel */
.booking-summary-panel {
  position: sticky;
  top: 110px;
}

.summary-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--color-charcoal);
}

.summary-item-row.title-row {
  font-weight: 600;
  color: var(--color-emerald);
}

.pricing-totals {
  border-top: 1px dashed var(--color-sand);
  padding-top: 15px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.price-row.accent-row {
  font-weight: 600;
  color: var(--color-warning);
}

.price-row.grand-total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-emerald);
  font-family: var(--font-headings);
}

.booking-payment-methods h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-emerald);
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  background: #ffffff;
}

.payment-radio:hover {
  border-color: var(--color-gold);
}

.payment-radio input[type="radio"] {
  accent-color: var(--color-emerald);
}

.payment-radio.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-sand);
}

.disabled-span {
  text-decoration: line-through;
}

.payment-instruction {
  display: none;
}

.payment-instruction.active {
  display: block;
}

.instruction-text {
  font-size: 0.85rem;
  color: var(--color-gray-muted);
  margin-bottom: 15px;
}

.bank-details-box {
  background: var(--color-sand);
  border-radius: var(--border-radius-md);
  padding: 15px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.bank-details-box p {
  margin-bottom: 6px;
}

.bank-details-box p:last-child {
  margin-bottom: 0;
}

/* --- View 3: Guest Companion Portal --- */
/* Auth Forms sliding transitions */
.auth-forms-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.auth-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.auth-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.auth-links a:hover {
  text-decoration: underline !important;
}

.guest-portal-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
  align-items: start;
}

.guest-nav-sidebar {
  padding: 24px;
}

.avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.guest-room-badge {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 6px;
}

.loyalty-progress-box {
  background-color: var(--color-cream);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--color-sand);
}

.loyalty-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.points-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-emerald);
  margin-top: 2px;
}

.guest-sidebar-menu {
  list-style: none;
  margin-top: 25px;
}

.guest-sidebar-menu li {
  margin-bottom: 8px;
}

.guest-sidebar-menu button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-gray-muted);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.guest-sidebar-menu button:hover,
.guest-sidebar-menu button.active {
  background-color: rgba(6, 46, 27, 0.05);
  color: var(--color-emerald);
}

.guest-sidebar-menu button.active {
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* Guest Content Tabs */
.guest-tab {
  display: none;
}

.guest-tab.active {
  display: block;
}

.guest-welcome-card {
  background: linear-gradient(135deg, rgba(6, 46, 27, 0.04) 0%, rgba(212, 175, 55, 0.06) 100%);
  border-left: 4px solid var(--color-emerald);
}

.wifi-card {
  background: var(--color-emerald);
  color: var(--color-gray-light);
}

.wifi-card h3 {
  color: #ffffff;
}

.wifi-info {
  margin-top: 15px;
}

.wifi-info p {
  margin-bottom: 8px;
}

.status-summary-card h3 {
  margin-bottom: 15px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-sand);
  padding-bottom: 6px;
}

.stats-row:last-child {
  border-bottom: none;
}

/* Checkout Instructions checklist */
.checkout-instructions-panel {
  border-left: 4px solid var(--color-warning);
}

.checklist-items {
  list-style: none;
  margin-bottom: 15px;
}

.checklist-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.checklist-items li i {
  color: var(--color-warning);
}

/* Accordion Component */
.accordion-item {
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius-md);
  margin-bottom: 15px;
  overflow: hidden;
  background: #ffffff;
}

.accordion-title {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--color-sand);
}

.accordion-content {
  padding: 20px;
  display: none;
  font-size: 0.92rem;
  color: var(--color-gray-muted);
}

/* Guide Grid */
.guide-grid {
  gap: 20px;
}

.guide-item-card h4 {
  margin-bottom: 8px;
}

.guide-item-card p {
  font-size: 0.88rem;
  color: var(--color-gray-muted);
}

/* AI Concierge Chatbot UI */
.chatbot-card {
  display: flex;
  flex-direction: column;
  height: 500px;
  padding: 0;
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--color-sand);
  background: rgba(6, 46, 27, 0.02);
}

.bot-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-emerald);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.chat-logs-container {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(250, 248, 245, 0.8);
}

.chat-message {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.bot-msg {
  background: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--color-sand);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.user-msg {
  background: var(--color-emerald);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chatbot-input-row {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--color-sand);
  gap: 10px;
  background: #ffffff;
}

.chatbot-input-row input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-sand);
  border-radius: 30px;
  font-family: var(--font-body);
}

.btn-chat-send {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- View 5: Admin Panel Board --- */
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  margin-bottom: 30px;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-role-badge {
  background: var(--color-emerald);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.user-name-span {
  font-size: 0.88rem;
  color: var(--color-gray-muted);
}

.admin-panel-layout {
  display: grid;
  grid-template-columns: 1fr 3.5fr;
  gap: 30px;
  align-items: start;
}

.admin-sidebar {
  padding: 20px;
}

.admin-menu-list {
  list-style: none;
}

.admin-menu-list li {
  margin-bottom: 8px;
}

.admin-menu-list button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-gray-muted);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.admin-menu-list button:hover,
.admin-menu-list button.active {
  background-color: rgba(6, 46, 27, 0.05);
  color: var(--color-emerald);
}

.admin-menu-list button.active {
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* Badges */
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-alert {
  background-color: var(--color-danger);
  color: #ffffff;
}

/* Admin Tabs */
.admin-tab {
  display: none;
}

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

.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* Room Occupancy Block Grid */
.room-status-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.room-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.room-status-indicator.available {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.room-status-indicator.occupied {
  background-color: var(--color-danger);
  box-shadow: 0 0 8px var(--color-danger);
}

.room-status-indicator.dirty {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
}

.room-status-name {
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 1.1rem;
}

.room-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gray-muted);
}

/* Premium Admin Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.premium-table th {
  background-color: rgba(6, 46, 27, 0.03);
  padding: 15px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--color-emerald);
  border-bottom: 1px solid var(--color-sand);
}

.premium-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-sand);
  vertical-align: middle;
}

.premium-table tbody tr:last-child td {
  border-bottom: none;
}

.premium-table tbody tr:hover td {
  background-color: rgba(6, 46, 27, 0.01);
}

.guest-desc-small {
  font-size: 0.78rem;
  color: var(--color-gray-muted);
}

/* Unified Inbox Chat Layout */
.social-inbox-layout {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  height: 600px;
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #ffffff;
}

.chat-channels-sidebar {
  border-right: 1px solid var(--color-sand);
  display: flex;
  flex-direction: column;
}

.chat-channels-sidebar .sidebar-header {
  padding: 20px;
  background-color: rgba(6, 46, 27, 0.02);
  border-bottom: 1px solid var(--color-sand);
}

.chat-threads-list {
  list-style: none;
  flex-grow: 1;
  overflow-y: auto;
}

.chat-thread-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-sand);
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-thread-item:hover,
.chat-thread-item.active {
  background-color: rgba(6, 46, 27, 0.04);
}

.chat-thread-item.unread {
  border-left: 4px solid var(--color-danger);
}

.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-thread-avatar.whatsapp { color: #25d366; }
.chat-thread-avatar.facebook { color: #1877f2; }
.chat-thread-avatar.instagram { color: #c13584; }
.chat-thread-avatar.web { color: var(--color-emerald); }

.chat-thread-info {
  flex-grow: 1;
  min-width: 0;
}

.chat-thread-name-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-thread-name-row h4 {
  font-size: 0.9rem;
  color: var(--color-emerald);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-time {
  font-size: 0.72rem;
  color: var(--color-gray-muted);
}

.chat-thread-preview {
  font-size: 0.78rem;
  color: var(--color-gray-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-feed-container {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  border: none;
}

.chat-feed-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-sand);
  background-color: rgba(6, 46, 27, 0.02);
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-header-avatar {
  font-size: 1.5rem;
}

.chat-bubbles-stream {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(250, 248, 245, 0.6);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-chat-input-row {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--color-sand);
  gap: 10px;
}

.social-chat-input-row input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
}

/* Broadcast campaign logs */
.broadcast-history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.broadcast-log-card {
  padding: 15px;
  border-left: 3px solid var(--color-emerald);
}

.broadcast-log-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.broadcast-log-card p {
  font-size: 0.85rem;
  color: var(--color-gray-muted);
}

.broadcast-log-meta {
  font-size: 0.72rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-top: 8px;
}

/* --- Global Alert Popups & Modals --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 46, 27, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  width: 90%;
  max-width: 480px;
  padding: 35px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--color-gray-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-emerald);
}

.modal-icon {
  font-size: 3.2rem;
  margin-bottom: 15px;
}

.modal-icon.success { color: var(--color-success); }
.modal-icon.error { color: var(--color-danger); }
.modal-icon.info { color: var(--color-gold); }

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--color-gray-muted);
  font-size: 0.92rem;
  margin-bottom: 25px;
}

/* --- Floating Push Toast Notifications --- */
.push-toast {
  position: fixed;
  top: 30px;
  right: -350px;
  width: 320px;
  background: rgba(6, 46, 27, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-gold);
  border-radius: var(--border-radius-lg);
  color: #ffffff;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 99999;
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-toast.active {
  right: 30px;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.toast-icon {
  color: var(--color-gold);
  font-size: 1.1rem;
}

.toast-header strong {
  flex-grow: 1;
  font-size: 0.95rem;
  font-family: var(--font-headings);
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}

.toast-close-btn:hover {
  opacity: 1;
}

.toast-body {
  font-size: 0.85rem;
  color: var(--color-gray-light);
}

/* --- Client-side Invoice Print layout --- */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-invoice-container, #printable-invoice-container * {
    visibility: visible;
  }
  #printable-invoice-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #000000 !important;
  }
  .print-invoice-box {
    display: block !important;
    padding: 20px;
  }
}

.print-invoice-box {
  display: none;
  color: #151C17;
  font-family: var(--font-body);
}

.invoice-header-table {
  width: 100%;
  margin-bottom: 30px;
}

.invoice-logo-img {
  height: 60px;
}

.invoice-meta-col {
  text-align: right;
  font-size: 0.9rem;
}

.invoice-bill-table {
  width: 100%;
  margin-top: 35px;
  border-collapse: collapse;
}

.invoice-bill-table th {
  border-bottom: 2px solid #000;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}

.invoice-bill-table td {
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.invoice-bill-table tr.total-tr td {
  border-top: 2px solid #000;
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
}


/* --- In-App Alert Buttons & Notification Cards --- */
.btn-app-alert {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.btn-app-welcome {
  background-color: var(--color-emerald);
}
.btn-app-welcome:hover {
  background-color: var(--color-emerald-light);
}
.btn-app-checkout {
  background-color: var(--color-gold);
}
.btn-app-checkout:hover {
  background-color: var(--color-gold-dark);
}

.notification-card {
  padding: 18px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-sand);
  background: #ffffff;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-fast);
  margin-bottom: 12px;
}
.notification-card:hover {
  box-shadow: 0 4px 12px rgba(6, 46, 27, 0.06);
}
.notification-card.promo { border-left: 4px solid var(--color-gold); }
.notification-card.checkin { border-left: 4px solid var(--color-success); }
.notification-card.checkout { border-left: 4px solid var(--color-warning); }

.notification-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notification-card.promo .notification-card-icon { background: rgba(212, 175, 55, 0.1); color: var(--color-gold-dark); }
.notification-card.checkin .notification-card-icon { background: rgba(46, 125, 50, 0.1); color: var(--color-success); }
.notification-card.checkout .notification-card-icon { background: rgba(245, 124, 0, 0.1); color: var(--color-warning); }

.notification-card-body {
  flex-grow: 1;
  text-align: left;
}
.notification-card-body h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.notification-card-body p {
  font-size: 0.85rem;
  color: var(--color-gray-muted);
}
.notification-card-meta {
  font-size: 0.72rem;
  color: var(--color-gray-muted);
  margin-top: 6px;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
  .booking-layout,
  .guest-portal-layout,
  .admin-panel-layout {
    grid-template-columns: 1fr;
  }
  
  .booking-summary-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .portal-grid, .services-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .header-actions {
    display: none; /* Hide header buttons on mobile to conserve space */
  }
}

/* --- PWA Install Banner --- */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 40px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-install-banner.active {
  transform: translateX(-50%) translateY(0);
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.pwa-install-text {
  flex-grow: 1;
}

.pwa-install-text h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-emerald);
  margin: 0 0 2px 0;
  font-weight: 600;
}

.pwa-install-text p {
  font-size: 0.75rem;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.2;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-banner {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: var(--transition-fast);
}

.btn-close-banner:hover {
  color: var(--color-danger);
}

/* iOS instructions list style */
.ios-instructions-list {
  text-align: left;
  margin: 15px 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ios-instructions-list li {
  margin-bottom: 8px;
}

