/* ==========================================================================
   1. VARIÁVEIS GLOBAIS E RESET
   ========================================================================== */
:root {
    --primary-orange: #f26522;
    --primary-hover: #e05515;
    --secondary-blue: #00334e;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --font-main: 'Nunito', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

.modal-backdrop {
    --bs-backdrop-opacity: 0.8;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #f0f2f5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ==========================================================================
   2. NAVBAR E COMPONENTES GLOBAIS
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--secondary-blue) !important;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand span {
    color: var(--primary-orange);
}

.navbar-brand img {
    max-height: 55px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.nav-link {
    position: relative;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    padding: 6px 0 !important;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.user-dropdown {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.user-dropdown:hover {
    background: var(--bg-light);
}

.dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-orange);
}

.btn-voltar {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.btn-voltar:hover {
    background-color: var(--bg-light);
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* ==========================================================================
   3. MINI HEADER DE BUSCA (Usado nas págs Search e Checkout)
   ========================================================================== */
.mini-search-header {
    background-color: var(--secondary-blue);
    padding: 25px 0;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 51, 78, 0.1);
}

.list-of-trips {
    padding: 50px 0px;
}

.search-summary h4 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
}

.search-summary p {
    margin: 0;
    font-size: 0.95rem;
    color: #a0aec0;
    font-weight: 500;
}

.btn-edit-search {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-edit-search:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-back-search {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    padding: 12px 25px !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-back-search:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   4. HOME PAGE (Hero, Busca Principal, Ofertas, Soluções, FAQ)
   ========================================================================== */
.section-hero {
    background: linear-gradient(to bottom, rgba(0, 51, 78, 0.4), rgba(0, 51, 78, 0.7)), url('../images/hero_bus.png') center/cover no-repeat;
    padding: 100px 0 160px;
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-search {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-field {
    position: relative;
    padding: 8px 15px;
    border-right: 1px solid var(--border-color);
}

.search-field:last-of-type {
    border-right: none;
}

.search-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.search-input {
    border: none;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.search-input::placeholder {
    color: #adb5bd;
    font-weight: 500;
}

/* Tom Select */
.ts-wrapper.search-input {
    width: 100%;
    padding: 0;
}

.ts-control {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--font-heading);
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    cursor: pointer;
}

.ts-control>input {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem !important;
}

.ts-dropdown {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    margin-top: 15px !important;
    font-family: var(--font-heading);
}

.ts-dropdown .option {
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: background 0.2s;
    color: var(--text-dark);
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background-color: #f8fafc;
    color: var(--primary-orange);
    font-weight: 700;
}

.ts-wrapper+.bi-chevron-down {
    pointer-events: none;
}

.btn-search {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 24px;
    margin-top: 18px;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
}

.btn-search:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

/* Seções Gerais Home */
.section-solutions,
.section-tracking,
.section-offers {
    padding: 70px 0;
}

.section-tracking {
    background-color: #ffffff;
}

.section-tag {
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    color: var(--secondary-blue);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 51, 78, 0.12);
    border-color: rgba(253, 107, 30, 0.25) !important;
}

.service-icon-banner {
    background-color: #feebe0;
    padding: 70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

.service-card:hover .service-icon-banner {
    background-color: var(--primary-orange);
}

.service-icon-banner i {
    font-size: 3.5rem;
    color: var(--primary-orange);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}

.service-card:hover .service-icon-banner i {
    color: #ffffff;
    transform: scale(1.18) rotate(5deg);
}

.service-card-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-service {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    border: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-service:hover {
    background-color: var(--primary-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(253, 107, 30, 0.35);
}

/* Tracking */
.tracking-section {
    background-color: var(--secondary-blue);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 30px rgba(0, 51, 78, 0.2);
}

.tracking-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    color: var(--primary-orange);
    font-size: 1.8rem;
}

.tracking-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.tracking-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
}

.tracking-input-group {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 5px;
}

.tracking-input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 0.9rem;
    outline: none;
}

.btn-tracking {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-tracking:hover {
    background-color: #d95a1c;
    color: #ffffff !important;
}

/* Timeline Modal Tracking */
.timeline-container {
    position: relative;
    padding: 10px 0 20px;
}

.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    width: 80px;
    text-align: right;
    padding-right: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    flex-shrink: 0;
}

.timeline-time strong {
    font-size: 1.1rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 3px;
    font-weight: 800;
}

.timeline-divider {
    position: relative;
    width: 20px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-divider::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: -45px;
    width: 3px;
    background-color: #e2e8f0;
    z-index: 1;
}

.timeline-item:last-child .timeline-divider::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    z-index: 2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--primary-orange);
}

.timeline-dot.inactive {
    background-color: #e2e8f0;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.timeline-content {
    flex: 1;
    padding-left: 20px;
}

.timeline-content h5 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    margin-top: -2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.tracking-modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 8px 8px;
}

.tracking-modal-footer .price-box h3 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.2rem;
}

.tracking-modal-footer .price-box p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Offers Cards */
.offer-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide {
    height: auto;
}

.offer-img-wrapper {
    position: relative;
    height: 220px;
}

.offer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.offer-city {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 800;
}

.offer-content {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.route-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
}

.route-line:first-child::after {
    content: '';
    position: absolute;
    left: 7.5px;
    top: 20px;
    bottom: -15px;
    width: 2px;
    border-left: 2px dashed #cbd5e1;
    z-index: 1;
}

.route-line i {
    font-size: 1rem;
    margin-right: 10px;
    margin-top: 2px;
}

.route-line .bi-geo-alt {
    color: var(--secondary-blue);
}

.route-line .bi-geo-fill {
    color: var(--primary-orange);
}

.route-info p {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0 0 2px 0;
    text-transform: uppercase;
}

.route-info h4 {
    font-size: 0.85rem;
    color: var(--secondary-blue);
    margin: 0;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.price-box p {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0;
}

.price-box h3 {
    font-size: 1.2rem;
    color: #2e7d32;
    margin: 0;
}

.btn-conferir {
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 6px;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-conferir:hover {
    background-color: #bbdefb;
    color: #1565c0;
}

/* Benefits Section */
.section-benefits {
    background-color: var(--bg-light);
    padding: 70px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.benefit-item {
    text-align: center;
    padding: 10px;
}

.benefit-icon {
    font-size: 2.2rem;
    color: #64748b;
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.benefit-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* FAQ Section */
.section-faq {
    background-color: #ffffff;
    padding: 70px 0;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    padding: 24px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: transparent !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--secondary-blue);
}

.accordion-body {
    padding: 0 30px 24px 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ==========================================================================
   5. PÁGINA DE BUSCA / PASSAGENS (Trip Cards e Mapa do Ônibus)
   ========================================================================== */
.results-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-blue);
}

.sort-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 15px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.trip-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.trip-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--border-color);
}

.trip-card .card-body {
    padding: 24px;
}

.trip-card .card-footer {
    border-top: 1px dashed var(--border-color);
    background-color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.viacao-info {
    text-align: center;
}

.viacao-logo {
    font-size: 2.2rem;
    color: #a0aec0;
}

.viacao-nome {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.class-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.time-box {
    min-width: 80px;
}

.time-box h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.time-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 700;
}

.duration-line {
    flex-grow: 1;
    position: relative;
    color: #a0aec0;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.duration-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-image: linear-gradient(to right, #cbd5e1 50%, transparent 50%);
    background-position: top;
    background-size: 10px 2px;
    background-repeat: repeat-x;
    z-index: 1;
    transform: translateY(-50%);
}

.duration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.duration-badge {
    background: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.duration-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.price-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2e7d32;
    margin-bottom: 10px;
}

.btn-select {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 25px;
    width: 100%;
    transition: all 0.2s;
}

.btn-select:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-select.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.btn-select.btn-secondary:hover {
    background-color: #cbd5e1;
}

.features-icons i {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-right: 15px;
    cursor: help;
}

.digital-ticket-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mapa do Ônibus */
.v-seat-map-container {
    padding: 25px;
    background-color: #ffffff;
    border-top: 2px solid var(--bg-light);
}

.v-bus-scroll-area {
    overflow-x: auto;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
}

.v-bus-shell {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* O contorno principal do ônibus */
.v-bus-outline {
    border: 5px solid #f1f5f9;
    border-radius: 60px 20px 20px 60px;
    padding: 35px 40px 35px 25px;
    display: flex;
}

/* Área do motorista */
.v-driver-area {
    border-right: 2px dashed #cbd5e1;
    padding-right: 25px;
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.v-door-module {
    width: 48px;
    height: 102px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafbfc;
}

.v-door-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    transform: rotate(-90deg);
    white-space: nowrap;
}

.v-door-module svg {
    color: #64748b;
    width: 16px;
    height: 16px;
}

.v-door-module span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

.v-steering-wheel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #64748b;
}

/* Grid exato das poltronas */
.v-bus-grid {
    display: grid;
    grid-template-columns: repeat(13, 48px);
    grid-template-rows: 48px 48px 35px 48px 48px; /* Reduzido de 65px para 35px */
    gap: 12px 14px; /* gap vertical e horizontal */
}

/* Estilo Base das Poltronas */
.v-seat {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-blue);
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 48px;
    height: 48px;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.v-seat:hover:not(.occupied) {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background-color: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 101, 34, 0.15);
}

/* Poltronas Ocupadas/Indisponíveis */
.v-seat.occupied {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

/* Poltronas Selecionadas */
.v-seat.selected {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

/* Módulo do Banheiro (WC) */
.v-bus-wc {
    grid-row: 1 / span 2;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background-color: #f8fafc;
    width: 48px;
    height: 108px;
}

/* Responsividade do Ônibus (Layout Vertical para Mobile) */
@media (max-width: 991px) {
    .v-bus-outline {
        flex-direction: column;
        border-radius: 50px 50px 15px 15px;
        padding: 20px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        align-items: center;
    }

    .v-driver-area {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px dashed #cbd5e1;
        padding-right: 0;
        padding-bottom: 15px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .v-door-module {
        width: 102px;
        height: 48px;
    }

    .v-door-content {
        transform: rotate(0deg);
    }

    .v-bus-grid {
        grid-template-columns: repeat(5, 48px);
        grid-template-rows: repeat(13, 48px);
        grid-auto-flow: row;
        gap: 12px 14px;
        justify-content: center;
        width: 100%;
    }

    .v-seat {
        grid-column: var(--row) !important;
        grid-row: var(--col) !important;
    }

    .v-bus-wc {
        grid-column: 1 / span 2 !important;
        grid-row: 13 !important;
        width: 108px;
        height: 48px;
    }
}

/* Legenda de Assentos */
.v-seat-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 10px;
}

.v-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.v-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
}

.v-legend-box.available {
    background: #ffffff;
    border-color: #cbd5e1;
}

.v-legend-box.occupied {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

.v-legend-box.selected {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.v-checkout-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.v-checkout-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.v-checkout-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.v-checkout-row span {
    color: var(--text-muted);
    font-weight: 600;
}

.v-checkout-row strong {
    color: var(--text-dark);
    font-weight: 800;
}

.btn-continue {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 800;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-continue:hover:not(:disabled) {
    background: #1b5e20;
}

.btn-continue:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================================================
   6. PÁGINA DE CHECKOUT
   ========================================================================== */
.checkout-section {
    padding-bottom: 70px;
}

.checkout-title {
    color: var(--secondary-blue);
    font-size: 1.6rem;
    margin-bottom: 25px;
}

/* Progress Header */
.checkout-progress-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    margin-bottom: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.step-item.active {
    color: var(--text-dark);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.step-item.completed .step-icon {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.step-item.active .step-icon {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.step-divider {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
    margin: 0 15px;
    min-width: 50px;
}

/* Formulários do Checkout */
.card-form {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.card-form-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-form-title i {
    color: var(--primary-orange);
    font-size: 1.4rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 500;
}

.seat-badge {
    background-color: #fff5f0;
    border: 1px dashed var(--primary-orange);
    color: var(--primary-orange);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.seat-badge i {
    font-size: 1.2rem;
}

/* Abas de Pagamento */
.payment-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-tab {
    flex: 1;
    padding: 20px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: #fff;
}

.payment-tab.active {
    border-color: var(--primary-orange);
    background-color: #fff5f0;
    color: var(--primary-orange);
}

.payment-tab i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.pix-container {
    display: none;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.pix-container.active {
    display: block;
}

.cc-container {
    display: none;
}

.cc-container.active {
    display: block;
}

/* Resumo Sidebar */
.summary-wrapper {
    position: sticky;
    top: 90px;
    padding-bottom: 24px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 78, 0.05);
    overflow: hidden;
}

.summary-header {
    background-color: var(--secondary-blue);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.summary-body {
    padding: 24px;
}

.route-cities {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.route-cities i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.route-details-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.route-details-item i {
    font-size: 1rem;
    color: var(--secondary-blue);
    margin-top: 2px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
    font-weight: 900;
    font-size: 1.4rem;
    color: #2e7d32;
}

.price-total span:first-child {
    color: var(--secondary-blue);
}

.btn-finish {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 25px;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-finish:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.security-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    background-color: var(--secondary-blue);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: #ffffff;
    font-weight: 400;
}

.footer-desc {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-title {
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: #e2e8f0;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.75rem;
    color: #a0aec0;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #a0aec0;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #ffffff;
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
/* Estilo Customizado para o Botão de Login no Header */
.btn-login-custom {
    border-radius: 20px;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-login-custom:hover {
    background-color: var(--primary-orange);
    color: #ffffff !important;
    border-color: var(--primary-orange);
}

/* Horizontal Ticket Styles */
.ticket-horizontal {
    transition: transform 0.2s;
    margin-bottom: 20px;
}
.ticket-horizontal:hover {
    transform: translateY(-3px);
}
.border-end-dashed {
    border-right: 2px dashed #e2e8f0;
    position: relative;
}
.border-end-dashed::before, .border-end-dashed::after {
    content: "";
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #f0f2f5;
    border-radius: 50%;
}
.border-end-dashed::before { top: -10px; }
.border-end-dashed::after { bottom: -10px; }

.route-line-horizontal {
    position: relative;
    height: 0;
    border-top: 2px dotted #cbd5e1;
    z-index: 1;
}
.route-line-horizontal::after {
    content: "\F138";
    font-family: "bootstrap-icons";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1rem;
    background: #fff; /* Fundo branco para a seta não misturar com os pontos */
    padding-left: 2px;
}

@media (max-width: 991px) {
    .search-card {
        padding: 15px;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 10px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .btn-search {
        margin-top: 15px;
    }

    .price-area {
        border-left: none;
        padding-left: 0;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
        margin-top: 20px;
    }

    .duration-line {
        display: none;
    }

    .time-display {
        gap: 40px;
    }

    .trip-card .card-footer {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .step-text {
        display: none;
    }

    .step-divider {
        min-width: 30px;
        margin: 0 10px;
    }
}