/* ==========================================================================
   Illusions Premier Spa & Wellness Ecosystem - Main Subsystem Stylesheet
   Color System: 90/10 Rule (Charcoal, Soft Ivory, Champagne Gold, Rich Walnut, Coral)
   ========================================================================== */

:root {
  /* Common / Accent Values */
  --color-charcoal: #18171A;
  --color-charcoal-light: #232227;
  --color-sage: #8A9A86;
  
  /* Signature Accent - strictly reserved for CTAs, notifications & active states */
  --color-coral: #E05A47;
  --color-coral-hover: #C94938;

  /* Form Element Standard Heights (Rule 9) */
  --input-height: 46px;
  --input-radius: 10px;
  --input-border: 1px solid rgba(24, 23, 26, 0.12);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(24, 23, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(24, 23, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 23, 26, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.15);

  /* 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);
}

/* Herbal Botanical Theme (Universal Ecosystem Default) */
html,
html[data-theme="botanical"] {
  --color-ivory: #FFFFFF;
  --color-ivory-alt: #F3F5F4;
  --color-gold: #7BB942;
  --color-gold-light: #8DCD53;
  --color-gold-glow: rgba(123, 185, 66, 0.25);
  --color-walnut: #3A4D28;

  /* Dynamic Buttons */
  --btn-bg: #7BB942;
  --btn-bg-hover: #6DA538;
  --btn-shadow: 0 4px 14px rgba(123, 185, 66, 0.3);
  --btn-shadow-hover: 0 6px 18px rgba(123, 185, 66, 0.45);

  /* Dynamic Treatment Tags / Badges */
  --badge-bg: rgba(123, 185, 66, 0.15);
  --badge-color: #3A4D28;
  --badge-border: 1px solid rgba(123, 185, 66, 0.35);
}

/* Classic Heritage Luxury Theme (Alternative Theme Option) */
html[data-theme="luxury"] {
  --color-ivory: #F8F5F0;
  --color-ivory-alt: #EFEAE3;
  --color-gold: #C89A5A;
  --color-gold-light: #DFC088;
  --color-gold-glow: rgba(200, 154, 90, 0.25);
  --color-walnut: #5B4033;
  
  /* Dynamic Buttons */
  --btn-bg: var(--color-coral);
  --btn-bg-hover: var(--color-coral-hover);
  --btn-shadow: 0 4px 14px rgba(224, 90, 71, 0.25);
  --btn-shadow-hover: 0 6px 18px rgba(224, 90, 71, 0.35);

  /* Dynamic Treatment Tags / Badges */
  --badge-bg: rgba(200, 154, 90, 0.15);
  --badge-color: var(--color-walnut);
  --badge-border: 1px solid rgba(200, 154, 90, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Rule 29: Ecosystem-Wide Modal & Drawer Scroll-Locking */
html.body-scroll-lock,
html.modal-open,
html.concierge-open,
body.body-scroll-lock,
body.modal-open,
body.concierge-open {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  max-width: 100% !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

/* Standard Unified Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Glass Navigation */
.spa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 245, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 154, 90, 0.15);
  transition: var(--transition-fast);
}

.spa-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.spa-nav.container {
  max-width: 1520px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.3vw, 1.5rem);
  flex: 1 1 auto;
  min-width: 0;
  margin-inline: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--color-charcoal);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  padding-left: clamp(1rem, 1.5vw, 1.5rem);
  border-left: 1px solid var(--color-gold-glow);
}

.header-actions .js-open-booking,
.header-actions .customer-login-link {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.customer-account-link {
  min-height: 46px;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--color-charcoal);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}

.customer-account-link:hover,
.customer-account-link:focus-visible {
  color: var(--color-gold);
}

.booking-label-short {
  display: none;
}

/* About Page */
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.about-story-copy,
.about-image-column {
  min-width: 0;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-value-card {
  min-width: 0;
  padding: 1.5rem;
  border-radius: 12px;
  border: var(--badge-border);
  background: var(--color-ivory-alt);
}

.about-image-frame {
  overflow: hidden;
  border: var(--badge-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-image {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.contact-locations-column,
.contact-form-column {
  min-width: 0;
}

.contact-location-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-location-card,
.contact-form-card {
  min-width: 0;
  background: var(--color-ivory-alt);
  border: var(--badge-border);
  box-shadow: var(--shadow-sm);
}

.contact-location-card {
  padding: 1.75rem;
  border-radius: 14px;
}

.contact-form-card {
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.contact-location-details {
  margin-bottom: 0.85rem;
  color: rgba(24, 23, 26, 0.75);
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.contact-location-details a {
  color: inherit;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}

.contact-location-hours {
  color: rgba(24, 23, 26, 0.58);
  font-size: 0.8rem;
  line-height: 1.65;
}

.contact-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 23, 26, 0.08);
}

.contact-action-link {
  min-height: 46px;
  padding: 0 1rem;
  border: var(--badge-border);
  border-radius: var(--input-radius);
  background: var(--badge-bg);
  color: var(--badge-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-action-link:hover,
.contact-action-link:focus-visible {
  background: var(--color-gold);
  color: #fff;
}

/* Gallery Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: var(--badge-border);
  border-radius: 16px;
  background: var(--color-ivory-alt);
  box-shadow: var(--shadow-sm);
}

.gallery-image {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 280px);
  object-fit: cover;
}

.gallery-card-content {
  padding: 1.5rem;
}

.gallery-cta-card {
  min-height: 280px;
  padding: 3rem;
  background: var(--color-charcoal);
  color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gallery-cta-card .btn-primary {
  min-height: 46px;
}

/* Spa Etiquette Page */
.etiquette-container {
  max-width: 960px;
}

.etiquette-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.etiquette-card {
  min-width: 0;
  padding: 2rem 2.5rem;
  border: var(--badge-border);
  border-radius: 16px;
  background: var(--color-ivory-alt);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.etiquette-card p {
  max-width: 75ch;
}

.booking-secondary-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mobile-account-nav {
  display: none;
}

.mobile-account-action {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: var(--badge-border);
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-account-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.branch-select-wrapper {
  position: relative;
}

.branch-select {
  height: 42px;
  padding: 0 1rem;
  border-radius: var(--input-radius);
  border: var(--input-border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.branch-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

/* Premium Buttons */
.btn-primary {
  height: var(--input-height);
  padding: 0 1.75rem;
  border-radius: var(--input-radius);
  background: var(--btn-bg);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

.btn-outline {
  height: var(--input-height);
  padding: 0 1.75rem;
  border-radius: var(--input-radius);
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.btn-outline-light, 
.btn-outline-light:visited {
  height: var(--input-height);
  padding: 0 1.75rem;
  border-radius: var(--input-radius);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none !important;
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: var(--color-gold);
  color: var(--color-charcoal) !important;
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 154, 90, 0.3);
}

/* Edge-to-Edge Full-Width Slideshow Hero Section */
.hero-slider-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 88vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-charcoal);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s cubic-bezier(0.25, 1, 0.35, 1), visibility 2s step-end;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 2s cubic-bezier(0.25, 1, 0.35, 1), visibility 0s step-start;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08); /* Start slightly zoomed in for slow zoom back-and-forth movement */
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1); /* Slow cinematic zoom-out back to native scale */
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  /* Darken slightly at the base to keep white text on the bottom bar ultra-legible */
  background: linear-gradient(
    180deg, 
    rgba(24, 23, 26, 0.4) 0%, 
    rgba(24, 23, 26, 0.25) 50%, 
    rgba(24, 23, 26, 0.75) 100%
  );
  z-index: 1;
}

.hero-slide-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
}

/* Beautiful bottom horizontal container split bar across the screen width */
.hero-glass-card {
  width: 100%;
  max-width: 100% !important;
  background: rgba(24, 23, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(200, 154, 90, 0.2);
  border-bottom: none;
  box-shadow: var(--shadow-glass);
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

/* Slimmer layout typography details */
.hero-text-content-split {
  flex: 1;
  max-width: 45%;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 30px;
  background: rgba(200, 154, 90, 0.15);
  border: 1px solid rgba(200, 154, 90, 0.3);
  color: var(--color-gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

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

.hero-description {
  font-size: 0.85rem;
  color: rgba(248, 245, 240, 0.8);
  margin-bottom: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Keeps long desc clean on wide grids */
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Slider Controls merged inside the bottom container panel */
.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
}

.slider-arrow-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: var(--transition-fast);
}

.slider-arrow-btn:hover {
  color: var(--color-gold);
  transform: scale(1.15);
}

.slider-dots-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--color-gold);
  width: 24px;
  border-radius: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(248, 245, 240, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Section (Ash Linen Canvas) */
.services-section {
  padding: 100px 0;
  background: var(--color-ivory-alt, #F0F2EE);
  border-top: 1px solid rgba(24, 23, 26, 0.05);
  border-bottom: 1px solid rgba(24, 23, 26, 0.05);
}

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-swipe-hint {
  display: none;
}

.filter-btn {
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 23, 26, 0.08);
  background: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(24, 23, 26, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-charcoal);
  color: #FFFFFF;
  border-color: var(--color-charcoal);
  box-shadow: 0 4px 12px rgba(24, 23, 26, 0.15);
  transform: translateY(-1px);
}

/* Treatment Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.treatment-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(24, 23, 26, 0.06);
  box-shadow: 0 4px 20px rgba(24, 23, 26, 0.04), 0 1px 3px rgba(24, 23, 26, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  position: relative;
}

.treatment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 185, 66, 0.35);
  box-shadow: 0 16px 36px rgba(24, 23, 26, 0.08), 0 4px 12px rgba(24, 23, 26, 0.04);
}

.treatment-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.treatment-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-charcoal);
  flex: 1 1 60%;
}

.treatment-tag {
  position: static; /* Normal flex flow prevents any overlapping */
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-color);
  border: var(--badge-border);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.treatment-desc {
  font-size: 0.9rem;
  color: rgba(24, 23, 26, 0.7);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.treatment-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(24, 23, 26, 0.06);
}

.duration-price {
  display: flex;
  flex-direction: column;
}

.duration-text {
  font-size: 0.78rem;
  color: rgba(24, 23, 26, 0.5);
  text-transform: uppercase;
  font-weight: 600;
}

.price-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.btn-book-sm {
  height: 38px;
  padding: 0 1.25rem;
  border-radius: 8px;
  background: var(--btn-bg);
  color: #FFFFFF;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition-fast);
}

.btn-book-sm:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

/* Highlights & Experience Grid */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Locations & Sanctuary Grid */
.locations-section {
  padding: 90px 0;
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.locations-section .section-title {
  color: var(--color-ivory);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.location-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-charcoal-light);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(200, 154, 90, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-name {
  color: var(--color-gold);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.location-detail {
  font-size: 0.9rem;
  color: rgba(248, 245, 240, 0.8);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-detail svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.location-hours {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(248, 245, 240, 0.6);
  overflow-wrap: anywhere;
}

/* Booking Drawer & Modal */
.booking-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 23, 26, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.booking-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.booking-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  background: var(--color-ivory);
  z-index: 2001;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-smooth), visibility var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  box-sizing: border-box; /* Force sizing boundaries */
}

/* Perfect alignment overrides for tablet and mobile devices */
@media (max-width: 576px) {
  .booking-drawer {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .drawer-header {
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  .drawer-header > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .drawer-body {
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden; /* Strongly restrict side-to-side scrolling wiggle */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-footer {
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Make sure flex inputs wrap neatly and stay inside boundaries */
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Booking Date & Time Responsive Grid (Zero-Blowout Guarantee) */
.booking-date-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .booking-date-time-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.booking-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(24, 23, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.drawer-title {
  font-size: 1.25rem;
  color: var(--color-charcoal);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-charcoal);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-drawer:hover {
  background: rgba(24, 23, 26, 0.05);
}

.drawer-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

/* Premium Standard Inputs (Rule 9) */
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 1rem;
  border-radius: var(--input-radius);
  border: var(--input-border);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-charcoal);
  outline: none;
  transition: var(--transition-fast);
}

.form-textarea {
  height: auto;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.drawer-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(24, 23, 26, 0.08);
  background: #FFFFFF;
}

/* Footer */
.spa-footer {
  background: #111012;
  color: rgba(248, 245, 240, 0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(200, 154, 90, 0.15);
}

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

.footer-brand-block {
  min-width: 0;
}

.footer-col h4 {
  color: var(--color-ivory);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(248, 245, 240, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap; /* Fluid wrap */
  gap: 1rem;
}

.credit-link {
  color: var(--color-gold);
  font-size: 0.68rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.credit-link a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(200, 154, 90, 0.3);
  padding-bottom: 1px;
  transition: var(--transition-fast);
}

.credit-link a:hover {
  color: var(--color-ivory);
  border-bottom-color: var(--color-ivory);
}

/* Semantic Account & Login Controls (Finding 6.1 / Rule 9) */
.user-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(200, 154, 90, 0.08);
  border: 1px solid rgba(200, 154, 90, 0.25);
  transition: all var(--transition-fast);
  color: var(--color-charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  height: 46px;
  box-sizing: border-box;
}

.user-account-btn:hover {
  background: rgba(200, 154, 90, 0.15);
  border-color: var(--color-gold);
}

.user-account-btn:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 154, 90, 0.35);
}

.user-account-btn[aria-expanded="true"] {
  background: rgba(200, 154, 90, 0.2);
  border-color: var(--color-gold);
}

.customer-login-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--color-charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin-left: 15px;
  padding: 0 0.5rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.customer-login-btn:hover {
  border-bottom-color: var(--color-charcoal);
  color: var(--color-gold);
}

.customer-login-btn:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 154, 90, 0.35);
}

/* User Account Menu Card Keyboard Navigation */
#userAccountMenuCard a:focus-visible,
#userAccountMenuCard button:focus-visible {
  outline: none;
  background: rgba(200, 154, 90, 0.15) !important;
  color: var(--color-gold) !important;
}

/* Mobile Nav Backdrop Overlay (Finding 6.2 / Rule 29) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 23, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10400;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu Toggle Button styling */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
  outline: none;
  border-radius: 4px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
  transform-origin: center;
}

/* Hamburger toggle active/open animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-gold);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-gold);
}

/* Responsive Adjustments */
@media (max-width: 1180px) {
  /* Rule 24 / Rule 29: When mobile drawer is open, elevate .spa-header above .nav-backdrop so the drawer is crystal clear and never blurred */
  .spa-header.menu-open,
  .spa-header:has(.nav-links.active) {
    z-index: 10500 !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
  }

  .spa-header.menu-open .nav-links,
  .spa-header:has(.nav-links.active) .nav-links,
  .spa-header.menu-open .mobile-menu-toggle,
  .spa-header:has(.nav-links.active) .mobile-menu-toggle {
    pointer-events: auto;
  }

  .spa-header.menu-open .header-actions,
  .spa-header:has(.nav-links.active) .header-actions {
    opacity: 0;
    pointer-events: none;
  }

  /* Ensure header container is aligned cleanly */
  .spa-nav {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 80px;
    width: 100%;
  }

  /* Keep mobile toggle button spaced cleanly */
  .mobile-menu-toggle {
    display: flex;
    order: 3;
    margin-left: 0.5rem;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 10600; /* Sits above backdrop and drawer when active */
  }

  /* Restructure actions horizontally to prevent overlapping or vertical layout breaks */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 2;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .customer-account-link,
  .customer-login-link,
  .customer-login-btn,
  .user-account-dropdown-wrapper {
    display: none !important;
  }

  /* Side Drawer Layout: Perfect Contrast & Solid Full Viewport Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    width: min(320px, calc(100vw - 32px));
    height: 100dvh; /* Fill the visible mobile viewport */
    background-color: var(--color-ivory) !important;
    border-left: 1px solid rgba(200, 154, 90, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 104px 2rem calc(40px + env(safe-area-inset-bottom));
    gap: 1.5rem;
    z-index: 10500; /* Sits above backdrop and page elements */
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(24, 23, 26, 0.2);
    margin: 0;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .nav-links.active {
    transform: translateX(0); /* Smooth slide-out display trigger */
    visibility: visible;
    pointer-events: auto;
  }

  /* Clean list element styling inside mobile drawer */
  .nav-links li {
    width: 100%;
    margin: 0;
  }

  .mobile-account-nav {
    display: block;
    margin-bottom: 0.25rem !important;
  }

  .nav-link {
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    width: 100%;
    padding: 0.5rem 0 0.5rem 0;
    color: #18171A !important; /* Charcoal Black text for maximum readability contrast */
    border-bottom: 1px solid rgba(24, 23, 26, 0.08);
    display: block;
    transition: var(--transition-fast);
  }

  .nav-link:hover, .nav-link.active {
    color: var(--color-gold) !important;
    padding-left: 0.5rem;
  }

  .nav-link.active::after {
    display: none; /* Hide desktop underline */
  }

  /* Branch Select & Button Sizing Adjustments - Compact & Clean spacing */
  .branch-select-wrapper {
    display: block; /* Always visible on tablets and mobile screens */
    width: 140px; /* Compact width to fit all items side-by-side */
  }

  .branch-select {
    height: 38px;
    width: 100%;
    padding: 0 1.25rem 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    background-color: #FFFFFF;
    border: 1px solid rgba(24, 23, 26, 0.15);
    color: #18171A;
  }

  .spa-header .btn-primary {
    height: 46px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    border-radius: 8px;
    gap: 0.25rem;
  }

  .spa-header .btn-primary svg {
    width: 14px;
    height: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider-controls {
    display: none !important;
  }

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

  /* Stacks highlight sections into neat, spacious vertical full-width rows on mobile */
  .highlight-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1180px) and (max-height: 700px) {
  .nav-links {
    padding-top: 84px;
    gap: 0.5rem;
  }

  .nav-link {
    padding-block: 0.55rem;
    font-size: 1rem;
  }

  .mobile-account-action {
    min-height: 46px;
  }
}

/* Premium Mobile Hero Adjustments */
@media (max-width: 768px) {
  .container {
    padding-inline: 1.25rem;
  }

  .services-section,
  .locations-section {
    padding-block: 72px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .category-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.625rem;
    margin-inline: -1.25rem;
    margin-bottom: 0;
    padding: 0 1.25rem 0.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-filter-shell {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    max-width: 100%;
  }

  .category-filter-shell::before,
  .category-filter-shell::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 2rem;
    width: 2rem;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
  }

  .category-filter-shell::before {
    left: 0;
    background: linear-gradient(to right, var(--color-ivory), transparent);
  }

  .category-filter-shell::after {
    right: 0;
    background: linear-gradient(to left, var(--color-ivory), transparent);
  }

  .category-filter-shell.has-overflow:not(.is-at-end)::after,
  .category-filter-shell.is-scrolled::before {
    opacity: 1;
  }

  .category-swipe-hint {
    min-height: 2rem;
    padding-top: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    color: var(--color-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: opacity var(--transition-fast);
  }

  .category-filter-shell.is-at-end .category-swipe-hint {
    opacity: 0;
  }

  .category-swipe-arrow {
    font-size: 1rem;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    height: 46px;
    border-radius: 23px;
  }

  .treatment-card {
    padding: 1.5rem;
  }

  .btn-book-sm {
    min-height: 46px;
  }

  .locations-grid {
    min-width: 0;
    gap: 1.25rem;
  }

  .location-card {
    padding: 1.5rem;
  }

.location-hours {
    line-height: 1.7;
  }

  .location-card a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
  }

  .about-banner {
    padding-top: 120px !important;
    padding-bottom: 52px !important;
  }

  .about-banner .section-title {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
  }

  .contact-banner {
    padding-top: 124px !important;
    padding-bottom: 48px !important;
  }

  .contact-banner .section-title {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
  }

  .contact-section {
    padding-block: 64px !important;
  }

  .contact-form-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact-location-card {
    padding: 1.5rem;
  }

  .contact-details-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-action-link {
    flex: 1 1 140px;
  }

  .gallery-banner {
    padding-top: 124px !important;
    padding-bottom: 48px !important;
  }

  .gallery-banner .section-title {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
  }

  .gallery-section {
    padding-block: 64px !important;
  }

  .gallery-grid {
    gap: 1.25rem;
  }

  .gallery-card-content {
    padding: 1.25rem;
  }

  .gallery-image {
    height: clamp(210px, 68vw, 300px);
  }

  .gallery-cta-card {
    min-height: 240px;
    padding: 2rem 1.5rem;
  }

  .etiquette-banner {
    padding-top: 124px !important;
    padding-bottom: 48px !important;
  }

  .etiquette-banner .section-title {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
  }

  .etiquette-section {
    padding-block: 64px !important;
  }

  .etiquette-list {
    gap: 1.25rem;
  }

  .etiquette-card {
    padding: 1.5rem;
  }

  .etiquette-card h3 {
    font-size: 1.2rem !important;
    line-height: 1.35;
  }

  .about-story-section {
    padding-block: 64px !important;
  }

  .about-image {
    height: clamp(280px, 72vw, 420px);
  }

  .spa-footer {
    padding: 64px 0 32px;
  }

  .footer-grid {
    gap: 2.25rem;
    margin-bottom: 3rem;
  }

  .footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .footer-brand-block .brand-logo {
    margin-bottom: 0.75rem !important;
  }

  .footer-brand-block p {
    max-width: 36rem !important;
    line-height: 1.75;
  }

  .hero-slider-section {
    height: 100vh; /* Restore full viewport background slideshow bounds */
    min-height: 560px;
    padding: 0;
    display: flex;
    align-items: flex-end; /* Align to the bottom of mobile viewport */
  }

  .hero-slide {
    align-items: flex-end !important; /* Move active slides to bottom of screen on mobile */
  }

  .hero-slide-container {
    padding: 0;
    position: relative;
    width: 100%;
  }

  .hero-glass-card {
    padding: 2rem 1.5rem;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(200, 154, 90, 0.2);
    border-bottom: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: rgba(24, 23, 26, 0.85); /* Slightly darker on mobile for better text readability */
  }

  .hero-text-content-split {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .hero-title span {
    font-style: italic;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline-light {
    width: 100% !important;
    height: var(--input-height) !important; /* Unified 46px Height */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.88rem;
    padding: 0;
  }

  /* Do away with slider controls on tablets/mobile to avoid clashing with buttons */
  .hero-slider-controls {
    display: none !important;
  }
}

.location-hours-list {
  display: grid;
  gap: 0.35rem;
}

.location-hours-list p {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 0.5rem;
  margin: 0;
}

.location-phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.location-phone-list span {
  white-space: nowrap;
}

@media (max-width: 576px) {
  /* Super fine-tuning for narrow mobile screen spacing */
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-glass-card {
    padding: 1.75rem 1rem;
  }

  .spa-nav {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
  }

  .brand-logo img {
    width: 96px !important;
    height: auto !important;
    max-height: 46px;
  }
  
  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    font-size: 0.58rem;
  }

  /* Shrink elements proportionally on narrow screens to fit the branch selector cleanly */
  .branch-select-wrapper {
    width: 110px;
  }

  .branch-select {
    padding: 0 0.75rem 0 0.35rem;
    font-size: 0.72rem;
  }

  .spa-header .btn-primary {
    min-width: 82px;
    padding: 0 0.65rem;
    font-size: 0.76rem;
    line-height: 1.15;
    margin-right: 0 !important;
  }

  .booking-label-full {
    display: none;
  }

  .booking-label-short {
    display: inline;
  }

  .spa-header .btn-primary svg {
    display: none; /* Hide icon on tiny screens to save maximum inline space */
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    margin-left: 0;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle span {
    width: 24px;
  }

  .header-actions {
    gap: 0.35rem;
    min-width: 0;
  }

  .header-actions > span:last-child {
    height: 46px !important;
    margin-left: 0 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
  }

  .section-title {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
  }

  .services-grid {
    min-width: 0;
  }

  .treatment-card {
    min-width: 0;
    padding: 1.25rem;
  }

  .treatment-card .btn-book-sm {
    min-width: 112px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .about-value-card {
    padding: 1.25rem;
  }

  .booking-secondary-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .booking-secondary-actions .btn-primary {
    min-height: 46px !important;
  }

  /* Stack copyright lines into separate, clean rows on small mobile viewports */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 340px) {
  .container {
    padding-inline: 1rem;
  }

  .spa-nav {
    padding-inline: 0.5rem;
    gap: 0.375rem;
  }

  .brand-logo img {
    width: 88px !important;
  }

  .header-actions > span:last-child {
    display: none !important;
  }

  .category-filter-bar {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .location-card {
    padding: 1.25rem;
  }

  .location-name {
    font-size: 1.2rem;
  }

  .drawer-header,
  .drawer-body,
  .drawer-footer {
    padding-inline: 1rem;
  }

  .drawer-header > div {
    min-width: 0;
  }

  .drawer-header p {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   Universal Ecosystem Shopping Bag & Drawer (Rule 1 / Rule 2 / Rule 9 / Rule 20 / Rule 28)
   ========================================================================== */
.nav-cart-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  height: 46px !important;
  padding: 0 1rem !important;
  background: var(--badge-bg, rgba(123, 185, 66, 0.12)) !important;
  border: var(--badge-border, 1px solid rgba(123, 185, 66, 0.35)) !important;
  border-radius: 999px !important;
  color: var(--color-charcoal, #18171A) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: all var(--transition-fast) !important;
  white-space: nowrap !important;
}

.nav-cart-trigger:hover {
  background: var(--color-gold-glow, rgba(123, 185, 66, 0.25)) !important;
  border-color: var(--color-gold, #7BB942) !important;
  color: var(--color-charcoal, #18171A) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nav-cart-trigger:focus-visible {
  outline: none;
  border-color: var(--color-gold, #7BB942) !important;
  box-shadow: 0 0 0 3px var(--color-gold-glow, rgba(123, 185, 66, 0.35));
}

.nav-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
}

.nav-cart-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  display: block;
}

.nav-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-coral, #E05A47);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(224, 90, 71, 0.4);
  animation: badge-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badge-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Slide-Out Quick Bag Drawer */
.ecosystem-bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 440px);
  background: var(--color-ivory, #FFFFFF);
  border-left: 1px solid rgba(24, 23, 26, 0.1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

.ecosystem-bag-drawer.active {
  transform: translateX(0);
}

.ecosystem-bag-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 23, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ecosystem-bag-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bag-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(24, 23, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-ivory-alt, #F3F5F4);
}

.bag-drawer-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-charcoal, #18171A);
  margin: 0;
}

.bag-drawer-subtitle {
  font-size: 0.78rem;
  color: var(--color-walnut, #3A4D28);
  margin-top: 0.2rem;
}

.bag-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--color-charcoal, #18171A);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bag-drawer-close:hover {
  background: rgba(24, 23, 26, 0.06);
}

.bag-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bag-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C89A5A;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bag-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(24, 23, 26, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bag-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #F8F5F0;
  border: 1px solid rgba(24, 23, 26, 0.06);
}

.bag-item-details {
  flex: 1 1 auto;
  min-width: 0;
}

.bag-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #18171A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.2rem 0;
}

.bag-item-meta {
  font-size: 0.75rem;
  color: #5B4033;
}

.bag-item-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #18171A;
  text-align: right;
  white-space: nowrap;
}

.bag-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: #5B4033;
}

.bag-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.bag-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(24, 23, 26, 0.08);
  background: #FFFFFF;
}

.bag-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bag-total-label {
  font-size: 0.9rem;
  color: #5B4033;
  font-weight: 600;
}

.bag-total-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #18171A;
}

.bag-checkout-btn {
  width: 100%;
  min-height: 48px;
  background: #18171A;
  color: #F8F5F0;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.bag-checkout-btn:hover {
  background: var(--color-gold);
  color: #18171A;
}

