/* =======================================================
   DI COMERCHI PROPIEDADES
   Base stylesheet
======================================================= */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    border: 1px solid lime;
}*/

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/*************************************************
    TOP BAR
*************************************************/
header {
    width: 100%;
    background: #222;
}

#top-bar {
    width: 900px;
    margin: auto;
    color: lightgray;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 14px;
}

#top-bar .redes-sociales {
    display: flex;
    gap: 15px;
    justify-items: center;
}

#top-bar a {
    color: white;
}

#top-bar a:hover {
    color: #c30000;
}

#top-bar img {
    width: 32px;
    height: 32px;
}

/*************************************************
    NAVBAR
*************************************************/
nav {
    background: #000;
    color: white;
    padding: 0px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img {
    height: 10rem;
    margin: 0px;
    padding: 0px;
}

#menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav li {
    font-weight: bold;
}

nav a {
    transition: .2s;
    display: block;
}

nav a:hover {
    color: #c30000;
}

#hamburger {
    display: none;
}

#menu {
    visibility: visible;
}

/*************************************************
    HERO
*************************************************/
#hero {
    height: 500px;
    /*overflow: hidden;*/
}

#hero img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

/*************************************************
    SEARCH
*************************************************/
.buscador {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    border: 1px solid #ddd;
}

.buscador h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #b00000;
}

.buscador form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.buscador div {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 15px;
}

button {
    grid-column: span 3;
    padding: 15px;
    background: #b30000;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background: #8e0000;
}

.buscador2 {
    border: 1px solid black;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    border: 1px solid #ddd;
}

.buscador2 h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #b00000;
}

.buscador2 #codigo-propiedad {
    max-width: 100%;
    text-align: center;
}

.show {
    visibility: visible;
}

/*************************************************
    SLOGAN
*************************************************/
#slogan {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
}

#slogan h1 {
    color: #b30000;
    font-size: 38px;
}

/*************************************************
    Holding
*************************************************/

#holding {
    box-sizing: border-box;
    background: #f7f7f7;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
    /*grid-template-columns: repeat(3, 1fr);*/
    /*grid-template-rows: repeat(2, 1fr);*/
    /*height: 220px;*/
    /*margin: auto;*/
}

#holding a {
    display: contents;
}

#holding img {
    width: 13%;
    border-radius: 50%;
    /*margin: auto;*/
    /*display: block;*/
}

/*************************************************
    FEATURED PROPERTIES
*************************************************/
#destacadas {
    max-width: 1300px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

#destacadas>h2 {
    grid-column: 1/-1;
    text-align: center;
    margin-bottom: 20px;
    color: #b30000;
}

#destacadas>h3 {
    text-align: center;
    font-size: large;
    grid-column: 1/-1;
}

article {
    border: 1px solid #ddd;
    transition: .25s;
    background: white;
}

article:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

article img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

article h3 {
    font-size: 22px;
}

article p {
    color: #555;
    margin-bottom: 20px;
}

article a {
    /*display: inline-block;
    margin: 0 15px 20px;
    padding: 12px 20px;
    background: #b30000;
    color: white;*/
    display: contents;
}

article .button {
    display: inline-block;
    margin: 0 15px 20px;
    padding: 12px 20px;
    background: #b30000;
    color: white;
}

article a:hover {
    background: #8d0000;
}

/* new */
.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.property-image {
    display: block;
}

.property-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.property-info {
    padding: 16px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.property-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.property-price {
    background: #c62828;
    color: white;
    padding: 7px 12px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.property-description {
    margin-bottom: 8px;
}

.property-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.property-specs {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.property-code {
    font-size: 0.8rem;
    color: #777;
}

.property-footer .button {
    text-decoration: none;
}

/*************************************************
    FOOTER
*************************************************/
footer {
    background: #222;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 50px;
}

footer h3 {
    border-bottom: 2px solid #555;
}

footer #logo {
    width: 120px;
    margin: auto;
    border-radius: 50%;
}

footer .icon {
    width: 24px;
    height: 24px;
}

footer a {
    margin: 1rem 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    color: white;
    line-height: 1.5;
}

footer a:hover {
    color: #d00000;
}

#footer-inner {
    width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-bottom: 1px solid #555;
}

#prodata {
    grid-column: 1/-1;
}

#footer-inner div {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-flow: column;
}

/*************************************************
    Whatsapp button
*************************************************/
#contact {
    position: fixed;
    right: 4rem;
    bottom: 2rem;
    width: 100px;
    background-color: #058105;
    border-radius: 1rem;
}

#contact a {
    color: white;
    display: block;
    margin: auto;
    padding: 6px;
}



/*************************************************
    RESPONSIVE
*************************************************/
@media screen and (max-width: 500px) {

    .show {
        visibility: visible;
    }

    #top-bar {
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    #hamburger {
        position: absolute;
        background: #222;
        top: 10rem;
        left: 2rem;
        font-size: 1.5rem;
        display: block;
        cursor: pointer;
        z-index: 1000;
    }

    #hamburger::before {
        content: "\2630";
    }

    #hamburger.show::before {
        content: "\00D7";
    }

    #menu {
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    #menu.show {
        display: flex;
    }

    #hero img {
        object-fit: cover;
    }

    .buscador {
        margin: 0 auto;
    }

    .buscador form {
        display: flex;
        flex-direction: column;
    }

    .buscador2 {
        margin: 0 auto;
    }

    .buscador2 form {
        margin: 0 auto;
    }

    button {
        grid-column: span 1;
    }

    #destacadas {
        display: flex;
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    #footer-inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        border: 0px;
    }

    #footer-inner a {
        text-align: center;
        margin-top: 1rem;
    }

    #footer-redes a {
        margin: 0.5rem auto;
        text-align: center;

    }

    button {
        grid-column: span 2;
    }

    #holding {
        flex-direction: column;
    }

    #holding img {
        width: 70%;
    }

    #contact {
        background-color: transparent;
        width: 3rem;
    }

    #contact {
        right: 2rem;
    }

    #contact a {
        font-size: 0px;
    }
}
