/* ── Aero Custom — complementa o Keen style.bundle.css ── */

/* ── Bottom Navigation (mobile only) ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e4e6ef;
    display: flex;
    align-items: flex-start;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 64px;
    font-size: 10px;
    font-weight: 500;
    color: #7e8299;
    text-decoration: none;
    padding-top: 6px;
    transition: color .15s;
    position: relative;
    gap: 2px;
}

.bottom-nav-item i {
    font-size: 22px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #1B84FF;
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    background: #f1416c;
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
}

.bottom-nav-item.destaque {
    color: #fff;
}

.bottom-nav-item.destaque .nav-fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1B84FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27,132,255,.4);
    margin-top: -4px;
}

.bottom-nav-item.destaque .nav-fab i {
    font-size: 24px;
    color: #fff;
}

/* Padding inferior do conteúdo para não sobrepor o bottom-nav */
@media (max-width: 991.98px) {
    #kt_app_content {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px) !important;
    }
}

/* ── Wizard Stepper Keen (stepper-pills override) ── */
.stepper.stepper-pills .stepper-nav .stepper-item .stepper-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

/* ── Badges de status da Reserva ── */
.badge-pendente  { background-color: #fff8dd; color: #f6c000; }
.badge-aprovada  { background-color: #e8fff3; color: #50cd89; }
.badge-cancelada { background-color: #fff5f8; color: #f1416c; }
.badge-concluida { background-color: #f1faff; color: #009ef7; }
.badge-recusada  { background-color: #ffe2e5; color: #f1416c; }

/* ── Autocomplete sugestões ── */
.autocomplete-suggestions {
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1060;
}

.autocomplete-suggestions .list-group-item {
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.autocomplete-suggestions .list-group-item:hover {
    background: #f1faff;
}

/* ── Passageiro card no wizard ── */
.passageiro-card {
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}

/* ── Card de seleção (tipo viagem) ── */
.card-selecao {
    cursor: pointer;
    border: 2px solid #e4e6ef !important;
    border-radius: 10px;
    min-height: 110px;
    transition: border-color .15s, box-shadow .15s;
}

.card-selecao.selected,
.card-selecao:hover {
    border-color: #1B84FF !important;
    box-shadow: 0 0 0 3px rgba(27,132,255,.12);
}

.btn-check:checked + .card-selecao {
    border-color: #1B84FF !important;
    box-shadow: 0 0 0 3px rgba(27,132,255,.18);
    background-color: #f1faff;
}

/* ── Timeline vertical ── */
.timeline-vertical .timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -8px;
    width: 2px;
    background: #e4e6ef;
}

.timeline-vertical .timeline-item {
    position: relative;
    padding-left: 44px;
    padding-bottom: 16px;
}

.timeline-vertical .timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Botão flutuante FAB (mobile) ── */
.btn-fab {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1B84FF;
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(27,132,255,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1040;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.btn-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(27,132,255,.55);
    color: #fff;
}

/* ── Filtros de status (listagem de reservas) ── */
.filtros-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 576px) {
    .filtros-status {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }
}

.filtro-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 12px;
    background: #f5f8fa;
    color: #7e8299;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    width: 100%;
}

@media (min-width: 576px) {
    .filtro-chip {
        flex-direction: row;
        gap: 6px;
        font-size: 12px;
        padding: 8px 14px;
        width: auto;
    }
}

.filtro-chip i { color: #a1a5b7; font-size: 1.25rem; transition: color .15s; }
.filtro-chip:hover { background: #eef2f5; }
.filtro-chip.active { font-weight: 700; }
.filtro-chip.active i { color: inherit; }

.filtro-chip.active[data-status=""]  { background: #eef6ff; border-color: #009ef7; color: #009ef7; }
.filtro-chip.active[data-status="1"] { background: #fff8dd; border-color: #ffc700; color: #b89200; }
.filtro-chip.active[data-status="2"] { background: #e8fff3; border-color: #50cd89; color: #47be7d; }
.filtro-chip.active[data-status="3"] { background: #fff5f8; border-color: #f1416c; color: #f1416c; }
.filtro-chip.active[data-status="4"] { background: #eef6ff; border-color: #009ef7; color: #009ef7; }
.filtro-chip.active[data-status="5"] { background: #f5f5f5; border-color: #a1a5b7; color: #5e6278; }

/* ── Nova Reserva V2 (estilo Booking.com) ── */

/* Barra de progresso de 3 etapas */
.bk-progress {
    display: flex;
    gap: 6px;
    padding: 16px 20px 0;
}

.bk-progress-step {
    height: 4px;
    flex: 1;
    border-radius: 4px;
    background: #e4e6ef;
    transition: background .3s;
}

.bk-progress-step.active {
    background: #1B84FF;
}

.bk-progress-labels {
    display: none;
}

@media (min-width: 768px) {
    .bk-progress-labels {
        display: flex;
        gap: 6px;
        padding: 6px 20px 0;
    }
    .bk-progress-label {
        flex: 1;
        font-size: 11px;
        color: #a1a5b7;
        font-weight: 500;
        text-align: center;
        transition: color .3s;
    }
    .bk-progress-label.active {
        color: #1B84FF;
        font-weight: 700;
    }
}

/* Telas (screens) */
.bk-screen { display: none; }
.bk-screen.active { display: block; }

/* Header da tela */
.bk-screen-header {
    padding: 20px 20px 4px;
}

.bk-screen-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181c32;
    margin: 0 0 2px;
}

.bk-screen-sub {
    font-size: 13px;
    color: #7e8299;
    margin: 0;
}

/* Widget de rota */
.bk-route-widget {
    background: #fff;
    border: 1.5px solid #e4e6ef;
    border-radius: 14px;
    overflow: visible;
}

.bk-route-field {
    padding: 14px 16px 10px;
    position: relative;
}

.bk-route-label {
    font-size: 10px;
    font-weight: 700;
    color: #a1a5b7;
    text-transform: uppercase;
    letter-spacing: .8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.bk-route-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.bk-route-divider {
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
}

.bk-route-divider::before,
.bk-route-divider::after {
    content: '';
    flex: 1;
    border-top: 1.5px dashed #e4e6ef;
}

.bk-swap-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e4e6ef;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7e8299;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, color .15s;
}

.bk-swap-btn:hover {
    border-color: #1B84FF;
    color: #1B84FF;
}

/* Botões pill de percurso */
.bk-pill-group {
    display: flex;
    gap: 8px;
}

.bk-pill {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid #e4e6ef;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #5e6278;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bk-pill.active {
    border-color: #1B84FF;
    background: #eef6ff;
    color: #1B84FF;
}

/* Cards de tipo de viagem */
.bk-type-card {
    border: 1.5px solid #e4e6ef;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bk-type-card:hover {
    border-color: #1B84FF;
}

.btn-check:checked + .bk-type-card {
    border-color: #1B84FF;
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(27,132,255,.12);
}

/* Rodapé fixo (mobile) — posicionado acima do bottom-nav (z-index 1050) */
.bk-sticky-footer {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e4e6ef;
    padding: 12px 16px;
    z-index: 1049;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}

.bk-sticky-footer .bk-footer-info {
    flex: 1;
    min-width: 0;
}

.bk-sticky-footer .bk-footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #181c32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-sticky-footer .bk-footer-sub {
    font-size: 11px;
    color: #7e8299;
}

.bk-sticky-footer .btn {
    flex-shrink: 0;
    min-width: 120px;
}

/* Espaço para sticky footer + bottom-nav no conteúdo */
.bk-has-sticky-footer {
    padding-bottom: 160px !important;
}

@media (min-width: 992px) {
    .bk-sticky-footer { display: none; }
    .bk-has-sticky-footer { padding-bottom: 0 !important; }
    .bk-desktop-footer { display: block !important; }

    /* Grid 2 colunas: telas 1+2 juntas no desktop */
    #bk-voo-pax-wrapper {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 20px;
        align-items: start;
    }
    #bk-voo-pax-wrapper.bk-hidden-desktop {
        display: none !important;
    }
    /* Ambas as telas sempre visíveis no desktop */
    #tela-voo,
    #tela-passageiros {
        display: block !important;
        margin: 0 !important;
    }
    /* Esconde o footer "Próximo: Passageiros" em tela-voo — tela 2 já visível */
    #tela-voo .bk-desktop-footer {
        display: none !important;
    }
    /* Esconde o back button no header de tela-passageiros no desktop */
    #tela-passageiros .bk-screen-header .btn-icon {
        display: none !important;
    }
}

.bk-desktop-footer {
    display: none;
}

/* Resumo de contexto no topo das telas 2 e 3 */
.bk-context-bar {
    background: #f8f9fa;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.bk-context-bar .iata {
    font-weight: 800;
    color: #181c32;
    font-size: 15px;
}

.bk-context-bar .sep {
    color: #a1a5b7;
    font-size: 18px;
}

/* Card de passageiro (V2) */
.bk-pax-card {
    border: 1.5px solid #e4e6ef;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}

.bk-pax-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #fafafa;
}

.bk-pax-header .pax-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1B84FF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-pax-header .pax-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #181c32;
}

.bk-pax-body {
    padding: 14px;
    border-top: 1px solid #f1f1f1;
}

/* Card boarding pass (resumo) */
.bk-boarding-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1B84FF 100%);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bk-boarding-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #f5f8fa;
    border-radius: 50%;
}

.bk-boarding-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #f5f8fa;
    border-radius: 50%;
}

.bk-boarding-iata {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
}

.bk-boarding-city {
    font-size: 11px;
    opacity: .75;
    margin-top: 2px;
}

.bk-boarding-arrow {
    font-size: 1.4rem;
    opacity: .7;
}

.bk-divider-dashed {
    border-top: 2px dashed rgba(255,255,255,.3);
    margin: 14px 0;
}

/* Contador de passageiros grande */
.bk-pax-counter {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f5f8fa;
    border-radius: 14px;
    padding: 6px;
    width: fit-content;
}

.bk-pax-counter .counter-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #1B84FF;
    cursor: pointer;
    transition: all .15s;
}

.bk-pax-counter .counter-btn:disabled {
    color: #a1a5b7;
    cursor: not-allowed;
}

.bk-pax-counter .counter-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #181c32;
    min-width: 52px;
    text-align: center;
}

/* Seção com padding padrão */
.bk-section {
    padding: 16px 20px;
}

.bk-section + .bk-section {
    border-top: 1px solid #f1f1f1;
}

.bk-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #a1a5b7;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
}

/* ── UX Mobile ── */
@media (max-width: 991.98px) {
    /* Previne zoom automático do iOS ao focar inputs (font-size < 16px dispara zoom) */
    .form-control,
    .form-select,
    .form-control-solid {
        font-size: 16px;
    }

    /* Bottom sheet: offcanvas lateral vira painel que sobe pelo rodapé no mobile */
    .offcanvas.offcanvas-end {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: auto;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
    }
}
