
:root {
  --color-obsidian: #0D0F10;
  --color-charcoal: #1C1E21;
  --color-border: #303338;
  --color-gold: #B08D35;
  --color-amber-gold: #E6C766;
  --color-amber-cta: #D4AF37;
  --color-champagne-gold: #D4AF37;
  --color-champagne-light: #E6C766;
  --color-champagne-deep: #B08D35;
  --color-warm-white: #F5F5F2;
  --color-grey-secondary: #A6A8AB;
  --color-grey-readable: #C4C6C8;
  --color-grey-muted: #777B80;
}

/* CHANRA CHARGING - Custom UI, Theme-Based Scrolling & Responsive Enhancements */

/* Smooth scroll & base resets */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   THEME-BASED CUSTOM SCROLLBAR (Luxury Obsidian & Champagne Gold)
   ========================================================================== */

/* Firefox / Modern W3C Standard */
html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) #0D0F10;
}

/* WebKit / Chromium (Chrome, Edge, Opera, Safari) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #0D0F10;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(230, 199, 102, 0.5), rgba(176, 141, 53, 0.4));
  border-radius: 9999px;
  border: 1px solid rgba(176, 141, 53, 0.2);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E6C766, #B08D35);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
  border-color: rgba(230, 199, 102, 0.4);
}

::-webkit-scrollbar-thumb:active {
  background: #D4AF37;
}

::-webkit-scrollbar-corner {
  background: #08090B;
}

/* Specific Station List & Modal Custom Scroll Container */
.custom-theme-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.5) #1C1E21;
}

.custom-theme-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-theme-scrollbar::-webkit-scrollbar-track {
  background: #1C1E21;
  border-radius: 9999px;
  margin: 6px 0;
  border: 1px solid rgba(176, 141, 53, 0.08);
}

.custom-theme-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(230, 199, 102, 0.6), rgba(176, 141, 53, 0.5));
  border-radius: 9999px;
  border: 1px solid rgba(176, 141, 53, 0.25);
  transition: all 0.2s ease;
}

.custom-theme-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E6C766, #B08D35);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  border-color: rgba(230, 199, 102, 0.5);
}

/* Custom focus rings for high accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4AF37 !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   LEAFLET MAP CUSTOM DARK THEME & MARKER STYLES
   ========================================================================== */
.leaflet-container {
  background-color: #0a0c10 !important;
  font-family: 'Inter', sans-serif !important;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Seamless Dark Map Tile Filter */
.leaflet-tile-pane {
  filter: brightness(0.9) contrast(1.1) saturate(0.85);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
  background-color: #1C1E21 !important; color: #F5F5F2 !important; border: 1px solid #303338 !important;
  transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
  background-color: #292a2c !important;
  color: #E6C766 !important;
}

.leaflet-control-attribution {
  background: rgba(13, 14, 16, 0.85) !important;
  color: #A6A8AB !important;
  font-size: 10px !important;
  backdrop-filter: blur(8px);
}

.leaflet-control-attribution a {
  color: #D4AF37 !important;
}

/* Custom Champagne Gold Station Marker */
.chanra-map-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marker-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #B08D35);
  color: #0D0F10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #08090b;
}

.marker-pin:hover {
  transform: scale(1.15);
}

.marker-pulse {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  animation: marker-pulse-anim 2s infinite ease-out;
  pointer-events: none;
}

@keyframes marker-pulse-anim {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* User Location Marker */
.user-location-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-location-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
}

.user-location-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.35);
  animation: marker-pulse-anim 2s infinite ease-out;
  pointer-events: none;
}

/* Custom Popup Style */
.leaflet-popup-content-wrapper {
  background: #1C1E21 !important;
  color: #F5F5F2 !important;
  border: 1px solid #303338 !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(16px);
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: #1C1E21 !important;
  border: 1px solid #303338 !important;
}

.leaflet-popup-close-button {
  color: #A6A8AB !important;
  padding: 8px !important;
}

.leaflet-popup-close-button:hover {
  color: #ffffff !important;
}

/* Safe padding utility for mobile fixed bottom bar */
.pb-mobile-cta {
  padding-bottom: 5.5rem;
}

@media (min-width: 1024px) {
  .pb-mobile-cta {
    padding-bottom: 0;
  }
}

/* Modal animation */
.modal-enter {
  animation: modal-fade-in 0.25s ease-out forwards;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   PREMIUM PAGE TRANSITION (CLEAN OBSIDIAN OVERLAY + CENTERED WORDMARK)
   ========================================================================== */

/* Fullscreen Obsidian Transition Veil (#08090B) */
.page-switch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #08090b;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
}

.page-switch-overlay.is-switching {
  opacity: 0.98;
  pointer-events: auto;
  visibility: visible;
}

/* Centered Stage */
.page-switch-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Centered Emblem Loader */
.page-switch-wordmark {
  width: 240px;
  height: auto;
  max-width: 80vw;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  mix-blend-mode: screen;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
  /* Soft ambient champagne aura contoured directly around logo letters */
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.page-switch-overlay.is-switching .page-switch-wordmark {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .page-switch-wordmark {
    width: 180px;
    height: auto;
  }
}

/* ==========================================================================
   NAVBAR BRAND WORDMARK (DIRECT CLEAN BRAND PRESENTATION)
   ========================================================================== */

.nav-brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nav-brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Subtle initial page load reveal */
  animation: nav-brand-fade-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes nav-brand-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-brand-logo-link:hover .nav-brand-logo-img {
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-brand-logo-img {
    height: 38px;
  }
}

/* ==========================================================================
   FOOTER BRAND WORDMARK
   ========================================================================== */

.footer-brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .footer-brand-logo-img {
    height: 48px;
    max-width: 220px;
  }
}

