/* Navbar e estilos gerais */
.navbar,.navbar.bg-body-tertiary{
    background-color:#D2691E !important;
    box-shadow:0 5px 5px rgba(0,0,0,0.15);
    position:sticky;
    top:0;
    z-index:1100;
}
.navbar .navbar-brand{
    color:#ffffff;
    font-weight:600;
    font-size:1.2rem;
    transition:color 160ms ease-in-out;
    white-space:nowrap;
}
.navbar .navbar-brand:hover,.navbar .navbar-brand:focus{
    color:#ffe606;
    text-decoration:none;
}
.navbar .nav-link{
    color:#ffffff;
    opacity:1;
    transition:color 160ms ease-in-out;
}
.navbar .nav-link:hover,.navbar .nav-link:focus,.navbar .nav-link.active{
    color:#ffe606;
}
.navbar-toggler{
    border:none;
    font-size:1.25rem;
}
.navbar-toggler:focus,.btn-close:focus{
    box-shadow:none;
    outline:none;
}
.navbar .navbar-collapse{
    flex-grow:1;
}
.navbar .navbar-nav{
    margin:0 auto;
    width:fit-content;
}
@media (max-width:991px){
    .navbar .navbar-brand{
        font-size:1.1rem;
    }
    .navbar .navbar-nav{
        text-align:center;
        margin-top:1rem;
    }
}

/* Seção de Descrição */
.destino-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.destino-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

.destino-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
    text-align: center;
}

.destino-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Galeria de Imagens Sobrepostas */
.gallery-section {
    padding: 1.5rem 0 3rem;
    overflow: visible;
}

.stacked-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    position: relative;
}

.gallery-item {
    position: relative;
    width: calc(20% - 15px);
    height: 350px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

/* Overlap e zig-zag: primeira imagem sobe, segunda desce e sobrepõe, alternado */
.gallery-item:nth-child(6n+1) {
    transform: rotate(-5deg);
    margin-top: -30px;
    margin-right: -30px;
    z-index: 6;
}

.gallery-item:nth-child(6n+2) {
    transform: rotate(4deg);
    margin-top: 50px;
    margin-right: -25px;
    z-index: 5;
}

.gallery-item:nth-child(6n+3) {
    transform: rotate(-4deg);
    margin-top: -20px;
    margin-right: -30px;
    z-index: 4;
}

.gallery-item:nth-child(6n+4) {
    transform: rotate(5deg);
    margin-top: 40px;
    margin-right: -25px;
    z-index: 3;
}

.gallery-item:nth-child(6n+5) {
    transform: rotate(-3deg);
    margin-top: -25px;
    margin-right: -30px;
    z-index: 2;
}

.gallery-item:nth-child(6n) {
    transform: rotate(4deg);
    margin-top: 45px;
    margin-right: 0;
    z-index: 1;
}

/* Primeira linha não tem margin negativo no topo */
.gallery-item:nth-child(-n+6):nth-child(odd) {
    margin-top: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    display: block;
}

/* Hover effects */
.gallery-item:hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 100 !important;
}

