/* ─────────────────────────────────────────
   DENTCITY DENTAL HOSPITALS — Premium CSS Design System
   ───────────────────────────────────────── */

:root {
  /* Brand Colours */
  --bg-primary:   #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card:      #13131e;
  --bg-card-hover:#18182a;

  --gold:         #c9a96e;
  --gold-light:   #e0c99a;
  --gold-dark:    #9c7a45;
  --gold-glow:    rgba(201, 169, 110, 0.15);

  --text-primary:   #f5f0ea;
  --text-secondary: #9e9a94;
  --text-muted:     #5a564f;

  --border:       rgba(201, 169, 110, 0.12);
  --border-hover: rgba(201, 169, 110, 0.35);

  --white: #ffffff;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* The announcement bar & other CMS content are inserted by JS after load;
     without this, browsers "scroll anchor" past that new content and hide it. */
  overflow-anchor: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Typography ── */
.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ── Utility Classes ── */
.gold { color: var(--gold); }
.gold-border { border-color: var(--border); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.1;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.gold-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.25rem 0;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  background: var(--gold);
  color: var(--bg-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ── Cards & Glass ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.glass {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.animate-fade-up   { animation: fadeUp  0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-in   { animation: fadeIn  0.6s ease both; }
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }

.scroll-bounce { animation: scrollBounce 1.8s ease-in-out infinite; }

.gold-shimmer {
  background: linear-gradient(
    120deg,
    var(--gold-dark) 0%,
    var(--gold-light) 40%,
    var(--gold) 50%,
    var(--gold-light) 60%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.stars { color: var(--gold); letter-spacing: 2px; }

/* ── Header Navbar ── */
header#navbar {
  position: fixed;
  /* Shifts down to sit below the announcement bar instead of being hidden under it
     (--announcement-height is measured and set by js/cms-engine.js). */
  top: var(--announcement-height, 0px);
  left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}

header#navbar.scrolled {
  top: 0px !important;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

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

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #9e9a94;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link:hover { color: #f5f0ea; }

.nav-link.active {
  color: #c9a96e;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #c9a96e;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #f5f0ea;
  display: none;
  padding: 0.25rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #f5f0ea;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.mobile-menu-link.active {
  color: #c9a96e;
}

/* ── Consultation Booking Modal ── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #9e9a94;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.modal-close-btn:hover { color: #c9a96e; }

/* Floating WhatsApp Button with iOS Safe Area Insets */
.whatsapp-btn {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  right: calc(2rem + env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #c9a96e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,169,110,0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

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

.doctor-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #13131e;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.doctor-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

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

.doctor-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 19, 30, 0.9) 0%, rgba(19, 19, 30, 0.1) 45%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .doctors-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid > div:first-child { grid-column: span 2 !important; text-align: center; }
  .footer-grid > div:first-child div { margin: 0 auto !important; }
  .footer-grid > div:first-child p { margin-left: auto !important; margin-right: auto !important; }
  .footer-grid > div:first-child div[style*="display: flex"] { align-items: center !important; justify-content: center !important; }
}

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: block !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-grid > div:first-child { grid-column: span 1 !important; }
}

@media (max-width: 680px) {
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item:nth-child(2) { border-right: none !important; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(201,169,110,0.1);
    padding-bottom: 1.5rem;
  }
  /* Announcement bar: stack instead of overflowing on narrow phones */
  .announcement-bar {
    flex-wrap: wrap;
    padding: 0.65rem 2.25rem 0.65rem 1rem;
    gap: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }
  .announcement-close {
    top: 0.55rem;
    right: 0.75rem;
    transform: none;
  }
}

@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* ── Hero Dynamic Viewport & Buttons ── */
.hero-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The navbar is position:fixed (80px tall, shifted below the announcement
     bar), so it doesn't push document flow down on its own. Without this,
     the vertically-centered hero badge/title renders underneath — and on
     short/mobile viewports, visibly overlapping — the fixed header stack. */
  padding-top: calc(var(--announcement-height, 0px) + 80px + env(safe-area-inset-top, 0px));
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 440px) {
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-btn-group .btn-primary,
  .hero-btn-group .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.fullscreen-center {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  text-align: center;
  padding: 2rem;
}

.doctor-single-card {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Accessibility & Focus Management ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.modal-open,
body.menu-open {
  overflow: hidden !important;
}

/* Accessible card button state */
.services-grid .card[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   ANNOUNCEMENT BAR
   ───────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #131322 0%, #1e1828 50%, #131322 100%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  color: #e5dfd8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 105;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.announcement-bar.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.announcement-badge {
  background: rgba(201, 169, 110, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.announcement-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.announcement-link:hover { color: var(--gold-light); }
.announcement-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9e9a94;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.announcement-close:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   ENHANCED SERVICE CARDS & MEDIA
   ───────────────────────────────────────── */
.service-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 220px;
  background: #0d0d18;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  flex-shrink: 0;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .service-card-media img {
  transform: scale(1.05);
}
.service-card-media .media-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  font-weight: 500;
}
.service-video-indicator {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(201, 169, 110, 0.9);
  color: #0a0a0f;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 2px;
}
.service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-text-gold {
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-text-gold:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

/* ─────────────────────────────────────────
   SERVICE DETAIL MODAL
   ───────────────────────────────────────── */
.service-modal-card {
  width: 100%;
  max-width: 820px;
  background: #13131e;
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 2px;
}
.service-modal-header {
  position: relative;
  width: 100%;
  background: #0d0d18;
}
.service-modal-body {
  padding: 2.25rem;
}
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed-container iframe,
.video-embed-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0;
}
@media (max-width: 650px) {
  .benefits-list { grid-template-columns: 1fr; }
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #cfcac3;
  line-height: 1.6;
}
.benefit-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ─────────────────────────────────────────
   GALLERY PAGE STYLES
   ───────────────────────────────────────── */
.gallery-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}
.filter-btn {
  background: rgba(19, 19, 30, 0.8);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: #9e9a94;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--text-primary);
  background: rgba(201, 169, 110, 0.08);
}
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0f;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 240px;
  overflow: hidden;
  background: #0d0d18;
  flex-shrink: 0;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card-media img {
  transform: scale(1.06);
}

/* Before & After Interactive Card Styles */
.ba-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ba-before {
  z-index: 1;
}
.ba-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.1s ease;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0f;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ba-pill {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201, 169, 110, 0.3);
  z-index: 4;
}
.ba-pill-before { left: 0.75rem; color: #9e9a94; }
.ba-pill-after { right: 0.75rem; color: var(--gold); }

.gallery-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  font-weight: 500;
  z-index: 5;
}
.gallery-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 5;
  transition: transform 0.3s ease, background 0.3s ease;
}
.gallery-card:hover .gallery-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gold);
  color: #0a0a0f;
}

