/* Hello Banaras - Design System & Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Color Variables & Styling Tokens - Official Light Portal Theme */
:root {
  --bg-primary: #fcfbf9; /* Sandstone cream */
  --bg-secondary: #ffffff; /* Clean white */
  --bg-tertiary: #f5f0eb; /* Terracotta clay backdrop */
  --accent-gold: #b37400; /* Warm marigold gold */
  --accent-gold-hover: #d48a00;
  --accent-saffron: #cf4500; /* Holy saffron */
  --accent-blue: #0b2240; /* Royal Navy Blue */
  --accent-blue-trans: rgba(11, 34, 64, 0.08);
  --text-primary: #1b1c21; /* Off-black charcoal */
  --text-secondary: #4a4d5c;
  --text-muted: #7d8199;
  --border-glow: rgba(207, 69, 0, 0.12);
  --border-glow-active: rgba(207, 69, 0, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(11, 34, 64, 0.08);
  
  --font-display: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 30px rgba(11, 34, 64, 0.05);
  --shadow-gold: 0 5px 15px rgba(207, 69, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(207, 69, 0, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(11, 34, 64, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #000000;
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1b1c21;
}

/* Typography & Global Layout elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 8rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  color: var(--text-secondary);
}

/* Glowing Button Utility */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-saffron) 0%, var(--accent-gold) 100%);
  color: var(--bg-primary);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 179, 25, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 179, 25, 0.4);
}

/* Header & Glassmorphic Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(252, 251, 249, 0.95);
  box-shadow: var(--shadow-premium);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-saffron), var(--accent-gold));
  z-index: 10;
}

header.scrolled .navbar {
  padding: 0.6rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Audio Player Widget with 10-bar EQ */
.audio-control {
  background: rgba(11, 34, 64, 0.04);
  border: 1px solid rgba(11, 34, 64, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.audio-control:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 179, 25, 0.05);
}

.audio-control.playing {
  color: var(--accent-gold);
  border-color: rgba(255, 179, 25, 0.3);
}

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 32px;
}

.audio-waves span {
  width: 2px;
  height: 4px;
  background-color: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-control.playing .audio-waves span {
  animation: visualizerWave 1.2s ease-in-out infinite alternate;
}

.audio-control.playing .audio-waves span:nth-child(1) { animation-duration: 0.8s; }
.audio-control.playing .audio-waves span:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.15s; }
.audio-control.playing .audio-waves span:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.3s; }
.audio-control.playing .audio-waves span:nth-child(4) { animation-duration: 1.3s; animation-delay: 0.05s; }
.audio-control.playing .audio-waves span:nth-child(5) { animation-duration: 1.0s; animation-delay: 0.25s; }
.audio-control.playing .audio-waves span:nth-child(6) { animation-duration: 1.4s; animation-delay: 0.4s; }
.audio-control.playing .audio-waves span:nth-child(7) { animation-duration: 0.75s; animation-delay: 0.1s; }
.audio-control.playing .audio-waves span:nth-child(8) { animation-duration: 1.15s; animation-delay: 0.2s; }
.audio-control.playing .audio-waves span:nth-child(9) { animation-duration: 0.95s; animation-delay: 0.35s; }
.audio-control.playing .audio-waves span:nth-child(10) { animation-duration: 1.25s; animation-delay: 0.05s; }

@keyframes visualizerWave {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Immersive Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero_ganga_aarti.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
  transition: transform 10s ease-out;
  z-index: 1;
}

body.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(11, 11, 14, 0.4) 0%, 
    rgba(11, 11, 14, 0.7) 70%, 
    var(--bg-primary) 100%);
  z-index: 2;
}

/* Floating Diya Particles Container */
.diya-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.diya-node {
  position: absolute;
  background: radial-gradient(circle, rgba(255,179,25,0.8) 0%, rgba(242,92,5,0.3) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp 12s linear infinite;
  box-shadow: 0 0 12px rgba(255, 179, 25, 0.6);
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.3) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-10vh) scale(1.3) translateX(var(--drift-x, 50px));
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-title span {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.4s ease-out forwards;
}

.hero-cta {
  animation: fadeInUp 1.6s ease-out forwards;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Heritage Temples Grid Section */
.temples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.temple-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.temple-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 179, 25, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.temple-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium), var(--shadow-gold);
  border-color: rgba(255, 179, 25, 0.2);
}

.temple-card.large {
  grid-column: span 3;
  flex-direction: row;
}

