/* ==========================================================================
   Custom.css
   Ajustes próprios desta versão PHP/HTML/CSS/JS pura:
   - Substitui o plugin Nice Select por <select> nativo estilizado
   - Substitui o datepicker jQuery por <input type="date"> nativo
   - Pequenos overrides vindos dos arquivos Elementor (post-*.css)
   ========================================================================== */

/* ---- Correção Global de Escala (Zoom) ---- */
@media (min-width: 1200px) {
    body {
        zoom: 0.9;
    }
}

/* ---- Alinhamento justificado do texto ----
   Padrão global de leitura. Elementos que precisam ficar centralizados/à
   esquerda (títulos, botões, badges, menus etc.) já têm suas próprias
   regras de text-align com seletores mais específicos espalhados pelos
   outros arquivos CSS, então continuam funcionando normalmente por cima
   deste padrão (e textos de uma linha só não são afetados visualmente
   pelo justify). ---- */
body {
    text-align: justify;
}

/* ---- Nunca hifenizar palavras na quebra de linha, em nenhuma tela ---- */
body {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* ---- Banner (breadcrumb): título sem limite de largura invadia a imagem do
   barco e era cortado nas laterais em telas largas. Mesmo limite do
   .breadcrumb__text para manter o título sempre dentro da coluna de texto. ---- */
.breadcrumb__title {
    max-width: 656px;
}

/* ---- Fonte de títulos (--font-heading) ---- */
@font-face {
    font-family: 'Gloock';
    src: url('fonts/Gloock,Merriweather/Gloock/Gloock-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Gloock,Merriweather/Merriweather/Merriweather-VariableFont_opsz,wdth,wght.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Gloock,Merriweather/Merriweather/Merriweather-Italic-VariableFont_opsz,wdth,wght.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* ---- Select nativo estilizado (substitui o nice-select) ---- */
.xb-about-input-form .xb-input-field .input select.nice-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='rgba(10,43,80,0.7)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.xb-about-input-form .xb-input-field .input select.nice-select::-ms-expand {
    display: none;
}

/* ---- Select nativo do formulário de contato ---- */
.xb-contact-form .xb-select-field select.nice-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A2B50' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.xb-contact-form .xb-select-field select.nice-select::-ms-expand {
    display: none;
}

/* ---- Select de passeio no formulário do blog ---- */
.comment-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A2B50' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center;
    color: rgba(10, 43, 80, 0.7);
    padding: 0 20px;
    width: 100%;
    transition: .3s;
    border: 1px solid #dcdcdf;
    outline: 1px solid transparent;
    height: 50px;
    font-size: 15px;
}

.comment-form select:focus {
    border-color: var(--color-primary);
}

.comment-form select::-ms-expand {
    display: none;
}

/* ---- Labels flutuantes do formulário do blog sem campos obrigatórios ----
   O core.css esconde a label via textarea:valid, mas sem "required" o campo
   vazio já é válido; a label passa a sumir apenas com foco ou conteúdo. */
.comment-form .form-group textarea:valid + label {
    transform: translateY(-50%);
    opacity: 1;
}

.comment-form .form-group input:not(:placeholder-shown) + label,
.comment-form .form-group textarea:focus + label,
.comment-form .form-group textarea:not(:placeholder-shown) + label {
    transform: translate(15px, -50%);
    opacity: 0;
}

/* ---- Input de data nativo ---- */
.xb-about-input-form .xb-input-field .input input[type="date"] {
    cursor: pointer;
    color-scheme: light;
    padding-right: 0.75rem;
}

