/* ==========================================================================
   Metro Dubai Guide — Master Stylesheet (Light / UAE-Inspired Theme)
   Design: White & warm cream, dark navy text, desert gold accents
   Typography: Playfair Display (display) + DM Sans (body) + Cairo (Arabic)
   ========================================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Line colours */
  --color-red-line:    #E8354A;
  --color-green-line:  #27AE60;
  --color-blue-line:   #2E6DB4;

  /* Gold accent */
  --color-gold:        #C9A84C;
  --color-gold-light:  #DFC07E;
  --color-gold-dim:    rgba(201, 168, 76, 0.10);

  /* Core palette — light theme */
  --color-navy:        #1C2431;
  --color-navy-light:  #243040;
  --color-card:        #FFFFFF;
  --color-card-hover:  #FDFBF7;
  --color-text:        #1C2431;
  --color-muted:       #6B7280;
  --color-muted-light: #4B5563;
  --color-white:       #FFFFFF;
  --color-border:      #E8E4DA;
  --color-border-sub:  #F0EDE5;

  /* Backgrounds */
  --bg-primary:        #FFFFFF;
  --bg-section-alt:    #F9F7F2;
  --bg-navy:           #1C2431;   /* footer stays dark */

  /* Shadows — lighter for light theme */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 0 0 2px rgba(201, 168, 76, 0.35), 0 4px 24px rgba(201, 168, 76, 0.12);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-arabic:  'Cairo', 'Arial Arabic', sans-serif;

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 100px;

  /* Transitions */
  --transition:      all 0.25s ease;
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --header-h:      70px;
  --section-gap:   clamp(60px, 8vw, 110px);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* Prevent table overflow on mobile */
table { max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--color-muted); }

.text-gold  { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }
.text-white { color: var(--color-white); }

[lang="ar"], .arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  overflow-x: hidden; /* hard stop for any overflowing child */
}

.section { padding-block: var(--section-gap); }

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-header.centered { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  background: var(--color-gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-top: 10px;
  max-width: 560px;
}
.centered .section-subtitle { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Animation Classes ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #FFFFFF;
  box-shadow: 0 1px 0 #E8E4DA;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-gold), #A8893C);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-icon svg rect,
.logo-icon svg path,
.logo-icon svg circle {
  stroke: #FFFFFF !important;
  fill: #FFFFFF !important;
}

.logo-text { line-height: 1.1; }
.logo-text .en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}
.logo-text .ar {
  font-family: var(--font-arabic);
  font-size: 0.72rem;
  color: var(--color-gold);
  display: block;
  direction: rtl;
}

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-navy);
  background: var(--color-gold-dim);
}
.site-nav a.active { color: var(--color-gold); }

/* Line badges in nav */
.nav-line-red  { border-left: 3px solid var(--color-red-line); padding-left: 10px; margin-left: 6px; }
.nav-line-green{ border-left: 3px solid var(--color-green-line); padding-left: 10px; }

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 320px;
}
.header-search-input {
  flex: 1;
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.header-search-input:focus {
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.header-search-input::placeholder { color: var(--color-muted); }

/* ── Smart search dropdown ── */
.hs-dropdown {
  position: absolute;
  z-index: 9999;
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28,36,49,0.13);
  list-style: none;
  margin: 0; padding: 6px;
  display: none;
}
.hs-dropdown.hs-open { display: block; }

.hs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}
.hs-item:hover,
.hs-item.hs-active { background: #F7F4EE; }

.hs-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hs-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hs-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1C2431;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-name mark {
  background: rgba(201,168,76,0.25);
  color: #8A6D26;
  border-radius: 2px;
  padding: 0 1px;
}
.hs-meta {
  font-size: 0.73rem;
  color: #6B7280;
}
.hs-no-results {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #9CA3AF;
  text-align: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #FFFFFF;
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}
.mobile-nav a:hover {
  background: var(--bg-section-alt);
  border-color: var(--color-border);
}

/* ========================================================================
   HERO — Full-viewport split layout: left panel + right map
   ======================================================================== */

.hero {
  background: var(--bg-section-alt);
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  min-height: 600px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 390px 1fr;
  height: 100%;
}

/* ── Left panel — styled as an elevated card ── */
.hero-content {
  position: relative;
  z-index: 20;
  background: #FFFFFF;
  border-right: none;
  border-top: 3px solid var(--color-gold);
  outline: 1px solid rgba(201, 168, 76, 0.22);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: hidden;
  box-shadow:
    4px 0 32px rgba(0, 0, 0, 0.10),
    8px 0 64px rgba(0, 0, 0, 0.07);
}
.hero-content::before { display: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  width: fit-content;
}

.hero h1 {
  color: var(--color-navy);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.15;
}
.hero h1 span {
  color: var(--color-gold);
  font-style: italic;
}

.hero-subtitle-en {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-top: 12px;
  margin-bottom: 6px;
  line-height: 1.65;
}
.hero-subtitle-ar {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--color-muted);
  direction: rtl;
  margin-bottom: 20px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-top: 3px;
}

/* Hero graphic (old - kept for backwards compat) */
.hero-graphic { display: none; }

/* ── Right map panel ── */
.hero-map-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #F2E8D0;
}

