
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Bungee', sans-serif;
    background-color: #f0f2f5;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

:root {
    --marker-scale: 1;
}

.gare-wrapper {
    overflow: visible;
}

.gare-carre {
    background-color: white;
    border: 2px solid #2c3e50;
    border-radius: 2px;
    width: 10px;
    height: 10px;
    
    position: absolute;
    left: 50%;
    top: 50%;
    
    transform: translate(-50%, -50%) scale(var(--marker-scale));
    
    transition: transform 0.1s ease-out, background-color 0.2s;
}


.gare-carre:hover {
    background-color: #e74c3c;
    transform: translate(-50%, -50%) scale(calc(var(--marker-scale) * 1.5));
    cursor: pointer;
}

@media (max-width: 768px) {
    .gare-carre {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}

#map {
    flex-grow: 1;
    width: 100%;
}

.menuButton {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 73, 94, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.menuButton:hover {
    background: #ecf0f1;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.menuButton:active {
    transform: translateY(0);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.nav-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.nav-title {
    font-family: 'Bungee', cursive;
    font-size: 18px;
    color: #2c3e50;
}

.sidenav .closebtn {
    position: relative;
    font-size: 36px;
    right: 0;
    top: 0;
    margin-left: 0;
    line-height: 1;
}


/* The side navigation menu */
.sidenav {
    position: fixed; /* Stay in place */
    top: 0; /* Stay at the top */
    right: 0;
    bottom: 0; /* Anchor to the bottom */
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    z-index: 1200; /* Stay on top */
    background-color: #ffffff; /* White */
    overflow-x: hidden; /* Disable horizontal scroll */
    overflow-y: auto; /* Allow vertical scrolling when content is long */
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 40px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #888787;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #e74c3c;
  cursor : pointer;
}

/*Search*/
.search-box {
    padding: 10px 15px;
    position: relative;
    box-sizing: border-box;
}

#mapSearch {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1300;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.highlight-station {
    animation: pulse-highlight 1.5s ease-out;
}

@keyframes pulse-highlight {
    0% { transform: translate(-50%, -50%) scale(1); background-color: white; }
    30% { transform: translate(-50%, -50%) scale(4); background-color: #FFCD00; border-color: white; }
    100% { transform: translate(-50%, -50%) scale(var(--marker-scale)); }
}

/* Sidenav Line controls */
#lineControls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
    margin-top: 10px;
}

.line-toggle-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Bungee', cursive;
    font-size: 14px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.line-toggle-cell.inactive {
    background-color: white !important;
    color: #ccc !important;
    border-color: #eee;
    text-shadow: none;
    box-shadow: none;
}

.line-toggle-cell:hover {
    transform: scale(1.1);
    z-index: 10;
}

/*Sidenav button*/
.sidenav button,
.sidenav select {
    width: 80%;
    margin: 10px auto;
    display: block;
    padding: 12px 15px;

    border: none;
    border-radius: 12px;

    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: bold;

    background-color: #ecf0f1;
    color: white;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease-in-out;
}

.sidenav button:hover,
.sidenav select:hover {
    transform: scale(1.05);
}


.sidenav button:active {
    transform: scale(0.97);
}


#toggleAllLines {
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

#toggleAllLines.hide-state {
    background-color: #e74c3c;
}

#toggleAllLines.hide-state:hover {
    background-color: #c0392b;
}

#toggleAllLines.show-state {
    background-color: #2ecc71;
}

#toggleAllLines.show-state:hover {
    background-color: #27ae60;
}

#toggleStations {
    background-color: #3498db;
}

#toggleStations:hover {
    background-color: #2980b9;
}

#SoundMode {
    background-color: #f1c40f;
}

#SoundMode:hover {
    background-color: #f39c12;
}

#openStatsBtn {
    background-color: #9b59b6;
}

#openStatsBtn:hover {
    background-color: #8e44ad;
}

#openCreditsBtn {
    background-color: #2c3e50;
    color: white;
}

#openCreditsBtn:hover {
    background-color: #1f2a36;
}

#theme_toggle {
    background-color: #34495e;
}

#theme_toggle:hover {
    background-color: #2c3e50;
}

