/*
 * Página de detalhe do site (hoje, a do passeio: /tour/{slug}), no padrão da home.
 * Tokens: os --site-* de paginas-site.css, que o Layout::app já carrega; a faixa de
 * título é a .site-hero de lá, mais alta aqui para a foto do passeio aparecer.
 *
 * Peças:
 *  - .det-hero: caminho de volta, dados e ações sobre a foto;
 *  - .det-grade: conteúdo à esquerda, reserva e fornecedor fixos à direita;
 *  - .det-cartao + .det-titulo: um quadro por assunto;
 *  - .det-bt: os botões da página;
 *  - .rsv-*: o cartão de reserva (o miolo é o Vue de single-tour.js);
 *  - .tour-datepicker-*, .tour-calendar, .cal-*, .bmo-*: o seletor de data e a reserva
 *    do celular. O script os leva para o <body>, então não ficam sob .det: os nomes
 *    são os que o Vue usa, não renomear;
 *  - .det-barra: no celular, o preço e o botão que abre a reserva.
 *
 * O template dá cor, caixa-alta e margem a h1–h6, p, a e nav: por isso tanto valor
 * escrito por extenso aqui.
 */

.det {
    background: var(--site-fundo);
    color: var(--site-texto);
}
.det a {
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

/* ── Faixa de título ────────────────────────────────────────────────────── */

.det-hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 46vh, 440px);
    padding: 48px 0 40px;
}
.det-hero .site-hero__conteudo {
    width: 100%;
}
/* Sem foto não há o que mostrar acima do título: a faixa fica do tamanho do texto. */
.det-hero:not(.site-hero--foto) {
    min-height: 0;
}
/* A foto do passeio é o assunto: escuro só embaixo e à esquerda, onde fica o texto. */
.det-hero .site-hero__foto::after {
    background:
        linear-gradient(180deg, rgba(23, 45, 82, .6) 0%, rgba(12, 23, 43, 0) 28%),
        linear-gradient(0deg, rgba(12, 23, 43, .94) 0%, rgba(12, 23, 43, .6) 46%, rgba(12, 23, 43, .12) 100%),
        linear-gradient(90deg, rgba(12, 23, 43, .55) 0%, rgba(12, 23, 43, 0) 72%);
}
.det-hero .site-hero__titulo {
    max-width: 860px;
    margin-bottom: 14px;
}
.det-trilha {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 600;
}
.det-trilha li + li::before {
    content: "›";
    margin-right: 8px;
    color: rgba(255, 255, 255, .5);
}
.det-trilha a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}
.det-trilha a:hover {
    color: #fff;
    text-decoration: underline;
}
.det-hero__fatos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    font-weight: 500;
}
.det-hero__fatos li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.det-hero__fatos svg {
    flex: none;
    opacity: .85;
}
.det-hero__fatos a {
    color: #fff;
    text-decoration: none;
}
.det-hero__fatos a:hover {
    text-decoration: underline;
}
.det-hero__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: none;
    margin-top: 24px;
}
.det-hero__bt,
.det-hero .service-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.det-hero__bt:hover,
.det-hero .service-wishlist:hover {
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
/* O clique do compartilhar lê os dados do próprio botão: o ícone não pode ser o alvo. */
.det-hero__bt svg,
.det-hero .service-wishlist svg {
    flex: none;
    pointer-events: none;
}
.det-hero__bt--cheio {
    border-color: #fff;
    background: #fff;
    color: var(--site-azul);
}
.det-hero__bt--cheio:hover {
    border-color: #fff;
    background: var(--site-azul-claro);
    color: var(--site-azul-escuro);
}
.det-hero .service-wishlist {
    width: 44px;
    padding: 0;
}
.det-hero .service-wishlist.active {
    border-color: #fff;
    background: #fff;
    color: var(--site-vermelho);
}
.det-hero .service-wishlist.active svg {
    fill: currentColor;
}
.det-hero .service-wishlist.loading {
    opacity: .6;
    pointer-events: none;
}
.det-hero__bt:focus-visible,
.det-hero .service-wishlist:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .6);
    outline-offset: 2px;
}
.det-hero__credito {
    position: absolute;
    right: 16px;
    bottom: 10px;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* ── Miolo ──────────────────────────────────────────────────────────────── */

.det-corpo {
    padding-top: 32px;
    padding-bottom: 72px;
}
.det-grade {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 28px;
}
.det-principal {
    display: grid;
    gap: 20px;
    min-width: 0;
}
/* A reserva acompanha a rolagem. Mais alta que a tela (muitos tipos de ingresso,
   termos abertos), rola por dentro em vez de esconder o botão. */
.det-lateral {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 20px;
    max-height: calc(100vh - 108px);
    margin: -4px -8px -24px;
    padding: 4px 8px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6dbe4 transparent;
}
.det-cartao {
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(27, 36, 51, .06);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--site-sombra-leve);
    scroll-margin-top: 96px;
}
.det-titulo {
    margin: 0 0 16px;
    color: var(--site-tinta);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    text-transform: none;
}
.det-subtitulo {
    margin: 0 0 14px;
    color: var(--site-tinta);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}