/* ---- Overrides vindos do Elementor (post-*.css) ---- */
.offcanvas-sidebar {
    background-image: url("../img/uploads/sidebar_bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sidebar-logo .image {
    width: 14.375rem;
    max-width: 100%;
}

/* ---- Modal de vídeo (substitui o Magnific Popup) ---- */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.is-active {
    display: flex;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 56.25rem;
    z-index: 1;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.video-modal__frame {
    position: relative;
    padding-top: 56.25%;
}

.video-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ícone TripAdvisor ausente no bundle Font Awesome do template */
.fa-tripadvisor:before {
    content: "\f262";
}

/* ---- Ajuste da imagem do barco (Marieta.webp) para ficar mais à esquerda/melhor alinhada ---- */
@media (min-width: 992px) {
    .xb-service-right-content {
        text-align: left;
    }

    .xb-service-right-content .xb-service-boat {
        margin-left: -50px;
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    .xb-service-right-content .xb-service-boat {
        margin-left: -170px;
    }
}

/* ---- Centralizar o bloco "Local de Embarque" (mapa + orientações) em telas largas ---- */
.destination-sec-title {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.destination-sec-title .title {
    flex-grow: 0;
    flex-basis: auto;
    transform: none;
}

.conteudo-detalhes-sherpatour {
    text-align: center;
}

.conteudo-detalhes-sherpatour .xb-sherpatour-servico {
    justify-content: center;
    padding-left: 0;
}

.conteudo-detalhes-sherpatour .xb-sherpatour-servico li {
    width: 100%;
    max-width: 900px;
    padding-left: 0;
    text-align: center;
}

.conteudo-detalhes-sherpatour .xb-sherpatour-servico li::before {
    position: static;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    transform: rotate(45deg);
}

.conteudo-detalhes-sherpatour .xb-sherpatour-detalhes-servico li {
    justify-content: center;
    gap: 8px;
}

.conteudo-detalhes-sherpatour .xb-sherpatour-detalhes-servico li span:first-child {
    width: auto;
}

.conteudo-detalhes-sherpatour .xb-sherpatour-detalhes-servico li span:last-child {
    flex-grow: 0;
    flex-basis: auto;
}

.destination-map-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Preloader do Google Maps ---- */
.map-container {
    position: relative;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
}

.map-preloader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 10px;
    z-index: 1;
    transition: opacity .3s ease;
}

.map-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-preloader .spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid #ddd;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: map-spin .8s linear infinite;
}

@keyframes map-spin {
    to { transform: rotate(360deg); }
}

/* ---- Ajustes de espaçamento e simetria para a seção O Que Oferecemos ---- */
.xb__service_2 .xb-service-item:not(:last-child) {
    margin-bottom: 12px;
}
.xb__service_2 .xb-service-item .xb-item--inner {
    padding: 16px 30px 16px 25px;
}

.more-btn--whatsapp-pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: #25D366;
    color: var(--color-white);
    font-size: 15px;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.more-btn--whatsapp-pill:hover {
    color: var(--color-white);
}

.more-btn--whatsapp-pill span {
    color: currentColor;
}

@media (max-width: 767px) {
    .xb__service_2 .learn-btn {
        width: 100%;
        padding-left: 0;
    }

    .xb__service_2 .more-btn--whatsapp-pill {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Uniformidade visual dos cartões (seções #sobre e #roteiros) ---- */
/* ─── ABOUT / ROTEIROS — Cards redesenhados ───────────────────────────────── */
#sobre .xb-sherpatour-item,
#roteiros .xb-sherpatour-item {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    border: none;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(10, 43, 80, 0.09);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

#sobre .xb-sherpatour-item:hover,
#roteiros .xb-sherpatour-item:hover {
    box-shadow: 0 14px 40px rgba(10, 43, 80, 0.18);
    transform: translateY(-6px);
}

/* Imagem full-bleed */
#sobre .xb-sherpatour-item .xb-item--img,
#roteiros .xb-sherpatour-item .xb-item--img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
    position: relative;
}

#sobre .xb-sherpatour-item .xb-item--img > img,
#roteiros .xb-sherpatour-item .xb-item--img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

#sobre .xb-sherpatour-item:hover .xb-item--img > img,
#roteiros .xb-sherpatour-item:hover .xb-item--img > img {
    transform: scale(1.07);
}

/* Gradiente para legibilidade dos badges */
#sobre .xb-sherpatour-item .xb-item--img::after,
#roteiros .xb-sherpatour-item .xb-item--img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(5, 18, 38, 0.62) 100%);
    pointer-events: none;
}

/* Badges sobrepostos na parte inferior da imagem */
#sobre .xb-item--badges,
#roteiros .xb-item--badges {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

#sobre .xb-badge,
#roteiros .xb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

#sobre .xb-badge img,
#roteiros .xb-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Área de conteúdo */
#sobre .xb-sherpatour-item .xb-item--holder,
#roteiros .xb-sherpatour-item .xb-item--holder {
    padding: 22px 22px 20px;
}

