/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS, VARIÁVEIS & RESET (DRY)
   ========================================================================== */
* {
    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;
}

html, body {
    overflow-x: hidden; /* Evita qualquer vazamento de subpixel na tela */
}

body {
    color: var(--cor-texto);
    background-color: #e0f2fe; /* Azul-claro nas laterais do desktop */
    line-height: 1.6;
}

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

.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;
}

/* Ajusta o espaçamento e alinhamento de todos os parágrafos do site */
p {
    text-align: justify;
    margin-bottom: 14px; /* Mantém o espaçamento curto e controlado entre blocos */
}


/* Elementos de Mídia e Listas */
a {
    text-decoration: none;
    color: inherit;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZÁVEIS (BOTÕES & INTERAÇÕES DRY)
   ========================================================================== */
/* Base Comum para todos os Botões Dinâmicos */
.btn-nav, .btn-principal, .btn-wpp, .btn-plataforma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Efeito Hover unificado para botões de ação e plataformas */
.btn-principal:hover, .btn-wpp:hover, .btn-plataforma:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Botão Reservar do Menu */
.btn-nav {
    background-color: var(--cor-principal);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 25px;
}

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

/* Botão Chamada Principal (Hero) */
.btn-principal {
    background-color: var(--cor-secundaria);
    color: var(--cor-escura);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-principal:hover {
    background-color: #d97706;
    color: var(--cor-escura);
}

/* Botão WhatsApp */
.btn-wpp {
    background-color: #25d366;
    color: #ffffff;
    border-radius: 30px;
    padding: 15px 30px;
    margin-bottom: 20px;
}

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

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

/* Botões de Canais Alternativos (Airbnb / Booking) */
/* Correção estrutural para alinhar e trazer os ícones de volta */
.btn-plataforma {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff;
    color: var(--cor-escura);
    border: 2px solid #cbd5e1;
    border-radius: 30px;
    padding: 15px 15px;              /* Reduzido nas laterais para o texto não vazar */
    width: 310px;                    /* Mantém a largura idêntica e simétrica */
    white-space: nowrap;
    box-sizing: border-box;
    gap: 8px;                        /* Controla o espaço exato entre o ícone e o texto */
}

.btn-plataforma img,
.btn-plataforma svg {
    margin: 0 !important;
    flex-shrink: 0;
}


.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;
}

/* ==========================================================================
   3. CABEÇALHO & MENU DE NAVEGAÇÃO DESKTOP
   ========================================================================== */
header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.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);
}

/* Esconde gatilhos mobile no Desktop */
.menu-toggle, .hamburger {
    display: none;
}

/* ==========================================================================
   4. SEÇÕES DO SITE (HERO, SOBRE, INFRAESTRUTURA, GALERIA, MAPA)
   ========================================================================== */
/* Hero / Banner Principal */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('./banner_principal.jpg') no-repeat center center / cover;
    background-blend-mode: overlay;
    height: 65vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

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

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

/* Grid Sobre o Imóvel */
.sobre-grid {
    display: block !important;
    width: 100% !important;
    clear: both; /* Limpa interferências de elementos flutuantes anteriores */
}

/* Transforma em bloco único para o texto poder fluir livremente */
.sobre-texto {
    display: block !important;
    width: 100% !important; /* Força o bloco de texto a ocupar toda a largura do container */
    text-align: justify; /* Faz o texto tocar as duas bordas perfeitamente */
}

.sobre-texto h2 {
    font-size: 2.2rem;
    color: var(--cor-escura);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Os parágrafos herdam o fluxo livre em torno do float */
.sobre-texto p {
    display: block !important;
    width: auto !important;
    margin-bottom: 14px;
}

/* Faz a imagem flutuar no canto direito e empurra o texto ao redor dela */
/* Mantém a foto flutuando à direita no desktop */
.sobre-imagem {
    float: right !important;
    width: 45% !important;
    margin-left: 30px !important;
    margin-bottom: 15px !important;
}

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

/* Etiquetas de Destaques Rápidos */
.destaques-rapidos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.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;
}

/* Grid de Comodidades (Infraestrutura) */
.comodidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

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

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

.comodidade-item svg {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 10px !important;
}

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

/* Grade da Galeria Assimétrica */
.galeria-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
}

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

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.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;
}

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

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

/* Expansão assimétrica de fotos em telas grandes */
@media (min-width: 992px) {
    .destaque-horizontal { grid-column: span 2; }
    .destaque-vertical { grid-row: span 2; height: 100%; }
}

/* Seção do Mapa Estático */
.link-mapa-estatico {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.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);
}

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

/* ==========================================================================
   5. ÁREA DE CONTATO & CANAIS DE RESERVA (CORRIGIDO E CENTRALIZADO)
   ========================================================================== */