.det-cartao p {
    margin: 0;
}

/* ── Botões ─────────────────────────────────────────────────────────────── */

.det-bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.det-bt--largo {
    width: 100%;
}
.det-bt--g {
    min-height: 52px;
    font-size: 16px;
}
.det-bt--principal {
    background: var(--site-vermelho);
    color: #fff;
    box-shadow: 0 10px 24px rgba(177, 59, 39, .3);
}
.det-bt--principal:hover {
    background: var(--site-vermelho-escuro);
    color: #fff;
    transform: translateY(-1px);
}
/* Passo 2 da reserva: o resumo já apareceu, falta confirmar. */
.det-bt--principal.det-bt--confirmar {
    background: #1e6b5c;
    box-shadow: 0 10px 24px rgba(30, 107, 92, .3);
}
.det-bt--principal.det-bt--confirmar:hover {
    background: #17574a;
}
.det-bt--azul {
    background: var(--site-azul);
    color: #fff;
}
.det-bt--azul:hover {
    background: var(--site-azul-escuro);
    color: #fff;
}
.det-bt--contorno {
    border-color: var(--site-azul);
    background: #fff;
    color: var(--site-azul);
}
.det-bt--contorno:hover {
    background: var(--site-azul);
    color: #fff;
}
.det-bt--whats {
    background: #128c7e;
    color: #fff;
}
.det-bt--whats:hover {
    background: #0e7468;
    color: #fff;
}
/* O template escurece todo link em foco (a:focus { color: #111 }): depois do clique, o
   texto do botão ficava preto sobre o vermelho. */
.det-bt--principal:focus,
.det-bt--azul:focus,
.det-bt--whats:focus,
.det-hero__bt:focus {
    color: #fff;
}
.det-hero__bt--cheio:focus,
.det-bt--contorno:focus:not(:hover) {
    color: var(--site-azul);
}
.det-bt.is-enviando {
    opacity: .75;
    pointer-events: none;
}
.det-bt:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .35);
    outline-offset: 2px;
}

/* ── Resumo: duração, tipo, cidade e experiências ───────────────────────── */

