/* CSS STYLES FOR HOME PAGE HERO SPLASH SCREEN */

	:root .greenline {
    --track-color: green;
    --station-bg: #ffffff;
    --border-color: green;
    --badge-bg: #f1f2f6;
    --accent-line: #3498db;
	--active-background: green;
	--text-color: green;
	--text-color-active: white;
  }
  
  :root .yellowline {
    --track-color: #ffea00;
    --station-bg: #ffffff;
    --border-color: #ffea00;
    --badge-bg: #f1f2f6;
    --accent-line: #3498db;
	--active-background: #ffea00;
	--text-color:  #8B8000;
	--text-color-active: #000;
  }
  
  
    :root .blueline {
    --track-color: #000099;
    --station-bg: #ffffff;
    --border-color: #000099;
    --badge-bg: #f1f2f6;
    --accent-line: #3498db;
	--active-background: #000099;
	--text-color:  #000099;
	--text-color-active:  white;
  }


    :root .redline {
    --track-color: red;
    --station-bg: #ffffff;
    --border-color: red;
    --badge-bg: #f1f2f6;
    --accent-line: #3498db;
	--active-background: red;
	--text-color:  red;
	--text-color-active:  white;
  }
  
  
  .route-container {
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 40px;
    display: inline-block;
  }

  .calling-points {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
  }

  /* The Vertical Connecting Line */
  .calling-points::before {
    content: '';
    position: absolute;
    /* Adjust this to match half the width of your .stop-name box */
    left: 80px; 
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: var(--track-color);
    z-index: 0;
  }

  .stop-row {
    display: flex;
    align-items: center; /* Vertically centers badges with the station box */
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
  }

  .stop-row:last-child {
    margin-bottom: 0;
  }

  /* The Station Box */
  .stop-name {
    width: 160px; /* Fixed width ensures the line stays centered */
    padding: 5px 0;
    background-color: var(--station-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
	font-size: 1.2rem;
  }

  /* Interchange Container (Right Side) */
  .interchanges {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-left: 15px; /* Gap between box and badges */
  }

  .badge {
    font-size: 11px;
    padding: 3px 8px;
    background-color: var(--badge-bg);
    border: 1px solid #dcdde1;
    border-radius: 4px;
    color: #57606f;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }

  /* Status marker for first/last or current stop */
  .stop-row.active .stop-name {
    border-color: var(--track-color);
    color: var(--text-color-active);
    background-color: var(--active-background);
  }

  /* Color coding for specific interchange types */
  .badge.train { border-left: 3px solid #e67e22; }
  .badge.metro { border-left: 3px solid #9b59b6; }
  .badge.metro-yellow { border-left: 5px solid yellow; background-color: #e9e9e9; font-weight:bold; }
  .badge.metro-blue { border-left: 5px solid #0000cc; background-color: #e9e9e9; font-weight:bold; }
  .badge.metro-red { border-left: 5px solid red; background-color: #e9e9e9; font-weight:bold; }
    .badge.metro-green { border-left: 5px solid green; background-color: #e9e9e9; font-weight:bold; }
  
  
  @media (max-width: 480px) {
  .stop-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px; /* Offset to keep the box on the line */
  }
  .interchanges {
    margin-left: 0;
    margin-top: 8px;
    align-items: flex-start;
  }
}


/* Optional: Make it look more like a link */
  summary {
    color: #000099;
    cursor: pointer;
    text-decoration: none;
	font-weight: bold;
  }
  summary:hover {
    color: #4682b4;
  }
  
 .expandroute {
 	border: 1px solid black:
	color: 000099;
	background-color: white;
 
 } 
 
