/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 23-jun-2024, 12.24.39
    Author     : Marco Lizza
*/

/*_______________GENERAL STYLE_______________________*/

body{
    background-color: #39434e;
    margin: 0;
    overflow-x: hidden;
}


.custom-toast {
    position: fixed;
    bottom: 20px; /* Distanza dal fondo */
    right: 20px; /* Distanza dal lato destro */
    z-index: 1055; /* Assicurati che sia sopra a tutto */
    width: 300px; /* Larghezza personalizzabile */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Aggiunge un'ombra per evidenziare il toast */
}

.poppins-semibold{
    font-family: "Poppins", system-ui;
        font-weight: 600;
        font-style: normal;
}

.logoicon{
    z-index:1;
    width:100px;
    cursor:pointer;
  }

.mainColor{
    color: #0d78e9;
}

.mainTextColorUnderline{
    position: relative;
}

.mainTextColorUnderline:after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50%;
    background-color: #0d6efd;
}

.invalid-input {
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    background-color: #0d78e9;
    border-radius: 10px;
    padding: 0px;
}

.shadow_div {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9); /* Adds shadow to the div */
}

.btn-underline{
    font-size:20px;
}

.btn-underline:hover{
    text-decoration:underline;
}

@media (max-width: 768px) {
    .btn-underline {
        font-size:15px;
    }
}


.buttonAnimation1 {
    scale: 1;
    transition: scale 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    border: none;
    background: #e9edff;
    color: #39434e;
    border: 2px solid rgba(0,0,0,0);
}


.buttonAnimation1:hover{
    scale:1.02;
    background: #e9edff;
    color: #007bff;
    border: 2px solid #007bff;
}

