:root {
    --btr-blue: #173f79;
    --btr-blue-dark: #102b58;
    --btr-red: #f22f3f;
    --btr-bg: #f4f7fb;
    --btr-white: #ffffff;
    --btr-text: #173f79;
    --btr-muted: #66738d;
    --btr-border: #dfe5ee;
    --btr-soft: #eef4fb;
    --btr-shadow: 0 12px 32px rgba(23, 63, 121, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--btr-bg);
    color: var(--btr-text);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.btr-page {
    min-height: 100vh;
}

.btr-header {
    background: var(--btr-white);
    border-bottom: 1px solid var(--btr-border);
}

.btr-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.btr-logo {
    width: 220px;
    max-height: 64px;
    object-fit: contain;
}

.btr-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.btr-header-link {
    color: var(--btr-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.btr-language-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.btr-language-nav a {
    text-decoration: none;
    color: var(--btr-muted);
}

.btr-language-nav a.active {
    color: var(--btr-red);
}

.btr-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.btr-hero {
    position: relative;
    min-height: 330px;
    margin-bottom: 26px;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            90deg,
            rgba(14, 43, 91, 0.88) 0%,
            rgba(14, 43, 91, 0.72) 46%,
            rgba(14, 43, 91, 0.24) 100%
        ),
        url('/horarios-morro/assets/img/morrohorizontal1.jpeg')
        center center / cover no-repeat;
    box-shadow: var(--btr-shadow);
}

.btr-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 54px 50px;
    color: var(--btr-white);
}

.btr-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.08;
    color: var(--btr-white);
}

.btr-hero p {
    margin: 0;
    max-width: 660px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.btr-tool-shell {
    max-width: 980px;
    margin: -58px auto 0;
    position: relative;
    z-index: 3;
    padding: 28px;
    background: var(--btr-white);
    border: 1px solid var(--btr-border);
    border-radius: 18px;
    box-shadow: var(--btr-shadow);
}

.btr-tool-intro {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--btr-muted);
    font-size: 15px;
    line-height: 1.55;
}

.schedule-tool {
    width: 100%;
}

.schedule-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--btr-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.field-group select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #cfd8e6;
    border-radius: 9px;
    background: var(--btr-white);
    color: var(--btr-blue-dark);
    font-size: 15px;
    outline: none;
}

.field-group select:focus {
    border-color: var(--btr-blue);
    box-shadow: 0 0 0 3px rgba(23, 63, 121, 0.08);
}

.search-button {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: var(--btr-red);
    color: var(--btr-white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.search-button:hover {
    filter: brightness(0.96);
}

.message {
    display: none;
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.message.info {
    display: block;
    background: #eef4fb;
    color: var(--btr-blue);
}

.message.error {
    display: block;
    background: #fff0f2;
    color: #b51d27;
}

.results {
    display: none;
    margin-top: 28px;
}

.results.visible {
    display: block;
}

.route-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--btr-border);
}

.route-title h2 {
    margin: 0;
    color: var(--btr-blue-dark);
    font-size: 22px;
    line-height: 1.3;
}

.route-title p {
    margin: 0;
    color: var(--btr-muted);
    font-size: 14px;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-card {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.3fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--btr-border);
    border-radius: 10px;
    background: var(--btr-white);
}

.schedule-item-label {
    display: block;
    margin-bottom: 4px;
    color: #7a869c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.schedule-item-value {
    display: block;
    color: var(--btr-blue-dark);
    font-size: 17px;
    font-weight: 700;
}

.book-link {
    display: inline-flex;
    min-height: 40px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--btr-red);
    color: var(--btr-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.book-link:hover {
    filter: brightness(0.96);
}

.btr-note {
    max-width: 980px;
    margin: 18px auto 0;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--btr-soft);
    color: var(--btr-blue);
    font-size: 13px;
    line-height: 1.5;
}

.btr-footer-cta {
    max-width: 980px;
    margin: 30px auto 0;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--btr-white);
    border: 1px solid var(--btr-border);
    border-radius: 18px;
    box-shadow: var(--btr-shadow);
}

.btr-footer-cta-content h2 {
    margin: 0 0 8px;
    font-size: 23px;
    color: var(--btr-blue-dark);
}

.btr-footer-cta-content p {
    margin: 0;
    max-width: 650px;
    color: var(--btr-muted);
    line-height: 1.55;
}

.btr-footer-cta a {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--btr-red);
    color: var(--btr-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.btr-footer {
    margin-top: 36px;
    padding: 22px 16px;
    text-align: center;
    background: var(--btr-blue-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

@media (max-width: 820px) {
    .btr-header-inner {
        min-height: 76px;
    }

    .btr-logo {
        width: 180px;
    }

    .btr-header-link {
        display: none;
    }

    .btr-main {
        padding-top: 18px;
    }

    .btr-hero {
        min-height: 310px;
        background-position: center;
    }

    .btr-hero-content {
        padding: 38px 26px 88px;
    }

    .btr-hero p {
        font-size: 16px;
    }

    .btr-tool-shell {
        margin-top: -64px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .schedule-form {
        grid-template-columns: 1fr;
    }

    .search-button {
        width: 100%;
    }

    .schedule-card {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .schedule-card .transfer-type,
    .schedule-card .action {
        grid-column: 1 / -1;
    }

    .book-link {
        width: 100%;
    }

    .btr-footer-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .btr-footer-cta a {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .btr-header-inner,
    .btr-main {
        width: min(100% - 20px, 1180px);
    }

    .btr-logo {
        width: 158px;
    }

    .btr-language-nav {
        font-size: 12px;
    }

    .btr-hero {
        min-height: 330px;
        border-radius: 14px;
    }

    .btr-hero-content {
        padding: 32px 20px 90px;
    }

    .btr-hero h1 {
        font-size: 30px;
    }

    .btr-hero p {
        font-size: 15px;
    }

    .route-title h2 {
        font-size: 19px;
    }

    .schedule-card {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
    }

    .schedule-item-value {
        font-size: 16px;
    }
    
}

/* Informação de atualização dos horários */
.schedule-tool .schedule-update-info {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
    text-align: right !important;
    color: #66738d;
    font-size: 9px;
    line-height: 1.4;
}