@page{
    margin: 10%;
}

ul{
    padding: 0 3%;
}

p, li, td, u, b{
    font-size: 12px;
    font-family: arial;
}

td{
    border: 1px solid #4ab4c4;
}

table{
    border-collapse: collapse;

}

.main li:not(.second):not(.third){
    list-style: none;
    padding:1% 0 0 0;
}

.estate{
    break-inside: avoid;
    display: flex;

    -webkit-column-break-inside:avoid;
    page-break-inside: avoid;
}

.estate table{
    flex:1;
    margin: 2% 1% 2% 1%;
}

.porpertyType{
    display: flex;
}

.propertyType p{
    padding: 0 0 0 3%
}

.address{
    width:45%;
}

.address p{
    padding: 0 0 0 3%
}

.price{
    width: 25%;
}

.price p{
    text-align: center;
    margin: 10px;
}

.foto{
    width: 30%;
}

.description{
    width: 70%;
}

.description div{
    display:flex;
}

.saleType{
    flex: 3;
    display: flex;
    justify-content: center;
}

.second{
    padding: 0 0 0 1%;
    list-style: none;
}

.third{
    list-style: none;
    padding: 0 0 0 2%;
}

body{
    display: block;
    flex-direction: column;
}

.contact li:not(.third){
    list-style: none;
    padding:0% 0 0% 0;
}

/*.header{*/
/*    display: flex;*/
/*}*/

.header{
    line-height: 3em;
}

p span{
    white-space:nowrap;
    border:1px solid darkgray;
    border-radius: 10px;
    padding: 1%;
    margin-left:1%;
    margin-bottom:40px;
}

@media (min-width: 1000px){
    p span {
        padding: 10px;
    }
}

img{
    max-width: 100%;
    max-height: 100%;
}

figure{
    display: flex;
    justify-content: center;
}