﻿/* permitir que datepicker e box de hóspedes apareçam acima */
.tg-booking-form-item,
.tg-booking-form-input-group,
.tg-booking-form-parent-inner {
    overflow: visible !important;
}

    /* container do HÓSPEDES */
    .tg-booking-form-parent-inner.tg-hero-quantity {
        position: relative;
    }

/* box fechada (estado padrão) */
.tg-booking-form-location-list.tg-quantity {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 24, 40, 0.16);
    padding: 18px 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.18s ease;
}

    /* box aberta (quando TravelersBoxOpen = true) */
    .tg-booking-form-location-list.tg-quantity.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

/* alinhamento dos itens internos, igual tema */
.tg-booking-quantity-item {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    border: 1px solid #E4E6EC;
    padding: 4px 10px;
    min-width: 110px;
    justify-content: space-between;
}

    .tg-booking-quantity-item .increment,
    .tg-booking-quantity-item .decrement {
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
    }

    .tg-booking-quantity-item .tg-quantity-input {
        border: none;
        text-align: center;
        width: 32px;
        background: transparent;
        padding: 0;
        font-weight: 500;
    }

/* texto da coluna (Adultos, Crianças, Quartos) */
.tg-booking-form-location-list ul > li span.mr-20 {
    min-width: 80px;
    display: inline-block;
}
/* garantir que o input de destino seja o "container" do dropdown */
.tg-booking-add-input-date {
    position: relative;
}


/* =========================================================
   MaisTrip Overrides - Checkout (Tourex)
   Escopado para não afetar outras telas
   (cobre .checkout-area e também .tg-tour-details-area caso use)
========================================================= */

.checkout-area .tg-label,
.tg-tour-details-area .tg-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 500;
    color: inherit;
}

/* Não “quebra” no desktop */
@media (min-width: 992px) {
    .checkout-area .tg-label,
    .tg-tour-details-area .tg-label {
        white-space: nowrap;
    }
}

/* Mobile pode quebrar */
@media (max-width: 991px) {
    .checkout-area .tg-label,
    .tg-tour-details-area .tg-label {
        white-space: normal;
    }
}

/* Wrapper do input (o template depende disso) */
.checkout-area .tg-checkout-form-input,
.tg-tour-details-area .tg-checkout-form-input {
    margin-bottom: 25px;
}

    /* Inputs iguais ao Billing Details do Tourex */
    .checkout-area .tg-checkout-form-input .input,
    .tg-tour-details-area .tg-checkout-form-input .input,
    .checkout-area .tg-checkout-form-input input.input,
    .tg-tour-details-area .tg-checkout-form-input input.input,
    .checkout-area .tg-checkout-form-input select.input,
    .tg-tour-details-area .tg-checkout-form-input select.input,
    .checkout-area .tg-checkout-form-input textarea.input,
    .tg-tour-details-area .tg-checkout-form-input textarea.input {
        width: 100%;
        height: 54px;
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        padding: 0 18px;
        background: #fff;
        font-size: 15px;
        color: #5b5b5b;
        box-shadow: none;
        outline: none;
    }

        /* Placeholder */
        .checkout-area .tg-checkout-form-input .input::placeholder,
        .tg-tour-details-area .tg-checkout-form-input .input::placeholder {
            color: #9a9a9a;
            opacity: 1;
        }

    /* Textarea */
    .checkout-area .tg-checkout-form-input textarea.input,
    .tg-tour-details-area .tg-checkout-form-input textarea.input {
        height: auto;
        padding: 14px 18px;
        line-height: 1.4;
    }

        /* Focus clean */
        .checkout-area .tg-checkout-form-input .input:focus,
        .tg-tour-details-area .tg-checkout-form-input .input:focus,
        .checkout-area .tg-checkout-form-input select.input:focus,
        .tg-tour-details-area .tg-checkout-form-input select.input:focus,
        .checkout-area .tg-checkout-form-input textarea.input:focus,
        .tg-tour-details-area .tg-checkout-form-input textarea.input:focus {
            border-color: rgba(0, 0, 0, .25);
            box-shadow: none;
        }

/* Botão CTA do template */
.checkout-area .tg-btn.w-100,
.tg-tour-details-area .tg-btn.w-100 {
    width: 100%;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 700;
    min-height: 54px;
}


/* =========================================================
   Checkout - Títulos, Subtítulos e Espaçamentos (Tourex-like)
========================================================= */

/* Título principal da página */
.checkout-area .tg-section-title-wrap {
    margin-bottom: 26px;
}

.checkout-area .tg-section-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 8px;
    font-weight: 800;
}

.checkout-area .tg-section-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #6b6b6b;
}