#openItineraryBtn {
    background-color: #1abc9c;
}
#openItineraryBtn:hover {
    background-color: #16a085;
}

.signup {
    width: 86%;
    margin: 18px auto 24px;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7d1 0%, #ffffff 58%, #eaf6ff 100%);
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.14);
    font-family: 'Lato', sans-serif;
}

.signup h2 {
    margin: 0 0 8px;
    font-family: 'Bungee', cursive;
    font-size: 18px;
    line-height: 1.2;
    color: #2c3e50;
}

.signup p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #5d6d7e;
}

.email-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-row input,
.email-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d7dee4;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #2c3e50;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-row textarea {
    min-height: 104px;
    resize: vertical;
}

.email-row input:focus,
.email-row textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.16);
}

.rating-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-field span {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
}

.rating-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.sidenav .email-row .rating-button {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 7px 0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #d7dee4;
    box-shadow: none;
}

.sidenav .email-row .rating-button:hover,
.sidenav .email-row .rating-button.is-selected {
    transform: none;
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.sidenav .email-row button {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.24);
}

.sidenav .email-row button:hover {
    background-color: #27ae60;
}

.sidenav .email-row button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.signup .msg {
    min-height: 18px;
    margin-top: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.signup .msg.success {
    color: #1e8449;
}

.signup .msg.error {
    color: #c0392b;
}

.sidenav select {
    appearance: none;
    text-align: center;
}

/*Pop-up*/
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 2000; 
}


.info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 80%;
    max-width: 500px; 
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 2001;
    max-height: 80vh;
    overflow-y: auto; 
}

.info-modal h2 {
    font-family: 'Bungee', cursive;
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.info-modal #infoContent {
    font-family: 'Lato', sans-serif;
    color: #34495e;
    line-height: 1.8;
}

.info-modal #infoContent p {
    margin: 8px 0;
    font-size: 14px;
}

.info-modal #infoContent b {
    color: #2c3e50;
    font-weight: 700;
    margin-right: 4px;
}

.info-modal #infoContent em {
    color: #7f8c8d;
    font-style: italic;
}

.info-modal #infoContent hr {
    border: 0;
    height: 1px;
    background: #ecf0f1;
    margin: 12px 0;
}

.info-modal .closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #888787;
    text-decoration: none;
    transition: 0.3s;
}

.info-modal .closebtn:hover {
    color: #e74c3c;
}

#timeSelect {
    display: none;
    color: #2c3e50;
}

label {
    display: block;
    margin-bottom: 8px;
    color : #2c3e50;
}

/*dark mode*/
body.dark-mode {
    background-color: #121212;
    color: white;
}

body.dark-mode .sidenav {
    background-color: #1e1e1e;
    border-left: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .nav-title {
    color: white;
}

body.dark-mode .sidenav a {
    color: #cccccc;
}

body.dark-mode .sidenav a:hover {
    color: #f1c40f;
}

body.dark-mode #timeSelect {
    color: #ffffff;
}

body.dark-mode #mapSearch {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

body.dark-mode #mapSearch::placeholder {
    color: #aaaaaa;
}