.temple-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.temple-card.large .temple-img-wrapper {
  width: 50%;
  height: 100%;
  min-height: 380px;
}

.temple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.temple-card:hover .temple-img {
  transform: scale(1.1);
}

.temple-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.temple-card.large .temple-info {
  width: 50%;
}

.temple-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.temple-name {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.temple-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Expansion Tabs inside Temple Cards */
.temple-tabs-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.25rem;
}

.tab-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.tab-trigger:hover, .tab-trigger.active {
  color: var(--accent-gold);
  background: rgba(255, 179, 25, 0.05);
}

.temple-tabs-content {
  position: relative;
  min-height: 140px;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.timings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.timings-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
  padding-bottom: 0.2rem;
}

.timings-list li span {
  color: var(--text-secondary);
}

.timings-list li span i {
  color: var(--accent-gold);
  margin-right: 0.4rem;
}

.timings-list li strong {
  color: var(--text-primary);
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.facts-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.facts-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.facts-table td:last-child {
  color: var(--text-primary);
}

.temple-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.temple-meta span strong {
  color: var(--accent-gold);
}

/* Pilgrimage Map Guide Timeline */
.pilgrimage-path-container {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.path-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.path-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.path-scroller {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 1.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-primary);
}

.path-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-saffron), var(--accent-gold), var(--accent-blue));
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}

.path-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  min-width: 950px;
  padding: 0 2rem;
}

.path-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 90px;
  position: relative;
}

.node-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-saffron);
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: var(--transition-smooth);
  margin-bottom: 0.8rem;
}

.node-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.node-num {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: bold;
}

.path-node:hover .node-circle {
  transform: scale(1.35);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255,179,25,0.7);
  background: var(--accent-gold);
}

.path-node:hover .node-label {
  color: var(--accent-gold);
}

.path-node.active .node-circle {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: 0 0 20px rgba(255,179,25,0.9);
  transform: scale(1.3);
}

.path-node.active .node-label {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Ghats Explorer Section Dashboard */
.explorer-panel {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  margin-bottom: 3rem;
}

.search-filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 500px;
}

.search-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 179, 25, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-blue-trans);
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(46, 104, 156, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #173B5C 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(11, 34, 64, 0.3);
}

.ghats-stats {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ghats-stats span {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Ghat Cards Grid */
.ghats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  min-height: 400px;
  position: relative;
}

.ghat-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ghat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-saffron);
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.ghat-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 179, 25, 0.4);
  box-shadow: 0 12px 30px rgba(255, 179, 25, 0.12);
}

.ghat-card:hover::before {
  opacity: 1;
  background-color: var(--accent-gold);
}

