
/* Estilos para o balão de pontuação (adicione ou integre ao <style> existente) */
.nature-balloon {
    position: absolute;  /* Assumindo position absolute; ajuste se for fixed ou relative */
    background: #fff;    /* Exemplo de estilos base; ajuste conforme seu design */
    border: 1px solid #d9dee3;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 101;
    max-width: 300px;    /* Largura padrão para desktop */
    text-align: left;
    color: #2C3E50;
    /* Outros estilos existentes... */
}

/* Ajuste para mobile: Aumenta a largura para 90% da tela */
@media (max-width: 768px) {
    .nature-balloon {
        max-width: 90vw;  /* Aumenta para 90% da largura da viewport */
        left: 50%;        /* Centraliza horizontalmente (ajuste se necessário) */
        transform: translateX(-50%);  /* Completa a centralização */
        padding: 20px;    /* Mais padding para melhor legibilidade em mobile */
    }
}


/* Adicione uma classe específica às suas fotos, ex: class="foto-protegida" */
img.foto-protegida {
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
    -webkit-touch-callout: none; /* iOS Safari - impede o menu de toque longo */
}

/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #FFFFFF; 
    color: #2C3E50; 
    line-height: 1.6; 
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(44,62,80,0.1);
}
.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 2rem; 
}

/* Regra para limitar a altura da imagem da logo */
.logo img {
    max-height: 30px;
    width: auto;
    display: block; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 9rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 600;
}
.nav-links a:hover {
    text-decoration: underline;
}

