/* Switch Routes Button Component Styles */

/* Base Switch Routes Container */
.switch-routes-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Switch Routes Button */
.switch-routes-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffc107;
    border: none;
    border-radius: 6px;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    padding: 0;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.switch-routes-button:hover {
    background: #ffca2c;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.switch-routes-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.switch-routes-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Button Icon */
.switch-routes-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse Animation on Click */
.switch-routes-button:active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: switchRoutesPulse 0.3s ease-out;
}

@keyframes switchRoutesPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}

/* Mobile Version - Vertical arrows, no background */
.switch-routes-mobile {
    position: absolute;
    right: 8px;
    top: 30px;
    z-index: 10;
}

.switch-routes-button--mobile {
    background: transparent;
    border: none;
    width: 40px;
    height: auto;
    min-height: 40px;
    padding: 8px;
    box-shadow: none;
    color: #ffc107;
}

.switch-routes-button--mobile:hover {
    background: transparent;
    box-shadow: none;
    color: #666666;
}

.switch-routes-button--mobile:focus {
    background: transparent;
    box-shadow: none;
    color: #ffc107;
}

.switch-routes-button--mobile:active {
    background: transparent;
    transform: none;
}

.switch-routes-button--mobile i {
    font-size: 20px;
    transition: transform 0.3s ease;
}
