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

:root {
  /* Color Palette - Luxury Coastal Boutique */
  --emerald-950: #041914;
  --emerald-900: #082821;
  --emerald-850: #0b342b;
  --emerald-800: #0f463a;
  --emerald-700: #166050;
  --emerald-600: #1d7b67;
  --teal-accent: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.35);

  --gold-500: #dfb15b;
  --gold-400: #e8c374;
  --gold-300: #f3dca2;
  --gold-glow: rgba(223, 177, 91, 0.3);

  --sand-50: #faf8f5;
  --sand-100: #f4efe6;
  --sand-200: #e8dfd1;
  --sand-300: #d6c8b4;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --white: #ffffff;

  /* Glassmorphism Variables */
  --glass-bg: rgba(8, 40, 33, 0.72);
  --glass-border: rgba(223, 177, 91, 0.25);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 40px -15px rgba(4, 25, 20, 0.5), 0 0 0 1px var(--glass-border);

  /* Card and Surface Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(8, 40, 33, 0.12);
  --shadow-lg: 0 20px 45px -15px rgba(8, 40, 33, 0.18);
  --shadow-xl: 0 25px 60px -20px rgba(8, 40, 33, 0.28);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
  font-family: inherit;
  outline: none;
}

/* ==========================================================================
   FLOATING PILL-SHAPED HEADER & NAVIGATION (NEW MENU ARCHITECTURE)
   ========================================================================== */
.floating-header-container {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 9999px; /* Pill Shape */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem 0.45rem 1.5rem;
  width: 100%;
  max-width: 1280px;
  transition: var(--transition-smooth);
}

.floating-nav.scrolled {
  background: rgba(6, 30, 24, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(223, 177, 91, 0.3);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sand-50);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand-logo-text span {
  color: var(--gold-400);
  font-style: italic;
  font-weight: 400;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--emerald-950);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Nav Links with Rounded Pill Form */
.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-shrink: 0;
}

.nav-link-pill {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.88);
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: inline-block;
}

.nav-link-pill:hover {
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-pill.active {
  color: var(--sand-50);
  background: rgba(45, 212, 191, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.4);
}

/* Nav Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn-pill-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--emerald-950);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: var(--transition-smooth);
}

.btn-pill-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
  filter: brightness(1.08);
}

.menu-drawer-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--sand-50);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-drawer-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold-400);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 6rem;
  background: linear-gradient(180deg, rgba(4, 25, 20, 0.45) 0%, rgba(8, 40, 33, 0.75) 100%),
              url('assets/hero.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.hero-backdrop-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 350px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(8, 40, 33, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-glow);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-400);
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(250, 248, 245, 0.9);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   INTELLIGENT BOOKING & DATES WIDGET (FLOATING CAPSULE FORM)
   ========================================================================== */
.booking-widget-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.booking-widget-capsule {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(223, 177, 91, 0.35);
  border-radius: 2rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(4, 25, 20, 0.45);
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.1fr;
  gap: 1rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.booking-field-group {
  text-align: left;
  padding: 0.4rem 0.8rem;
  border-radius: 1.25rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.booking-field-group:hover {
  background: var(--sand-100);
}

.booking-field-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-850);
  margin-bottom: 0.25rem;
}

.booking-field-group input, 
.booking-field-group select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
}

.booking-btn-submit {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-950) 100%);
  color: var(--sand-50);
  border: 1px solid var(--gold-400);
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 40, 33, 0.3);
  transition: var(--transition-smooth);
}

.booking-btn-submit:hover {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 40, 33, 0.45);
}

.booking-live-price-pill {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sand-100);
  border: 1px dashed var(--gold-400);
  border-radius: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--emerald-900);
}

.booking-live-price-pill strong {
  color: var(--emerald-700);
  font-size: 1rem;
}

/* ==========================================================================
   SEGMENTED CATEGORY & FILTER PILLS (NEW INTERACTIVE FILTER FORM)
   ========================================================================== */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 3.5rem auto 2rem;
  max-width: 900px;
}