#sobre .xb-sherpatour-item .xb-item--title,
#roteiros .xb-sherpatour-item .xb-item--title {
    font-size: 21px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

#sobre .xb-sherpatour-item .xb-item--content,
#roteiros .xb-sherpatour-item .xb-item--content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(10, 43, 80, 0.62);
}

/* Rodapé do card: preço + botão full-width */
#sobre .xb-sherpatour-item .xb-item--bottom,
#roteiros .xb-sherpatour-item .xb-item--bottom {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* Tabela de preços dentro do card da lancha */
#sobre .xb-sherpatour-item .xb-item--price-table {
    margin-top: 16px;
}

#sobre .xb-sherpatour-item .xb-item--price-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: rgba(10, 43, 80, 0.85);
}

#sobre .xb-sherpatour-item .xb-item--price-table th,
#sobre .xb-sherpatour-item .xb-item--price-table td {
    padding: 6px 8px;
    border: 1px solid rgba(10, 43, 80, 0.12);
    text-align: center;
}

#sobre .xb-sherpatour-item .xb-item--price-table th {
    background: rgba(10, 43, 80, 0.06);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: none;
}

#sobre .xb-sherpatour-item .xb-item--price-table td:first-child {
    font-weight: 700;
    color: var(--color-primary);
}

#sobre .xb-sherpatour-item .xb-item--price-table tbody tr:nth-child(even) {
    background: rgba(10, 43, 80, 0.03);
}

#sobre .xb-sherpatour-item .xb-item--price-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(10, 43, 80, 0.62);
}

#sobre .xb-sherpatour-item .xb-item--bottom a,
#roteiros .xb-sherpatour-item .xb-item--bottom a {
    width: 100%;
    text-align: center;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* ---- Cartões de embarcações com altura uniforme na grade (index e sherpatour) ---- */
.xb-sherpatour-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.xb-sherpatour-item .xb-item--inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.xb-sherpatour-item .xb-item--holder {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.xb-sherpatour-item .xb-item--bottom {
    margin-top: auto;
}

.form-feedback {
    display: none;
    color: #1da851;
    font-weight: 600;
}

.form-feedback.is-visible {
    display: block;
}

/* ---- Midia fluida e Grid Responsivo para Embarcacoes (Home e pagina Sherpa Tour) ---- */
img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.xb-embarcacoes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.875rem;
    align-items: stretch;
}

.xb-embarcacoes-grid > .col-lg-4.col-md-6 {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    flex: initial;
}

.xb-embarcacoes-grid .xb-sherpatour-item .xb-item--img {
    width: 100%;
}

@media (min-width: 576px) {
    .xb-embarcacoes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .xb-embarcacoes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =====================================================================
   FOOTER REDESIGN
   ===================================================================== */

.ft {
    background: #0a2b50;
    color: rgba(255, 255, 255, 0.72);
}

/* -- Faixa CTA -- */
.ft__cta {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.ft__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ft__cta-text h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.ft__cta-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.ft__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.ft__cta-btn i {
    font-size: 20px;
}

.ft__cta-btn:hover,
.ft__cta-btn:focus {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px);
}

/* -- Conteúdo principal -- */
.ft__main {
    padding: 72px 0 56px;
}

.ft__logo {
    display: block;
    max-width: 150px;
    margin-bottom: 20px;
}

.ft__tagline {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 28px;
    max-width: 340px;
}

/* -- Ícones sociais -- */
.ft__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ft__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.ft__social a:hover,
.ft__social a:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    transform: translateY(-2px);
}

.ft__social-icon {
    width: 18px;
    height: auto;
}