.gallery-card-info {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.gallery-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}
.gallery-card-caption {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}
.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   LIGHTBOX MODAL
   ───────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 7, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content-wrap {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-media-container {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0d18;
  border: 1px solid rgba(201, 169, 110, 0.2);
}
.lightbox-media-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption-bar {
  width: 100%;
  background: #13131e;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-top: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 19, 30, 0.85);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold);
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-nav-btn:hover {
  background: var(--gold);
  color: #0a0a0f;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
@media (max-width: 1140px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ─────────────────────────────────────────
   ADMIN FOOTER PORTAL LINK
   ───────────────────────────────────────── */
.admin-portal-link {
  color: #c9a96e;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 3px;
  background: rgba(201, 169, 110, 0.06);
}
.admin-portal-link:hover {
  color: #f5f0ea;
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.2);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   GOOGLE MAPS & REVIEWS SECTION STYLING
   ───────────────────────────────────────── */
.locations-map-section {
  background: #090912;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  position: relative;
}

.locations-map-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.google-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #f5f0ea;
}

.branch-feature-card {
  background: rgba(18, 18, 28, 0.8);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.branch-map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  min-height: 460px;
  height: 100%;
  position: relative;
  background: #0d0d18;
}

.branch-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  border: 0;
}

@media (max-width: 980px) {
  .locations-map-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .branch-map-frame,
  .branch-map-frame iframe {
    min-height: 380px;
  }
}

.branch-tabs-nav {
  display: inline-flex;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 2.5rem;
  gap: 4px;
}

.branch-tab-btn {
  background: transparent;
  border: none;
  color: #9e9a94;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-tab-btn.active {
  background: #c9a96e;
  color: #070710;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.35);
}

.branch-tab-btn:hover:not(.active) {
  color: #f5f0ea;
  background: rgba(201, 169, 110, 0.15);
}

.branch-panel {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

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

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