/* Hero */
.hero { 
    height: 100vh; 
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding-top: 80px;
}
.hero-title { 
    font-size: clamp(3rem, 8vw, 6rem); 
    font-weight: 700; 
    margin-bottom: 1rem; 
}
.accent { color: #2C3E50; }
.hero-desc { 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto 2rem; 
    opacity: 0.9; 
}
.cta-btn { 
    background: #2C3E50; 
    color: white; 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s; 
    box-shadow: 0 10px 30px rgba(44,62,80,0.3);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(44,62,80,0.4); }

/* Gallery */
<style>


.gallery-section { padding: 120px 0; background: #FAFBFC; }
.section-title { 
    text-align: center; 
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 4rem; 
    color: #2C3E50; 
}
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajustado para caber o tamanho fixo */
    gap: 20px;
}
.foto-item { 
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.foto-item:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.foto-image { 
    position: relative !important; /* Para posicionamento absoluto da img */
    width: 300px !important; /* Tamanho fixo - ajuste aqui */
    height: 300px !important; /* Tamanho fixo - ajuste aqui para quadrado ou retângulo */
    overflow: hidden !important; /* Corta partes excedentes */
    background-color: #f5f6f7 !important; /* Fundo neutro para imagens menores */
    margin: 0 auto; /* Centraliza se necessário */
}
.foto-image img { 
    position: absolute !important; /* Posiciona no centro */
    top: 50% !important; /* Centro vertical */
    left: 50% !important; /* Centro horizontal */
    transform: translate(-50%, -50%) !important; /* Centraliza perfeitamente */
    max-width: 100% !important; /* Não enlarga além do original */
    max-height: 100% !important; /* Não enlarga além do original */
    width: auto !important; /* Mantém proporção */
    height: auto !important; /* Mantém proporção */
    display: block !important;
    object-fit: contain !important; /* Garante contenção sem distorção (fallback) */
}
.foto-overlay,
.foto-info {
    pointer-events: none;
}
.foto-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(45deg, rgba(44,62,80,0.9), rgba(52,73,94,0.7)); 
    opacity: 0; 
    transition: opacity 0.4s; 
    display: flex; 
    align-items: flex-end; 
    padding: 2rem; 
}
.foto-item:hover .foto-overlay { opacity: 1; }
.foto-info { 
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.foto-info h3 { 
    font-size: 16px; 
    margin: 0 0 4px; 
    font-weight: 600; 
}
.foto-info p { 
    font-size: 13px; 
    margin: 0; 
    opacity: 0.9; 
}
.load-more { 
    display: block; 
    margin: 0 auto; 
    color: #2C3E50; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.2rem; 
}

/* Modal (mantido com contain para ver imagem inteira) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    width: min(95vw, 1400px);
    height: min(90vh, 900px);
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal-content img {
    width: 100%;
    height: calc(100% - 50px); /* Ajuste para espaço do footer */
    object-fit: contain; /* Mostra inteira, sem cortes */
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: block;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-footer { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.modal-caption {
    color: white;
    font-size: 14px;
    text-align: left;
    flex: 1;
}
.download-btn { 
    background: #2C3E50;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.download-btn:hover {
    background: #34495E;
}
.share-btn { /* Novo: estilo do botão de compartilhar */
    background: #27ae60; /* Verde para diferenciar */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 10px;
}
.share-btn:hover {
    background: #219653;
}

/* Stats */
.stats { padding: 80px 0; background: #2C3E50; color: white; }
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 3rem; 
    text-align: center; 
}
.stat-number { 
    display: block; 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: #ECF0F1; 
}

/* Footer */
.footer { 
    background: #34495E; 
    color: #BDC3C7; 
    text-align: center; 
    padding: 2rem 0; 
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .gallery-grid { gap: 15px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } /* Ajustado para mobile */
    .foto-image { width: 200px !important; height: 200px !important; } /* Tamanho fixo menor em mobile */
    .foto-info { bottom: 15px; left: 15px; }
    .foto-info h3 { font-size: 14px; }
    .hero-title { font-size: 2.5rem; }
    .modal-footer { flex-direction: column; gap: 10px; }
}


/* Overrides para Mobile (Responsividade) */
@media (max-width: 767px) {
    .hero {
        min-height: 30vh !important; /* Menor em mobile */
        flex-direction: column !important; /* Empilha conteúdo verticalmente */
        align-items: center !important;
        padding-top: 20px !important; /* Espaço para as miniaturas no topo */
    }

    .mozaico-preview {
        position: static !important; /* Não absolute em mobile */
        display: flex !important; /* Flex para múltiplas colunas */
        flex-wrap: wrap !important; /* Wrap para linhas múltiplas */
        justify-content: center !important; /* Centraliza as imagens */
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important; /* Espaço abaixo das miniaturas */
        pointer-events: auto !important; /* Permite interação se quiser */
    }

    .mozaico-preview > div[style*="background-image"] { /* Cada miniatura */
        position: static !important; /* Remove absolute */
        width: 80px !important; /* Tamanho fixo pequeno */
        height: 80px !important;
        margin: 5px !important; /* Margens para espaçamento; sem 'auto' para flow */
        opacity: 1 !important;
        border-radius: 4px !important;
    }

    .hero-content {
        max-width: 95% !important;
        padding: 15px !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-desc {
        font-size: 1.1rem !important;
    }

    .cta-btn {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
}

/* Para Tablets (opcional) */
@media (min-width: 768px) and (max-width: 1024px) {
    .mozaico-preview > div[style*="background-image"] {
        width: 15% !important; /* Ajuste intermediário */
        opacity: 0.35 !important;
    }

    .hero-title {
        font-size: 2.4rem !important;
    }

    .hero-desc {
        font-size: 1.1rem !important;
    }
}

.balloon-top-icons {
    position: relative;  /* Para conter elementos se precisar de absolute no futuro */
    display: flex;       /* Usa flexbox para alinhar os itens à esquerda */
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.dificuldade-icon {
    font-size: 18px;    /* Tamanho igual ao do favoritar */
    color: #2C3E50;
    margin-right: 10px; /* Espaçamento mínimo de 10px à direita para separar dos ícones; ajuste para 0 se quiser colados */
}

.dificuldade-icon i {
    margin-right: 5px;  /* Espaçamento interno se houver texto futuro; remova se não precisar */
}

.favorito-btn {
    background: none;   /* Remove qualquer fundo */
    border: none;       /* Remove bordas */
    padding: 0;         /* Remove padding para não criar "caixa" */
    outline: none;      /* Remove outline (borda de foco) para evitar caixa cinza ao clicar/focar */
    cursor: pointer;
    font-size: 18px;    /* Tamanho igual ao do ícone de dificuldade */
    color: inherit;     /* Herda cor do estado */
    appearance: none;   /* Remove estilos padrão de botões em alguns navegadores (ex.: Safari) */
    -webkit-appearance: none;  /* Para compatibilidade com WebKit */
}

.favorito-btn i {
    /* Sem margin para deixar "só com a estrela" pura, sem espaçamento extra */
}

/* Estilos dinâmicos para o estado de favoritado */
.favorito-btn[data-is-favoritado="true"] {
    color: #FFD700;  /* Dourado para favoritado */
}

.favorito-btn[data-is-favoritado="false"] {
    color: #888;     /* Cinza para não favoritado */
}

/* Opcional: Remove foco visual se ainda aparecer caixa ao clicar */
.favorito-btn:focus {
    outline: none;
    box-shadow: none;  /* Remove sombra de foco */
}

.gallery-filter {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8f9fa; /* Fundo sutil para destaque */
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra leve para profundidade */
    transition: box-shadow 0.3s ease;
}

.gallery-filter:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Efeito hover no form inteiro */
}

.filter-item {
    position: relative;
    flex: 1;
    min-width: 150px; /* Evita campos muito pequenos */
}

.filter-item label {
    display: block;
    font-size: 12px;
    color: #2C3E50;
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-item input[type="text"],
.filter-item select {
    width: 100%;
    padding: 12px 40px 12px 14px; /* Espaço para ícone à direita */
    border: 1px solid #d9dee3;
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-item input[type="text"]:focus,
.filter-item select:focus {
    border-color: #2C3E50;
    box-shadow: 0 0 5px rgba(44, 62, 80, 0.3); /* Destaque no foco */
}

.filter-item i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

/* Estilos para checkbox */
.filter-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #d9dee3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.3s, border-color 0.3s;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #2C3E50; /* Cor de destaque quando marcado */
}

.filter-checkbox .checkbox-text {
    flex: 1;
}

.filter-checkbox i {
    margin-left: 8px;
    color: #888;
    transition: color 0.3s;
}

.filter-checkbox input:checked + .checkbox-text + i {
    color: #FFD700; /* Coração dourado quando marcado */
}

.filter-checkbox:hover {
    background: #f0f0f0;
    border-color: #2C3E50;
}

/* Botão de filtrar */
.filter-button {
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #2C3E50;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: 40px;
    margin-top: 25px;
}

.filter-button:hover {
    background: #34495E;
    transform: translateY(-2px); /* Efeito de "levantar" */
}

/* Link de limpar */
.filter-clear {
    padding: 12px 14px;
    border-radius: 10px;
    background: #e9ecef;
    max-height: 40px;
    margin-top: 25px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.filter-clear:hover {
    background: #d1d5da;
}


/* Botão de toggle */
.toggle-advanced {
    padding: 12px 16px;
    border: 1px solid #d9dee3;
    border-radius: 10px;
    background: #fff;
    color: #2C3E50;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    width: fit-content; /* Ajusta ao conteúdo */
    margin: 0 auto; /* Centraliza se necessário */
    max-height: 40px;
    margin-top: 25px;  
}

.toggle-advanced:hover {
    background: #f0f0f0;
}

/* Seção expansível */
.advanced-filters {
    display: none; /* Começa oculta */
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;    
    padding: 10px;
    border-top: 1px solid #d9dee3;
    transition: opacity 0.3s ease; /* Animação suave */
    opacity: 0;
}

.advanced-filters[style*="display: flex"] {
    opacity: 1; /* Fade-in ao expandir */
}

/* Responsivo para mobile */
@media (max-width: 600px) {
    .gallery-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item {
        min-width: auto;
    }
    
    /* Botão de filtrar */
    .filter-button {
        margin-top: 2px;
    }  
    
    .filter-clear {
        margin-top: 5px;
    }
        
    /* Botão de toggle */
    .toggle-advanced {   
        margin-top: 5px;
    }
    
    .advanced-filters {
        flex-direction: column;
    }
}