.ghat-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.ghat-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ghat-patron {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghat-patron strong {
  color: var(--text-secondary);
}

/* Pagination/Loading indicator */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.btn-load-more {
  background: transparent;
  border: 1px solid rgba(255, 179, 25, 0.3);
  color: var(--accent-gold);
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-load-more:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

/* Detail Dialog / Modal System */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.dialog-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.dialog-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 179, 25, 0.2);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.dialog-backdrop.open .dialog-content {
  transform: translateY(0);
}

.dialog-header {
  padding: 2rem 2rem 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dialog-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dialog-num {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.dialog-title {
  font-size: 1.85rem;
  line-height: 1.2;
}

.dialog-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dialog-close:hover {
  background: rgba(255, 179, 25, 0.2);
  color: var(--accent-gold);
}

.dialog-body {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dialog-field {
  margin-bottom: 1.5rem;
}

.dialog-field-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.dialog-field-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dialog-field-content.patron-text {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* Subah-e-Banaras Heritage Section */
.heritage-showcase {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
  position: relative;
}

.heritage-split {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.heritage-content {
  width: 50%;
}

.heritage-visuals {
  width: 50%;
  position: relative;
  height: 450px;
}

.heritage-frame {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.heritage-frame.frame-1 {
  top: 0;
  left: 0;
  z-index: 2;
}

.heritage-frame.frame-2 {
  bottom: 0;
  right: 0;
  z-index: 1;
}

.heritage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-frame:hover {
  transform: scale(1.03) translateY(-5px);
  z-index: 3;
}

.heritage-highlight {
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.heritage-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Footer Section */
footer {
  background: #060608;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem 0;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-brand h4 span {
  color: var(--accent-gold);
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 380px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links-col h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-citations {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-citations a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

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

/* Ambient Visual Effects (Floating Orbs) */
.glowing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.orb-gold {
  background: var(--accent-gold);
  width: 300px;
  height: 300px;
  top: 15%;
  right: -50px;
}

.orb-saffron {
  background: var(--accent-saffron);
  width: 400px;
  height: 400px;
  bottom: 25%;
  left: -100px;
}

/* Floating Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 179, 25, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

/* Loading Screen overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease;
}

.loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 179, 25, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .temples-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .temple-card.large {
    grid-column: span 2;
  }
  .heritage-split {
    flex-direction: column;
    gap: 3rem;
  }
  .heritage-content, .heritage-visuals {
    width: 100%;
  }
  .heritage-visuals {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  .navbar {
    padding: 1rem 0;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-title span {
    font-size: 1.25rem;
  }
  .temples-grid {
    grid-template-columns: 1fr;
  }
  .temple-card.large {
    grid-column: span 1;
    flex-direction: column;
  }
  .temple-card.large .temple-img-wrapper {
    width: 100%;
    min-height: 250px;
  }
  .temple-card.large .temple-info {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- OFFICIAL GOVERNMENT PORTAL STYLING --- */

/* Government Top Saffron Bar */
.gov-top-bar {
  background-color: var(--accent-saffron);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.gov-top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gov-top-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gov-separator {
  opacity: 0.5;
}

.gov-lang-link {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.gov-lang-link:hover, .gov-lang-link.active {
  color: var(--accent-gold);
  opacity: 1;
}

.gov-lang-link.active {
  font-weight: 700;
  text-decoration: underline;
}

/* Arts & Crafts Heritage Gallery Grid */
.gallery-section {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.gallery-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 60%, rgba(207, 69, 0, 0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(207, 69, 0, 0.25);
  box-shadow: 0 15px 30px rgba(207, 69, 0, 0.08);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 34, 64, 0.85);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.gallery-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-card:hover .btn-gallery {
  background: var(--accent-saffron);
  box-shadow: 0 4px 10px rgba(207, 69, 0, 0.2);
}

/* Adjust header fixed position offsets for the top gov bar */
header {
  box-shadow: 0 2px 10px rgba(11, 34, 64, 0.03);
}

/* Adjustments for responsive viewports */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .gov-top-bar {
    display: none; /* Hide top bar on mobile to conserve space */
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Craft Dialog & Timeline Styling */
.craft-dialog-content {
  border-color: rgba(207, 69, 0, 0.35) !important;
}

.craft-specs-grid {
  margin-top: -10px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.spec-value {
  font-family: var(--font-display);
}

/* Timeline Process steps styling */
.process-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
  text-align: left;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--glass-border);
  z-index: 1;
}

.process-step:last-child::before {
  display: none;
}

.process-num-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-saffron) 0%, var(--accent-gold) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(207, 69, 0, 0.2);
}

.process-content {
  flex-grow: 1;
  padding-top: 0.25rem;
}

.process-step-title {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dialog Image Wrappers defaults */
.ghat-dialog-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  width: 100%;
}

.craft-dialog-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 600px) {
  .dialog-backdrop {
    padding: 0.5rem !important;
  }
  .dialog-content {
    max-height: 95vh !important;
  }
  .ghat-dialog-img-wrapper {
    height: 140px !important;
  }
  .craft-dialog-img-wrapper {
    height: 160px !important;
  }
  .dialog-title {
    font-size: 1.4rem !important;
  }
  .dialog-body {
    padding: 1.25rem !important;
  }
  .dialog-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem !important;
  }
  .dialog-content {
    border-radius: 12px !important;
  }
  .craft-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }
  .spec-item {
    border: none !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 0.5rem !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .spec-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .spec-label {
    margin-bottom: 0 !important;
  }
  .temple-tabs-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 0.5rem !important;
    padding-bottom: 0.25rem !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid var(--glass-border) !important;
  }
  .temple-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }
  .tab-trigger {
    flex: 0 0 auto !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   Explore Banaras by Theme Styles
   ========================================================================== */
.themes-section {
  position: relative;
  overflow: hidden;
}

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

.theme-card {
  position: relative;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  box-shadow: var(--shadow-premium);
}

.theme-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(11, 34, 64, 0.95) 100%);
  z-index: 1;
}

.theme-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}

.theme-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  transition: transform 0.4s ease, color 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.theme-title {
  font-size: 1.15rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Hover & Active States */
.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(207, 69, 0, 0.15);
  border-color: rgba(207, 69, 0, 0.4);
}

.theme-card:hover .theme-card-img {
  transform: scale(1.1);
}

.theme-card:hover .theme-icon {
  transform: scale(1.1);
  color: var(--accent-saffron);
}

.theme-card.active {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 25px rgba(207, 69, 0, 0.3);
}

.theme-card.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-saffron);
  border-radius: 15px;
  pointer-events: none;
  z-index: 3;
}

/* Dynamic Details Panel */
.theme-details-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 250px;
}

.theme-details-panel.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.theme-details-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.theme-details-main {
  display: flex;
  flex-direction: column;
}

.theme-details-list-sec {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.theme-highlights {
  list-style: none;
  padding-left: 0;
}

.theme-highlights li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.theme-highlights li i {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 1rem;
}

/* Responsive Theme Layouts */
@media (max-width: 1024px) {
  .themes-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem;
  }
  .theme-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .theme-details-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: 1fr !important;
  }
  .theme-card {
    height: 180px;
  }
  .theme-action-wrapper {
    flex-direction: column;
    gap: 0.75rem !important;
  }
}

/* Live Weather Widget Styles */
.gov-weather-container {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.9;
  cursor: default;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.weather-item:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.weather-item i {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

/* Responsive constraints on weather widget items */
@media (max-width: 992px) {
  #weather-precip, #weather-wind {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .gov-weather-container {
    gap: 0.4rem !important;
  }
  .weather-item {
    font-size: 0.7rem !important;
}

/* ==========================================================================
   Transit & Connectivity Section Styles (Leaflet Map)
   ========================================================================== */
.transit-section {
  position: relative;
  overflow: hidden;
}

.transit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.transit-map-wrapper {
  display: flex;
  flex-direction: column;
}

.connectivity-map-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Leaflet container overrides */
.leaflet-container {
  font-family: var(--font-body) !important;
  background-color: #faf8f5 !important;
  border-radius: 12px;
  border: 1px solid rgba(11, 34, 64, 0.04);
}

/* Custom Marker Pin layout in Leaflet */
.custom-leaflet-marker {
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marker-pin-outer {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 34, 64, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1.5px solid var(--glass-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.marker-pin-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* Saffron theme (Airport / DDU station) */
.marker-pin-outer.saffron {
  background: rgba(207, 69, 0, 0.06);
  border-color: rgba(207, 69, 0, 0.25);
  color: var(--accent-saffron);
}
.marker-pin-inner.saffron {
  background: var(--accent-saffron);
}

/* Blue theme (BSB Cantt station) */
.marker-pin-outer.blue {
  background: rgba(11, 34, 64, 0.06);
  border-color: rgba(11, 34, 64, 0.25);
  color: var(--accent-blue);
}
.marker-pin-inner.blue {
  background: var(--accent-blue);
}

/* Gold theme (BSBS station / KEI station) */
.marker-pin-outer.gold {
  background: rgba(255, 179, 25, 0.06);
  border-color: rgba(255, 179, 25, 0.25);
  color: var(--accent-gold);
}
.marker-pin-inner.gold {
  background: var(--accent-gold);
}

/* Pulsing concentric rings on active marker */
.custom-leaflet-marker.active .marker-pin-outer.saffron {
  background: rgba(207, 69, 0, 0.15) !important;
  border-color: var(--accent-saffron) !important;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(207, 69, 0, 0.25);
}
.custom-leaflet-marker.active .marker-pin-outer.blue {
  background: rgba(11, 34, 64, 0.15) !important;
  border-color: var(--accent-blue) !important;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(11, 34, 64, 0.25);
}
.custom-leaflet-marker.active .marker-pin-outer.gold {
  background: rgba(179, 116, 0, 0.15) !important;
  border-color: var(--accent-gold) !important;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(179, 116, 0, 0.25);
}

.custom-leaflet-marker.active .marker-pin-inner {
  width: 14px;
  height: 14px;
  transform: scale(1.1);
}

.marker-pin-outer::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: markerGlowPulse 2.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes markerGlowPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* Leaflet Custom Tooltip */
.custom-leaflet-tooltip {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-premium) !important;
}

/* Leaflet Custom Popup */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-premium) !important;
  font-family: var(--font-body) !important;
  padding: 0.25rem !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
}

.popup-title {
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--accent-blue) !important;
  margin-bottom: 0.2rem;
}

.popup-desc {
  font-size: 0.78rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.4 !important;
}

/* Map Legend */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.airways { background-color: var(--accent-saffron); }
.legend-dot.rail { background-color: #2c3e50; }
.legend-dot.nh { background-color: var(--accent-gold); }
.legend-dot.sh { background-color: var(--accent-blue); }

/* Details & Controls wrapper */
.transit-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.transit-controls {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-premium);
}

.controls-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.controls-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.transit-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.transit-toggle-btn:hover {
  background: var(--accent-blue-trans);
  color: var(--text-primary);
}

.transit-toggle-btn.active {
  background: var(--accent-blue);
  color: #ffffff !important;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 10px rgba(11, 34, 64, 0.25);
}

/* Showcase Info Card */
.connectivity-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.connectivity-info-card.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.info-card-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.info-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-saffron);
  letter-spacing: 0.1em;
  font-weight: bold;
}

.info-title {
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.transit-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
}

.info-card-desc {
  margin-bottom: 1.5rem;
}

/* Layer filter opacity rules */
.layer-inactive {
  opacity: 0.1 !important;
  pointer-events: none;
}

/* Responsive constraints on transit section */
@media (max-width: 1024px) {
  .transit-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .connectivity-map-card {
    padding: 1rem;
  }
  .transit-metric-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .map-legend {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Custom styling for Leaflet Zoom controls to fit glassmorphic aesthetic */
.leaflet-control-zoom {
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-premium) !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: var(--bg-secondary) !important;
  color: var(--accent-blue) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  font-family: var(--font-body) !important;
  font-weight: bold !important;
  transition: var(--transition-smooth) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--accent-blue-trans) !important;
  color: var(--accent-saffron) !important;
}
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  border-top-left-radius: 8px !important;
  font-size: 0.65rem !important;
  color: var(--text-muted) !important;
  border-left: 1px solid var(--glass-border) !important;
  border-top: 1px solid var(--glass-border) !important;
}

