/* styleDetalhesImovel.css - Estilos específicos da Página de Detalhes */

/* Estilos para a Modal de Tela Cheia */
.fullscreen-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.fullscreen-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    z-index: 10001;
}

.modal-close:hover {
    color: #ccc;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    padding: 0 20px;
    transition: 0.2s;
    text-decoration: none;
    z-index: 10000;
}

.modal-arrow:hover {
    color: #ccc;
    scale: 1.1;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* Setas sobrepostas na Imagem Principal da Galeria */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.2s, scale 0.2s;
    z-index: 5;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    scale: 1.05;
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

/* Botão Hambúrguer - Escondido por padrão no Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mudanças apenas para Telas Pequenas (Mobile e Tablets menores) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Exibe as 3 listras */
    }

    .header-cta {
        display: none; 
    }

    .navigation {
        display: none;
    }

    /* Quando o menu estiver ATIVO, monta a lista vertical suspensa */
    .nav-wrapper.active .navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }

    .nav-wrapper.active .nav-menu {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .nav-wrapper.active .nav-menu .btn-primary {
        background: none !important;
        color: inherit !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        box-shadow: none !important;
        display: inline !important;
        width: auto !important;
    }

    /* Transforma as 3 listras em um 'X' quando aberto */
    .nav-wrapper.active .menu-toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-wrapper.active .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-wrapper.active .menu-toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}