/* Card (blocos do form): espaço e respiro */
.checkout-area .tg-listing-card-item {
    margin-bottom: 22px; /* distância entre os blocos */
}

/* Cabeçalho dentro do card (Contato / Responsável / Pagamento) */
.checkout-area .tg-listing-card-content h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
}

/* Subtítulo/descrição dentro de card (se usar tg-label abaixo do h4) */
.checkout-area .tg-listing-card-content .tg-label {
    margin-bottom: 10px; /* aproxima a label do campo */
}

/* Dá o espaçamento correto entre subtítulo e o primeiro campo */
.checkout-area .tg-listing-card-content h4 + .tg-label {
    margin-top: 2px;
    margin-bottom: 16px;
}

/* Ajuste fino: espaço entre label e wrapper do input (pra ficar igual template) */
.checkout-area .tg-label.d-block.mb-5 {
    margin-bottom: 8px !important;
}

/* Espaçamento entre linhas do grid (para não “colar” os inputs) */
.checkout-area .row > [class*="col-"] {
    margin-bottom: 8px;
}
/* Static pages (Termos/Privacidade) - normalização do HTML do back office */
.tg-login-area .tg-tour-about-review-form {
    padding: 40px 35px; /* mantém cara de card */
}

    .tg-login-area .tg-tour-about-review-form p {
        margin: 0 0 14px 0;
        line-height: 1.8;
        text-align: left !important; /* evita justificar feio em telas menores */
        font-size: 16px !important; /* força consistência mesmo com inline 14px */
    }

    .tg-login-area .tg-tour-about-review-form span {
        font-size: inherit !important; /* remove herança bagunçada de span */
    }

        /* “Títulos” que vieram como span com font-size 24px */
        .tg-login-area .tg-tour-about-review-form span[style*="font-size: 24px"] {
            display: block;
            font-size: 24px !important;
            font-weight: 700;
            margin: 22px 0 10px;
            line-height: 1.3;
        }

    /* Links */
    .tg-login-area .tg-tour-about-review-form a {
        text-decoration: underline;
    }
/* Garantir que o texto do breadcrumb fique acima do background/overlays */
.tg-breadcrumb-area {
    position: relative;
    z-index: 1;
    overflow: hidden; /* evita shape invadir */
}

/* Conteúdo (título + trilha) por cima */
.tg-breadcrumb-content {
    position: relative;
    z-index: 5;
}

/* Overlays/sombras por baixo do texto */
.tg-hero-top-shadow,
.tg-breadcrumb-shadow,
.tg-hero-bottom-shape,
.tg-hero-bottom-shape-2 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Garante que o background não “vire camada” por cima */
.tg-breadcrumb-area.include-bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Sobre nós - CTA final menos alto */
/* Só no Sobre Nós */
.page-about .tg-banner-space-3 {
    margin-top: -50px !important;
}


/* =========================================================
   DESTINO - uib-typeahead (correção final)
   - Evita sobreposição
   - Não quebra o layout
   - Largura maior
========================================================= */

