/* ==========================================================================
   SEVILLA360 - Master Stylesheet
   Design: Luxury Minimal & Warm Scandinavian
   ========================================================================== */

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

/* --- Variables --- */
:root {
  --color-white: #ffffff;
  --color-beige: #fdf2e2;      /* Matches the new homepage paper color */
  --color-gold: #d6a870;       /* Matches the new homepage gold */
  --color-gold-hover: #c4965e;
  --color-dark: #2a2522;       /* Matches the new homepage ink color */
  --color-dark-light: #4a4440;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Great Vibes", cursive;

  /* Organic Motion Variables */
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-snappy: all 0.4s cubic-bezier(.16, 1, .3, 1);

  /* Update shadows to match the softer Lovable design */
  --shadow-soft: 0 30px 70px -35px rgba(42, 37, 34, 0.2);
  --shadow-hover: 0 45px 90px -40px rgba(42, 37, 34, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

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

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

/* --- Utility Classes --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-white {
  background-color: var(--color-white);
}
.bg-beige {
  background-color: var(--color-beige);
}

.text-center {
  text-align: center;
}

section {
  padding: 100px 0;
}

/* --- Kinetic Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  padding: 20px 0;
}

.navbar .container {
  max-width: 95%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--color-gold);
}

/* --- Hamburger Icon (Hidden on Desktop) --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001; /* Keep above the mobile menu overlay */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: var(--transition-smooth);
  transform-origin: center;
}


/* --- Buttons (Updated to match Lovable Design) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.5s ease;
  border: 1px solid transparent;
  border-radius: 0; /* Removes old rounded corners */
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
}

.btn-outline, .btn-secondary {
  background: transparent;
  border-color: rgba(214, 168, 112, 0.45); /* Minimal gold outline */
  color: var(--color-dark);
}

.btn-outline:hover, .btn-secondary:hover {
  background: rgba(42, 37, 34, 0.05);
  transform: translateY(-2px);
}
/* ==========================================================================
   NEW: User Account Dropdown Menu
   ========================================================================== */

/* Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* New User Menu Button (Replaces btn-primary/secondary conflict) */
.btn-user-menu {
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-user-menu:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

/* Dropdown Content Box */
.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: var(--color-white);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-snappy);
  z-index: 1050;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover effect to reveal dropdown on Desktop */
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
  transform: translateY(10px);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Links */
.nav-dropdown-menu a {
  padding: 15px 20px;
  color: var(--color-dark) !important; /* Overrides white text if any */
  text-transform: none; /* Keeps it readable, unlike uppercase nav links */
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-beige);
  display: block;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background-color: var(--color-beige);
  color: var(--color-gold) !important;
  transform: none; /* Removes any floating transform from global links */
}

.nav-dropdown-menu .logout-link {
  color: #d9534f !important; /* Subtle red for logout */
}


/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: var(--color-dark);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 37, 34, 0.4); /* Dark overlay for text readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* --- Welcome Section --- */
.split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.split-image,
.split-text {
  flex: 1;
}

.split-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.split-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.script-heading {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-gold);
  margin-bottom: -10px;
}

.split-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.split-text p {
  color: var(--color-dark-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- Events Highlight Section --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.event-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.event-card-img {
  height: 250px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.08);
}

.event-card-content {
  padding: 2rem;
  text-align: center;
}

.event-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Booking Preview Section --- */
.booking-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.booking-row:nth-child(even) {
  flex-direction: row-reverse;
}

.booking-row:last-child {
  margin-bottom: 0;
}

.booking-img-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.booking-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover; 
  object-position: center; 
  transition: var(--transition-smooth);
  background-color: var(--color-beige); 
}

.booking-row:hover .booking-img-wrapper img {
  transform: scale(1.05);
}

.booking-info {
  flex: 1;
}

.booking-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.booking-info p {
  color: var(--color-dark-light);
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-gold);
  color: var(--color-dark);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
  display: block;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(42, 37, 34, 0.1);
  padding-top: 2rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   GLOBAL MODAL SYSTEM (Standardized UI)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* High z-index to stay above all navbars */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  padding: 40px;
  width: 90%;
  max-width: 500px; /* Default size */
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Modal Modifiers */
.modal-sm {
  max-width: 400px;
  padding: 30px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--color-dark);
  text-align: center;
}

.modal-body {
  text-align: left;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--color-dark-light);
  max-height: 300px;
  overflow-y: auto;
}

.modal-text-center {
  text-align: center;
  margin-bottom: 25px;
}

.modal-text-center p {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 0;
}