.gallery-item:hover img {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* Responsivo para Tablet */
@media (max-width: 992px) {
    .destino-header h1 {
        font-size: 2rem;
    }

    .destino-description p {
        font-size: 1rem;
    }

    .stacked-gallery {
        padding: 2rem 1rem;
    }

    .gallery-item {
        width: calc(33.333% - 15px);
        height: 280px;
    }

    /* Zig-zag para 3 colunas */
    .gallery-item:nth-child(3n+1) {
        transform: rotate(-4deg);
        margin-top: -20px;
        margin-right: -20px;
        z-index: 3;
    }

    .gallery-item:nth-child(3n+2) {
        transform: rotate(4deg);
        margin-top: 35px;
        margin-right: -20px;
        z-index: 2;
    }

    .gallery-item:nth-child(3n) {
        transform: rotate(-3deg);
        margin-top: -15px;
        margin-right: 0;
        z-index: 1;
    }

    .gallery-item:nth-child(-n+3):nth-child(odd) {
        margin-top: 0;
    }
}

/* Responsivo para Mobile */
@media (max-width: 768px) {
    .destino-header {
        padding: 2rem 0 1rem;
    }

    .destino-header h1 {
        font-size: 1.8rem;
    }

    .destino-description {
        padding: 1rem;
    }

    .destino-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .gallery-section {
        padding: 2rem 0 3rem;
    }

    .stacked-gallery {
        padding: 1rem;
    }

    .stacked-gallery {
        padding: 2rem 1rem;
    }

    .gallery-item {
        width: calc(50% - 10px);
        height: 250px;
    }

    /* Zig-zag em mobile - 2 colunas */
    .gallery-item:nth-child(2n+1) {
        transform: rotate(-3deg);
        margin-top: -15px;
        margin-right: -15px;
        z-index: 2;
    }

    .gallery-item:nth-child(2n) {
        transform: rotate(3deg);
        margin-top: 25px;
        margin-right: 0;
        z-index: 1;
    }

    .gallery-item:nth-child(-n+2):nth-child(odd) {
        margin-top: 0;
    }

    .gallery-item:hover {
        transform: scale(1.03) rotate(0deg) !important;
    }

    .gallery-item img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Botão de ação */
.action-section {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.btn-mod {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #D2691E;
    color: #D2691E;
    background: transparent;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-mod:hover {
    background: #D2691E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

/* Botão WhatsApp */
.whatsapp-button{
    position:fixed;
    background-color:#25d366;
    border-radius:50px;
    color:white;
    font-weight:700;
    font-size:30px;
    bottom:70px;
    right:20px;
    width:50px;
    height:50px;
    line-height:50px;
    text-align:center;
    z-index:1000;
    box-shadow:0 0 20px rgba(0,0,0,0.15);
    transition:all 0.3s ease;
}
.whatsapp-button::before{
    content:"";
    position:absolute;
    z-index:-1;
    left:50%;
    top:50%;
    transform:translateX(-50%) translateY(-50%);
    display:block;
    width:60px;
    height:60px;
    background-color:#25d366;
    border-radius:50%;
    -webkit-animation:pulse-border 1500ms ease-out infinite;
    animation:pulse-border 1500ms ease-out infinite;
}
.whatsapp-button:focus{
    border:none;
    outline:none;
}
.whatsapp-button:hover{
    background-color:#00ff62;
    text-decoration:none;
    color:white;
    transform:scale(1.1);
}
@keyframes pulse-border{
    0%{
        transform:translateX(-50%) translateY(-50%) scale(1);
        opacity:1;
    }
    100%{
        transform:translateX(-50%) translateY(-50%) scale(1.5);
        opacity:0;
    }
}

/* Footer */
.site-footer{
    margin-top:5rem;
    background:chocolate;
    color:#eee;
    padding:2rem 0 1rem 0;
}
@media (max-width:768px){
    .site-footer{
        margin-top:3rem;
    }
}
.site-footer .footer-inner{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:1rem;
    align-items:center;
    padding:1rem 0;
}
@media (max-width:768px){
    .site-footer .footer-inner{
        grid-template-columns:1fr;
        text-align:center;
    }
}
.footer-logo{
    max-width:140px;
    height:auto;
}
.footer-nav .footer-menu{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    gap:1rem;
    justify-content:center;
}
.footer-nav .footer-menu a{
    color:#eee;
    text-decoration:none;
    opacity:0.9;
    transition:all 0.2s ease;
}
.footer-nav .footer-menu a:hover{
    color:#f8e801;
    opacity:1;
}
.footer-socials{
    display:flex;
    gap:0.75rem;
    justify-content:flex-end;
}
@media (max-width:768px){
    .footer-socials{
        justify-content:center;
    }
}
.footer-socials .social{
    color:#eee;
    background:rgba(255,255,255,0.06);
    width:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    text-decoration:none;
    transition:all 0.2s ease;
}
.footer-socials .social:hover{
    background:#fff;
    color:#000;
}
.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.04);
    padding:0.75rem 0;
    margin-top:1rem;
    color:rgba(255,255,255,0.6);
    font-size:0.9rem;
}
