:root {
    --booking-blue: #003580;
    --booking-highlight: #006ce4;
    --booking-yellow: #ffb700;
    --booking-text: #262626;
    --booking-border: #c1c1c1;
}


* {
    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;
}

.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 */
}


.btn {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.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;
}


.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,
.icon-link {
    color: white;
    cursor: pointer;
}

.currency {
    font-size: 14px;
    margin-right: 15px;
}

.icon-link {
    font-size: 16px;
    margin-right: 20px;
}

.nav-links a {
    margin-left: 10px;
}

/* ================================================================== */
/* SEÇÃO HERO / BANNER PRINCIPAL                       */
/* ================================================================== */

.hero-section {
    background-color: var(--booking-blue);
    color: white;
    padding: 30px 0 50px;
    position: relative;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0 5px;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 30px;
}



.sub-nav {
    display: flex;
    gap: 15px;
    border-bottom: 3px solid transparent;
}

.nav-item {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 25px;
    font-size: 15px;
    transition: background-color 0.2s;
}

.nav-item i {
    margin-right: 8px;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
}


.search-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    background-color: var(--booking-yellow);
    border: 3px solid var(--booking-yellow);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 0 10px;
    /* 🟢 CORREÇÃO 1: Definir altura e remover borda nativa do DIV */
    border: none;
    height: 54px; 
    position: relative; 
    z-index: 10;
}


.input-group:not(:last-of-type)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: var(--booking-border);
}

.input-group:focus-within {
    box-shadow: 0 0 0 2px var(--booking-highlight); 
    z-index: 11;
}


.input-group:focus-within::after {
    content: none;
}


.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;
    /* 🟢 CORREÇÃO 5: Altura 100% e padding ajustado para preencher os 54px do pai */
    padding: 18px 0; 
    font-size: 16px;
    width: 100%;
    outline: none; /* Remove o contorno de foco nativo */
    height: 100%; 
    background-color: transparent;
}

/* Input sem ícone */
.date-input.checkout-date .search-input {
    padding-left: 0;
}

.btn-search {
    background-color: var(--booking-highlight);
    color: white;
    font-size: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 0 2px 2px 0;
    /* 🟢 CORREÇÃO 6: Altura fixa para alinhar com os inputs */
    height: 54px; 
    cursor: pointer;
    flex-shrink: 0;
}


.checkbox-container {
    position: relative;
    display: block;
    padding-left: 25px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 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);
}



.content-wrapper {
    background-color: white;
    padding: 40px 0;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* --- 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 {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.benefit-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 14px;
    color: #555;
}

.icon-yellow { color: #ffb700; }
.icon-blue { color: var(--booking-highlight); }
.icon-orange { color: #f26f21; }
.icon-purple { color: #6a3489; }

/* --- Ofertas --- */

.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;
}


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;
}

.links-group a:first-child {
    margin-left: 0;
}



.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; 
    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:not(:disabled) {
    background-color: #e6f2ff;
}

.count-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #aaa;
    color: #aaa;
}


.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;
}

/* ================================================================== */
/* MEDIA QUERIES                            */
/* ================================================================== */

@media screen and (max-width: 768px) {

    /* Header */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo { margin-bottom: 10px; }
    .currency, .icon-link { display: none; }
    .nav-links a { padding: 8px 12px; font-size: 12px; margin-left: 5px; }

    /* Sub Nav */
    .sub-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    .nav-item {
        flex-shrink: 0;
        padding: 8px 12px;
    }

    /* Hero */
    .hero-section h1 {
        font-size: 32px;
        margin-top: 10px;
    }
    .hero-section p {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Search Form (Mobile) */
    .search-form {
        display: flex;
        flex-direction: column;
        border: none;
        background-color: transparent;
        top: 0;
        box-shadow: none;
    }

    .input-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--booking-border);
        border-radius: 5px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: 54px; 
    }
    
    
    .input-group:not(:last-of-type)::after {
        content: none;
    }

    .date-input.checkout-date i {
        display: none;
    }

    .btn-search {
        width: 100%;
        border-radius: 5px;
        height: auto;
        margin-top: 10px;
        padding: 15px 20px;
        font-size: 18px;
    }

    /* Benefícios */
    .benefits-grid {
        flex-direction: column;
    }

    .benefit-item {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    /* Ofertas */
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-content h3 {
        font-size: 24px;
    }

    /* Footer */
    footer {
        padding: 20px 0 40px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .links-group {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
    }

    .footer-links a {
        margin-left: 0;
        margin-top: 10px;
    }
}

.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;
    }
}