body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Typography */
h1 {
    color: var(--text-color);
    font-size: var(--font-size-2xl);
}

.description-intro {
    color: var(--text-light);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
}

/* Linha separadora */
hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-lg) 0;
}

/* Caixa de informações (Linha e Tarifa) */
.info-box {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--info-bg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--info-border);
}

.info-box p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-box strong {
    color: var(--secondary-color);
}

/* Caixa de Alerta */
.alert-box {
    background-color: var(--alert-bg);
    border-left: 5px solid var(--alert-border);
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius);
    color: var(--alert-text);
    font-size: var(--font-size-sm);
}

/* Seção de Horários */
.schedule-section {
    margin-bottom: var(--spacing-xl);
}

h2 {
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
}

.schedule-section h3 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.schedule-content {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.schedule-content>div {
    /* background-color: var(--bg-light); */
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.schedule-content p {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

.schedule-content p strong {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
}

/* Lista de Horários */
.schedule-times {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-xs);
}

.schedule-times li {
    padding: var(--spacing-xs);
    text-align: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
}

.schedule-times li:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

/* Itinerary Section */
.itinerary-section {
    margin-top: var(--spacing-xl);
}

#itinerario-list {
    padding: 0;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    list-style: none;
    counter-reset: itinerary-counter;
}

#itinerario-list li {
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    counter-increment: itinerary-counter;
}

#itinerario-list li::before {
    content: counter(itinerary-counter);
    color: var(--primary-color);
    position: absolute;
    left: 8px;
    font-weight: bold;
}

.title-box {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: wrap;
}

.ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
}

.ad-banner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ad-banner-link span {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    /* color: var(--highlight-red);  Shopee*/
    color: #2b317a;
    /* Mercado Livre */
    text-align: center;
}

.ad-banner-image {
    margin: 0 auto 1rem;
    width: auto;
    max-width: 400px;
}

.ad-fixed {
    position: fixed;
    width: 90vw;

    background-color: var(--highlight-red);
    /* Shopee */
    /* background-color: #ffe600; Mercado Livre */
    color: #fff;
    /* Shopee */
    /* color: rgba(0,0,0,.8980392157); Mercado Livre  */
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    text-decoration: none;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.wrapper-ad-fixed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    gap: 0.5rem;
}

.ad-fixed-close-button {
    width: 34px;
    height: 34px;
    background-color: transparent;
    border: none;
    color: #fff;
    /* Shopee */
    /* color: rgba(0,0,0,.8980392157); Mercado Livre */
    font-size: 2rem;
}

.ad-fixed-text {
    font-weight: bold;
    text-align: center;
}

.ad-fixed-logo-image {
    width: auto;
    max-width: 150px;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 768px) {

    .schedule-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .info-box {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .schedule-times {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: calc(var(--spacing-xs) / 2);
    }

    .schedule-times li {
        padding: calc(var(--spacing-xs) / 1.5);
        font-size: var(--font-size-lg);
    }

    .ad-banner-image {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--font-size-xl);
    }

    .schedule-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .schedule-times {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Outras Linhas */
.outras-linhas {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.outras-linhas h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.outras-linhas p {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
    text-align: center;
}

#lista-outras-linhas {
    list-style: none;
    padding: 0;
    margin: 0;
}

#lista-outras-linhas li {
    margin-bottom: 0.5rem;
}

#lista-outras-linhas a {
    color: var(--primary-darker);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

#lista-outras-linhas a:hover {
    color: var(--primary-darker-hover);
    background: var(--border-color);
}