.tg-booking-add-input-date {
    position: relative;
}

    /* POPUP do typeahead: é um UL com class="dropdown-menu" e atributo uib-typeahead-popup */
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] {
        position: absolute !important;
        top: calc(100% + 8px) !important; /* ignora o top inline do Angular */
        left: 0 !important; /* ignora o left inline */

        width: 520px; /* <<< AQUI você define a largura */
        max-width: 90vw;
        padding: 10px !important;
        margin: 0 !important;
        border: 1px solid #E4E6EC;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(15, 24, 40, 0.16);
        max-height: 260px;
        overflow-y: auto;
        z-index: 9999;
    }

        /* GARANTIR que os LIs empilhem (sem position/float do tema) */
        .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] > li {
            display: block !important;
            position: relative !important;
            float: none !important;
            clear: both !important;
            margin: 0 !important;
            padding: 0 !important;
        }

    /* O item (seu template) */
    .tg-booking-add-input-date .tg-typeahead-row {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 12px;
        border-radius: 12px;
    }

    /* pin em círculo */
    .tg-booking-add-input-date .tg-typeahead-pin {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid #E4E6EC;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
    }

    /* texto */
    .tg-booking-add-input-date .tg-typeahead-label {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        color: #222;
    }

    /* hover/ativo (o ACTIVE está no LI no seu HTML) */
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] > li:hover .tg-typeahead-row,
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] > li.active .tg-typeahead-row {
        background: rgba(0,0,0,.04);
    }

    /* ===== Typeahead: alinhar pin + texto e impedir sobreposição ===== */
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] {
        text-align: left !important; /* tema às vezes centraliza/right */
    }

        .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] > li {
            text-align: left !important;
        }

    /* garante que o row ocupe 100% e não "encolha" */
    .tg-booking-add-input-date .tg-typeahead-row {
        width: 100% !important;
        justify-content: flex-start !important;
        position: relative !important;
    }

    /* o pin nunca pode flutuar ou ter position absoluto do tema */
    .tg-booking-add-input-date .tg-typeahead-pin,
    .tg-booking-add-input-date .tg-typeahead-pin i {
        float: none !important;
        position: static !important;
        right: auto !important;
        left: auto !important;
        margin: 0 !important;
    }

    /* texto também não pode flutuar */
    .tg-booking-add-input-date .tg-typeahead-label {
        float: none !important;
        position: static !important;
    }
    /* feedback dentro do dropdown */
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] .tg-typeahead-feedback {
        padding: 10px 12px;
        font-size: 13px;
        color: #6b6b6b;
    }
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] .tg-typeahead-row span,
    .tg-booking-add-input-date ul.dropdown-menu[uib-typeahead-popup] .tg-typeahead-row i {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
/* ===== Feedback de destino com cara de dropdown (sem quebrar layout) ===== */
.tg-booking-add-input-date {
    position: relative;
}

    /* o ícone do input (se você quiser isolar e evitar heranças) */
    .tg-booking-add-input-date > .tg-input-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

/* caixa do feedback (mesma estética do dropdown) */
.tg-destination-feedback {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 520px; /* ajuste aqui pra ficar maior */
    max-width: 90vw;
    background: #fff;
    border: 1px solid #E4E6EC;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 24, 40, 0.16);
    padding: 12px 14px;
    z-index: 9999;
}

/* texto interno */
.tg-typeahead-feedback {
    font-size: 13px;
    line-height: 1.4;
    color: #6b6b6b;
}

/* evita que regras do tema joguem spans pra direita */
.tg-destination-feedback * {
    position: static !important;
    transform: none !important;
}


/* Flatpickr: garantir que setas de mês sejam clicáveis */
.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    pointer-events: auto !important;
    z-index: 5 !important;
}

/* Flatpickr: por cima do hero */
.flatpickr-calendar {
    z-index: 99999 !important;
}


/* ===== Flatpickr - corrigir dia selecionado (tema sobrescrevia) ===== */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: #36b37e !important;
    border-color: #36b37e !important;
    color: #fff !important;
}

/* "hoje" com borda verde */
.flatpickr-day.today {
    border-color: #36b37e !important;
}

/* hover */
.flatpickr-day:hover {
    background: rgba(54, 179, 126, 0.15) !important;
}

/* Setas/mês clicáveis (evita overlay do tema) */
.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    pointer-events: auto !important;
}

/* Por cima do hero */
.flatpickr-calendar {
    z-index: 99999 !important;
}


/* ================================
   HÓSPEDES (Quantity box) - FIX UI
================================ */

/* lista interna alinhada */
.tg-booking-form-location-list.tg-quantity ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .tg-booking-form-location-list.tg-quantity ul > li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        margin: 0;
    }

        /* cabeçalho "Quarto 1" */
        .tg-booking-form-location-list.tg-quantity ul > li.mb-5 {
            padding: 0 0 8px;
        }

        /* label da esquerda */
        .tg-booking-form-location-list.tg-quantity ul > li > span.mr-20 {
            min-width: 90px;
            flex: 1 1 auto;
        }