.hero-map-card-new {
  width: 100%;
  height: 100%;
  background: #F2E8D0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Official geographic map background image */
.metro-map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-map-card-new .metro-map-svg {
  width: 100%;
  flex: 1;
  display: block;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  position: relative;
  z-index: 1;
}

/* ── Leaflet Map Container ── */
.dubai-map-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 380px;
}
#dubai-leaflet-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Leaflet z-index: keep tiles below our panel/tooltip */
.leaflet-pane         { z-index: 4; }
.leaflet-tile-pane    { z-index: 2; }
.leaflet-overlay-pane { z-index: 5; }
.leaflet-marker-pane  { z-index: 6; }
.leaflet-tooltip-pane { z-index: 7; }
.leaflet-popup-pane   { z-index: 8; }
.leaflet-control      { z-index: 9; }
/* Station circle markers */
.lf-station path, .lf-endpoint path, .lf-interchange path {
  transition: r 0.15s ease, stroke-width 0.15s ease;
  cursor: pointer;
}
.lf-interchange path { filter: drop-shadow(0 0 4px rgba(201,168,76,0.7)); }
/* Leaflet attribution — keep it subtle */
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(4px);
}
/* Zoom controls styling */
.leaflet-control-zoom a {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(6px);
  border-color: rgba(0,0,0,0.12) !important;
  color: #1C2431 !important;
  font-weight: 600;
}
/* Remove unused SVG map rules */
.dubai-metro-map { display: none; }

/* Geography */
.gulf-fill  { fill: #1565a0; opacity: 0.82; }
.creek-fill { fill: #1a7aaf; opacity: 0.75; }
.airport-area { fill: rgba(255,255,255,0.14); stroke: rgba(255,255,255,0.3); stroke-width: 1; }

/* Geo labels */
.geo-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  fill: rgba(28,36,49,0.55);
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}
.geo-label.sea-label {
  font-size: 13px;
  font-style: italic;
  fill: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.geo-label.area-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: rgba(28,36,49,0.35);
}
.geo-label.area-label.small { font-size: 9px; }
.geo-label.airport-code { font-size: 13px; font-weight: 700; fill: rgba(28,36,49,0.55); }
.geo-label.airport-name { font-size: 8px; fill: rgba(28,36,49,0.4); }

/* Metro line tracks */
.metro-line-shadow {
  fill: none;
  stroke: rgba(0,0,0,0.2);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metro-line {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.red-line        { stroke: #E8354A; }
.red-underground { stroke-dasharray: 8 6; stroke-width: 4; }
.green-line      { stroke: #27AE60; }
.route2020-line  { stroke: #C0392B; stroke-width: 4.5; stroke-dasharray: 10 4; }

/* Station dots */
.station-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}
.station-dot {
  fill: #fff;
  stroke-width: 2.5;
  pointer-events: none;
  transition: r 0.15s ease, filter 0.15s ease;
}
.station-dot.red-dot         { stroke: #E8354A; }
.station-dot.green-dot       { stroke: #27AE60; }
.station-dot.r2020-dot       { stroke: #C0392B; }
.station-dot.interchange-dot { fill: #C9A84C; stroke: #fff; stroke-width: 2; }
.station-dot.endpoint        { stroke-width: 3; }

/* Hover state */
.map-station { cursor: pointer; }
.map-station .station-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.map-station:hover .station-dot {
  transform: scale(1.55);
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.7));
}
.map-station:hover .station-dot.interchange-dot {
  transform: scale(1.35);
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.9));
}

/* Compass */
.compass-rose { pointer-events: none; }
.compass-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: rgba(255,255,255,0.8);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Legend overlaid in bottom-right of the map */
.hero-map-card-new .map-legend {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* Animated pulse on station dots */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.2); }
}
.metro-station-dot { animation: pulseDot 2.5s ease-in-out infinite; }

/* Animated dash on metro lines */
@keyframes dashFlow {
  to { stroke-dashoffset: -200; }
}
.metro-line-animated {
  stroke-dasharray: 12 8;
  animation: dashFlow 4s linear infinite;
}

/* ── Station name labels on SVG map ── */
.station-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 700;
  fill: #1C2431;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 4.5;
  stroke-linejoin: round;
  pointer-events: none;
  letter-spacing: -0.01em;
}

/* ── Landmark photo pins on SVG map ── */
.landmark-pin {
  cursor: pointer;
}
.landmark-pin:hover .landmark-ring {
  stroke-width: 4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.landmark-name-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  fill: #1C2431;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 5;
  stroke-linejoin: round;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: #1C2431;
}
.btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--bg-section-alt);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: #1C2431;
}

/* ========================================================================
   INTERACTIVE METRO MAP SECTION
   ======================================================================== */

.map-section { background: var(--bg-section-alt); padding-block: 64px; }

.map-container {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #E8E4DA;
}

.map-wrapper {
  overflow-x: auto;
  min-height: 500px;
  cursor: grab;
}
.map-wrapper:active { cursor: grabbing; }

.metro-map-svg {
  display: block;
  width: 100%;
  min-width: 900px;
}

/* Station dots on SVG */
.map-station { cursor: pointer; }
.map-station .station-circle { transition: all 0.2s ease; }
.map-station:hover .station-circle {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(0,0,0,0.35));
  transform-origin: center;
}

