:root {
  --color-bg: #FBF8F0;
  --color-text: #1D2A31;
  --color-blue: #146C94;
  --color-moss: #557A5D;
  --color-coral: #D76756;
  --color-tan: #E4D5BC;
  --color-glass: rgba(255, 255, 255, 0.45);
  --color-glass-border: rgba(255, 255, 255, 0.35);
  --color-glass-dark: rgba(29, 42, 49, 0.05);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-main: 0 8px 32px 0 rgba(29, 42, 49, 0.08);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background elements for Liquid Glass styling */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(20, 108, 148, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(215, 103, 86, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; color: var(--color-text); }
h2 { font-size: 1.85rem; color: var(--color-text); }
h3 { font-size: 1.4rem; color: var(--color-text); }

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-coral);
}

/* Glassmorphism base layout styling */
.glass-panel {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-main);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  box-shadow: 0 12px 40px 0 rgba(29, 42, 49, 0.12);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-tan);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-transform: lowercase;
}

.brand-logo svg {
  fill: var(--color-blue);
  width: 28px;
  height: 28px;
}

.brand-dot {
  color: var(--color-coral);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  background: var(--color-glass-dark);
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.4s;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: #5c6870;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.snapshot-badge {
  display: inline-block;
  background: var(--color-tan);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Legend Component */
.legend-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

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

.legend-card {
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.legend-card.confirmed {
  background: rgba(20, 108, 148, 0.08);
  border-color: rgba(20, 108, 148, 0.2);
}

.legend-card.confirmed:hover, .legend-card.confirmed.active {
  background: rgba(20, 108, 148, 0.15);
  border-color: var(--color-blue);
}

.legend-card.pending {
  background: rgba(85, 122, 93, 0.08);
  border-color: rgba(85, 122, 93, 0.2);
}

.legend-card.pending:hover, .legend-card.pending.active {
  background: rgba(85, 122, 93, 0.15);
  border-color: var(--color-moss);
}

.legend-card.scheduled {
  background: rgba(215, 103, 86, 0.08);
  border-color: rgba(215, 103, 86, 0.2);
}

.legend-card.scheduled:hover, .legend-card.scheduled.active {
  background: rgba(215, 103, 86, 0.15);
  border-color: var(--color-coral);
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.confirmed .legend-dot-indicator { background-color: var(--color-blue); }
.pending .legend-dot-indicator { background-color: var(--color-moss); }
.scheduled .legend-dot-indicator { background-color: var(--color-coral); }

.legend-desc {
  font-size: 0.85rem;
  color: #4a555c;
}

/* Metro Map Route Layout (Desktop) */
.map-wrapper {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.section-title {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 32px;
  background: var(--color-blue);
  border-radius: 3px;
}

.metro-corridor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-bottom: 3rem;
}

.metro-corridor::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 4px;
  background: var(--color-tan);
  z-index: 0;
}

.metro-station {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

.station-node {
  width: 60px;
  display: flex;
  justify-content: center;
}

.node-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-tan);
  background: var(--color-tan);
  transition: all var(--transition-normal);
}

.station-node.state-confirmed .node-dot {
  background: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(20, 108, 148, 0.3);
}

.station-node.state-pending .node-dot {
  background: var(--color-moss);
  box-shadow: 0 0 0 4px rgba(85, 122, 93, 0.3);
}

.station-node.state-scheduled .node-dot {
  background: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(215, 103, 86, 0.3);
}

.station-content {
  margin-left: 1rem;
}

.station-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.station-meta {
  display: flex;
  flex-direction: column;
}

.station-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.station-match {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

.station-outcome {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-moss);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.station-outcome.pns {
  color: var(--color-blue);
}

.station-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-confirmed {
  background: rgba(20, 108, 148, 0.12);
  color: var(--color-blue);
}

.tag-pending {
  background: rgba(85, 122, 93, 0.12);
  color: var(--color-moss);
}

.tag-scheduled {
  background: rgba(215, 103, 86, 0.12);
  color: var(--color-coral);
}

/* Specific styling for Routes */
.route-line-card {
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--color-tan);
}

.route-line-card.confirmed-route {
  border-left-color: var(--color-blue);
}

.route-line-card.pending-route {
  border-left-color: var(--color-moss);
}

.route-line-card.scheduled-route {
  border-left-color: var(--color-coral);
}

/* Page content structures */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer & Legal */
.site-footer {
  background: var(--color-text);
  color: #a0aec0;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-links h5, .footer-address h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-address p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.address-group {
  margin-bottom: 1.25rem;
}

.address-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #718096;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 500px;
  background: rgba(29, 42, 49, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  color: #e2e8f0;
  padding: 1.75rem;
  z-index: 999;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .cookie-banner {
    left: auto;
    right: 24px;
  }
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-header {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.cookie-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.cookie-prefs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
}

.pref-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.pref-option input[type="checkbox"] {
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: center;
}

.cookie-btn-primary {
  background: var(--color-blue);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: #105a7c;
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Interactive Quick Forms Styling */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.form-input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-tan);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 108, 148, 0.15);
}

.submit-btn {
  background: var(--color-text);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.submit-btn:hover {
  background: var(--color-blue);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  background: rgba(85, 122, 93, 0.12);
  color: var(--color-moss);
  border: 1px solid rgba(85, 122, 93, 0.2);
}

/* Detail Box Component */
.detail-box {
  background: rgba(228, 213, 188, 0.15);
  border: 1px dashed var(--color-tan);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.detail-box h4 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.detail-box p {
  font-size: 0.85rem;
  color: #5c6870;
}

/* Accessibility features */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-blue);
  color: #fff;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Keyboard focus styling */
*:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero {
    padding: 3rem 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .legend-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-tan);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  
  .main-nav.show {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .station-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .station-tag {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .glass-panel {
    padding: 1.25rem;
  }
  .station-match {
    font-size: 0.95rem;
  }
}