/* Metric card hover micro-interaction */
.metric-box {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.metric-box:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 34, 64, 0.15);
  box-shadow: 0 4px 15px rgba(11, 34, 64, 0.04);
}

/* Features List Styling */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem !important;
}

.transit-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(11, 34, 64, 0.02);
  transition: var(--transition-smooth);
}
.transit-feature-item:hover {
  background: #ffffff;
  border-color: var(--glass-border);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(11, 34, 64, 0.02);
}

.transit-feature-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.transit-feature-item:hover .transit-feature-icon-wrapper {
  transform: scale(1.1);
}

.transit-feature-icon-wrapper.saffron-bg {
  background: rgba(207, 69, 0, 0.08);
}
.transit-feature-icon-wrapper.blue-bg {
  background: rgba(11, 34, 64, 0.08);
}
.transit-feature-icon-wrapper.gold-bg {
  background: rgba(179, 116, 0, 0.08);
}

/* Transit Directory Section */
.transit-directory-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.transit-directory-title {
  margin-bottom: 2rem;
}

.directory-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.directory-subheading {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.transit-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.directory-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 34, 64, 0.15);
  box-shadow: var(--shadow-premium);
}

.directory-card.active {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(179, 116, 0, 0.08);
}

/* Colors for active card indicators */
.directory-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.directory-card.active[data-type="air"]::before {
  background: var(--accent-saffron);
}
.directory-card.active[data-type="rail"]::before {
  background: var(--accent-blue);
.directory-card.active[data-type="highway"]::before {
  background: var(--accent-gold);
}

.dir-card-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.dir-card-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dir-card-icon-wrapper.air {
  background: rgba(207, 69, 0, 0.08);
  color: var(--accent-saffron);
}

.dir-card-icon-wrapper.rail {
  background: rgba(11, 34, 64, 0.08);
  color: var(--accent-blue);
}

.dir-card-icon-wrapper.highway {
  background: rgba(179, 116, 0, 0.08);
  color: var(--accent-gold);
}

.dir-card-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dir-card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  align-self: flex-start;
}

.dir-card-badge.air {
  background: rgba(207, 69, 0, 0.08);
  color: var(--accent-saffron);
}
.dir-card-badge.rail {
  background: rgba(11, 34, 64, 0.08);
  color: var(--accent-blue);
}
.dir-card-badge.highway {
  background: rgba(179, 116, 0, 0.08);
  color: var(--accent-gold);
}

.dir-card-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

.dir-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  background: var(--bg-primary);
  border: 1px solid rgba(11, 34, 64, 0.04);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.dir-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.dir-detail-label {
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dir-detail-label i {
  color: var(--accent-gold);
  font-size: 0.75rem;
}

.dir-detail-value {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.dir-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive adjustment for directory */
@media (max-width: 992px) {
  .transit-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .transit-directory-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}