.category-pill {
  background: var(--white);
  border: 1px solid var(--sand-200);
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.category-pill:hover {
  border-color: var(--gold-400);
  color: var(--emerald-900);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--emerald-850);
  border-color: var(--emerald-850);
  color: var(--sand-50);
  box-shadow: 0 6px 18px rgba(11, 52, 43, 0.25);
}

/* ==========================================================================
   CHALETS SHOWCASE & CARDS
   ========================================================================== */
.section-wrapper {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--emerald-950);
  line-height: 1.25;
}

.chalets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Luxury Chalet Card Form */
.chalet-card {
  background: var(--white);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(223, 177, 91, 0.18);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chalet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.chalet-card.featured {
  border: 2px solid var(--emerald-600);
}

.chalet-badge-status {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  background: rgba(11, 52, 43, 0.85);
  backdrop-filter: blur(10px);
  color: var(--teal-accent);
  border: 1px solid rgba(45, 212, 191, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chalet-badge-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: var(--teal-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal-accent);
}

.chalet-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.chalet-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.chalet-card:hover .chalet-img-wrapper img {
  transform: scale(1.05);
}

.chalet-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chalet-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.chalet-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chalet-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.chalet-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Amenities Pills */
.chalet-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.amenity-tag {
  background: var(--sand-100);
  color: var(--emerald-850);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.chalet-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sand-200);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.chalet-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.chalet-price-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chalet-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.chalet-price-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--emerald-950);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1.15;
}

.chalet-price-value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
}

.chalet-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.chalet-actions .btn-details-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--sand-100);
  color: var(--emerald-950);
  border: 1px solid var(--sand-300);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.chalet-actions .btn-details-link:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn-card-reserve,
.chalet-actions .btn-card-reserve {
  flex: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  background: var(--emerald-850);
  color: var(--sand-50);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid var(--gold-400);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-card-reserve:hover,
.chalet-actions .btn-card-reserve:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 52, 43, 0.3);
}

/* ==========================================================================
   EXCLUSIVE EXPERIENCE & AMENITIES SECTION
   ========================================================================== */
.experience-section {
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
  border-radius: 3rem;
  padding: 5rem 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.experience-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(223, 177, 91, 0.2);
  transition: var(--transition-fast);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}

.experience-icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-950));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(8, 40, 33, 0.2);
}

.experience-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--emerald-950);
  margin-bottom: 0.6rem;
}

.experience-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   LOCATION & BEACH STORY SPLIT
   ========================================================================== */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin: 5rem auto;
}

.story-image-stack {
  position: relative;
}

.story-img-main {
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  width: 100%;
}

.story-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-400);
  color: var(--sand-50);
  border-radius: 1.5rem;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.story-floating-badge h5 {
  color: var(--gold-300);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.story-floating-badge p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--gold-400);
}

.faq-question {
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--emerald-950);
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--emerald-850);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.4rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--emerald-850);
  color: var(--sand-50);
}

/* ==========================================================================
   MODAL / RESERVATION CHECKOUT DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 25, 20, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--white);
  border-radius: 2rem;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-400);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.25rem;
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sand-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gray-700);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gray-200);
}

.modal-chalet-preview {
  display: flex;
  gap: 1.25rem;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 1.25rem;
  padding: 1rem;
  margin: 1.5rem 0;
}

.modal-chalet-thumb {
  width: 100px;
  height: 80px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.price-summary-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.price-summary-table tr td {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.price-summary-table tr.total-row td {
  padding-top: 1rem;
  border-top: 1px solid var(--sand-200);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-950);
}

/* ==========================================================================
   MOBILE FULL-SCREEN DRAWER (ALTERNATIVE LUXURY MENU FORM)
   ========================================================================== */
.luxury-drawer-menu {
  position: fixed;
  inset: 0;
  background: var(--emerald-950);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sand-50);
}

.luxury-drawer-menu.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-links a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--sand-50);
  transition: var(--transition-fast);
}

.drawer-links a:hover {
  color: var(--gold-400);
  padding-left: 0.75rem;
}

