/* ============================================
   HAJJ JOURNEY VISUALIZER — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C76A;
  --gold-dim: rgba(201, 168, 76, 0.2);
  --dark-bg: #0A0B0F;
  --dark-surface: #12141A;
  --dark-card: rgba(18, 20, 26, 0.92);
  --dark-border: rgba(201, 168, 76, 0.15);
  --text-primary: #F5F0E8;
  --text-secondary: rgba(245, 240, 232, 0.6);
  --text-muted: rgba(245, 240, 232, 0.35);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.15);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --card-height-mobile: 340px;
  --card-height-desktop: 400px;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* === MAP CONTAINER === */
#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Soft overlay to blend map edges with UI */
.map-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 15, 0.15) 0%,
    rgba(10, 11, 15, 0) 30%,
    rgba(10, 11, 15, 0) 70%,
    rgba(10, 11, 15, 0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* === HEADER === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px 20px 12px;
  background: linear-gradient(to bottom, rgba(10, 11, 15, 0.95), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.header-brand h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header-brand p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.header-arabic {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--gold-light);
  opacity: 0.8;
}

/* === PROGRESS TRACK === */
#progress-track {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  padding: 6px 10px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}
#progress-track::-webkit-scrollbar { display: none; }

.prog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.25);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.prog-dot::after {
  content: attr(data-label);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  background: rgba(10,11,15,0.9);
  padding: 2px 5px;
  border-radius: 4px;
}

.prog-dot:hover::after { opacity: 1; }

.prog-dot.active {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
  transform: scale(1.3);
}

.prog-dot.completed {
  background: rgba(201, 168, 76, 0.5);
  border-color: var(--gold);
}

.prog-line {
  width: 20px;
  height: 1.5px;
  background: rgba(201, 168, 76, 0.2);
  flex-shrink: 0;
  transition: var(--transition);
}
.prog-line.completed { background: rgba(201, 168, 76, 0.5); }

/* === STATION CARD (Bottom Sheet) === */
#station-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 12px 12px;
}

.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.station-card {
  background: var(--dark-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 -8px 40px rgba(0,0,0,0.6);
  transition: var(--transition);
}

/* Card drag handle */
.card-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
}
.card-handle span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.3);
}

/* Card accent top border */
.card-accent {
  height: 3px;
  width: 100%;
  transition: background var(--transition);
}

.card-body {
  padding: 16px 20px 20px;
}

/* Station header */
.station-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.station-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.station-title-group { flex: 1; min-width: 0; }

.station-day-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  transition: background var(--transition), color var(--transition);
}

.station-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-arabic {
  font-family: 'Amiri', serif;
  font-size: 15px;
  color: var(--gold-light);
  opacity: 0.8;
  direction: rtl;
}

.station-ritual-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
}

.station-ritual-badge .ritual-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.station-ritual-badge .ritual-value {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
}

.station-ritual-badge .ritual-duration {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
}

.station-description {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.fact-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.fact-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.2;
}

.fact-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Quranic verse */
.quranic-verse {
  font-size: 11px;
  font-style: italic;
  color: var(--gold);
  opacity: 0.75;
  text-align: center;
  border-top: 1px solid var(--dark-border);
  padding-top: 12px;
  line-height: 1.5;
}

/* === NAVIGATION CONTROLS === */
#nav-controls {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  max-width: 540px;
  width: 100%;
  justify-content: space-between;
  pointer-events: none;
}

.nav-btn {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-btn:hover:not(:disabled) {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
  transform: scale(1.05);
}

.nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.nav-counter {
  pointer-events: all;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  background: rgba(10,11,15,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--dark-border);
  white-space: nowrap;
}

/* === MAP CUSTOM MARKER === */
.hajj-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s;
  cursor: pointer;
}

.hajj-marker.active-marker {
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.15) translateY(-3px); }
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  background: var(--dark-card) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--dark-border) !important;
  border-radius: 14px !important;
  color: var(--text-primary) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-tip { background: var(--dark-surface) !important; }
