/* Route Page Styles */

.route-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* Map Section */
.route-map-section {
    padding: 4rem 0;
    background: var(--black);
}

.map-placeholder {
    height: 500px;
    background: linear-gradient(135deg, rgba(26, 153, 128, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 20px;
    border: 2px solid rgba(26, 153, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-overlay {
    text-align: center;
    z-index: 2;
}

.map-overlay p {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.map-overlay span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Route Legs Section */
.route-legs-section {
    padding: 6rem 0 8rem;
    background: var(--dark-gray);
}

.legs-intro {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    margin-bottom: 3rem;
}

/* Accordion Styles */
.accordion-container {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    border: 2px solid rgba(26, 153, 128, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(26, 153, 128, 0.5);
}

.accordion-item.active {
    border-color: var(--teal);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

.accordion-header:hover {
    background: rgba(26, 153, 128, 0.1);
}

.leg-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--teal);
    background: rgba(26, 153, 128, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

.leg-title {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    margin-left: 2rem;
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--teal);
    transition: transform 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 0 2.5rem 2rem;
}

/* Stops Grid */
.stops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stop {
    background: rgba(26, 153, 128, 0.1);
    border: 1px solid rgba(26, 153, 128, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: var(--transition);
}

.stop:hover {
    background: rgba(26, 153, 128, 0.2);
    border-color: var(--teal);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
    .accordion-header {
        padding: 1.5rem;
        flex-wrap: wrap;
    }

    .leg-title {
        font-size: 1.2rem;
        margin-left: 1rem;
    }

    .leg-number {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 70px;
    }

    .accordion-item.active .accordion-content {
        padding: 0 1.5rem 1.5rem;
    }

    .stops-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .map-placeholder {
        height: 350px;
    }

    .map-overlay p {
        font-size: 2rem;
    }

    .map-overlay span {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .accordion-header {
        padding: 1.2rem;
    }

    .leg-title {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 1rem;
        font-size: 1.1rem;
    }

    .stops-grid {
        grid-template-columns: 1fr;
    }
}

