/* ------------------- */
/*  Variáveis e Reset  */
/* ------------------- */
:root {
    --primary-color: #384F3D;
    --secondary-color: #6C816F;
    --tertiary-color: #D6C289;
    --text-light-color: #F8F8F8;
    --text-dark-color: #333;
    --background-light: #f7f5f2;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- */
/*       Header        */
/* ------------------- */
header {
    color: var(--text-light-color);
    padding: 20px 20px 5vh; /* Padding ajustado para a nova abordagem */
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    flex-direction: column; /* Garante que o conteúdo e a seta fiquem um abaixo do outro */
    min-height: 85vh;
}

.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden; /* Movido para cá para conter a animação sem afetar outros elementos */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenburns 20s ease-out infinite alternate;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    width: 100%;
    margin-bottom: 5vh; /* Espaço da parte inferior */
}

.logo {
    max-width: 150px; /* Tamanho do logo diminuído */
    border-radius: 0; /* Remove as bordas arredondadas */
}

header h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-subtitle {
    font-size: 1.3rem;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* Estilo para a seta de rolagem */
.scroll-down-arrow {
    display: inline-block; /* Garante que a transformação da animação seja aplicada corretamente */
    /* Removido position: absolute para que a seta siga o fluxo normal da página */
    z-index: 3;
    color: var(--text-light-color);
    font-size: 1.8rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-top: 40px; /* Adiciona espaço entre o formulário e a seta */
}

.scroll-down-arrow:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

@keyframes kenburns {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1) translate(0, 0); }
}

/* ------------------- */
/*      Navegação      */
/* ------------------- */
.top-bar {
    /* position: absolute; -> REMOVIDO para que a barra empurre o conteúdo para baixo */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza o conteúdo principal (logo) */
    align-items: flex-start; /* Alinha os itens no topo */
    z-index: 4;
    transition: background-color 0.3s ease;
}

.top-bar-right {
    position: absolute;
    right: 40px;
    top: 20px; /* Alinha com o padding do top-bar */
}

nav {
    list-style: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-light-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--tertiary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--tertiary-color);
}

.hamburger-btn {
    display: none; /* Escondido por padrão */
    background: none;
    border: none;
    color: var(--text-light-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Começa fora da tela */
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-link {
    color: var(--text-light-color);
    text-decoration: none;
    font-size: 2rem;
    margin: 20px 0;
    font-family: var(--font-secondary);
}

/* ------------------- */
/*      Formulário     */
/* ------------------- */
.booking-form {
    background-color: rgba(0, 0, 0, 0.25); /* Fundo transparente */
    backdrop-filter: blur(5px); /* Efeito de desfoque */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    gap: 15px;
}

.booking-form .input-group {
    display: flex;
    flex-direction: column;
    flex: 1; /* Adicionado para permitir que o grupo encolha e se ajuste */
    max-width: 270px; /* Define uma largura máxima para criar espaçamento */
    text-align: left;
}

.booking-form label {
    color: var(--text-light-color); /* Texto claro para contraste */
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.booking-form input {
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark-color);
    width: 100%; /* Garante que o input ocupe todo o espaço do seu container */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form input:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 2px rgba(214, 194, 137, 0.5);
}

.booking-form button, .main-cta-btn {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    height: 48px; /* Garante a mesma altura dos inputs */
    align-self: flex-end; /* Alinha com a base dos inputs */
    text-decoration: none;
    text-align: center;
    font-weight: bold;
}

.booking-form button:hover, .main-cta-btn:hover {
    background-color: var(--secondary-color);
}

/* ------------------- */
/*       Seções        */
/* ------------------- */
section {
    padding: 80px 0;
}

section h2 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #666;
}

/* Grid de Cabanas e Atrações */
.cabanas-grid, .attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card de Cabana */
.cabana-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.cabana-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.cabana-card .image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.cabana-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cabana-card:hover .image-container img {
    transform: scale(1.05);
}

.cabana-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cabana-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cabana-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    font-size: 0.9rem;
}

.features-list li {
    display: flex;
    align-items: center;
}

.features-list li i {
    margin-right: 8px;
    color: var(--secondary-color);
    width: 16px;
}

.main-cta-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
}

/* Card de Atração */
.attraction-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attraction-card .attraction-info {
    padding: 20px;
    text-align: center;
}

.attraction-card h4 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Botão TripAdvisor e Contato */
.text-center-container, .contact-button-container {
    text-align: center;
    margin-top: 40px;
}

.tripadvisor-button {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tripadvisor-button:hover {
    background-color: #333;
}

.tripadvisor-button img {
    height: 24px;
    margin-left: 8px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: var(--text-light-color);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-link i {
    margin-right: 10px;
}

/* ------------------- */
/*        Footer       */
/* ------------------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

footer {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    text-align: center;
    padding: 40px 20px;
}

footer .social-media {
    margin-bottom: 15px;
}

footer .social-media a {
    color: var(--text-light-color);
    font-size: 1.8rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: var(--tertiary-color);
}

/* ------------------- */
/*    Responsividade   */
/* ------------------- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .header-subtitle {
        font-size: 1.1rem;
    }
    .desktop-nav {
        display: none; /* Esconde o menu desktop */
    }
    .hamburger-btn {
        display: block; /* Mostra o botão sanduíche */
    }
    .top-bar-right {
        right: 20px;
    }
    .top-bar {
        padding: 15px 20px;
    }
    .booking-form {
        flex-direction: column;
        align-items: stretch;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .booking-form button {
        width: auto;
        align-self: center;
    }
    .header-content {
        max-width: 90%;
        margin-bottom: 2vh;
    }
    section h2 {
        font-size: 2.2rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px; /* Posição padrão no canto inferior */
        right: 20px;
    }

    /* Ajuste fino para os campos de data no iOS e outros celulares */
    .booking-form input[type="date"] {
        padding: 10px; /* Diminui o padding interno */
        font-size: 0.9rem; /* Diminui o tamanho da fonte */
    }
    .booking-form button {
        padding: 10px 20px; /* Diminui o padding do botão */
        height: auto; /* Permite que a altura se ajuste ao conteúdo */
        margin-top: 10px; /* Adiciona espaçamento acima do botão */
    }
}

@media (min-width: 769px) {
    .header-content {
        margin-top: 80px; /* Adiciona espaçamento entre o logo e o conteúdo no desktop */
    }
}

/* =============================================
   Estilos para os Novos Cards de Cabanas (Home)
   ============================================= */

.cabana-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 400px; /* Altura fixa para todos os cards */
}

.cabana-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cabana-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cabana-card:hover img {
    transform: scale(1.05);
}

.cabana-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente para escurecer a parte inferior e garantir legibilidade do texto */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end; /* Alinha o texto na parte de baixo */
    justify-content: center; /* Centraliza o texto horizontalmente */
    padding: 25px;
    box-sizing: border-box;
}

.cabana-card h3 {
    color: white;
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.cabana-card:hover h3 {
    transform: translateY(-5px);
}