.det-fatos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.det-fatos li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.det-fatos__icone {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--site-azul-claro);
    color: var(--site-azul);
}
.det-fatos__rotulo {
    display: block;
    color: var(--site-rotulo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}
.det-fatos__valor {
    display: block;
    color: var(--site-tinta);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
.det-experiencias {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.det-fatos + .det-experiencias {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--site-borda);
}
.det-experiencias__rotulo {
    margin-right: 4px;
    color: var(--site-rotulo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.det-pilula {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--site-borda);
    border-radius: 999px;
    background: #fff;
    color: var(--site-texto);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.det-pilula:hover {
    border-color: var(--site-azul);
    color: var(--site-azul);
}

/* ── Sobre o passeio: abas e texto ──────────────────────────────────────── */

.det-abas {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.det-abas::-webkit-scrollbar {
    display: none;
}
.det-aba {
    flex: none;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--site-borda);
    border-radius: 999px;
    background: #fff;
    color: var(--site-texto);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.det-aba:hover {
    border-color: var(--site-azul);
    color: var(--site-azul);
}
.det-aba[aria-selected="true"] {
    border-color: var(--site-azul);
    background: var(--site-azul);
    color: #fff;
}
.det-aba:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .3);
    outline-offset: 2px;
}
.det-painel:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .2);
    outline-offset: 6px;
    border-radius: 6px;
}
.det-painel[hidden] {
    display: none;
}
.det-painel--rolagem {
    max-height: 440px;
    padding-right: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6dbe4 transparent;
}
/* O texto vem do editor do cadastro, muitas vezes colado do Word: fonte inline, tabela
   com largura fixa em pt (468pt ≈ 624px no Bate Volta do Cuniã, que no celular alargava
   a página inteira). Aqui dentro nada passa da largura do cartão. */
.det-texto {
    font-size: 15.5px;
    overflow-wrap: anywhere;
}
.det-texto > *:last-child {
    margin-bottom: 0;
}
.det-texto :is(p, span, li, div, td, th) {
    font-size: inherit !important;
    line-height: inherit !important;
}
.det-texto :is(p, li, span, div) {
    color: inherit;
}
.det-texto table {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.det-texto td,
.det-texto th {
    width: auto !important;
}
.det-texto img,
.det-texto iframe,
.det-texto video {
    max-width: 100%;
}
.det-texto img {
    height: auto;
}
.det-texto ul li::before {
    display: none;
}

/* ── Vídeo, fotos, mapa ─────────────────────────────────────────────────── */

.det-video {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #0f1b30;
}
.det-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.det-galeria {
    overflow: hidden;
    border-radius: 14px;
    background: var(--site-campo);
}
.det-galeria .fotorama__nav-wrap {
    padding-top: 10px;
    background: #fff;
}
.det-galeria .fotorama__thumb {
    border-radius: 8px;
    background: var(--site-campo);
}
.det-galeria .fotorama__thumb-border {
    border-color: var(--site-vermelho);
    border-radius: 8px;
}
.det-local {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
}
.det-local .det-titulo {
    margin-bottom: 4px;
}
.det-local__endereco {
    color: var(--site-texto);
    font-size: 15px;
    line-height: 1.55;
}
.det-mapa {
    margin-top: 18px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--site-campo);
}
.det-mapa #map_content {
    width: 100%;
    height: 360px;
}

/* ── Seguro, incluído, atributos, perguntas ─────────────────────────────── */

.det-aviso {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.det-aviso .det-titulo {
    margin-bottom: 4px;
}
.det-aviso__icone {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f3f0;
    color: #1e6b5c;
}
.det-incluso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 32px;
}
.det-lista {
    margin: 0;
    padding: 0;
    list-style: none;
}
.det-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: var(--site-tinta);
    font-size: 15px;
    line-height: 1.5;
}
.det-lista svg {
    flex: none;
    margin-top: 2px;
}
.det-lista--sim svg {
    color: #1e6b5c;
}
.det-lista--nao li {
    color: var(--site-rotulo);
}
.det-lista--nao svg {
    color: var(--site-vermelho);
}
.det-grupos {
    display: grid;
    gap: 18px;
}
.det-grupo + .det-grupo {
    padding-top: 18px;
    border-top: 1px solid var(--site-borda);
}
.det-grupo__titulo {
    margin: 0 0 10px;
    color: var(--site-rotulo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}
.det-atributos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.det-atributos li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--site-azul-claro);
    color: var(--site-azul);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.det-atributos svg {
    flex: none;
}
.det-faq details {
    border-top: 1px solid var(--site-borda);
}
.det-faq details:first-child {
    border-top: 0;
}
.det-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    color: var(--site-tinta);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.det-faq summary::-webkit-details-marker {
    display: none;
}
.det-faq summary:hover {
    color: var(--site-azul);
}
.det-faq summary svg {
    flex: none;
    color: var(--site-apagado);
    transition: transform .2s ease;
}
.det-faq details[open] summary svg {
    transform: rotate(180deg);
}
.det-faq details > div {
    padding: 0 0 16px;
}