.modal-subtext {
  font-size: 0.9rem !important;
  margin-top: 10px !important;
  color: var(--color-dark-light) !important;
}

.modal-date-highlight {
  color: var(--color-gold);
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}

.modal-icon-warning {
  font-size: 3rem;
  color: #e06666;
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

/* Modal Actions & Buttons */
.modal-actions-center {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.modal-actions-center .btn {
  flex: 1; 
}

.btn-modal-cancel {
  color: var(--color-dark);
  border-color: rgba(42, 37, 34, 0.2);
  background-color: transparent;
}

.btn-modal-cancel:hover {
  background-color: rgba(42, 37, 34, 0.05);
  color: var(--color-dark);
}

.btn-modal-danger {
  background-color: #e06666;
  border-color: #e06666;
  color: white;
}

.btn-modal-danger:hover {
  background-color: #c75c5c;
  border-color: #c75c5c;
  box-shadow: 0 4px 10px rgba(224, 102, 102, 0.3);
}
/* ==========================================================================
   GLOBAL CALENDAR UI (Used in Booking, Walk-in, and Maintenance)
   ========================================================================== */
.calendar-ui {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cal-month-year {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-dark);
  margin: 0;
}

.cal-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark-light);
  transition: color 0.3s;
  padding: 0 10px;
}

.cal-nav:hover {
  color: var(--color-gold);
}

.cal-nav:disabled {
  color: var(--color-dark-light);
  cursor: not-allowed;
  opacity: 0.45;
}

.cal-nav:disabled:hover {
  color: var(--color-dark-light);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 0;
  margin-bottom: 25px;
}

/* FIXED CALENDAR CELL RESIZING BUG */
.cal-day-cell {
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: #f9f9f9;
  color: var(--color-dark);
  border: none;
  margin: 0 4px;
  padding: 0;
  font-family: inherit;
}

.cal-day-cell:not(.booked):not(.unavailable):not(.past-date):not(.empty):hover {
  background: #ebebeb;
}

.cal-day-cell.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-day-cell.booked {
  background: #e06666 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.cal-day-cell.booked:hover {
  background: #e06666 !important;
  color: #fff !important;
}
.cal-day-cell.booked.checkout-boundary{pointer-events:auto!important;cursor:pointer!important;background:#d6a870!important;color:#2a2522!important;outline:2px dashed #8b5e2c;outline-offset:-5px}.cal-day-cell.booked.checkout-boundary:hover{background:#c9955b!important}.dot.checkout-boundary-dot{background:#d6a870;border:2px dashed #8b5e2c;box-sizing:border-box}.hotel-calendar-help{margin:.75rem 0 0;color:#777;font-size:.82rem;line-height:1.5}

.cal-day-cell.unavailable {
  background: #e0e0e0 !important;
  color: #999 !important;
  text-decoration: line-through;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.cal-day-cell.unavailable:hover {
  background: #e0e0e0 !important;
  color: #999 !important;
}


/* Range Styles */
.cal-day-cell.selected {
  background: var(--color-gold);
  color: white;
  box-shadow: 0 4px 10px rgba(214, 168, 112, 0.3);
}

.cal-day-cell.in-range {
  background: rgba(214, 168, 112, 0.15);
  color: var(--color-dark);
  margin: 0;
  border-radius: 0;
}

.cal-day-cell.selected.start-date:not(.end-date) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}

.cal-day-cell.selected.end-date:not(.start-date) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}
.cal-day-cell.past-date {
  background: #999;
  color: #ccc;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day-cell.past-date:hover {
  background: #999;
  color: #ccc;
}

/* Legend */
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
}

.legend-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.selected {
  background: var(--color-gold);
}

.dot.booked {
  background: #e06666;
}

.dot.available, .dot.available-green {
  background: #e7eae8;
}

.dot.unavailable {
  background: #999;
}

/* ==========================================================================
   Notification Center Dropdown
   ========================================================================== */