/* ==========================================================================
   FLOATING WHATSAPP CONCIERGE BUTTON
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25d366;
  color: var(--white);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid var(--white);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.luxury-footer {
  background: var(--emerald-950);
  color: var(--sand-100);
  padding: 5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  color: rgba(250, 248, 245, 0.75);
  font-size: 0.92rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(250, 248, 245, 0.4);
}

/* ==========================================================================
   USER AUTH & DASHBOARD HEADER PILLS
   ========================================================================== */
.user-nav-container {
  display: flex;
  align-items: center;
}

.user-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sand-50);
  border: 1px solid rgba(223, 177, 91, 0.35);
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.user-nav-btn:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 177, 91, 0.25);
}

.user-logged-pill {
  background: linear-gradient(135deg, rgba(8, 40, 33, 0.9), rgba(11, 52, 43, 0.95));
  border: 1px solid var(--gold-400);
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--sand-50);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-logged-pill:hover {
  border-color: var(--teal-accent);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.user-pill-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   CHECKOUT PAYMENT METHOD TABS & FORMS
   ========================================================================== */
.payment-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.payment-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: var(--sand-100);
  border: 2px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-700);
  transition: var(--transition-fast);
}

.payment-tab-btn i {
  font-size: 1.25rem;
}

.payment-tab-btn.active {
  background: var(--sand-50);
  border-color: var(--gold-500);
  color: var(--emerald-950);
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.2);
}

.payment-tab-badge {
  background: #16a34a;
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 0.25rem;
}

.payment-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* Guest details inputs */
.checkout-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.checkout-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--sand-300);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  background: var(--sand-50);
  color: var(--emerald-950);
  transition: var(--transition-fast);
  outline: none;
}

.checkout-input:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(223, 177, 91, 0.2);
}

/* Pix UI Container */
.pix-box {
  background: linear-gradient(135deg, rgba(8, 40, 33, 0.03), rgba(45, 212, 191, 0.08));
  border: 1px dashed var(--teal-accent);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
}

.pix-qr-container {
  display: inline-block;
  background: var(--white);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin: 1rem 0;
}

.pix-qr-img {
  width: 180px;
  height: 180px;
  display: block;
}

.pix-code-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pix-code-input {
  flex-grow: 1;
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: var(--gray-700);
  font-family: monospace;
}

.pix-copy-btn {
  background: var(--emerald-850);
  color: var(--sand-50);
  border: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.pix-copy-btn:hover {
  background: var(--emerald-700);
}

.pix-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

/* 3D Credit Card Preview */
.vcard-container {
  perspective: 1000px;
  margin: 0 auto 1.5rem;
  max-width: 340px;
}

.vcard {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #0f3d32 0%, #082821 70%, #041914 100%);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: var(--white);
  box-shadow: 0 15px 35px rgba(8, 40, 33, 0.4);
  border: 1px solid rgba(223, 177, 91, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.vcard::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(223, 177, 91, 0.25) 0%, transparent 70%);
}

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

.vcard-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #e5b95f, #c69438);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vcard-brand {
  font-size: 1.75rem;
  color: var(--gold-400);
}

.vcard-number {
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--sand-100);
  margin: 0.5rem 0;
}

.vcard-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.vcard-holder {
  font-weight: 700;
  letter-spacing: 0.05em;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pay CTA buttons */
.btn-checkout-cta {
  width: 100%;
  padding: 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  margin-top: 1rem;
}

.btn-cta-pix {
  background: linear-gradient(135deg, var(--teal-accent), #0d9488);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.35);
}

.btn-cta-pix:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-cta-card {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950);
  box-shadow: 0 6px 18px rgba(223, 177, 91, 0.35);
}

.btn-cta-card:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  transform: translateY(-2px);
}

/* Voucher Confirmation Card */
.voucher-success-box {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.voucher-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #16a34a;
  color: var(--white);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.voucher-details-grid {
  background: var(--white);
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.voucher-detail-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ==========================================================================
   AUTH MODAL & TABS (ENTRAR / CADASTRAR)
   ========================================================================== */
.auth-tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--sand-100);
  padding: 0.4rem;
  border-radius: 9999px;
  margin: 1.5rem 0 1.75rem;
}