/* ── Avaliações ─────────────────────────────────────────────────────────── */

.det-nota {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--site-campo);
}
.det-nota__numero {
    text-align: center;
}
.det-nota__numero strong {
    color: var(--site-tinta);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}
.det-nota__numero > span {
    color: var(--site-apagado);
    font-size: 18px;
    font-weight: 600;
}
.det-nota__numero p {
    margin-top: 6px;
    color: var(--site-tinta);
    font-size: 15px;
    font-weight: 700;
}
.det-nota__numero small {
    color: var(--site-rotulo);
    font-size: 13px;
}
.det-nota__linha {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
    color: var(--site-rotulo);
    font-size: 13px;
}
.det-nota__linha > span:last-child {
    text-align: right;
}
.det-nota__barra {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e3e7ee;
}
.det-nota__barra span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: #f5a623;
}
.det-avaliacao {
    padding: 20px 0;
    border-bottom: 1px solid var(--site-borda);
}
.det-avaliacao:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.det-avaliacao__topo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.det-avaliacao__topo strong {
    display: block;
    color: var(--site-tinta);
    font-size: 15px;
}
.det-avaliacao__topo time {
    color: var(--site-apagado);
    font-size: 13px;
}
.det-avaliacao__foto {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.det-avaliacao__foto--letra,
.det-fornecedor__foto--letra {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-azul-claro);
    color: var(--site-azul);
    font-size: 18px;
    font-weight: 700;
}
.det-avaliacao h3 {
    margin: 0 0 4px;
    color: var(--site-tinta);
    font-size: 15.5px;
    font-weight: 700;
    text-transform: none;
}
.det-avaliacao p {
    color: var(--site-texto);
    font-size: 15px;
    line-height: 1.65;
}
.det-estrelas {
    margin-left: auto;
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
    white-space: nowrap;
}
.det-estrelas .fa-star-o {
    color: #d3d9e3;
}
.det-vazio {
    color: var(--site-rotulo);
    font-size: 15px;
    line-height: 1.6;
}
.det-entrar {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid var(--site-borda);
    color: var(--site-rotulo);
    font-size: 14.5px;
}
.det-entrar a {
    color: var(--site-azul);
    font-weight: 700;
    text-decoration: none;
}
.det-entrar a:hover {
    color: var(--site-vermelho);
}
.det-avaliar {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--site-borda);
}
.det-avaliar__grade {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px 28px;
    margin-bottom: 16px;
}
.det-avaliar .form-group {
    margin: 0 0 12px;
}
.det-avaliar .form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--site-borda);
    border-radius: 12px;
    background: #fff;
    color: var(--site-tinta);
    font-size: 15px;
    box-shadow: none;
}
.det-avaliar textarea.form-control {
    height: auto;
    min-height: 130px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}
.det-avaliar .form-control:focus {
    border-color: var(--site-azul);
    box-shadow: 0 0 0 3px rgba(31, 58, 104, .12);
    outline: 0;
}
.det-avaliar .review-items .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}
.det-avaliar .review-items label {
    margin: 0;
    color: var(--site-texto);
    font-size: 14px;
    font-weight: 600;
}
.det-avaliar .rates {
    display: flex;
    gap: 3px;
    white-space: nowrap;
}
.det-avaliar .rates .fa {
    color: #c5ccd8;
    font-size: 19px;
    cursor: pointer;
}
/* As classes "hovered" e "selected" são postas pelo public/js/home.js. */
.det-avaliar .rates .fa.hovered,
.det-avaliar .rates .fa.selected {
    color: #f5a623;
}
.det-avaliar .rates .fa.hovered::before,
.det-avaliar .rates .fa.selected::before {
    content: "\f005";
}