#contato .container {
    max-width: 700px; /* Limita a largura da área para centralização perfeita */
    text-align: center;
    margin: 0 auto;
}

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

#contato p {
    margin-bottom: 35px;
}

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

.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;
}

/* ==========================================================================
   REGRAS E AVISOS (OBSERVAÇÕES IMPORTANTES)
   ========================================================================== */
#avisos, .avisos {
    /* Suas configurações atuais de espaçamento da seção continuam aqui */
}

/* Força os itens da lista de avisos a ficarem perfeitamente justificados */
#avisos li, .avisos li {
    text-align: justify;
    margin-bottom: 10px; /* Garante um espaçamento agradável entre uma regra e outra */
}


/* ==========================================================================
   6. MODAL DE AMPLIAÇÃO DE FOTOS (SHADOWBOX PURA VIA :TARGET)
   ========================================================================== */
.shadowbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.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;
    transition: color 0.2s;
}

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

/* ==========================================================================
   7. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--cor-escura);
    color: #cbd5e1;
    padding: 30px 0;
    text-align: center; /* Garante a centralização dos elementos internos */
    font-size: 0.9rem;
}

/* Força os parágrafos específicos do rodapé a ignorarem a justificativa global */
footer p {
    text-align: center !important;
    margin-bottom: 0; /* Remove margens extras que possam desalinhá-lo verticalmente */
}


/* ==========================================================================
   8. UNIFICAÇÃO DA RESPONSIVIDADE (MOBILE & TABLET EXCLUSIVO)
   ========================================================================== */
@media (max-width: 768px) {
    /* Segurança de tela e transbordamentos */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100% !important;
    }

    .corpo-site, footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .corpo-site {
        box-shadow: none !important;
    }

    .secao {
        padding: 40px 0;
        width: 100% !important;
        overflow: hidden !important;
    }

    .container {
        width: 90% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* --- GESTÃO DO MENU MOBILE COMPACTO --- */
    header {
        position: static !important; /* Menu flui com a rolagem no celular */
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        position: relative;
    }

    .header-container .logo {
        display: inline-flex !important;
        align-items: center !important;
        max-width: 80% !important;
        white-space: nowrap !important;
        font-size: 0.95rem !important;
    }

    /* Ativa o botão hambúrguer correto */
    .header-container .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 1005;
        padding: 10px;
        margin-left: auto !important;
    }

    .hamburger span {
        width: 24px;
        height: 3px;
        background-color: #333333;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Balão Dropdown do Menu à Direita */
    .header-container nav {
        display: flex !important;
        position: absolute !important;
        top: 100% !important;
        right: -100% !important;
        height: auto !important;
        width: 190px !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        border-radius: 8px !important;
        padding: 15px 0 !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 1001;
    }

    .header-container nav ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 0 20px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .header-container nav a {
        font-size: 0.95rem !important;
        display: block !important;
        width: 100% !important;
        padding: 6px 0 !important;
    }

    .header-container nav a.btn-nav {
        display: inline-flex !important;
        justify-content: center !important;
        width: calc(100% - 10px) !important; /* Faz o botão ocupar quase toda a largura do menu */
        padding: 10px 16px !important;       /* Aumenta o tamanho do botão para o texto respirar */
        white-space: nowrap !important;       /* Proíbe terminantemente a quebra de linha do texto */
        border-radius: 20px !important;       /* Mantém o visual arredondado elegante */
        margin-top: 5px !important;          /* Dá um pequeno respiro do link de cima */
    }

    /* Mecânica de abertura e transição para o X */
    .menu-toggle:checked ~ nav { right: 15px !important; }
    .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .menu-toggle, .nav-menu { display: none; }

    /* --- RESPONSIVIDADE INTERNA DO 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; }

    /* Força redimensionamento seguro e fluído da grade de fotos no celular */
    #galeria { padding: 0 !important; margin: 0 auto !important; }
    .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;
    }

    /* Reduz fotos destacadas para caber em telas estreitas */
    .destaque-horizontal, .destaque-vertical {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 100% !important;
    }

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

    /* Empilhamento limpo dos botões de plataforma no celular */
    .botoes-plataformas { flex-direction: column; align-items: center; gap: 12px; }
    .botoes-plataformas .btn-plataforma { width: 100% !important; max-width: 280px !important; justify-content: center; }

        /* --- AJUSTE RESPONSIVO DA SEÇÃO SOBRE --- */
    .sobre-grid {
        display: block !important;
    }

    .sobre-imagem {
        float: none !important;        /* Cancela a flutuação lateral no celular */
        width: 100% !important;        /* Força a imagem a ocupar a largura total útil */
        margin: 0 0 20px 0 !important; /* Remove a margem esquerda e cria um respiro abaixo da foto */
    }

}