/* pill do contador */
.tg-booking-quantity-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 44px; /* altura fixa igual tema */
    min-width: 150px;
    padding: 0; /* importante */
    border-radius: 999px;
    border: 1px solid #E4E6EC;
    overflow: hidden; /* impede “vazar” */
    background: #fff;
}

    /* botões - / + */
    .tg-booking-quantity-item .decrement,
    .tg-booking-quantity-item .increment {
        width: 48px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /* evita heranças do tema */
        position: static !important;
        float: none !important;
        transform: none !important;
    }

    /* divisórias internas */
    .tg-booking-quantity-item .decrement {
        border-right: 1px solid #E4E6EC;
    }

    .tg-booking-quantity-item .increment {
        border-left: 1px solid #E4E6EC;
    }

    /* input do número (o que está “saindo do lugar”) */
    .tg-booking-quantity-item .tg-quantity-input {
        width: 52px !important;
        height: 44px !important;
        line-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        text-align: center !important;
        font-weight: 600;
        font-size: 15px;
        /* mata qualquer estilo global estranho */
        position: static !important;
        float: none !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* garante que svg fique central e clicável */
    .tg-booking-quantity-item svg {
        display: block;
    }

/* botão OK ocupa 100% sem “encostar” */
.tg-booking-form-location-list.tg-quantity .tg-booking-form-search-btn .bk-search-button {
    width: 100%;
}


/* =========================================================
   HÓSPEDES (tg-quantity) - largura do popup + botões menos arredondados
   Cole no FINAL do maistrip-overrides.css
========================================================= */

/* 1) Aumenta a largura do popup de hóspedes (não fica preso ao width do input) */
.tg-booking-form-parent-inner.tg-hero-quantity .tg-booking-form-location-list.tg-quantity {
    width: 420px; /* ajuste aqui: 380/420/480... */
    max-width: calc(100vw - 24px); /* não estoura na tela */
}

/* no mobile, deixa 100% */
@media (max-width: 575px) {
    .tg-booking-form-parent-inner.tg-hero-quantity .tg-booking-form-location-list.tg-quantity {
        width: 100%;
    }
}

/* 2) Dá layout melhor nas linhas (texto à esquerda e controle à direita) */
.tg-booking-form-location-list.tg-quantity ul > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    /* mantém o título "Quarto 1" normal (ele já vem com .mb-5 no seu HTML) */
    .tg-booking-form-location-list.tg-quantity ul > li.mb-5 {
        display: block;
    }

    /* label da esquerda (Adultos/Crianças/Idade...) */
    .tg-booking-form-location-list.tg-quantity ul > li > span.mr-20 {
        flex: 1;
        min-width: 140px; /* evita quebrar toda hora */
    }

/* 3) Controle + / - menos redondo (estilo “retângulo arredondado”) */
.tg-booking-quantity-item {
    min-width: 150px;
    padding: 0;
    border-radius: 12px; /* <<< antes era 100px */
    overflow: hidden; /* pra ficar “inteiro” */
    justify-content: center;
}

    /* botões + e - com cantos menos redondos */
    .tg-booking-quantity-item .increment,
    .tg-booking-quantity-item .decrement {
        width: 42px;
        height: 40px;
        border-radius: 10px; /* <<< antes ficava circular */
    }

    /* separadores (fica parecido com o template) */
    .tg-booking-quantity-item .decrement {
        border-right: 1px solid #E4E6EC;
    }

    .tg-booking-quantity-item .increment {
        border-left: 1px solid #E4E6EC;
    }

    /* número central */
    .tg-booking-quantity-item .tg-quantity-input {
        width: 54px;
        height: 40px;
        line-height: 40px;
        font-size: 15px;
    }


/* overlay só por cima da listagem */
.tg-results-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* fundo */
.tg-results-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(4px);
}

/* caixa */
.tg-results-loading__box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* AQUI resolve o alinhamento */
    display: flex;
    align-items: center; /* centraliza verticalmente */
    justify-content: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #E4E6EC;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 24, 40, 0.16);
    min-width: 320px;
}

    .tg-results-loading__box .loader {
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        /* mantém o layout certinho no flex */
        flex: 0 0 auto;
        align-self: center;
    }


.tg-results-loading__text {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

/* Mobile: não estoura */
@media (max-width: 480px) {
    .tg-results-loading__box {
        min-width: 0;
        width: calc(100vw - 32px);
    }
}

/* evita clique nos cards enquanto carrega */
.tg-results-loading,
.tg-results-loading * {
    pointer-events: all;
}

/* PAGINA DE HOTEL -- INICIO --*/

.tg-cancel-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

    .tg-cancel-list li {
        margin-bottom: 6px;
        line-height: 1.35;
    }

a.disabled {
    pointer-events: none;
    opacity: .6;
}



/* força quebra de linha (endereço, descrições longas, links, etc.) */
/* Endereço quebrar linha */

.tg-filter-sidebar .tg-filter-item .tg-label {
    display: block;
    max-width: 100%;
    width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tg-filter-sidebar,
.tg-filter-item {
    min-width: 0; /* permite o conteúdo encolher e quebrar */
}


/* Caixa de cancelamento */
.tg-cancel-box {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.tg-cancel-ico {
    font-size: 14px;
    opacity: .8;
}

.tg-cancel-title {
    font-size: 14px;
}

.tg-cancel-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    text-decoration: underline;
}

.tg-cancel-details {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.tg-cancel-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #f1f1f1;
    font-size: 13px;
}

.tg-cancel-head {
    border-top: 0;
    background: #f7f7f7;
    font-weight: 700;
}



/* PAGINA DE HOTEL -- FIM --*/


/* Checkout sidebar: labels podem quebrar linha */
.tg-filter-sidebar .tg-listing-card-content .tg-label {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Importantíssimo em layouts com flex/grid */
.tg-filter-sidebar,
.tg-filter-sidebar .tg-listing-card-item,
.tg-filter-sidebar .tg-listing-card-content {
    min-width: 0;
}