/* ── Fornecedor ─────────────────────────────────────────────────────────── */

.det-fornecedor {
    padding: 22px 24px 24px;
}
.det-fornecedor__papel {
    margin: 0 0 12px !important;
    color: var(--site-rotulo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.det-fornecedor__topo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.det-fornecedor__foto {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--site-campo);
    object-fit: cover;
}
.det-fornecedor__texto {
    min-width: 0;
}
.det-fornecedor__nome {
    margin: 0 0 2px;
    color: var(--site-tinta);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    overflow-wrap: anywhere;
}
.det-fornecedor__selo {
    margin-left: 2px;
    vertical-align: -2px;
    color: #1e9e6a;
}
.det-fornecedor__texto p {
    color: var(--site-rotulo);
    font-size: 13px;
    line-height: 1.5;
}
.det-fornecedor__texto a {
    color: var(--site-azul);
    font-weight: 600;
    text-decoration: none;
}
.det-fornecedor__texto a:hover {
    color: var(--site-vermelho);
}

/* ── Reserva ────────────────────────────────────────────────────────────── */

#bravo_tour_book_app[v-cloak] {
    visibility: hidden;
}
.rsv {
    padding: 24px;
}
.rsv-preco__rotulo {
    display: block;
    margin-bottom: 2px;
    color: var(--site-rotulo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rsv-preco__linha {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}
.rsv-preco__de {
    color: var(--site-apagado);
    font-size: 15px;
    font-weight: 500;
}
.rsv-preco__valor {
    color: var(--site-tinta);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.rsv-preco__selo {
    align-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fbeeeb;
    color: var(--site-vermelho);
    font-size: 12px;
    font-weight: 700;
}
.rsv-descontos {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--site-campo);
    color: var(--site-texto);
    font-size: 13px;
    line-height: 1.5;
    list-style: none;
}
.rsv-descontos li + li {
    margin-top: 6px;
}
.rsv-descontos strong {
    color: var(--site-vermelho);
}
.rsv-campos {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.rsv-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff6e0;
    color: #7a4f00;
    font-size: 12.5px;
    line-height: 1.5;
}
.rsv-aviso .fa {
    flex: none;
    margin-top: 1px;
    font-size: 18px;
}
.rsv-aviso strong {
    display: block;
    font-size: 13px;
}
.rsv-carregando {
    padding: 12px 0;
    color: var(--site-rotulo);
    font-size: 13px;
    text-align: center;
}
.rsv-nota {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--site-azul-claro);
    color: var(--site-azul);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}
.rsv-nota--atencao {
    background: #fff6e0;
    color: #7a4f00;
}
.tour-date-trigger {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px dashed #c5ccd8;
    border-radius: 14px;
    background: var(--site-campo, #f4f6fa);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.tour-date-trigger:hover {
    border-color: var(--site-azul, #1f3a68);
    background: var(--site-azul-claro, #eef2f8);
}
.tour-date-trigger.has-date {
    border-style: solid;
    border-color: var(--site-azul, #1f3a68);
    background: var(--site-azul-claro, #eef2f8);
}
.tour-date-trigger:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .3);
    outline-offset: 2px;
}
.tour-date-trigger .trigger-icon {
    display: block;
    margin-bottom: 4px;
    color: var(--site-apagado, #8a93a3);
    font-size: 22px;
}
.tour-date-trigger.has-date .trigger-icon {
    color: var(--site-azul, #1f3a68);
}
.tour-date-trigger .trigger-text {
    display: block;
    color: var(--site-tinta, #1b2433);
    font-size: 15px;
    font-weight: 700;
}
.tour-date-trigger .trigger-sub {
    display: block;
    margin-top: 2px;
    color: var(--site-rotulo, #5b6577);
    font-size: 12px;
}
.rsv-campo label,
.rsv-linha label {
    display: block;
    margin: 0;
    color: var(--site-tinta, #1b2433);
    font-size: 14px;
    font-weight: 700;
}
.rsv-campo label {
    margin-bottom: 6px;
}
.rsv-select,
.rsv-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-radius: 12px;
    background-color: #fff;
    color: var(--site-tinta, #1b2433);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rsv-select {
    height: auto;
    white-space: normal;
}
.rsv-select:focus,
.rsv-input:focus {
    border-color: var(--site-azul, #1f3a68);
    box-shadow: 0 0 0 3px rgba(31, 58, 104, .12);
    outline: 0;
}
.rsv-obs {
    margin: 8px 0 0 !important;
    color: var(--site-vermelho, #b13b27);
    font-size: 12.5px;
    line-height: 1.5;
}
.rsv-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--site-campo, #f4f6fa);
}
.rsv-linha + .rsv-linha {
    margin-top: 8px;
}
.rsv-linha__texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rsv-linha__texto span {
    color: var(--site-rotulo, #5b6577);
    font-size: 12.5px;
    line-height: 1.45;
}
.input-number-group {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}
.input-number-group .icon {
    color: var(--site-azul, #1f3a68);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: color .15s ease;
}
.input-number-group .icon:hover {
    color: var(--site-vermelho, #b13b27);
}
.input-number-group .input {
    min-width: 24px;
    color: var(--site-tinta, #1b2433);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.rsv-grupo {
    padding-top: 14px;
    border-top: 1px solid var(--site-borda, #e3e7ee);
}
.rsv-grupo__titulo {
    margin: 0 0 6px;
    color: var(--site-rotulo, #5b6577);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rsv-extra {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 8px 0;
    color: var(--site-tinta, #1b2433);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}
.rsv-extra input,
.rsv-marcar input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--site-azul, #1f3a68);
}
.rsv-extra__texto {
    flex: 1;
    min-width: 0;
}
.rsv-extra__texto small,
.rsv-taxa small {
    display: block;
    color: var(--site-rotulo, #5b6577);
    font-size: 12px;
}
.rsv-extra__valor {
    flex: none;
    font-weight: 700;
    white-space: nowrap;
}
.rsv-taxa {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--site-texto, #3b4556);
    font-size: 13.5px;
}
.rsv-taxa > span:last-child {
    color: var(--site-tinta, #1b2433);
    font-weight: 700;
    white-space: nowrap;
}
.rsv-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--site-borda, #e3e7ee);
    color: var(--site-rotulo, #5b6577);
    font-size: 14px;
    font-weight: 600;
}
.rsv-total strong {
    color: var(--site-tinta, #1b2433);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.tour-terms-wrap {
    margin-top: 16px;
}
.tour-terms-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-radius: 12px;
    background: var(--site-campo, #f4f6fa);
    color: var(--site-tinta, #1b2433);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease;
}
.tour-terms-toggle:hover {
    background: var(--site-azul-claro, #eef2f8);
}
.tour-terms-toggle .fa-file-text-o {
    margin-right: 6px;
    color: var(--site-azul, #1f3a68);
}
.tour-terms-toggle .tt-chevron {
    color: var(--site-apagado, #8a93a3);
    font-size: 11px;
    transition: transform .25s ease;
}
.tour-terms-toggle.is-open {
    border-radius: 12px 12px 0 0;
}
.tour-terms-toggle.is-open .tt-chevron {
    transform: rotate(180deg);
}
.tour-terms-body {
    display: none;
    max-height: 220px;
    padding: 12px 14px;
    overflow-y: auto;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    color: var(--site-texto, #3b4556);
    font-size: 12.5px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
}
.tour-terms-body.is-open {
    display: block;
}
.tour-terms-body :is(p, span, li, div, td) {
    font-size: inherit !important;
    font-family: inherit !important;
}
.tour-terms-body table {
    width: 100% !important;
}
.tour-terms-accept {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-radius: 12px;
    background: #fff;
    color: var(--site-texto, #3b4556);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.tour-terms-accept input[type="checkbox"] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--site-azul, #1f3a68);
}
.tour-terms-accept a {
    color: var(--site-azul, #1f3a68);
    font-weight: 700;
    text-decoration: underline;
}
.tour-terms-accept.has-error {
    border-color: #d9412e;
    background: #fdecea;
    color: #a1271a;
}
.rsv-visitante {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: var(--site-campo, #f4f6fa);
}
.rsv-visitante strong {
    color: var(--site-tinta, #1b2433);
    font-size: 13.5px;
}
.rsv-visitante small {
    color: var(--site-rotulo, #5b6577);
    font-size: 11.5px;
    line-height: 1.45;
}
.rsv-enviar {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.rsv-marcar {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--site-texto, #3b4556);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}
.rsv-mensagem {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
}
.rsv-mensagem.danger {
    background: #fdecea;
    color: #a1271a;
}
.rsv-mensagem.success {
    background: #e8f3f0;
    color: #1e6b5c;
}

/* ── Seletor de data (no <body>) ────────────────────────────────────────── */

.tour-datepicker-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(12, 23, 43, .6);
    animation: detAparece .18s ease;
}
.tour-datepicker-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(12, 23, 43, .35);
    font-family: "Montserrat", Arial, sans-serif;
    animation: detSobe .2s ease;
}
.tour-datepicker-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #e3e7ee;
}
.tour-datepicker-title {
    margin: 0;
    color: #1b2433;
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
}
.tour-datepicker-close,
.bmo-close {
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #8a93a3;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.tour-datepicker-close:hover,
.bmo-close:hover {
    background: #f4f6fa;
    color: #1b2433;
}
.tour-datepicker-body {
    flex: 1;
    min-height: 0;
    padding: 16px 18px 20px;
    overflow-y: auto;
}
.tour-calendar {
    width: 100%;
    user-select: none;
}
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cal-nav-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #fff;
    color: #1f3a68;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.cal-nav-btn:hover:not([disabled]) {
    border-color: #1f3a68;
    background: #eef2f8;
}
.cal-nav-btn[disabled] {
    opacity: .3;
    cursor: default;
}
.cal-nav-label {
    color: #1b2433;
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
    text-align: center;
}
.cal-weekdays span {
    padding: 4px 0;
    color: #8a93a3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}
.cal-empty {
    border: 0;
    background: transparent;
}
.cal-day-btn {
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    background: #eef2f8;
    color: #1f3a68;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.cal-day-btn:hover {
    border-color: #1f3a68;
}
.cal-day-btn:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .35);
    outline-offset: 1px;
}
.cal-day-btn.cal-selected {
    border-color: #1f3a68;
    background: #1f3a68;
    color: #fff;
}
.cal-day-off {
    background: transparent;
    color: #c5ccd8;
}
.cal-day-num {
    font-size: 13px;
    line-height: 1;
}
.cal-day-vagas {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 600;
    opacity: .7;
}
.cal-day-btn.cal-selected .cal-day-vagas {
    opacity: .85;
}
.cal-legenda {
    margin: 14px 0 0;
    color: #8a93a3;
    font-size: 12px;
    text-align: center;
}
@keyframes detAparece {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes detSobe {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Reserva em tela cheia, no celular (no <body>) ──────────────────────── */

.bmo-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    animation: bmoSobe .25s ease;
}
@keyframes bmoSobe {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.bmo-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e3e7ee;
}
.bmo-header-title {
    color: #1b2433;
    font-size: 17px;
    font-weight: 700;
}
.bmo-header-price {
    margin-top: 2px;
    color: #5b6577;
    font-size: 13px;
}
.bmo-header-price strong {
    color: #1b2433;
}
.bmo-body {
    flex: 1;
    min-height: 0;
    padding: 16px 20px 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.bmo-body > .rsv-aviso {
    margin-bottom: 16px;
}
.bmo-section {
    margin-bottom: 20px;
}
.bmo-section-label {
    margin-bottom: 10px;
    color: #5b6577;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.bmo-loading {
    padding: 10px 0;
    color: #8a93a3;
    font-size: 13px;
}
.bmo-body .rsv-total {
    margin: 4px 0 16px;
}
.bmo-body .rsv-visitante {
    margin-top: 0;
}
.bmo-body .tour-terms-wrap {
    margin-top: 0;
}
.bmo-footer {
    display: grid;
    flex: none;
    gap: 10px;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #e3e7ee;
    background: #fff;
}
.bmo-footer:empty {
    display: none;
}

/* ── Outros passeios ────────────────────────────────────────────────────── */

.det-relacionados {
    margin-top: 64px;
}
.det-relacionados .tour-container .tour-title h3 a {
    text-decoration: none;
}

/* ── Barra do celular ───────────────────────────────────────────────────── */

.det-barra {
    display: none;
}

@media (max-width: 991.98px) {
    .det-hero {
        min-height: 300px;
        padding: 36px 0 32px;
    }
    .det-grade {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .det-lateral {
        position: static;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    /* O cartão de reserva dá lugar à barra do pé, que abre a reserva em tela cheia. */
    .rsv-wrap {
        display: none;
    }
    .det-barra {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--site-borda);
        background: #fff;
        box-shadow: 0 -8px 24px rgba(15, 27, 48, .1);
    }
    .det-barra__preco {
        min-width: 0;
        line-height: 1.2;
    }
    .det-barra__rotulo {
        display: block;
        color: var(--site-rotulo);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    .det-barra__valor {
        color: var(--site-tinta);
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -.01em;
    }
    .det-barra__valor s {
        color: var(--site-apagado);
        font-size: 13px;
        font-weight: 500;
    }
    .det-barra .det-bt {
        flex: none;
        min-height: 48px;
        padding: 0 22px;
        font-size: 15px;
    }
    /* O rodapé não fica atrás da barra. */
    body:has(.det-barra) {
        padding-bottom: 72px;
    }
    .det-corpo {
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .det-relacionados {
        margin-top: 48px;
    }
}

@media (max-width: 767.98px) {
    .det-hero {
        min-height: 260px;
        padding: 28px 0 26px;
    }
    .det-trilha {
        margin-bottom: 14px;
    }
    .det-hero__fatos {
        font-size: 14px;
    }
    .det-hero__acoes {
        margin-top: 20px;
    }
    .det-hero__bt,
    .det-hero .service-wishlist {
        height: 42px;
        padding: 0 14px;
        font-size: 13.5px;
    }
    .det-hero .service-wishlist {
        width: 42px;
        padding: 0;
    }
    .det-hero__credito {
        position: static;
        padding: 0 16px;
        text-align: right;
    }
    .det-cartao {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .det-titulo {
        font-size: 18px;
    }
    .det-fatos {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .det-texto {
        font-size: 15px;
    }
    .det-nota {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }
    .det-avaliar__grade {
        grid-template-columns: 1fr;
    }
    .det-mapa #map_content {
        height: 280px;
    }
    .det-local .det-bt {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-datepicker-overlay,
    .tour-datepicker-modal,
    .bmo-overlay {
        animation: none;
    }
    .det-bt,
    .det-bt:hover {
        transform: none;
    }
}

/* O "voltar ao topo" do template fica no canto de baixo: no celular, sobe para cima da barra. */
@media (max-width: 991.98px) {
    body:has(.det-barra) #toTop {
        bottom: 88px;
        margin-right: 16px;
    }
}