body.dark-mode .search-suggestions {
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .suggestion-item {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark-mode .suggestion-item:hover {
    background-color: rgba(255,255,255,0.08);
}

body.dark-mode .sidenav button,
body.dark-mode .sidenav select {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}

body.dark-mode .sidenav button:hover,
body.dark-mode .sidenav select:hover {
    background-color: #3498db;
    border-color: transparent;
}

body.dark-mode .signup {
    background: linear-gradient(135deg, #2a2411 0%, #242424 58%, #122332 100%);
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
}

body.dark-mode .signup h2 {
    color: white;
}

body.dark-mode .signup p {
    color: #d0d7de;
}

body.dark-mode .email-row input {
    background-color: #161616;
    color: white;
    border-color: rgba(255,255,255,0.16);
}

body.dark-mode .email-row textarea {
    background-color: #161616;
    color: white;
    border-color: rgba(255,255,255,0.16);
}

body.dark-mode .rating-field span {
    color: white;
}

body.dark-mode .sidenav .email-row .rating-button {
    background-color: #161616;
    border-color: rgba(255,255,255,0.16);
    color: white;
}

body.dark-mode .sidenav .email-row .rating-button:hover,
body.dark-mode .sidenav .email-row .rating-button.is-selected {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

body.dark-mode .email-row input::placeholder,
body.dark-mode .email-row textarea::placeholder {
    color: #8f98a3;
}

body.dark-mode .signup .msg.success {
    color: #58d68d;
}

body.dark-mode .signup .msg.error {
    color: #ff7675;
}

body.dark-mode .modal-overlay {
    background-color: rgba(0, 0, 0, 0.75);
}

body.dark-mode .info-modal,
body.dark-mode .stats-modal {
    background-color: #1e1e1e;
    color: white;
}

body.dark-mode .info-modal h2 {
    color: #ecf0f1;
    border-bottom-color: #3498db;
}

body.dark-mode .info-modal #infoContent {
    color: #bdc3c7;
}

body.dark-mode .info-modal #infoContent b {
    color: #ecf0f1;
}

body.dark-mode .info-modal #infoContent em {
    color: #95a5a6;
}

body.dark-mode .info-modal #infoContent hr {
    background-color: #34495e;
}

body.dark-mode .info-modal .closebtn,
body.dark-mode .stats-modal .closebtn {
    color: #cccccc;
}

body.dark-mode .info-modal .closebtn:hover,
body.dark-mode .stats-modal .closebtn:hover {
    color: #e74c3c;
}


body.dark-mode .stat-box {
    background-color: #2a2a2a;
    color: white;
    box-shadow: none;
}

body.dark-mode .stat-title {
    color: #aaaaaa;
}

body.dark-mode .stat-value {
    color: white;
}

body.dark-mode .stat-desc {
    color: #cccccc;
}

body.dark-mode .line-cell {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.15);
    color: white;
}

body.dark-mode .line-cell:hover {
    background-color: #3498db;
    border-color: transparent;
}

body.dark-mode .track-line {
    background-color: white;
}

body.dark-mode .station-dot {
    border-color: white;
}

body.dark-mode .station-name {
    color: white;
}
/*dark mode*/


.stats-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%;
    max-width: 800px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 2001;
    max-height: 80vh;
    overflow-y: auto; 
}

.stats-modal .closebtn:hover {
    color: #e74c3c;
}

.back-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
    padding: 0;
}

/* line grid */
.lines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.line-cell {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    padding: 15px 0;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Bungee', cursive;
}

.line-cell:hover {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Schema*/
.schematic-chart {
    display: flex;
    overflow-x: auto;
    padding-top: 80px; 
    padding-bottom: 80px; 
    padding-left: 60px;
    align-items: center;
}


.branch-path {
    display: flex;
    align-items: flex-end;
}


.fork-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 70px;
}

.segment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    position: relative;
}

.db-bar {
    width: 20px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.db-label {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

.track-line {
    width: 100%;
    height: 6px;
    background-color: #2c3e50;
    margin-top: 5px;
    position: relative;
}

.station-dot {
    width: 14px;
    height: 14px;
    background-color: white;
    border: 3px solid #2c3e50;
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: -7px;
    z-index: 2;
}

.station-name {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    position: absolute;
    top: 20px;
    left: -2px;
    transform: rotate(45deg);
    transform-origin: top left;
    white-space: nowrap;
}

/* Stats */
.line-summary-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #ecf0f1;
    border-left: 5px solid #34495e;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-box.max { 
    border-left-color: #e74c3c;
} 
.stat-box.min { 
    border-left-color: #2ecc71;
} 
.stat-box.avg { 
    border-left-color: #f1c40f;
}

.stat-box.lden { 
    border-left-color: #9b59b6;
}

.stat-title {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.stat-value {
    font-family: 'Bungee', cursive;
    font-size: 24px;
    color: #2c3e50;
}

.stat-desc {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #34495e;
    margin-top: 8px;
    font-style: italic;
}

.itinerary-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 2001;
    max-height: 85vh;
    overflow-y: auto;
    font-family: 'Lato', sans-serif;
}

.itinerary-panel .closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #888787;
    text-decoration: none;
    transition: 0.3s;
}