/* ==========================================================================
   LANDING PAGE SECTION SWITCHING ANIMATION (MIDDLE OF VIEWPORT TRANSITION)
   ========================================================================== */

/* Sections animate smoothly as they switch into the middle of the viewport */
.switch-section {
  opacity: 0.88;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.switch-section.section-active-middle {
  opacity: 1;
  transform: translateY(0);
}

/* Centered highlight accent bar that shines when a section is switched to */
.section-switch-flash {
  animation: section-center-glow 0.8s ease-out forwards;
}

@keyframes section-center-glow {
  0% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  30% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.12);
  }
  100% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-switch-overlay,
  .page-switch-center,
  .page-switch-wordmark,
  .nav-brand-logo-img,
  .switch-section {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}



/* ==========================================================================
   CHANRA CONTRAST HIERARCHY UTILITIES (CHAMPAGNE METALLIC GOLD DIRECTION)
   ========================================================================== */

/* High-Contrast Navigation Links */
.nav-link-item {
  color: #F5F5F2 !important;
  position: relative;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-item:hover {
  color: #E6C766 !important;
}
.nav-link-item[aria-current="page"] {
  color: #D4AF37 !important;
  font-weight: 600;
}
.nav-link-item[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #D4AF37;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

/* Primary CTA Button (Champagne Metallic Gold Action #D4AF37) */
.btn-primary-action {
  background-color: #D4AF37 !important;
  color: #0D0F10 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.24) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary-action:hover {
  background-color: #E6C766 !important;
  color: #0D0F10 !important;
  box-shadow: 0 6px 24px rgba(230, 199, 102, 0.35) !important;
  transform: translateY(-1.5px);
}
.btn-primary-action:active {
  transform: scale(0.98);
}

/* Secondary CTA Button (Dark Charcoal Surface #1C1E21 + #D4AF37 Border & Text) */
.btn-secondary-action {
  background-color: #1C1E21 !important;
  border: 1.5px solid #D4AF37 !important;
  color: #D4AF37 !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-secondary-action .material-symbols-outlined {
  color: #D4AF37 !important;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-secondary-action:hover {
  background-color: #D4AF37 !important;
  color: #0D0F10 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.28) !important;
}
.btn-secondary-action:hover,
.btn-secondary-action:hover *,
.btn-secondary-action:hover .material-symbols-outlined {
  color: #0D0F10 !important;
}
.btn-secondary-action:active {
  transform: scale(0.98);
}

/* Call Us Button - Clean White & Dark Charcoal Surface (No Yellow Border) */
.btn-call-white {
  background-color: #1C1E21 !important;
  border: 1px solid #303338 !important;
  color: #F5F5F2 !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-call-white .material-symbols-outlined {
  color: #F5F5F2 !important;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-call-white:hover {
  background-color: #25282C !important;
  border-color: #4A4D53 !important;
  color: #FFFFFF !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.btn-call-white:hover .material-symbols-outlined,
.btn-call-white:hover * {
  color: #FFFFFF !important;
}
.btn-call-white:active {
  transform: scale(0.98);
}

/* Secondary Metallic Detail Button (#B08D35) */
.btn-metallic-action {
  background-color: #1C1E21 !important;
  border: 1.5px solid #B08D35 !important;
  color: #F5F5F2 !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-metallic-action:hover {
  background-color: #B08D35 !important;
  color: #0D0F10 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(176, 141, 53, 0.3) !important;
}
.btn-metallic-action:active {
  transform: scale(0.98);
}

/* CHANRA Structured Card with Subtle Gold Border Hover */
.chanra-surface-card {
  background-color: #1C1E21 !important;
  border: 1px solid #303338 !important;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}
.chanra-surface-card:hover {
  border-color: #B08D35 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Text Hierarchy Utilities */
.text-warm-white { color: #F5F5F2 !important; }
.text-gold { color: #B08D35 !important; }
.text-champagne-gold { color: #D4AF37 !important; }
.text-amber-gold { color: #E6C766 !important; }
.text-amber-cta { color: #D4AF37 !important; }
.text-grey-secondary { color: #A6A8AB !important; }
.text-grey-readable { color: #C4C6C8 !important; }
.text-grey-muted { color: #777B80 !important; }
.border-chanra-base { border-color: #303338 !important; }
.border-chanra-gold { border-color: #B08D35 !important; }
.border-chanra-amber { border-color: #D4AF37 !important; }

/* ==========================================================================
   MATERIAL SYMBOLS LIGATURE & FOUT / ICON WORD FLASH PREVENTION
   ========================================================================== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-display: block;
  vertical-align: middle;
  overflow: hidden;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* While webfont is loading on refresh/initial visit, hide ligature words ('bolt', 'call', 'search') */
html:not(.wf-icons-loaded) .material-symbols-outlined {
  color: transparent !important;
  text-shadow: none !important;
  max-width: 1.5em;
  max-height: 1.5em;
  display: inline-block;
  overflow: hidden;
}

