/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --cor-principal: #0284c7; /* Azul Mar */
    --cor-secundaria: #f59e0b; /* Amarelo Areia/Sol */
    --cor-escura: #1e293b;
    --cor-clara: #f8fafc;
    --cor-texto: #475569;
}

body {
    color: var(--cor-texto);
    background-color: #e0f2fe; /* Cor azul-claro que aparecerá nas laterais no desktop */
    line-height: 1.6;
    overflow-x: hidden; /* IMPEDE QUALQUER VAZAMENTO DE SUBPIXEL NA TELA */
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.secao {
    padding: 80px 0;
}

.bg-alternativo {
    background-color: var(--cor-clara);
}

.titulo-secao {
    text-align: center;
    font-size: 2.5rem;
    color: var(--cor-escura);
    margin-bottom: 40px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
}


ul {
    list-style: none;
}

/* CABEÇALHO */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-principal);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--cor-escura);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-principal);
}

.btn-nav {
    background-color: var(--cor-principal);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 25px;
}

.btn-nav:hover {
    background-color: #0369a1;
}

/* BANNER PRINCIPAL COM IMAGEM ESMAECIDA */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('./banner_principal.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-blend-mode: overlay;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 35px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ESTILO DO BOTÃO DO BANNER - ORGANIZADO NO LUGAR CORRETO */
.btn-principal {
    background-color: var(--cor-secundaria); /* Amarelo Sol do :root */
    color: var(--cor-escura);                /* Texto escuro formal */
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;                      /* Cantos retos e elegantes */
    font-size: 1.05rem;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-principal:hover {
    transform: scale(1.04);
    background-color: #d97706;               /* Tom dourado mais profundo */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: var(--cor-escura);
}


/* SOBRE */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reduzido de 50px para aproximar o texto da imagem */
    align-items: start; /* Alinha o texto pelo topo da imagem, evitando esticar o espaço */
}


.sobre-texto h2 {
    font-size: 2.2rem; /* Reduzido levemente para melhor equilíbrio visual */
    color: var(--cor-escura);
    margin-bottom: 12px; /* Margem inferior reduzida para aproximar o título do parágrafo */
    line-height: 1.3; /* Ajusta o espaçamento entre as linhas do próprio título */
}

/* Ajusta o espaçamento dos parágrafos internos */
.sobre-texto p {
    margin-bottom: 14px; /* Define um espaçamento curto e controlado entre os parágrafos */
}

.destaques-rapidos {
    display: flex;
    gap: 15px; /* Reduzido de 20px para agrupar melhor as tags */
    margin-top: 25px; /* Distância controlada após o texto */
    flex-wrap: wrap;
}

.destaques-rapidos span {
    background-color: #e0f2fe;
    color: var(--cor-principal);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.destaques-rapidos i {
    margin-right: 5px;
}

.sobre-imagem img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* COMODIDADES */
.comodidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.comodidade-item {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.comodidade-item:hover {
    transform: translateY(-5px);
}

.comodidade-item i {
    font-size: 2.5rem;
    color: var(--cor-principal);
    margin-bottom: 15px;
}

.comodidade-item p {
    font-weight: 500;
    color: var(--cor-escura);
}

/* CONFIGURAÇÃO DA GALERIA DE IMAGENS ASSETRICA */
.galeria-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
}

/* Container de cada foto */
.galeria-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* Comportamento da imagem interna */
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* Legenda escondida por padrão */
.legenda-foto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.galeria-item:hover img {
    transform: scale(1.06);
}

.galeria-item:hover .legenda-foto {
    opacity: 1;
    transform: translateY(0);
}

/* AS DUAS REGRAS ABAIXO ESTAVAM FALTANDO NO SEU CSS E RESOLVEM O SEU PROBLEMA */
@media (min-width: 992px) {
    .destaque-horizontal {
        grid-column: span 2; /* Faz a foto da sala esticar horizontalmente */
    }
    .destaque-vertical {
        grid-row: span 2;    /* Faz a foto do caminho da praia esticar verticalmente */
        height: 100%;
    }
}

/* SHADOWBOX PURA APENAS COM HTML E CSS (:TARGET) */
.shadowbox-modal {
    display: none; /* Oculta os modais por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Fundo escuro azulado */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* O truque do CSS: Quando o ID da imagem é ativado na URL, o modal surge */
.shadowbox-modal:target {
    display: flex;
}

.shadowbox-conteudo {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shadowbox-fechar {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.shadowbox-fechar:hover {
    color: var(--cor-secundaria);
}

/* RESPONSIVIDADE CORRIGIDA (CELULAR) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.0rem; /* Garante que o título caiba em qualquer celular */
    }
    .hero-content p {
        font-size: 1.1rem;  /* Ajusta o subtítulo no celular */
        padding: 0 15px;
    }
    .sobre-grid {
        grid-template-columns: 1fr; /* Quebra o layout em uma única coluna */
        gap: 30px;
    }
    .destaques-rapidos {
        justify-content: center; /* Centraliza as etiquetas no celular */
    }
    .galeria-grade {
        grid-auto-rows: 180px; /* Evita que as fotos fiquem muito esticadas verticalmente */
        gap: 10px;
    }
    .mapa-container-estatico {
        height: 220px; /* Reduz a altura do mapa para não ocupar a tela inteira */
    }
}



/* CONTATO */
.cta-container {
    text-align: center;
    max-width: 700px;
}

.cta-container h2 {
    font-size: 2.5rem;
    color: var(--cor-escura);
    margin-bottom: 15px;
}

.cta-container p {
    margin-bottom: 35px;
}

.canal-principal {
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
}

.canal-principal .btn-wpp {
    font-size: 1.25rem;
    padding: 18px 40px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.subsecao-plataformas {
    border-top: 1px solid #e2e8f0;
    padding-top: 35px;
    margin-top: 20px;
}

.texto-alternativo {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px !important;
}

.botoes-plataformas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.botoes-plataformas .btn-plataforma {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-wpp {
    background-color: #25d366;
    color: #ffffff;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn-wpp:hover {
    background-color: #128c7e;
}

.btn-plataforma {
    background-color: #ffffff;
    color: var(--cor-escura);
    border: 2px solid #cbd5e1;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-plataforma:hover {
    background-color: #f1f5f9;
}

.btn-airbnb {
    background-color: #FF5A5F !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-airbnb:hover {
    background-color: #e04b50 !important;
}

.btn-booking {
    background-color: #003580 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-booking:hover {
    background-color: #002252 !important;
}

/* EFEITOS DE HOVER E ESTRUTURA CORPORATIVA */
.canal-principal a, .botoes-plataformas a {
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.canal-principal a:hover, .botoes-plataformas a:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.corpo-site {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

footer {
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--cor-escura);
    color: #cbd5e1;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* MAPA ESTÁTICO */
.link-mapa-estatico {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    text-decoration: none;
}

.mapa-container-estatico {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.imagem-mapa {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overlay-mapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.overlay-mapa span {
    background-color: rgba(2, 132, 199, 0.9);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.mapa-container-estatico:hover .imagem-mapa {
    transform: scale(1.04);
}

.mapa-container-estatico:hover .overlay-mapa {
    background: rgba(0, 0, 0, 0.3);
}

/* RESPONSIVIDADE TOTAL (CELULAR E TABLET) */
@media (max-width: 768px) {

    /* FAZ O MENU SUMIR AO ROLAR A PÁGINA PARA BAIXO NO CELULAR */
    header {
        position: static !important; /* Desativa a fixação e faz o menu subir junto com a página */
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Suaviza a sombra no mobile */
    }


    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100% !important;
    }


    .corpo-site {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
    }


    footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Ajusta os blocos internos para não esmagarem nas bordas do celular */
    .container {
        width: 92% !important;
        max-width: 100% !important;
    }

    /* 2. REORGANIZAÇÃO DO CABEÇALHO PARA NÃO VAZAR O BOTÃO */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;             /* Reduzido para agrupar melhor no celular */
        padding: 0;
    }

    nav a {
        font-size: 0.9rem;
    }

    .btn-nav {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* 3. AJUSTES DE CONTEÚDO */
    .hero-content h1 {
        font-size: 2.0rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .destaques-rapidos {
        justify-content: center;
        gap: 10px;
    }

    .destaques-rapidos span {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    /* TRAVA DE SEGURANÇA CONTRA VAZAMENTO DE CONTEÚDO */
    .secao {
        padding: 40px 0; /* Reduz o espaçamento vertical excessivo no celular */
        width: 100% !important;
        overflow: hidden !important; /* Corta qualquer elemento que tente vazar e empurrar o site */
        box-sizing: border-box !important;
    }

    /* AJUSTE DOS CONTAINERS FILHOS */
    .container {
        width: 90% !important; /* Garante margem de 5% na esquerda e 5% na direita em todo o site */
        max-width: 100% !important;
        margin: 0 auto !important; /* Centraliza perfeitamente todos os blocos de texto e grades */
        box-sizing: border-box !important;
    }

       /* AJUSTE ESPECÍFICO DA GRADE DA GALERIA */
    .galeria-grade {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        grid-auto-rows: 140px;
        gap: 10px;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Limpa qualquer propriedade fantasma da seção */
    #galeria {
        padding: 0 !important;
        margin: 0 auto !important;
    }


    /* Remove os destaques de tamanho no mobile para as fotos não quebrarem a tela */
    .destaque-horizontal, .destaque-vertical {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 100% !important;
    }

    .mapa-container-estatico {
        height: 220px;
    }
}