.itinerary-panel .closebtn:hover { color: #e74c3c; }

.itinerary-panel h2 {
    margin: 0 0 18px 0;
    font-family: 'Bungee', cursive;
    font-size: 20px;
}

.itin-inputs {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 14px;
    position: relative;
}

.itin-row { display: flex; align-items: center; gap: 10px; }

.itin-icon-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 3px solid #888;
    flex-shrink: 0;
}

.itin-icon-dot.to { background: #e74c3c; border-color: #e74c3c; }

.itin-dots-line {
    display: flex; align-items: center;
    padding: 3px 0 3px 4px; gap: 2px;
    color: #bbb; font-size: 16px; line-height: 1;
}

.itin-swap-btn {
    margin-left: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px; height: 28px;
    cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s; padding: 0; line-height: 1;
}

.itin-swap-btn:hover { background: #e74c3c; color: white; border-color: #e74c3c; }

.itin-input-wrap { flex: 1; position: relative; }

.itin-input-wrap input {
    width: 100%; border: none; background: transparent;
    font-family: 'Lato', sans-serif; font-size: 14px;
    outline: none; padding: 4px 0; color: #2c3e50;
    box-sizing: border-box;
}

#itinSearchBtn {
    width: 100%; padding: 10px; background: #2c3e50; color: white;
    border: none; border-radius: 8px; font-family: 'Lato', sans-serif;
    font-size: 15px; font-weight: bold; cursor: pointer;
    transition: 0.2s; margin-bottom: 15px;
}

#itinSearchBtn:hover { background: #e74c3c; }

.itin-summary {
    font-family: 'Lato', sans-serif; font-size: 13px; color: #888;
    text-align: center; margin-bottom: 10px;
}

.itin-leg { margin-bottom: 6px; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }

.itin-leg-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: #f8f9fa; font-size: 13px;
}

.itin-badge {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    color: white; font-family: 'Bungee', cursive; font-size: 13px;
}

.itin-leg-info { color: #888; font-size: 12px; }

.itin-station {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px; font-size: 13px; border-top: 1px solid #f5f5f5;
}

.itin-dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: 2px solid #ccc; background: white; flex-shrink: 0;
}

.itin-dot.terminus { width: 11px; height: 11px; }

.itin-db { margin-left: auto; font-size: 11px; font-weight: bold; white-space: nowrap; }

.itin-transfer {
    text-align: center; font-size: 12px; color: #7f6000;
    padding: 6px; background: #fff9e6; border-top: 1px dashed #f0d080;
    border-bottom: 1px dashed #f0d080; margin: 3px 0;
}

.itin-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: white; }

body.dark-mode .itinerary-panel {
    background-color: #1e1e1e;
    color: white;
}

body.dark-mode .itinerary-panel .closebtn {
    color: #cccccc;
}

body.dark-mode .itinerary-panel .closebtn:hover {
    color: #e74c3c;
}

body.dark-mode .itin-inputs {
    background: #2a2a2a;
}

body.dark-mode .itin-input-wrap input {
    color: white;
}

body.dark-mode .itin-input-wrap input::placeholder {
    color: #888;
}

body.dark-mode .itin-swap-btn {
    background: #333;
    border-color: #555;
    color: white;
}

body.dark-mode .itin-leg {
    border-color: #333;
}

body.dark-mode .itin-leg-header {
    background: #2a2a2a;
}

body.dark-mode .itin-station {
    border-top-color: #333;
}

body.dark-mode .itin-transfer {
    background: #2a1f00;
    border-color: #5a4500;
    color: #f0d080;
}

body.dark-mode #itinSearchBtn {
    background: #e74c3c;
}

body.dark-mode #itinSearchBtn:hover {
    background: #c0392b;
}

body.dark-mode .itin-suggestions {
    background: #2a2a2a;
}


@media (max-width: 600px) {
    .line-summary-stats {
        flex-direction: column;
    }
    .leaflet-control-zoom {
        display: none;
    }
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
    .sidenav button,
    .sidenav select {
        width: 90%;
        font-size: 13px;
        padding: 10px;
    }
    .signup {
        width: 90%;
    }
}