.auth-tab-btn {
  padding: 0.65rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--white);
  color: var(--emerald-950);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.auth-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

.auth-input-group {
  margin-bottom: 1rem;
}

.auth-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.35rem;
}

.auth-input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--sand-300);
  border-radius: 0.75rem;
  background: var(--sand-50);
  font-size: 0.92rem;
  color: var(--emerald-950);
  outline: none;
  transition: var(--transition-fast);
}

.auth-input-field:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(223, 177, 91, 0.2);
}

.auth-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--emerald-850), var(--emerald-950));
  color: var(--sand-50);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--gold-400);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(8, 40, 33, 0.25);
}

.auth-submit-btn:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
}

/* ==========================================================================
   USER DASHBOARD MODAL ("MINHAS RESERVAS")
   ========================================================================== */
.dashboard-user-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--emerald-950), #0e4438);
  padding: 1.5rem;
  border-radius: 1.25rem;
  color: var(--sand-50);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(223, 177, 91, 0.4);
}

.dashboard-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-info h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--sand-50);
  margin-bottom: 0.2rem;
}

.dashboard-info p {
  font-size: 0.82rem;
  color: var(--gold-300);
}

.reservations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.reservation-card-item {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 1rem;
  padding: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.reservation-card-item:hover {
  border-color: var(--gold-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.res-item-title {
  font-weight: 700;
  color: var(--emerald-950);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.res-item-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.res-item-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--teal-accent);
  background: var(--emerald-950);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.res-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.res-status-tag.confirmed {
  background: #dcfce7;
  color: #15803d;
}

.res-status-tag.pending {
  background: #fef3c7;
  color: #b45309;
}

.btn-logout {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  margin-top: 1rem;
}

.btn-logout:hover {
  background: #fecaca;
}

/* Toast Notifications */
.maysu-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--emerald-950);
  color: var(--sand-50);
  border: 1px solid var(--gold-400);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.maysu-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.maysu-toast.success i {
  color: #4ade80;
}

.maysu-toast.error i {
  color: #f87171;
}

/* ==========================================================================
   HEADER RESPONSIVE RULES (PREVENTS BREAKING & TEXT WRAPPING)
   ========================================================================== */
@media (max-width: 1220px) {
  .floating-nav {
    padding: 0.4rem 0.6rem 0.4rem 1.25rem;
  }
  .nav-menu-links {
    gap: 0.2rem;
  }
  .nav-link-pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }
  .btn-pill-gold {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
  }
  .user-pill-name {
    max-width: 95px;
  }
}

@media (max-width: 1040px) {
  .nav-menu-links {
    display: none !important;
  }
}

/* ==========================================================================
   LIGHTBOX PHOTO VIEWER MODAL (CHALE.HTML & GALLERY)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 25, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-wrapper {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(223, 177, 91, 0.4);
  color: var(--sand-50);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-btn:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
  transform: scale(1.1);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.lightbox-close {
  top: -3.5rem;
  right: 0;
}

.lightbox-prev {
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
  width: 100%;
  height: 68vh;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: #020f0c;
  border: 1px solid rgba(223, 177, 91, 0.3);
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 25, 20, 0.95) 100%);
  color: var(--sand-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.lightbox-caption #lightboxIndex {
  background: rgba(223, 177, 91, 0.2);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.5rem 0;
}

.lightbox-thumb {
  width: 68px;
  height: 48px;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

/* Hover overlay on mosaic items */
.mosaic-item {
  position: relative;
  cursor: pointer;
}

.mosaic-hover-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(6, 30, 24, 0.85);
  backdrop-filter: blur(8px);
  color: var(--sand-50);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(223, 177, 91, 0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.mosaic-item:hover .mosaic-hover-badge {
  background: var(--gold-400);
  color: var(--emerald-950);
  border-color: var(--gold-500);
  transform: scale(1.05);
}

/* ==========================================================================
   RESERVATION DETAILS & VOUCHER DIGITAL MODAL
   ========================================================================== */
.modal-voucher-card {
  padding: 2rem !important;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff !important;
}

.voucher-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sand-200);
}