/* Metro line hover glow */
.metro-line {
  cursor: pointer;
  transition: stroke-width 0.18s ease, filter 0.18s ease;
}
.metro-line-red:hover  { stroke-width: 10 !important; filter: drop-shadow(0 0 7px rgba(232,53,74,0.7)); }
.metro-line-green:hover{ stroke-width: 10 !important; filter: drop-shadow(0 0 7px rgba(39,174,96,0.7)); }
.metro-line-route2020:hover { stroke-width: 9 !important; filter: drop-shadow(0 0 6px rgba(232,53,74,0.5)); }

/* Station Info Panel */
.map-station-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(0,0,0,0.09);
  box-shadow: -8px 0 32px rgba(0,0,0,0.13);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.34,1.1,0.64,1);
  overflow-y: auto;
}
.map-station-panel.open {
  transform: translateX(0);
}
.map-panel-close {
  align-self: flex-end;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #374151;
  flex-shrink: 0;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.map-panel-close:hover { background: rgba(0,0,0,0.12); }
.map-panel-line-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
}
.map-panel-line-badge.red   { background: rgba(232,53,74,0.1);  color: #C8172C; }
.map-panel-line-badge.green { background: rgba(39,174,96,0.1); color: #1A8A46; }
.map-panel-line-badge.interchange { background: rgba(201,168,76,0.12); color: #9A7020; }
.map-panel-line-badge.blue  { background: rgba(46,109,180,0.1); color: #1E4D90; }
.map-panel-line-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.map-panel-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1C2431;
  line-height: 1.25;
  margin-bottom: 4px;
}
.map-panel-name-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: #C9A84C;
  direction: rtl;
  text-align: right;
  margin-bottom: 10px;
}
.map-panel-zone {
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0EDE6;
}
.map-panel-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin-bottom: 6px;
}
.map-panel-facilities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.map-panel-facility-item {
  font-size: 0.8rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-panel-nearby {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 18px;
}
.map-panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1C2431;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
  transition: background 0.15s;
  text-align: center;
}
.map-panel-cta:hover { background: #E8354A; color: #fff; }
@media (max-width: 960px) {
  .map-station-panel {
    width: 100%;
    top: auto;
    height: 60%;
    transform: translateY(100%);
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.09);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.13);
    flex-direction: column;
  }
  .map-station-panel.open { transform: translateY(0); }
}

/* Tooltip */
.map-tooltip {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 180px;
  max-width: 240px;
  transition: opacity 0.15s ease;
}
.map-tooltip.hidden { opacity: 0; visibility: hidden; }
.map-tooltip:not(.hidden) { visibility: visible; }

.tooltip-line-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
}
.tooltip-line-badge.red, .tooltip-line-badge.route2020 { background: rgba(232,53,74,0.12); color: #E8354A; }
.tooltip-line-badge.green { background: rgba(39,174,96,0.12); color: #27AE60; }
.tooltip-line-badge.interchange { background: rgba(201,168,76,0.12); color: #C9A84C; }
.tooltip-line-badge.blue { background: rgba(46,109,180,0.12); color: #2E6DB4; }

.tooltip-name {
  font-weight: 700;
  color: #1C2431;
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 2px;
}
.tooltip-zone { font-size: 0.78rem; color: #6B7280; margin-bottom: 8px; }
.tooltip-hint { font-size: 0.72rem; color: #C9A84C; font-weight: 600; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid #E8E4DA;
  background: #FAFAF8;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #4B5563;
  font-weight: 500;
}
.legend-line {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}
.legend-line.dashed {
  background: repeating-linear-gradient(
    90deg,
    #2E6DB4 0px, #2E6DB4 8px,
    transparent 8px, transparent 14px
  );
}

/* ========================================================================
   LINE CARDS
   ======================================================================== */

.lines-section { background: #FFFFFF; }

.line-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.line-card {
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}
.line-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.line-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.red-line  .line-card-accent { background: var(--color-red-line); }
.green-line .line-card-accent { background: var(--color-green-line); }

.line-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.line-badge-lg.red   { background: rgba(232,53,74,0.10);  color: var(--color-red-line); }
.line-badge-lg.green { background: rgba(39,174,96,0.10); color: var(--color-green-line); }

.line-meta {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 16px 0;
}
.line-meta-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}
.line-meta-key {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.line-card-ar {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.line-key-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.mini-station-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted-light);
}
.interchange-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-pill);
  color: var(--color-gold);
  font-weight: 600;
}

.line-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  transition: gap 0.2s;
}
.line-cta:hover { gap: 10px; }

/* ========================================================================
   STATION CARDS (Featured / Grid)
   ======================================================================== */

.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.station-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition-slow);
  position: relative;
}
.station-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.station-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.station-name-en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}
.station-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  color: var(--color-muted);
  direction: rtl;
  margin-top: 3px;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.line-badge .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.line-badge.red   { background: rgba(232,53,74,0.10);  color: var(--color-red-line);   }
.line-badge.red .dot   { background: var(--color-red-line); }
.line-badge.green { background: rgba(39,174,96,0.10);  color: var(--color-green-line); }
.line-badge.green .dot { background: var(--color-green-line); }

.station-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.station-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-muted-light);
}
.highlight-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.station-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.station-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted-light);
}

.station-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold);
  padding-top: 14px;
  border-top: 1px solid var(--color-border-sub);
  transition: gap 0.2s;
}
.station-card-link:hover { gap: 10px; }

/* ========================================================================
   HOW TO USE / TIPS SECTION
   ======================================================================== */

