@import './utilities/colors.css';
@import './utilities/efects.css';
@import './utilities/default.css';
@import './home/home.css';
@import './about/about.css';
@import './imovel/details.css';
@import './imovel/index.css';

html {
    font-size: 14px;
}

#dotnet-compile-error {
    display: none;
}

#main {
    background-color: oklch(0.98 0 0);
}

    #main .home-container {
        background-color: #fff !important;
    }

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body, h1, h2, h3, h4, p {
    margin: 0px;
    margin-bottom: 0px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.menu-mobile-btn {
    display: none !important;
}

/* Mostrar só até 850px */
@media (max-width: 850px) {
    .menu-mobile-btn {
        display: block !important;
    }

    #navbar {
        height: 140px;
    }

    #menu-mobile .home-back {
        max-width: 110px;
        text-align: end;
        position: relative;
    }

        #menu-mobile .home-back a > span {
            height: max-content;
            position: absolute;
            left: 5px;
            top: 11px;
        }
}


/* MODAL FULLSCREEN */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

/* Contêiner padrão para a imagem */
.image-modal-content {
    width: 100%;
    max-width: 950px;
    height: 70vh; /* TAMANHO PADRÃO PARA TODAS */
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Imagens sempre do mesmo tamanho */
    .image-modal-content img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Mantém proporção, mas tamanho igual */
        border-radius: 6px;
    }


/* MOSTRAR */
.image-modal.show {
    display: flex;
}

/* BOTÃO FECHAR (X) */
.image-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* IMAGEM CENTRAL PRINCIPAL */
.image-modal-content {
    position: relative;
    max-width: 960px;
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
}

    .image-modal-content img {
        width: 100%;
        max-height: 75vh;
        object-fit: contain;
        border-radius: 6px;
    }

/* BOTÕES LATERAIS (ESTILO CHAVES NA MÃO) */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    border: none;
    color: white;
    font-size: 45px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s;
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

    .modal-prev:hover,
    .modal-next:hover {
        background: rgba(255,255,255,.35);
    }

/* MINIATURAS */
.image-modal-thumbs {
    margin-top: 25px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    max-width: 90%;
    justify-content: center;
}

    .image-modal-thumbs img {
        height: 60px;
        border-radius: 4px;
        cursor: pointer;
        transition: .2s;
        border: 2px solid transparent;
    }

        .image-modal-thumbs img:hover {
            opacity: 0.7;
        }

        .image-modal-thumbs img.active {
            border-color: #d4af37;
        }
