* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'fengardo';
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

@font-face {
    font-family: 'fengardo';
    src: url('/static/fonts/fengardoneue_regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: #333;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #777;
}


.main-container {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.property-image-container {
    width: 100%;
    max-height: 60vh; /* Altura relativa a la pantalla */
    overflow: hidden;
    position: relative;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 1200px;  /* Limita el ancho */
    max-height: 800px;  /* Limita el alto */
    margin: 0 auto;     /* Centra si es más pequeña */
}



.property-title {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background-color: #264a75c7;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: right;
}

.property-title h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 5px;
}

.property-title p {
    font-size: 16px;
    margin-bottom: 0;
}

.info-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.info-section {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.info-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 300;
    color: #444;
}

.property-elements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.property-element {
    display: flex;
    align-items: center;
}

.property-element i {
    font-size: 20px;
    margin-right: 10px;
    color: #666;
}

.footer {
    text-align: right;
    padding: 20px;
    font-size: 12px;
    color: #666;
    background-color: white;
    border-top: 1px solid #eee;
}





#nombre{
    color: #7796af;
    background-color: #264a75;
}


/* Media Queries */
@media (max-width: 768px) {
    .info-sections {
        flex-direction: column;
        
    }

    .info-section{
        border-radius: 0%;
        margin-bottom: 3px;
    }

    .info-section:first-child {
        overflow-y: auto;
        background-color: white;
        border-bottom: 2px solid black ;
    }
    .info-section:last-child {
        overflow-y: auto;
    }

    .property-title {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        background-color: #264a7500;
        color: #000000;
        font-size: .6rem;
    }
    
    h2{
        position: static;
    }


    h1{
       align-items: left; 
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-left: 5px;
    }
    .ubication {
        width: 100%;
        
    }
    
    .ubication iframe {
        height: 300px;
    }

    .ubi-section{
        padding-top: 2%;
    }
    .info-section{
        max-height: 400px;
    }
}