body {
    margin: 50px 100px;
}

#map {
    height: 700px;
}



.headline {
    color: #383B3C;
    font-family: 'Noto Sans HK', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    margin-bottom: 40px;
}

.city-label {
    font-size: 12px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    color: #383B3C;
    background-color: rgba(255, 255, 255, 0.7); 
    padding: 2px 3px;  /* Equal left-right padding for all labels */
    border-radius: 5px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
}


.timeline {
    width: 100%;
    overflow-x: hidden;
    white-space: normal;
    max-width: 2000px;
    margin: 0 auto;
    margin-top: 5px;
}

.timeline text {
    transform: translateY(15px);
    font-family: 'Noto Sans', sans-serif;
    font-size: 20px;
    /* Applying the font here */
}

.line {
    stroke: #383B3C;
    stroke-width: 1;
}

line.timeline-line.dim {
    stroke: #B0B0B0 !important;
}

.highlight {
    stroke-width: 3;
}

.tooltip {
    position: absolute;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    /* Applying the font to the tooltip */
}

.direction-arrow {
    width: 20px;
    height: 8px;
}

.direction-arrow-inner {
    display: block;
    transform-origin: 50% 50%;
}

.city-popover .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(56, 59, 60, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(56, 59, 60, 0.18);
    font-family: 'Noto Sans', sans-serif;
    color: #383B3C;
    min-width: 200px;
}

.city-popover .leaflet-popup-content {
    margin: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
}

.popover-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    margin-bottom: 8px;
}

.popover-badge {
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(56, 59, 60, 0.12);
    color: #383B3C;
    white-space: nowrap;
}

.city-popover .leaflet-popup-close-button {
    display: none;
}

.city-popover .leaflet-popup-tip {
    display: none;
}

.route-popover .leaflet-popup-tip {
    display: none;
}

.route-popover .leaflet-popup-close-button {
    display: none;
}
#legend {
    background-color: rgba(255, 255, 255, 0.7); 
    padding-top: 10px;
    padding-left: 10px; 
    padding-right: 10px;
    padding-bottom: 5px;
    border-radius: 5px;
   /* box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);*/
    font-family: 'Noto Sans', sans-serif;
    color: #8C8C8C;
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 65px;
    z-index: 1000;
}

#legend ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#legend ul li {
    margin-bottom: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    border-radius: 3px;
}
