.visualisation-menu {
    position: fixed;
    z-index: 10000;
    background-color: #f1f1f1;
    width: 1200px;
    height: 400px;
    top: 50%;
    left: 50%;
    display: none;
}

.visualisation-menu.is-visible {
    display: block;
}

.visualisation-menu__top-bar {
    background-color: #112d80;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.visualisation-menu__title {
    color: #f1f1f1;
    font-size: 45px;
    margin: 0;
}

.visualisation-menu__line-container {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visualisation-menu__line {
    width: 1200px;
    height: 8px;
    background-color: #112d80;
}

.visualisation-menu__stations {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 1200px;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    touch-action: manipulation; /* Disable browser touch actions */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
    padding: 8px; /* Increase effective touch area */
    min-width: 60px; /* Ensure minimum touch target size */
    min-height: 60px;
}

.station__marker {
    width: 45px;
    height: 45px;
    min-width: 45px; /* Ensure touch target size */
    min-height: 45px;
    border-radius: 50%;
    background-color: #f1f1f1;
    border: 3px solid var(--station-color);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.station__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.station__name {
    font-size: 20px;
    color: #112d80;
}

.station__detail-badge {
    margin-top: 5px;
    padding: 5px 10px;
    min-height: 24px; /* Ensure touch target size */
    background-color: var(--station-color);
    color: white;
    border-radius: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive design */
@media (max-width: 1500px) {
    .visualisation-menu {
        width: 80%;
        max-width: 1400px;
    }

    .visualisation-menu__line {
        width: 80%;
    }

    .visualisation-menu__stations {
        width: 80%;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .station {
        padding: 12px; /* Larger touch area on mobile */
        min-width: 70px;
        min-height: 70px;
    }

    .station__marker {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
}