.tips-section { background: var(--bg-section-alt); }

.tips-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.tip-card-outer {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.tip-card-outer:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold);
}

.tip-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.tip-card-outer h4 {
  color: var(--color-navy);
  margin-bottom: 8px;
  font-size: 0.975rem;
}
.tip-card-outer p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========================================================================
   ABOUT METRO SECTION
   ======================================================================== */

.about-metro-section {
  background: #FFFFFF;
}

.about-metro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-metro-text h2 { margin-bottom: 16px; }
.about-metro-text p  { margin-bottom: 14px; }

.about-stats-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat-card {
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.about-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.site-footer {
  background: var(--bg-navy);   /* one dark element */
  color: rgba(255,255,255,0.75);
  padding-block: clamp(48px, 6vw, 80px) 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text .en { color: #FFFFFF; }
.footer-brand .logo-text .ar { color: var(--color-gold); }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  line-height: 1.7;
}

/* ========================================================================
   INTERACTIVE METRO MAP (full detailed map on index.html)
   ======================================================================== */

/* ========================================================================
   STATION HERO BANNER
   ======================================================================== */

.station-hero-banner {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #1C2431;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,36,49,0.95) 0%,
    rgba(28,36,49,0.4) 60%,
    transparent 100%
  );
}
.hero-banner-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px clamp(16px, 4vw, 48px);
}

/* ── Stats bar ── */
.station-stats-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E4DA;
  padding-block: 0;
}
.stats-bar-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.stats-bar-inner::-webkit-scrollbar { display: none; }

.stat-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-right: 1px solid #F0EDE5;
  min-width: 120px;
  flex-shrink: 0;
  gap: 3px;
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
}
.stat-bar-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1C2431;
}