/* -- Títulos de coluna -- */
.ft__col-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* -- Lista de navegação -- */
.ft__nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.ft__nav li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.25s;
}

.ft__nav li a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: background 0.25s;
}

.ft__nav li a:hover,
.ft__nav li a:focus {
    color: #fff;
}

.ft__nav li a:hover::before {
    background: #fff;
}

/* -- Lista de contato -- */
.ft__contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.ft__contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ft__contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.ft__contact-info {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

.ft__contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

.ft__contact-info a:hover,
.ft__contact-info a:focus {
    color: #fff;
}

/* -- Divisor -- */
.ft__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* -- Barra inferior -- */
.ft__bottom {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ft__bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.ft__bottom p a {
    color: inherit;
    text-decoration: none;
}

.ft__bottom-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.ft__bottom-links li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s;
}

.ft__bottom-links li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* -- Responsivo -- */
@media (max-width: 767px) {
    .ft__cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .ft__cta-text h4 {
        font-size: 16px;
    }

    .ft__main {
        padding: 48px 0 40px;
    }

    .ft__tagline {
        max-width: 100%;
    }

    .ft__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---- Refatoração do Menu para Usabilidade em Telas de Toque ---- */

/* Garante que o botão do menu (hamburger) tenha uma área de toque mínima adequada */
@media (max-width: 991px) {
    .xb-header-menu-toggle .xb-menu-toggle {
        min-width: 3rem;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Aumenta a área de toque dos links no menu mobile */
    .xb-menu-primary .menu-item a {
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 16px; /* Previne zoom automático em formulários no iOS */
    }

    /* Oculta o botão da offcanvas sidebar, pois é redundante no mobile */
    .offcanvas-sidebar-btn {
        display: none;
    }

    /* Oculta o formulário de busca não funcional do menu mobile */
    .xb-header-mobile-search {
        display: none;
    }

    /* Adiciona o link de "Agendas" que estava faltando no mobile */
    .xb-menu-primary .menu-item.mobile-only-agendas {
        display: block;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* ---- Contato: cards de informação ---- */
.contact-info-grid > [class*="col-"] {
    justify-content: center;
}

.contact-info-grid .xb-contact-info-item {
    height: 100%;
    align-items: flex-start;
}

.contact-info-grid .xb-item--holder {
    flex: 1;
    min-width: 0;
}

.contact-info-grid .xb-item--text {
    display: block;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (min-width: 1200px) {
    .contact-info-grid .xb-contact-info-item {
        padding: 34px 24px;
    }

    .contact-info-grid .xb-item--title {
        font-size: 22px;
    }

    .contact-info-grid .xb-item--text {
        font-size: 17px;
    }
}

@media (max-width: 575px) {
    .contact-info-grid .xb-contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---- Hero: imagem de fundo dedicada para celular (recorte vertical) ----
   Cada slide tem duas divs .hero-slider-bg (desktop/mobile), cada uma com
   sua própria imagem; aqui alternamos qual delas fica visível conforme a
   largura da tela. ---- */
.hero-style .hero-slider-bg--mobile {
    display: none;
}

@media (max-width: 767px) {
    .hero-style .hero-slider-bg--desktop {
        display: none;
    }

    .hero-style .hero-slider-bg--mobile {
        display: block;
    }
}

/* ---- Hero: apenas 2 slides — miniaturas ocupam metade cada (tema original
   previa 3 e fixava 33.333% via CSS; o JS já usa slidesPerView: 2, isto
   evita o flash com o valor antigo antes do Swiper inicializar) ---- */
.hero-style .hero-swiper-inner .hero-slider-nav .hero-slide-item {
    width: 50%;
}

/* ---- Seletor de idioma (header) ----
   Apenas visual por enquanto: o conteúdo do site ainda existe somente em
   pt-BR, então EN/ES ficam desabilitados com aviso "Em breve" em vez de
   fingir uma troca de idioma que não existe. ---- */
.header-lang {
    position: relative;
}

.header-lang__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.header-lang__toggle:hover,
.header-lang__toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.header-lang__flag {
    font-size: 16px;
    line-height: 1;
}

.header-lang__toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

.header-lang.is-open .header-lang__toggle i {
    transform: rotate(180deg);
}

.header-lang__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s;
}

.header-lang.is-open .header-lang__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-lang__menu li a,
.header-lang__menu li span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    text-decoration: none;
}

.header-lang__menu li.is-active a {
    background: rgba(10, 43, 80, 0.08);
}

.header-lang__menu li.is-active a:hover {
    background: rgba(10, 43, 80, 0.08);
}

.header-lang__menu li:not(.is-active) a:hover {
    background: rgba(10, 43, 80, 0.06);
}

.header-lang__menu li.is-disabled span {
    color: rgba(10, 43, 80, 0.4);
    cursor: not-allowed;
}

.header-lang__menu li.is-disabled em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(10, 43, 80, 0.35);
}

/* ---- Seletor de idioma (menu mobile offcanvas) ---- */
.xb-header-mobile-lang {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.xb-header-mobile-lang__label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(10, 43, 80, 0.5);
}

.xb-header-mobile-lang__options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.xb-header-mobile-lang__options span,
.xb-header-mobile-lang__options a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(10, 43, 80, 0.06);
    color: var(--color-heading);
    text-decoration: none;
}

.xb-header-mobile-lang__options span.is-active,
.xb-header-mobile-lang__options a.is-active {
    background: rgba(10, 43, 80, 0.12);
}

.xb-header-mobile-lang__options span.is-disabled,
.xb-header-mobile-lang__options a.is-disabled {
    color: rgba(10, 43, 80, 0.4);
    cursor: not-allowed;
}

.xb-header-mobile-lang__options span.is-disabled em,
.xb-header-mobile-lang__options a.is-disabled em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: rgba(10, 43, 80, 0.35);
}

/* ---- Selo do TripAdvisor acima do título "Prêmios TripAdvisor" ---- */
.tripadvisor-awards__logo {
    justify-content: center;
}

.tripadvisor-awards__logo img {
    width: 48px;
    height: auto;
}

.tripadvisor-awards-slider .swiper-wrapper {
    transition-timing-function: linear;
}

/* O <a> do card vira filho único (inline) de .swiper-slide, que o Swiper
   sempre move via transform: translate3d(). Um inline contendo um bloco
   (.xb-funfact-item) nessa condição faz o Chrome/Safari, no primeiro paint
   após reload, calcular errado os limites da camada composta e cortar a
   borda superior do card. Forçar bloco resolve, pois iguala a estrutura
   dos demais sliders do site (que não têm esse <a> intermediário). */
.tripadvisor-awards-slider .swiper-slide > a {
    display: block;
    height: 100%;
}

/* A correção acima resolve a estrutura, mas o carrossel nunca para (autoplay
   contínuo em .swiper-wrapper), e em telas de celular o Chrome/Safari
   recalculam periodicamente (e errado) os limites da camada composta do
   card durante essa animação — o corte pode aparecer em qualquer borda
   (topo, direita, baixo), não só no primeiro paint. Promover o card para
   sua própria camada via translateZ(0) faz o navegador calcular a borda
   arredondada de forma independente do transform contínuo do ancestral. */
.tripadvisor-awards-slider .xb-funfact-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* main.css define ".sec-title--two .sub-title img { max-width: 20% }" no
   mobile, que tem especificidade maior que a regra acima e deixava o selo
   minúsculo; sobrescrevemos com um seletor mais específico. */
@media (max-width: 767px) {
    .sec-title--two .sub-title.tripadvisor-awards__logo img {
        max-width: none;
        width: 64px;
    }
}

/* ---- Cartões do funfact (Realizados/Frota/Prêmios TripAdvisor): mesmo
   tamanho e texto centralizado, independente da proporção da imagem ---- */
.xb-funfact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
    background: #fff;
    border-color: #1a416c;
    color: #1a416c;
}

.xb-funfact-item .xb-item--sub-title,
.xb-funfact-item .xb-item--number,
.xb-funfact-item .suffix {
    color: #1a416c;
}

@media (min-width: 768px) {
    .xb-funfact-item .xb-item--img {
        height: 240px;
    }

    .xb-funfact-item .xb-item--img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .tripadvisor-awards-slider .xb-funfact-item .xb-item--img {
        margin: 18px auto 16px !important;
    }
}

/* ---- Diferenciais (Por que escolher a Sherpa Tour): o título "5 anos
   consecutivos de prêmio TripAdvisor" é longo e quebra em várias linhas
   na coluna estreita do card; herdando o justify global (body), as linhas
   quebradas ficam com espaçamento enorme entre as palavras. Título não
   deve justificar. ---- */
.yr-feature-item-two .xb-item--title {
    text-align: left;
}

/* ---- Galeria de fotos e vídeos da lancha (detalhes-sherpatour.php) ---- */
.boat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.boat-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.boat-gallery__item--hero {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.boat-gallery__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--easing);
}