.leaflet-popup-content { margin: 10px 14px !important; font-family: 'Inter', sans-serif; }
.popup-name { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.popup-ritual { font-size: 11px; color: var(--text-secondary); }

/* Hide default leaflet attribution branding */
.leaflet-control-attribution { opacity: 0.4 !important; }

/* === CARD SLIDE ANIMATION === */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.card-anim-in { animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.card-anim-left { animation: slideLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.card-anim-right { animation: slideRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* === INTRO OVERLAY === */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse at center, #14130d 0%, #0A0B0F 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.intro-kaaba {
  font-size: 72px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.intro-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  position: absolute;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.intro-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  line-height: 1.2;
}

.intro-arabic {
  font-family: 'Amiri', serif;
  font-size: 32px;
  color: var(--gold);
  text-align: center;
}

.intro-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.intro-btn {
  margin-top: 12px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold), #8B6914);
  border: none;
  border-radius: 50px;
  color: #0A0B0F;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 30px rgba(201,168,76,0.4), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.intro-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 40px rgba(201,168,76,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

.intro-verse {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* === TOAST HINT === */
#swipe-hint {
  position: fixed;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: hintFade 3s ease 1s both;
  pointer-events: none;
}

@keyframes hintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* === DESKTOP LAYOUT (≥ 768px) === */
@media (min-width: 768px) {
  #station-panel {
    top: 50%;
    bottom: auto;
    right: 24px;
    left: auto;
    transform: translateY(-50%);
    padding: 0;
    width: 400px;
  }

  .card-wrapper { max-width: 400px; }

  #nav-controls {
    right: 24px;
    left: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(220px);
    flex-direction: row;
    justify-content: center;
    max-width: 400px;
    width: 400px;
    padding: 12px 16px 0;
  }

  #progress-track { top: 80px; }
  #swipe-hint { bottom: 40px; }

  .station-name { font-size: 22px; }
  .station-description { font-size: 14px; }
}

/* === SCROLLBAR HIDE === */
::-webkit-scrollbar { display: none; }

/* === MIQAT SELECTION STYLES === */
.intro-header {
  text-align: center;
  margin-bottom: 8px;
}

.miqat-select-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.miqat-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.miqat-option-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.15);
}

.miqat-option-btn:active {
  transform: translateY(0);
}

.miqat-emoji {
  font-size: 24px;
  background: rgba(201, 168, 76, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.miqat-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.miqat-btn-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.miqat-btn-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* === PROCEED ACTION BUTTON === */
.miqat-action-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), #967420);
  border: none;
  border-radius: 14px;
  color: #0A0B0F;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.miqat-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.45);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.miqat-action-btn:active {
  transform: translateY(0);
}

/* === SUPPORT SYSTEM === */
.support-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 15;
  padding: 10px 18px;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--gold-dim);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.support-fab:hover {
  border-color: var(--gold);
  background: var(--dark-surface);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.modal-card {
  background: rgba(18, 20, 26, 0.95);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  animation: scaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-heart {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--gold);
  animation: heartBeat 1.8s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.support-modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pledge-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pledge-btn {
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.pledge-btn:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.pledge-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
}

.card-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.support-input {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.support-input:focus {
  border-color: var(--gold);
}

.submit-support-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold), #967420);
  border: none;
  border-radius: 10px;
  color: #0A0B0F;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-support-btn:hover {
  opacity: 0.9;
}

.support-success-msg {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 16px;
  color: var(--gold-light);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* === INFOGRAPHIC UPGRADES === */
.station-card {
  box-shadow: 0 0 50px rgba(201, 168, 76, 0.08), 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.22);
}

.fact-item {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, transform 0.3s;
}

.fact-item:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.station-ritual-badge {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.08), transparent);
  border-left: 3px solid var(--gold);
}

.quranic-verse {
  background: rgba(201, 168, 76, 0.04);
  border-radius: 12px;
  padding: 12px 16px;
  border-top: none;
}

/* Hide leaflet controls a bit more elegantly */
.leaflet-left .leaflet-control {
  margin-left: 20px !important;
}
.leaflet-bottom .leaflet-control {
  margin-bottom: 20px !important;
}

/* Desktop spacing adaptation for support button */
@media (min-width: 768px) {
  .support-fab {
    bottom: 24px;
    left: 24px;
  }
}

/* === LANGUAGE SELECTOR STYLES === */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro-lang-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-dropdown {
  background: rgba(18, 20, 26, 0.85);
  color: var(--gold-light);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-dropdown:focus, .lang-dropdown:hover {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-dim);
}

/* === HAJJ PATH STYLING === */
.hajj-path-miqat {
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-dasharray: 6, 8;
  stroke-linecap: round;
  opacity: 0.65;
  transition: opacity var(--transition), stroke var(--transition);
}

.hajj-path-completed {
  stroke: var(--gold);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity var(--transition), stroke-width var(--transition);
}

.hajj-path-active {
  stroke: var(--gold-light);
  stroke-width: 5;
  stroke-dasharray: 8, 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  animation: dashOffsetActive 1.8s linear infinite;
  transition: opacity var(--transition), stroke-width var(--transition);
}

.hajj-path-pending {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 4, 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.2;
  transition: opacity var(--transition);
}

@keyframes dashOffsetActive {
  from {
    stroke-dashoffset: 36;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* === HAJJ PATH BADGE STYLING === */
.hajj-path-badge {
  background: rgba(18, 20, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  color: var(--gold-light);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: opacity var(--transition), border-color var(--transition), box-shadow var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.hajj-path-badge.active-badge {
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.35);
  transform: scale(1.05);
}

.hajj-path-badge.completed-badge {
  opacity: 0.75;
  border-color: rgba(201, 168, 76, 0.15);
}

.hajj-path-badge.pending-badge {
  opacity: 0.12;
  border-color: rgba(201, 168, 76, 0.05);
}