.voucher-brand-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.voucher-status-pill {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.voucher-status-pill.approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.voucher-modal-banner {
  position: relative;
  height: 160px;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.voucher-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voucher-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 25, 20, 0.2) 0%, rgba(4, 25, 20, 0.92) 100%);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.voucher-code-capsule {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(8, 40, 33, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-400);
  border-radius: 0.75rem;
  padding: 0.35rem 0.75rem;
  text-align: right;
}

.voucher-code-capsule small {
  display: block;
  font-size: 0.62rem;
  color: var(--gold-300);
  letter-spacing: 0.08em;
}

.voucher-code-capsule strong {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--sand-50);
}

.voucher-banner-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--sand-50);
  margin-bottom: 0.15rem;
}

.voucher-banner-overlay p {
  font-size: 0.82rem;
  color: var(--gold-300);
}

.voucher-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.voucher-info-tile {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 0.85rem;
  padding: 0.85rem;
  text-align: center;
}

.info-tile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.info-tile-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--emerald-950);
}

.info-tile-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-600);
  margin-top: 0.2rem;
}

.voucher-section-box {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.voucher-section-box h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--emerald-950);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.voucher-guest-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
}

.voucher-guest-info-grid span {
  color: var(--gray-500);
  font-size: 0.78rem;
  display: block;
}

.voucher-guest-info-grid strong {
  color: var(--emerald-950);
}

.voucher-financial-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  color: var(--gray-700);
}

.voucher-financial-row.total-highlight {
  border-top: 2px dashed var(--sand-300);
  padding-top: 0.65rem;
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #15803d;
}

.stay-guidelines ul {
  padding-left: 1.25rem;
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.stay-guidelines li {
  margin-bottom: 0.35rem;
}

.voucher-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-voucher-action {
  flex: 1;
  padding: 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  border: none;
}

.btn-voucher-action.btn-print {
  background: var(--emerald-950);
  color: var(--sand-50);
  border: 1px solid var(--gold-400);
}

.btn-voucher-action.btn-print:hover {
  background: var(--emerald-850);
  transform: translateY(-2px);
}

.btn-voucher-action.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-voucher-action.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

/* Button to view voucher in reservation cards */
.btn-res-details {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-950));
  color: var(--gold-400);
  border: 1px solid var(--gold-400);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-res-details:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
  transform: translateY(-1px);
}

.reservation-card-item {
  cursor: pointer;
}

/* Real-time total badge on chalet cards */
.chalet-total-calc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #15803d;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #86efac;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(22, 101, 52, 0.08);
  margin-top: 0;
  animation: fadeInBadge 0.3s ease-out;
}

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

.chalet-card.calculated-pulse {
  animation: ratePulse 1.2s ease-out;
}

@keyframes ratePulse {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
  50% { transform: scale(1.02); box-shadow: 0 12px 30px rgba(45, 212, 191, 0.35), 0 0 0 2px var(--teal-accent); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Administrator & Legal Lessor Trust Badges */
.checkout-trust-badge {
  background: linear-gradient(135deg, rgba(8, 40, 33, 0.04), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(223, 177, 91, 0.45);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--emerald-950);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.checkout-trust-badge i {
  color: #16a34a;
  font-size: 1.35rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checkout-trust-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--emerald-950);
}

.checkout-trust-badge p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.voucher-admin-seal {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 0.75rem;
  padding: 0.65rem 0.95rem;
  margin: 0.85rem 0;
  font-size: 0.82rem;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.voucher-admin-seal i {
  color: #15803d;
  font-size: 1.15rem;
}

.legal-admin-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  position: relative;
}

.legal-admin-box h4 {
  color: #0f172a !important;
}

.legal-admin-box h4 i {
  color: #0284c7 !important;
}

/* Print Styles for Voucher */
@media print {
  body * {
    visibility: hidden;
  }
  #reservationDetailsModal, #reservationDetailsModal * {
    visibility: visible;
  }
  #reservationDetailsModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    display: block !important;
    opacity: 1 !important;
  }
  .modal-close-btn, .voucher-actions-row {
    display: none !important;
  }
  .modal-voucher-card {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