.boat-gallery__item--autoplay {
    position: relative;
    cursor: default;
    aspect-ratio: 4 / 3;
}

.boat-gallery__backdrop {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.7);
}

.boat-gallery__video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.boat-gallery__item--video .boat-gallery__thumb {
    filter: brightness(0.82);
}

.boat-gallery__item:hover .boat-gallery__thumb,
.boat-gallery__item:focus-visible .boat-gallery__thumb {
    transform: scale(1.05);
}

.boat-gallery__item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.boat-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary), 0 6px 16px rgba(10, 43, 80, 0.35);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--easing);
}

.boat-gallery__play svg {
    margin-left: 3px;
}

.boat-gallery__item--video:hover .boat-gallery__play,
.boat-gallery__item--video:focus-visible .boat-gallery__play {
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 575px) {
    .boat-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .boat-gallery__item--hero {
        aspect-ratio: 4 / 3;
    }

    .boat-gallery__item--autoplay {
        aspect-ratio: 9 / 16;
        max-height: 75vh;
        margin-left: auto;
        margin-right: auto;
    }

    .boat-gallery__item--autoplay .boat-gallery__backdrop {
        display: none;
    }

    .boat-gallery__item--autoplay .boat-gallery__video {
        object-fit: cover;
    }
}

/* ---- Voltar à home para escolher outra lancha (detalhes-sherpatour.php) ---- */
.boat-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-heading);
    transition: color 0.3s;
}