.buttonAnimation1:active {
    scale: 1.02;
    background-color: #c6c9d8 !important;
    color: #007bff !important;
    border: 2px solid #007bff !important;
}



    /*______________________________ NAVBAR _______________________________*/

    #navbar {
        position: absolute;
        top:0px;
        left:0px;
        background:  rgba(0, 0, 0, 0); /* Gradiente di base */
        color: #fff;
    }

    #navbar-secondary {
        position: relative;
        z-index: 10 !important;
        background:  #39434e; /* Gradiente di base */
        color: #ffffff;
    }

    .navbar .navbar-toggler {
        border: none;
    }


    .navbar .btn-outline-light {
        border: none;
    }

    .dropdown-menu-start {
        left: auto;
        right: 0;
    }

    .nav-item{
        padding-left: 10px;
        transition: padding-left 0.2s ease-in-out;
    }

    .nav-item:hover{
        padding-left: 5px;
    }

    .dropdown-menu-users{
        background-color: #39434e; /* Colore nero semitrasparente */
        border-radius: 6px;
        text-align: center;
        width:300px;
        z-index: 2 !important;
        border: 2px solid #007bff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }    

    .dropdown-divider{
        background-color: rgb(159, 159, 159);
        height: 2px; /* Imposta l'altezza dell'hr */
    }

    .userPic{
        border: 2px solid #ffffff;
        border-radius: 50%;
    }

    /*____________________________PROFILE DIV _______________________________*/


    .dropdown-item {
        text-align: left;
        color: rgb(255, 255, 255);
        border-radius: 10px;
        padding-left: 10px;
        background-color :rgba(255, 255, 255, 0);
        transition: background-color 1s ease, padding-left 0.3s ease;
    }

    .dropdown-item:hover {
        padding-left: 25px;
        background-color: #0d78e9;
        color: white;
    }

    /*______________________________ OFFCANVAS _______________________________*/

    .offcanvas{
        background-color: rgba(57, 67, 78, 0.7); /* Colore nero semitrasparente */
        color: rgb(255, 255, 255);
        backdrop-filter: blur(7px); /* Sfocatura dello sfondo dietro il div */
        -webkit-backdrop-filter: blur(7px);
        text-align: left;
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    }

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
    }

    .offcanvas-footer {
        margin-top: auto;
        padding-top: 20px;
        text-align: center;
    }

    .offcanvas-body a {
        display: block;
        padding: 10px 20px;
        color: rgb(255, 255, 255);
        text-decoration: bold;
        text-align: left;
        background-color: transparent;
        position: relative;
        overflow: hidden;
        transition: color 0.3s ease;
    }

    .offcanvas-body a:hover {
        color: #094dbb;
        text-decoration: bold;
    }

    /*_____________________FOOTER__________________*/

        footer{
            background-color: #39434e;
            z-index: 1 !important;
        }


        /*_____________________COOKIE __________________*/
        #cookieBanner{
            background-color: rgba(0, 0, 0, 0.4); /* Colore nero semitrasparente */
            color: rgb(255, 255, 255);
            backdrop-filter: blur(7px); /* Sfocatura dello sfondo dietro il div */
            -webkit-backdrop-filter: blur(7px);
            position: fixed;
            bottom:0px;
            border-radius: 30px 30px 0px 0px ;
        }

        .modal-content {
            backdrop-filter: blur(20px); /* Sfocatura dello sfondo dietro il div */
            -webkit-backdrop-filter: blur(20px);
            background-color: rgba(0, 0, 0, 0.4); /* Colore nero semitrasparente */
            color: rgb(255, 255, 255);
        }



        /*_____________________ SEARCH ON MAP INPUT ________________________*/
                /* Contenitore del menu di ricerca*/
                .pac-container {
                    background-color: #ffffff; 
                    border: 1px solid #d1d1d1; 
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
                    border-radius: 8px;
                    font-family: 'Roboto', sans-serif;
                    font-size: 14px; 
                    z-index: 1000; 
                    overflow: hidden;
                }
        
                .pac-item {
                    padding: 10px 15px; 
                    cursor: pointer; 
                    transition: background-color 0.3s ease; 
                }
        
                .pac-item:hover {
                    background-color: #f0f0f0;
                }
        
                .pac-item-query {
                    font-weight: bold;
                    color: #007bff; 
                }
        
                .pac-item + .pac-item {
                    border-top: 1px solid #e5e5e5;
                }
        
                .pac-item small {
                    color: #999; 
                    font-size: 12px; 
                }
        
                .pac-container:focus-within {
                    border-color: #007bff; 
                    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2); 
                }
        
    /*_______________ REAL ESTATE CARD ______________________*/
    #container {
        position: relative;
        width: 100%;
        height: 600px;
    }

    .realEstateCard{
        cursor: pointer;
    }

    .limit-righe {
        display: -webkit-box; /* Usa un contenitore flessibile */
        -webkit-box-orient: vertical; /* Orienta i contenuti in verticale */
        -webkit-line-clamp: 3;
        line-clamp: 3; /* Limita il numero di righe */
        overflow: hidden; /* Nascondi il testo in eccesso */
        text-overflow: ellipsis; /* Aggiungi i puntini di sospensione */
    }

    #drawingCanvas {
        position: absolute;
        top: 0;
        left: 0;
        border: 1px solid black;
        width: 100%;
        height: 100%;
    }

    #underDiv {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: lightgray;
        z-index: -1;
        /* Assicurati che il div sia sotto il canvas */
    }

    #leaflet-control-button {
        z-index: 1;
    }


    .text-container {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }



    @media (min-width: 769px) {
        .scrollable-div{
            height: calc(100vh - 76px);
            overflow-y: auto; /* Mantieni lo scroll */
            scrollbar-width: none; /* Per Firefox */
            -ms-overflow-style: none;  /* Per Internet Explorer e Edge */
        }

        .scrollable-div::-webkit-scrollbar {
            display: none; /* Per Chrome, Safari e Edge */
        }
    }
    

    .card-immobiliare {
        border: none;
        overflow: hidden;
        border: none;
    }

    .card-immobiliare-img {
        border-radius: 15px;
        object-fit: cover;
        width: 100%;
        aspect-ratio: 1/1;
    }
    

    .card-immobiliare-profileImage {
        object-fit: cover;
        width: 100%;
        aspect-ratio: 1/1;
    }
    

    .card-body-custom {
        padding: 20px;
    }

    .card-title {
        font-size: 1rem;
        color: #343a40;
        margin-bottom: 10px;
    }

    .card-info {
        display: flex;
        justify-content: space-between;
        font-size: 1.2rem;
        color: #6c757d;
    }

    .card-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    .card-buttons a {
        flex: 1;
        margin: 0 5px;
        padding: 10px;
        text-align: center;
        border-radius: 8px;
        background-color: #007bff;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .card-buttons a:hover {
        background-color: #0056b3;
    }

    .card-buttons a i {
        font-size: 1.5rem;
    }

    .card-custom {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
    }

    .card-custom:hover {
        transform: scale(1.05);
    }

    .realEstateIcon{
        width: 50px;
    }