.notif-dropdown {
    position: absolute;
    top: 45px;
    right: -10px;
    width: 320px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(42, 37, 34, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Toggled by Javascript */
.notif-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(42, 37, 34, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
}

.notif-body {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar for the dropdown */
.notif-body::-webkit-scrollbar { width: 6px; }
.notif-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(42, 37, 34, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(214, 168, 112, 0.05); }
.notif-item.is-read { opacity: .72; }
.notif-item.is-unread { background: rgba(255, 250, 240, .72); }
.notif-item.read-error { outline: 2px solid #b91c1c; outline-offset: -2px; }
.notif-section-label {
    padding: 10px 20px 6px;
    color: var(--color-dark-light);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.notif-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-icon.bg-yellow { background: #fef08a; color: #a16207; }
.notif-icon.bg-red { background: #fecaca; color: #b91c1c; }
.notif-icon.bg-blue { background: #bfdbfe; color: #1d4ed8; }
.notif-icon.bg-green { background: #bbf7d0; color: #166534; }

.notif-content p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--color-dark);
    line-height: 1.4;
}

.notif-content span {
    font-size: 0.75rem;
    color: #888;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  /* Hero & Layout Adjustments */
  .hero-content h1 {
    font-size: 3rem;
  }
  .split-layout,
  .booking-row,
  .booking-row:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Activate Hamburger */
  .hamburger {
    display: flex;
  }

  /* Full-Screen Glassmorphism Mobile Menu */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 242, 226, 0.95); /* Semi-transparent warm beige */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Larger, elegant text for mobile tap targets */
  .nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: 0;
  }

  .nav-links .btn {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1rem;
  }

  /* Hamburger to 'X' Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /*DropDown Menu Adjustments for Mobile*/
  /*DropDown Menu Adjustments for Mobile*/
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown-menu {
    position: static; 
    opacity: 0;              /* Changed from 1 to 0 */
    visibility: hidden;      /* Changed from visible to hidden */
    display: none;           /* Hides it entirely until clicked */
    transform: none;
    box-shadow: none;
    background-color: transparent;
    min-width: 100%;
    margin-top: 10px;
    align-items: center;
    transition: all 0.3s ease;
  }

  /* The JS adds this class when you tap the button */
  .nav-dropdown-menu.active-mobile {
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }

  .btn-user-menu {
    font-size: 1rem;
    padding: 10px 30px;
  }

  /* Make dropdown links look like mobile nav links */
  .nav-dropdown-menu a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    border-bottom: none;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    padding: 0 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 90%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: center;
  }

  /* Existing styles */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .booking-img-wrapper img {
    height: 300px;
  }

  .booking-info .btn-primary {
    margin-bottom: 15px;
  }

  .cal-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  .cal-month-year {
    font-size: 1.3rem;
  }
  .cal-day-cell {
    height: 40px;
    font-size: 0.85rem;
    margin: 0 2px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-buttons .btn {
    width: 90%;
    max-width: 280px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   GLOBAL FOOTER (Matches New Homepage Design)
   ========================================================================== */
.idx-footer {
  background: var(--color-gold);
  color: #2a2522;
}
.idx-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.idx-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}
.idx-footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.idx-footer-brand p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.85rem;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(42, 37, 34, 0.78);
}
.idx-footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
}
.idx-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.idx-footer-col li { margin-bottom: 0.75rem; }
.idx-footer-col a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(42, 37, 34, 0.82);
  transition: opacity 0.3s ease;
  text-decoration: none;
}
.idx-footer-col a:hover { opacity: 0.6; }
.idx-footer-bottom {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(42, 37, 34, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(42, 37, 34, 0.65);
}
@media (min-width: 768px) {
  .idx-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .idx-footer-inner {
    padding: 3rem 1.25rem 2rem;
  }

  .idx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1.75rem;
  }

  .idx-footer-brand,
  .idx-footer-col:last-child {
    grid-column: 1 / -1;
  }

  .idx-footer-brand p {
    margin-top: 0.75rem;
    line-height: 1.65;
  }

  .idx-footer-col h4 {
    margin-bottom: 0.75rem;
  }

  .idx-footer-col li {
    margin-bottom: 0.5rem;
  }

  .idx-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.62rem;
    line-height: 1.5;
  }
}

/* ==========================================================================
   DASHBOARD OVERRIDES (Admin & User) - LOVABLE MINIMAL LUXURY
   ========================================================================== */

/* 1. Sharp Corners for Cards, Inputs, and Modals */
.admin-layout input, .admin-layout select, .admin-layout textarea,
.admin-layout .stat-card, .admin-layout .chart-card, .admin-layout .widget-card,
.admin-layout .table-card, .admin-layout .booking-card, .admin-layout .checkout-summary,
.admin-layout .cms-card, .admin-layout .sidebar, .admin-layout .legend-box,
.dashboard-layout input, .dashboard-layout select, .dashboard-layout textarea,
.dashboard-layout .stat-card, .dashboard-layout .settings-card, 
.dashboard-layout .history-container, .modal-box, .admin-modal, .modal-content {
  border-radius: 0 !important;
}

/* 2. Global Button Styling (Wide tracking, uppercase, small font) */
:is(.admin-layout, .dashboard-layout, .modal-overlay) .btn,
:is(.admin-layout, .dashboard-layout, .modal-overlay) button[class*="btn-"],
:is(.admin-layout, .dashboard-layout) .filter-pill,
:is(.admin-layout, .dashboard-layout) .cms-pill,
.fc-button-primary {
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transition: all 0.4s ease !important;
}

/* 3. Primary Dark "Ink" Buttons (Save, Confirm, Export) */
.btn-quick-action:not(.outline),
.save-btn,
.btn-confirm-walkin,
.btn-export-csv,
.btn-primary-dash,
.btn-modal-primary {
  background-color: var(--color-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-dark) !important;
}
.btn-quick-action:not(.outline):hover,
.save-btn:hover,
.btn-confirm-walkin:hover,
.btn-export-csv:hover,
.btn-primary-dash:hover,
.btn-modal-primary:hover {
  background-color: #ffffff !important;
  color: var(--color-dark) !important;
}

/* 4. Secondary Outline Buttons (Back, Edit, Reschedule) */
.btn-back,
.btn-quick-action.outline,
.btn-outline-dash,
.btn-modal-outline,
.btn-replace,
.btn-edit-venue,
.fc-button-primary {
  background-color: transparent !important;
  color: var(--color-dark) !important;
  border: 1px solid rgba(42, 37, 34, 0.4) !important;
}
.btn-back:hover,
.btn-quick-action.outline:hover,
.btn-outline-dash:hover,
.btn-modal-outline:hover,
.btn-replace:hover,
.btn-edit-venue:hover,
.fc-button-primary:hover {
  background-color: rgba(42, 37, 34, 0.05) !important;
  border-color: var(--color-dark) !important;
}

/* 5. Table Action Buttons (Tightened tracking so tables don't break) */
.action-cells .btn-action,
.um-actions button,
.history-table .btn-action {
  padding: 10px 14px !important;
  letter-spacing: 0.15em !important; /* Slightly tighter to fit in tables */
  font-size: 0.65rem !important;
}

/* 6. Status Badges & Pills (Editorial look) */
.badge,
.status-badge,
.v-badge,
.um-pill {
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
}

/* 7. Make the active tab underline sharper */
.tab-btn::after,
.um-tab.active::after,
.venue-filter-btn::after {
  border-radius: 0 !important;
  height: 1px !important;
}

.addon-note { font-size: .88rem; color: #6b7280; margin: 0 0 .75rem; }
.addon-room-calendar { margin: 0 0 1rem; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; }
.addon-room-calendar-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; color: #374151; }
.addon-room-calendar-heading span { color: #6b7280; font-size: .88rem; text-align: right; }
.contact-number-options, .save-contact-choice { display: grid; gap: .45rem; margin: .5rem 0; color: #4b5563; font-size: .9rem; }
@media (max-width: 640px) { .addon-room-calendar-heading { flex-direction: column; } .addon-room-calendar-heading span { text-align: left; } }

/* Payment recovery shares the centered white alert treatment on booking and dashboard pages. */
.paymongo-recovery-overlay { z-index: 10000; background: rgba(0, 0, 0, .5); }
.paymongo-recovery-dialog {
  box-sizing: border-box; width: 90%; max-width: 400px; max-height: 90dvh; overflow-y: auto;
  padding: 25px; border-radius: 8px; background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2); text-align: center;
}
.paymongo-recovery-icon { display: block; margin: 0 auto 15px; color: #d6a870; font-size: 3rem; }
.paymongo-recovery-title { margin: 0 0 10px; color: #2a2522; font-size: 1.45rem; line-height: 1.25; text-align: center; }
.paymongo-recovery-message { margin: 0 0 20px; color: #666; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.paymongo-recovery-actions { display: grid; gap: 10px; margin: 0; }
.paymongo-recovery-button {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 4px; font: 600 .95rem/1.3 var(--font-body, Inter, sans-serif); cursor: pointer;
}
.paymongo-recovery-button--primary { border: 1px solid #8b602b; background: #8b602b; color: #fff; }
.paymongo-recovery-button--primary:hover { background: #735023; border-color: #735023; }
.paymongo-recovery-button--secondary { border: 1px solid rgba(42, 37, 34, .28); background: #fff; color: #4a4440; }
.paymongo-recovery-button--secondary:hover { background: #f7f3ed; }
.paymongo-recovery-button:focus-visible { outline: 2px solid #d6a870; outline-offset: 3px; }
.paymongo-recovery-actions [hidden] { display: none !important; }
@media (max-width: 480px) {
  .paymongo-recovery-dialog { width: calc(100% - 24px); padding: 22px 18px; }
  .paymongo-recovery-title { font-size: 1.35rem; }
}