.boat-back:hover,
.boat-back:focus-visible {
    color: var(--color-primary);
}

.boat-back__arrow {
    display: inline-flex;
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.boat-back:hover .boat-back__arrow,
.boat-back:focus-visible .boat-back__arrow {
    transform: rotate(180deg) translateX(4px);
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 575px) {
    .details-actions {
        flex-direction: column;
        gap: 12px;
    }

    .details-actions .sherpatour-btn {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
    }
}

/* ---- Lightbox de mídia (fotos e vídeos ampliados) ---- */
.media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.media-lightbox.is-active {
    display: flex;
}

.media-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.media-lightbox__stage {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1100px;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox__image,
.media-lightbox__video {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 10px;
}

.media-lightbox__video {
    display: none;
    width: auto;
}

.media-lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .3s;
}

.media-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.media-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .3s;
}

.media-lightbox__nav:hover {
    background: var(--color-secondary);
}

.media-lightbox__nav--prev {
    left: 16px;
}

.media-lightbox__nav--next {
    right: 16px;
}

.media-lightbox__nav--prev svg {
    transform: scaleX(-1);
}

.media-lightbox__close:focus-visible,
.media-lightbox__nav:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

.media-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 1;
    margin: 0;
    padding: 6px 16px;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .media-lightbox__nav {
        width: 36px;
        height: 36px;
    }

    .media-lightbox__nav--prev {
        left: 8px;
    }

    .media-lightbox__nav--next {
        right: 8px;
    }

    .media-lightbox__close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boat-gallery__thumb,
    .boat-gallery__play,
    .media-lightbox__nav,
    .media-lightbox__close {
        transition: none;
    }
}