/* ── Image gallery ── */
.image-gallery { padding-block: 32px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 210px 175px;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
}
/* 2-image layout: two equal columns, single tall row */
.gallery-grid.g2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 270px;
}
.gallery-grid.g2 .gallery-item:first-child { grid-row: 1; }
/* 3-image: default (3fr 2fr, 2 rows, first spans) */
.gallery-grid.g3 .gallery-item:first-child { grid-row: 1 / 3; }
/* 4-image: 3 columns, two rows */
.gallery-grid.g4 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 175px;
}
.gallery-grid.g4 .gallery-item:first-child { grid-row: 1 / 3; }
/* 5-image: 3 columns, two rows, first spans */
.gallery-grid.g5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 175px;
}
.gallery-grid.g5 .gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item {
  overflow: hidden;
  position: relative;
  background: #E8E6DF;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,36,49,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

/* ── Listing cards v2 (with image) ── */
.listing-card-v2 {
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.listing-card-v2:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: #C9A84C;
}
.listing-card-img {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #F0EDE5;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-img-category {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 100px; padding: 3px 10px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #1C2431;
}
.listing-img-distance {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(28,36,49,0.85); color: #FFFFFF;
  border-radius: 100px; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 600;
}
.listing-card-body-v2 {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.listing-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.stars { color: #F59E0B; letter-spacing: -1px; }
.rating-val { font-weight: 700; color: #1C2431; }
.rating-count { color: #9CA3AF; }
.listing-price-range {
  font-size: 0.8rem; font-weight: 600;
  color: #C9A84C; margin-left: auto;
}
.listing-card-v2 h4 {
  font-size: 0.975rem; color: #1C2431;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; line-height: 1.3;
}
.listing-card-v2 p {
  font-size: 0.82rem; line-height: 1.6;
  color: #6B7280; flex: 1;
}
.listing-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.listing-tag {
  font-size: 0.68rem; padding: 2px 9px;
  border-radius: 100px;
  background: #F9F7F2; border: 1px solid #E8E4DA;
  color: #4B5563;
}
.listing-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid #F0EDE5; margin-top: 4px;
}
.listing-ext-link {
  font-size: 0.78rem; font-weight: 600; color: #C9A84C;
  transition: gap 0.2s; display: flex; align-items: center; gap: 4px;
}
.listing-ext-link:hover { gap: 8px; }

/* ── Station page layout ── */
.station-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-block: 48px;
}
.station-main-col {
  min-width: 0; /* prevent grid item from overflowing its track */
  width: 100%;
}
.station-sidebar-col {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}

/* ── About area ── */
.about-section {
  background: #FFFFFF;
  padding: 32px;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  margin-bottom: 32px;
}
.about-section h2 { font-size: 1.3rem; margin-bottom: 12px; }

/* ── Getting There ── */
.getting-there-section {
  background: #FFFFFF;
  padding: 32px;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  margin-top: 32px;
}
.transport-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.transport-card {
  background: #F9F7F2;
  border: 1px solid #E8E4DA;
  border-radius: 12px;
  padding: 20px;
}
.transport-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.transport-card h4 {
  font-size: 0.9rem; font-weight: 700;
  color: #1C2431; margin-bottom: 6px;
}
.transport-card p { font-size: 0.82rem; color: #6B7280; line-height: 1.6; }
.transport-routes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.route-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  background: #E8354A; color: white;
}
.route-badge.bus { background: #F59E0B; }
.route-badge.green { background: #27AE60; }

/* ── Walking guide ── */
.walking-guide {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  padding: 28px;
}
.walking-guide h3 { margin-bottom: 18px; font-size: 1.1rem; }
.walk-list { display: flex; flex-direction: column; gap: 0; }
.walk-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #F0EDE5;
}
.walk-item:last-child { border-bottom: none; }
.walk-distance-bubble {
  min-width: 70px; height: 36px;
  border-radius: 100px;
  background: #F9F7F2; border: 1px solid #E8E4DA;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #C9A84C;
}
.walk-item-name { flex: 1; font-size: 0.875rem; font-weight: 600; color: #1C2431; }
.walk-item-note { font-size: 0.75rem; color: #9CA3AF; }

/* ── Visitor tips (section with gold background) ── */
.visitor-tips-section {
  margin-top: 32px;
  background: linear-gradient(135deg, #FEF9EE, #FDFBF3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 28px;
}
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.tip-card {
  background: #FFFFFF;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 16px;
}
.tip-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.tip-card h4 {
  font-size: 0.875rem; font-weight: 700;
  color: #1C2431; margin-bottom: 4px;
}
.tip-card p { font-size: 0.8rem; color: #6B7280; line-height: 1.55; }

/* ── Reviews section ── */
.reviews-section {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 16px;
  padding: 28px;
}
.review-summary {
  display: flex; gap: 32px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid #F0EDE5;
}
.review-score-big { text-align: center; }
.review-score-number {
  font-size: 3.5rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #1C2431; line-height: 1;
}
.review-score-stars { color: #F59E0B; font-size: 1.1rem; margin: 4px 0; }
.review-score-count { font-size: 0.78rem; color: #9CA3AF; }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; }
.review-bar-label { min-width: 40px; color: #6B7280; }
.review-bar-track {
  flex: 1; height: 6px;
  background: #F0EDE5; border-radius: 100px; overflow: hidden;
}
.review-bar-fill { height: 100%; background: #F59E0B; border-radius: 100px; }
.review-bar-pct { min-width: 28px; color: #9CA3AF; text-align: right; }
.review-cards { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #F9F7F2; border-radius: 12px; padding: 18px; }
.review-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #C9A84C;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 0.9rem; flex-shrink: 0;
}
.reviewer-name { font-weight: 600; color: #1C2431; font-size: 0.9rem; }
.reviewer-meta { font-size: 0.75rem; color: #9CA3AF; }
.review-stars-small { color: #F59E0B; font-size: 0.85rem; }
.review-text { font-size: 0.85rem; color: #4B5563; line-height: 1.65; }

/* ── Nearby stations visual (line context) ── */
.line-context-section {
  --lc-color: #E8354A;
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-left: 4px solid var(--lc-color);
  border-radius: 12px;
  padding: 24px 26px 26px;
}
.line-context-section[data-line="green"]     { --lc-color: #27AE60; }
.line-context-section[data-line="route2020"] { --lc-color: #E86A2B; }
.line-context-section[data-line="blue"]      { --lc-color: #2F6BD1; }

.line-context-section > h3 {
  font-size: 1.1rem !important;
  font-weight: 700;
  color: #1C2431;
  margin: 0 0 4px !important;
}
.line-context-section > p {
  font-size: 0.82rem !important;
  color: #6B7280 !important;
  margin: 0 0 16px !important;
}

.line-context-track {
  display: flex; align-items: flex-start;
  overflow-x: auto;
  padding: 16px 0 4px;
  gap: 0; scrollbar-width: none;
}
.line-context-track::-webkit-scrollbar { display: none; }

.lc-station {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  min-width: 96px;
  padding: 0 6px;
  text-align: center;
}

.lc-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid var(--lc-color);
  background: #FFFFFF;
  flex-shrink: 0;
}
.lc-dot.current {
  width: 18px; height: 18px;
  background: var(--lc-color);
  border-color: var(--lc-color);
}

.lc-line {
  flex: 1;
  min-width: 36px;
  height: 3px;
  background: var(--lc-color);
  margin-top: 9px;
}

.lc-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: #1C2431;
  line-height: 1.3;
  max-width: 110px;
}
.lc-name.current {
  font-weight: 700;
  color: var(--lc-color);
}

.lc-id {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9CA3AF;
  letter-spacing: 0.04em;
}
.lc-dot.current ~ .lc-id {
  color: var(--lc-color) !important;
  font-weight: 700;
}

.lc-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lc-color);
  text-decoration: none;
}
.lc-link:hover { text-decoration: underline; }
.lc-station > a.lc-link:first-of-type { text-decoration: none; }

@media (max-width: 640px) {
  .line-context-section { padding: 20px 18px; }
  .lc-station { min-width: 86px; }
  .lc-name { font-size: 0.74rem; max-width: 94px; }
  .lc-line { min-width: 28px; }
}

/* ── Sidebar boxes ── */
.sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E8E4DA;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #9CA3AF; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #F0EDE5;
  font-family: 'DM Sans', sans-serif;
}
.sidebar-info-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; padding: 9px 0;
  border-bottom: 1px solid #F0EDE5; font-size: 0.83rem;
}
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-label { color: #9CA3AF; }
.sidebar-info-value {
  font-weight: 600; color: #1C2431;
  text-align: right; max-width: 55%;
}

/* ── Status indicators ── */
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px;
}
.status-dot.green { background: #27AE60; }
.status-dot.orange { background: #F59E0B; }
.status-dot.red { background: #E8354A; }

/* ── Hours table ── */
.hours-table { width: 100%; font-size: 0.82rem; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid #F0EDE5;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { color: #6B7280; }
.hours-time { font-weight: 600; color: #1C2431; }

/* ── Nearby listings (sidebar) ── */
.sidebar-station-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 10px; border-radius: 8px;
  background: #F9F7F2; border: 1px solid #F0EDE5;
  font-size: 0.82rem; font-weight: 500; color: #4B5563;
  transition: all 0.2s; margin-bottom: 6px;
}
.sidebar-station-link:hover {
  background: rgba(201,168,76,0.08);
  border-color: #C9A84C; color: #1C2431;
}

/* ── Facilities inline badges ── */
.facilities-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.facility-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #F9F7F2; border: 1px solid #E8E4DA;
  border-radius: 10px; font-size: 0.8rem; color: #4B5563;
}
.facility-badge-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Map placeholder ── */
.map-placeholder {
  aspect-ratio: 16/7;
  background: #F0EDE5; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #E8E4DA; margin-top: 16px;
  flex-direction: column; gap: 8px;
  color: #9CA3AF; font-size: 0.875rem;
}

/* ── Quick Facts strip ── */
.quick-facts-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px; overflow: hidden;
  margin-top: 20px;
}
.fact-item {
  padding: 12px 20px;
  border-right: 1px solid var(--color-border);
  font-size: 0.82rem;
}
.fact-item:last-child { border-right: none; }
.fact-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); }
.fact-value { font-weight: 600; color: var(--color-navy); margin-top: 2px; }

/* ── Nearby tabs ── */
.nearby-section { margin-top: 32px; }
.nearby-section > h2 { margin-bottom: 20px; font-size: 1.3rem; }
.nearby-dynamic-content { min-height: 120px; }
.nearby-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  padding: 48px 0; color: #9CA3AF; font-size: 0.9rem;
}
.nearby-loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: npSpin 0.8s linear infinite;
}
@keyframes npSpin { to { transform: rotate(360deg); } }
.tabs-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px; border-bottom: 2px solid var(--color-border); padding-bottom: 0;
}
.tab-btn {
  padding: 8px 16px; border-radius: 8px 8px 0 0;
  font-size: 0.85rem; font-weight: 600;
  background: none; border: none;
  color: var(--color-muted); cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent; border-bottom: none;
  position: relative; bottom: -2px;
}
.tab-btn.active {
  background: #FFFFFF; color: var(--color-gold);
  border-color: var(--color-border);
  border-bottom-color: #FFFFFF;
}
.tab-btn:hover:not(.active) { color: var(--color-navy); background: var(--bg-section-alt); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── FAQ ── */
.faq-section {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}
.faq-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
.faq-item {
  border-bottom: 1px solid var(--color-border-sub);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; color: var(--color-navy); font-size: 0.925rem;
  background: none; border: none; width: 100%; text-align: left; padding: 0;
  font-family: var(--font-body);
  gap: 12px;
}
.faq-question .faq-icon {
  font-size: 1.1rem; color: var(--color-gold); flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 0.875rem; color: var(--color-muted); line-height: 1.7;
  margin-top: 10px; display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ========================================================================
   STATIONS LIST PAGE
   ======================================================================== */

.stations-hero {
  background: var(--bg-section-alt);
  padding-block: 60px 40px;
  border-bottom: 1px solid var(--color-border);
}
.stations-hero h1 { margin-bottom: 8px; }
.stations-hero p { font-size: 1rem; color: var(--color-muted); }

.filter-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding-block: 14px;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.filter-bar-inner {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-btn {
  padding: 7px 18px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--color-border);
  background: #FFFFFF; color: var(--color-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-navy); color: #FFFFFF;
  border-color: var(--color-navy);
}
.filter-btn.active.red   { background: var(--color-red-line);   border-color: var(--color-red-line);   color: #fff; }
.filter-btn.active.green { background: var(--color-green-line); border-color: var(--color-green-line); color: #fff; }

/* ========================================================================
   PAGE HERO (generic sub-page hero, used on stations.html)
   ======================================================================== */
.page-hero {
  background: var(--bg-section-alt);
  padding-block: 56px 40px;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin-bottom: 8px; color: var(--color-navy); }

/* ========================================================================
   STATIONS LIST PAGE — Filter + Grid
   ======================================================================== */

/* Filter tabs (not filter-btn) */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.filter-tab.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}
.filter-tab[data-filter="red"].active   { background: var(--color-red-line);   border-color: var(--color-red-line); }
.filter-tab[data-filter="green"].active { background: var(--color-green-line); border-color: var(--color-green-line); }
.filter-tab[data-filter="interchange"].active { background: var(--color-gold);   border-color: var(--color-gold); color: #1C2431; }

/* Search input in filter bar */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  gap: 8px;
}
.search-input-wrap svg { flex-shrink: 0; opacity: 0.5; }
.search-input-wrap svg * { stroke: var(--color-navy); }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  padding: 8px 0;
}
.search-input::placeholder { color: var(--color-muted); }
.search-input-wrap:focus-within {
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* Sort select */
.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--color-gold); }

/* Results count */
.results-count {
  font-size: 0.82rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.results-count strong { color: var(--color-navy); }

/* Stations list section */
.stations-list-section {
  padding-block: 40px 80px;
}

/* Stations list grid */
.stations-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* Station list card */
.station-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.station-list-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* Station ID badge */
.station-id-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  color: #FFFFFF;
}
.station-id-badge.red   { background: var(--color-red-line); }
.station-id-badge.green { background: var(--color-green-line); }
.station-id-badge.interchange { background: var(--color-gold); color: #1C2431; }

/* Station list info */
.station-list-info {
  flex: 1;
  min-width: 0;
}
.station-list-name {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-navy);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  color: var(--color-muted);
  direction: rtl;
  margin-top: 2px;
}
.station-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

/* Zone badge */
.zone-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: var(--bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted-light);
  font-weight: 500;
}

/* Arrow icon in card */
.station-list-arrow {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.2s, color 0.2s;
}
.station-list-card:hover .station-list-arrow {
  transform: translateX(4px);
  color: var(--color-gold);
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}
.no-results h3 { color: var(--color-navy); margin-bottom: 8px; }

/* ========================================================================
   RESPONSIVE BREAKPOINTS
   ======================================================================== */

@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 340px 1fr; }
  .hero-content { padding: 28px 24px; }
}

@media (max-width: 960px) {
  /* Hero: stack content on top, map below */
  .hero {
    height: auto;
    min-height: auto;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    box-shadow: none;
    padding: 28px clamp(16px, 4vw, 32px);
    justify-content: flex-start;
    overflow-y: visible;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-map-panel {
    height: 60vw;
    min-height: 300px;
    max-height: 520px;
    overflow: hidden;
    touch-action: pan-y;
  }
  .hero-map-card-new {
    height: 100%;
  }
  .hero-map-card-new .metro-map-svg {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
  }
  .hero-map-card-new .map-legend {
    bottom: 8px;
    right: 8px;
    padding: 8px 10px;
  }
  .hero-graphic { display: none; }
  .line-cards-grid { grid-template-columns: 1fr; }
  .about-metro-grid { grid-template-columns: 1fr; }

  /* Station page */
  .station-page-layout { grid-template-columns: 1fr; }
  .station-sidebar-col { position: relative; top: 0; }
  .transport-cards { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }

  /* Stations list */
  .stations-list-grid { grid-template-columns: 1fr; }
  .filter-bar-inner { gap: 8px; }
  .search-input-wrap { min-width: 0; flex: 1; }

  .site-nav { display: none; }
  .header-search { max-width: 200px; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .station-hero-banner { height: 280px; }
  .gallery-grid,
  .gallery-grid.g2,
  .gallery-grid.g3,
  .gallery-grid.g4,
  .gallery-grid.g5 {
    grid-template-columns: 1fr;
    grid-template-rows: 220px;
  }
  .gallery-grid .gallery-item:first-child { grid-row: 1; grid-column: 1; }
  .gallery-grid .gallery-item:not(:first-child) { display: none; }
  .review-summary { flex-direction: column; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-search { display: none; }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 20px 16px;
  }
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 10px 6px; }
  .stat-number { font-size: 1.25rem; }
  .hero-map-panel {
    height: 70vw;
    max-height: 420px;
  }
  .line-cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .search-input-wrap { max-width: 100%; }
  .results-count { text-align: center; }
  .transport-cards { grid-template-columns: 1fr; }
  .about-stats-visual { grid-template-columns: 1fr 1fr; }
}

/* ── Red/Green Line Page ── */
.line-hero {
  padding-block: 80px 60px;
  position: relative;
  overflow: hidden;
}
.line-hero-content { position: relative; z-index: 2; }
.line-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #FFFFFF; margin-bottom: 8px; }
.line-hero-ar { font-family: 'Cairo', sans-serif; font-size: 1.1rem; color: rgba(255,255,255,0.65); direction: rtl; text-align: left; margin-bottom: 20px; }
.line-hero-desc { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 600px; line-height: 1.7; margin-bottom: 24px; }
.line-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.line-hero-pill { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }

.line-facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; margin-block: 40px; }
.line-fact-item { background: #FFFFFF; padding: 20px 24px; }
.line-fact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 6px; font-weight: 600; }
.line-fact-value { font-size: 0.95rem; font-weight: 700; color: var(--color-text); }

.line-stations-section { padding-block: 48px; background: var(--bg-section-alt); }
.line-station-row {
  display: flex; align-items: center; gap: 16px;
  background: #FFFFFF; border: 1px solid var(--color-border);
  border-radius: 10px; padding: 14px 20px;
  margin-bottom: 8px; text-decoration: none; color: inherit;
  transition: all 0.2s ease;
}
.line-station-row:hover { border-color: var(--color-gold); box-shadow: 0 2px 12px rgba(201,168,76,0.12); transform: translateX(3px); }
.line-station-row.interchange-row { border-color: rgba(201,168,76,0.3); background: #FFFDF5; }
.lsr-badge { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; color: #FFFFFF; flex-shrink: 0; letter-spacing: -0.02em; }
.lsr-badge.red { background: var(--color-red-line); }
.lsr-badge.green { background: var(--color-green-line); }
.lsr-badge.route2020 { background: #C0392B; }
.lsr-body { flex: 1; min-width: 0; }
.lsr-name { font-weight: 700; font-size: 0.95rem; color: var(--color-text); }
.lsr-name-ar { font-family: 'Cairo', sans-serif; font-size: 0.8rem; color: var(--color-muted); direction: rtl; text-align: left; }
.lsr-meta { font-size: 0.75rem; color: var(--color-muted); margin-top: 2px; }
.lsr-facilities { display: flex; gap: 4px; flex-wrap: wrap; }
.lsr-facility { font-size: 0.7rem; background: var(--bg-section-alt); border: 1px solid var(--color-border); padding: 2px 6px; border-radius: 4px; color: var(--color-muted); }
.lsr-arrow { color: var(--color-muted); flex-shrink: 0; font-size: 1.1rem; transition: color 0.2s; }
.line-station-row:hover .lsr-arrow { color: var(--color-gold); }
.lsr-interchange-badge { background: rgba(201,168,76,0.15); color: var(--color-gold); font-size: 0.68rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; border: 1px solid rgba(201,168,76,0.25); margin-left: 6px; }
.branch-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; }
.branch-divider-line { flex: 1; height: 1px; background: var(--color-border); }
.branch-divider-label { font-size: 0.75rem; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }

.line-highlights { padding-block: 60px; }
.line-highlight-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.line-highlight-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 14px; padding: 24px; transition: all 0.2s; text-decoration: none; color: inherit; display: block; }
.line-highlight-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.lhc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; }
.lhc-badge.red { background: rgba(232,53,74,0.1); color: var(--color-red-line); }
.lhc-badge.green { background: rgba(39,174,96,0.1); color: var(--color-green-line); }
.lhc-badge.gold { background: var(--color-gold-dim); color: var(--color-gold); }
.lhc-name { font-weight: 800; font-size: 1rem; color: var(--color-text); margin-bottom: 4px; }
.lhc-name-ar { font-family: 'Cairo', sans-serif; font-size: 0.8rem; color: var(--color-muted); direction: rtl; text-align: left; margin-bottom: 10px; }
.lhc-nearby { font-size: 0.78rem; color: var(--color-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .line-facts-strip { grid-template-columns: 1fr 1fr; }
  .lsr-facilities { display: none; }
}
@media (max-width: 480px) {
  .line-facts-strip { grid-template-columns: 1fr; }
}

/* ── Leaflet overrides ── */
.leaflet-pane         { z-index: 4 !important; }
.leaflet-tile-pane    { z-index: 2 !important; }
.leaflet-overlay-pane { z-index: 4 !important; }
.leaflet-marker-pane  { z-index: 6 !important; }
.leaflet-popup-pane   { z-index: 8 !important; }
.leaflet-top,
.leaflet-bottom       { z-index: 10 !important; }
.leaflet-control-zoom a {
  color: var(--color-navy);
  font-weight: 700;
}
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255,255,255,0.8);
}

/* ========================================================================
   STATION PAGES — Mobile Optimisation
   Applied to all station-*.html via this single stylesheet
   ======================================================================== */

@media (max-width: 640px) {
  /* ── Prevent grid item overflow (root cause fix) ── */
  .station-main-col,
  .station-sidebar-col {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  /* ── Gallery: horizontal swipe carousel instead of single image ── */
  .gallery-grid,
  .gallery-grid.g2,
  .gallery-grid.g3,
  .gallery-grid.g4,
  .gallery-grid.g5 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 210px;
    gap: 4px;
    border-radius: 12px;
    grid-template-columns: unset;
    grid-template-rows: unset;
    width: 100%;
    min-width: 0;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid .gallery-item {
    min-width: 78vw;
    max-width: 78vw;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: block;
    border-radius: 8px;
  }
  .gallery-grid .gallery-item:not(:first-child) { display: block; }
  .gallery-grid .gallery-item:first-child { grid-row: unset; grid-column: unset; }

  /* ── Section card padding ── */
  .about-section,
  .getting-there-section,
  .walking-guide,
  .faq-section,
  .visitor-tips-section,
  .reviews-section {
    padding: 20px 16px;
  }

  /* ── Layout vertical rhythm ── */
  .station-page-layout {
    padding-block: 24px;
    gap: 20px;
  }

  /* ── Quick facts: 2-column grid ── */
  .quick-facts-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
  }
  .fact-item {
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .fact-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .fact-item:last-child { border-bottom: none; border-right: none; }
  .fact-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* ── Stat bar: compact ── */
  .stat-bar-item {
    padding: 12px 16px;
    min-width: 100px;
  }
  .stat-bar-value { font-size: 0.82rem; }

  /* ── Nearby tabs: smaller buttons ── */
  .tab-btn {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  /* ── Tips grid: tighter gap ── */
  .tips-grid { gap: 10px; }
}

/* ── Homepage hero: hide map + stats on mobile ── */
@media (max-width: 768px) {
  .hero-map-panel { display: none; }
  .hero-stats     { display: none; }
  .hero-inner     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* ── Hero banner: shorter on very small screens ── */
  .station-hero-banner { height: 240px; }

  /* ── Walking guide: note text wraps below ── */
  .walk-item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .walk-distance-bubble { flex-shrink: 0; }
  .walk-item-name { flex: 1; }
  .walk-item-note {
    flex: 0 0 100%;
    padding-left: calc(70px + 10px);
    margin-top: -2px;
  }

  /* ── Section headings: slightly smaller ── */
  .about-section h2,
  .faq-section h2,
  .getting-there-section h2,
  .nearby-section > h2 {
    font-size: 1.15rem;
  }
}
