/* Paleta de Cores e Reset Básico */
:root {
    --booking-blue: #003580; 
    --booking-highlight: #006ce4; 
    --booking-yellow: #ffb700;
    --booking-text: #262626;
    --booking-border: #c1c1c1;
}

.logo {
    color: white; 
    font-weight: bold;
    font-size: 24px; / Ajuste o tamanho como preferir /
}

.logo span {
    color: #FFD700; / Este é o amarelo/dourado similar ao da imagem */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: var(--booking-text);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ESTILOS GERAIS DE BOTÕES E LINKS --- */
.btn {
    padding: 10px 15px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--booking-highlight);
    color: white;
}
.btn-secondary {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}
.btn-ghost {
    background: none;
    color: white;
}

/* --- 1. HEADER E NAV TOP --- */
.main-header {
    background-color: var(--booking-blue);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.currency {
    color: white;
    font-size: 14px;
    margin-right: 15px;
    cursor: pointer;
}

.icon-link {
    color: white;
    font-size: 16px;
    margin-right: 20px;
    cursor: pointer;
}

.nav-links a {
    margin-left: 10px;
}

/* --- 2. SEÇÃO PRINCIPAL (HERO) --- */
.hero-section {
    background-color: var(--booking-blue);
    padding: 30px 0 50px;
    color: white;
    position: relative; /* Para a barra de busca flutuar sobre o azul */
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 5px;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* SUB NAV (Abas de Serviço) */
.sub-nav {
    display: flex;
    gap: 15px;
    border-bottom: 3px solid transparent;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 25px;
    transition: background-color 0.2s;
    font-size: 15px;
}

.nav-item i {
    margin-right: 8px;
}

.nav-item.active {
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* FORMULÁRIO DE PESQUISA */
.search-form {
    display: flex;
    background-color: var(--booking-yellow); 
    border: 3px solid var(--booking-yellow);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    top: 20px; /* Faz a barra subir um pouco sobre a seção */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 0 10px;
    border-right: 1px solid var(--booking-border);
    flex-grow: 1;
}

.input-group:last-of-type {
    border-right: none;
}

.search-form i {
    color: var(--booking-highlight);
    font-size: 20px;
    margin-right: 10px;
}

.search-input {
    border: none;
    padding: 15px 0;
    font-size: 16px;
    width: 100%;
    outline: none;
}

/* Input de data específico para remover o ícone */
.date-input.checkout-date .search-input {
    /* Não tem ícone, mas é para manter o padding alinhado */
    padding-left: 0;
}

.btn-search {
    flex-shrink: 0;
    background-color: var(--booking-highlight);
    color: white;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0; 
    border: none;
    height: 54px;
}

/* CHECKBOX (Estilos da checkbox) */
.checkbox-container {
    /* ... (CSS da Checkbox do exemplo anterior) ... */
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    margin-left: 5px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--booking-highlight);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
/* FIM CHECKBOX */

/* --- 3. SEÇÃO DE CONTEÚDO --- */
.content-wrapper {
    background-color: white;
    padding-top: 40px;
    padding-bottom: 40px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* SEÇÃO DE BENEFÍCIOS */
.benefits-section h2, .offers-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.benefits-grid {
    display: flex;
    gap: 20px;
    text-align: left;
}

.benefit-item {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.benefit-item i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.benefit-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 14px;
    color: #555;
}

/* Cores dos Ícones */
.icon-yellow { color: #ffb700; }
.icon-blue { color: var(--booking-highlight); }
.icon-orange { color: #f26f21; }
.icon-purple { color: #6a3489; }


/* SEÇÃO DE OFERTAS (CARDS) */
.offers-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.offers-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.offer-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-card {
    grid-column: span 1; 
    background: url('https://picsum.photos/1280/300?random=4') center/cover no-repeat;
    color: white;
    height: 300px;
    display: flex;
    align-items: flex-end;
}

.offer-content {
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 15px;
    width: 100%;
}

.badge {
    background-color: #ec3b43; 
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.offer-content h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.offer-content p {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
}

.mini-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mini-card h4 {
    padding: 10px 15px 5px;
    font-size: 18px;
    font-weight: bold;
}

.mini-card p {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* --- 4. FOOTER --- */
footer {
    background-color: var(--booking-blue);
    padding: 20px 0;
    color: white;
    font-size: 14px;
    border-top: 1px solid #ddd;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.2s;
}

.footer-links a:first-child {
    margin-left: 0;
}

/* --- MODAL (POPUP) ESTILIZAÇÃO --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% do topo e centralizado */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.counter {
    display: flex;
    align-items: center;
}

.count-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--booking-highlight);
    color: var(--booking-highlight);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.count-btn:hover {
    background-color: #e6f2ff;
}

.counter span {
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
    width: 15px;
    text-align: center;
}

#modal-done {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
}

/* ================================================================== */
/* 5. MEDIA QUERIES (Responsividade para Mobile) */
/* ================================================================== */

/* Define o breakpoint principal para tablets e celulares (max-width: 768px) */
@media screen and (max-width: 768px) {
    
    /* --- 1. HEADER E NAV TOP --- */
    .header-content {
        flex-direction: column; /* Empilha logo e links */
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-links {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .currency, .icon-link {
        display: none; /* Oculta ícones e moeda para economizar espaço */
    }

    .nav-links .btn {
        padding: 8px 12px;
        font-size: 12px;
        margin-left: 5px;
    }

    /* SUB NAV (Abas de Serviço) */
    .sub-nav {
        overflow-x: auto; /* Permite rolar as abas horizontalmente */
        white-space: nowrap; /* Impede quebras de linha nas abas */
        padding-bottom: 10px;
    }
    
    .nav-item {
        flex-shrink: 0; /* Impede que os itens encolham demais */
        padding: 8px 12px;
    }

    /* --- 2. SEÇÃO PRINCIPAL (HERO) --- */
    .hero-section h1 {
        font-size: 32px; /* Reduz o tamanho do título */
        margin-top: 10px;
    }

    .hero-section p {
        font-size: 18px; /* Reduz o tamanho do subtítulo */
        margin-bottom: 15px;
    }

    /* FORMULÁRIO DE PESQUISA: Transição crucial para Mobile */
    .search-form {
        flex-direction: column; /* EMPILHA TODOS OS CAMPOS */
        border: none; /* Remove a borda única amarela */
        background-color: transparent; /* Remove o fundo amarelo */
        top: 0; /* Remove o deslocamento para cima */
        box-shadow: none;
    }

    .input-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--booking-border); /* Adiciona separação entre inputs */
        border-radius: 5px; /* Arredonda as bordas */
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra para destaque */
    }

    /* Remove o ícone de calendário do check-out para limpar o visual */
    .date-input.checkout-date i {
        display: none;
    }
    
    /* Corrige a borda do último item empilhado */
    .input-group:last-of-type {
        border-bottom: 1px solid var(--booking-border);
    }
    
    .btn-search {
        width: 100%;
        border-radius: 5px; /* Arredonda o botão de busca */
        height: auto; /* Permite que o padding defina a altura */
        margin-top: 10px;
        padding: 15px 20px;
        font-size: 18px;
    }

    /* --- 3. SEÇÃO DE CONTEÚDO --- */
    
    /* BENEFÍCIOS */
    .benefits-grid {
        flex-direction: column; /* Empilha os benefícios verticalmente */
    }

    .benefit-item {
        padding: 10px 0;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .benefit-item:last-child {
        border-bottom: none;
    }
    
    /* OFERTAS */
    .offers-grid {
        grid-template-columns: 1fr; /* Coloca todas as ofertas em uma única coluna */
    }

    .offer-content h3 {
        font-size: 24px; /* Reduz título do banner */
    }

    .offer-content p {
        font-size: 16px;
    }

    /* --- 4. FOOTER --- */
    footer {
        padding: 20px 0 40px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links a {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .links-group {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
    }
}

/* Ajuste específico para telas muito estreitas (opcional, mas recomendado) */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 90%;
        margin: 5% auto; /* Move o modal mais para cima */
    }
}

/* ================================================================== */
/* 6. ESTILOS DO NOVO SELETOR DE IDIOMA (BRL) */
/* ================================================================== */

/* Container principal do seletor (substitui o span.currency original) */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px; /* Adiciona padding para área de clique */
    border-radius: 2px;
    margin-right: 5px; /* Ajusta o espaçamento em relação ao Cadastre-se */
    transition: background-color 0.2s;
    user-select: none; /* Impede seleção de texto */
}

/* Efeito hover suave na área do BRL */
.language-selector:hover, .language-selector.active {
    background-color: rgba(255, 255, 255, 0.15); 
}

/* O span da moeda/idioma, herdando o estilo original (branco, 14px) */
.language-selector .currency {
    color: white;
    font-size: 14px;
    margin-right: 5px; /* Espaço entre BRL e a seta */
    cursor: pointer;
}

/* Estilo da seta (dropdown) */
.dropdown-arrow {
    font-size: 0.7rem;
    color: white;
    transition: transform 0.3s ease;
}

/* Rotação da seta quando o menu está ativo */
.language-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Lista do menu suspenso */
.language-dropdown-menu {
    position: absolute;
    top: 100%; /* Posiciona abaixo do seletor */
    right: 0;
    
    /* Estilização */
    background-color: #fff; 
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0; /* Pequeno espaçamento abaixo do header */
    min-width: 140px;
    z-index: 1000;
    border-radius: 4px;
    
    /* Oculta o menu inicialmente */
    display: none; 
}

/* Mostra o menu quando a classe 'active' está presente */
.language-selector.active .language-dropdown-menu {
    display: block;
}

/* Estilo dos links de idioma */
.language-dropdown-menu li a {
    text-decoration: none;
    color: var(--booking-text); /* Cor de texto padrão do seu site (#262626) */
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

.language-dropdown-menu li a:hover {
    background-color: #f0f0f0; /* Realce suave ao passar o mouse */
    color: var(--booking-highlight);
}

/* Ajuste de responsividade para Mobile */
@media screen and (max-width: 768px) {
    /* Mostra o seletor BRL, pois antes você o ocultava */
    .language-selector {
        display: flex; 
        margin-right: 0;
    }
    
    /* Move os botões de login/cadastro um pouco para a direita para dar espaço */
    .nav-links {
        justify-content: flex-end; 
    }
    
    /* Oculta o ícone antigo se ele ainda estivesse no HTML */
    .icon-link {
        display: none; 
    }
    
    /* Garante que o menu suspenso não saia da tela em dispositivos estreitos */
    .language-dropdown-menu {
        right: 0; 
        left: auto;
    }
}