@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Protest+Strike&display=swap');

.principal-container {
    display: flex;
    width: 100%;
    padding: 15px;
}

.buttons-container {
    display: block;
    width: 30%;
    margin-left: 20px;
    margin-right: 20px;
    border-right: solid 1px black;
}

.map-container {
    border: solid 1px black;
    display: flex;
    width: 70%;
    height: 470px;
    position: sticky;
    top: 120px;
}

#map {
    margin: 13px;
    height: 95%;
    /* The height is 400 pixels */
    width: 100%;
    /* The width is the width of the web page */
}

.nombre-sucursal {
    font-family: 'Montserrat';
    margin: 0;
    font-size: 14px;
    color: #234055;
    font-weight: 600;
}

i {
    color: #234055;
}

.address,
.phone,
.email {
    font-size: 15px;
    font-family: 'Montserrat';
    color: #060606;
    font-weight: 500;
}

a {
    font-size: 15px;
    font-family: 'Montserrat';
    color: #060606;
    font-weight: 500;
    text-decoration: none;
    margin-top: 100px;
}

a:hover {
    color: black;
}

button {
    border: none;
    background-color: transparent;
}

.marginto {
    margin-top: 80px;
}





:root {
    --building-color: #FF9800;
    --house-color: #0288D1;
    --shop-color: #7B1FA2;
    --warehouse-color: #558B2F;
}

/*
   * Property styles in unhighlighted state.
   */
.property {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    justify-content: center;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 300px;
}

.property::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFFFFF;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
}

.property .icon {
    width: 30px;
    height: 30px;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
}

.property .icon svg {
    height: 20px;
    width: auto;
}

.property .details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property .address {
    color: #9E9E9E;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.property .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.property .features>div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
}

/*
   * Property styles in highlighted state.
   */
.property.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: 80px;
    padding: 8px 15px;
    width: auto;
}

.property.highlight::after {
    border-top: 9px solid #FFFFFF;
}

.property.highlight .details {
    display: flex;
}

.property.highlight .icon svg {
    width: 50px;
    height: 50px;
}

.property .bed {
    color: #FFA000;
}

.property .bath {
    color: #03A9F4;
}

.property .size {
    color: #388E3C;
}



/*
   * Building icon colors.
   */
.property.highlight:has(.fa-building) .icon {
    color: var(--building-color);
}

.property:not(.highlight):has(.fa-building) {
    background-color: var(--building-color);
}

.property:not(.highlight):has(.fa-building)::after {
    border-top: 9px solid var(--building-color);
}

/*
   * Warehouse icon colors.
   */
.property.highlight:has(.fa-warehouse) .icon {
    color: var(--warehouse-color);
}

.property:not(.highlight):has(.fa-warehouse) {
    background-color: var(--warehouse-color);
}

.property:not(.highlight):has(.fa-warehouse)::after {
    border-top: 9px solid var(--warehouse-color);
}

/*
   * Shop icon colors.
   */
.property.highlight:has(.fa-shop) .icon {
    color: var(--shop-color);
}

.property:not(.highlight):has(.fa-shop) {
    background-color: var(--shop-color);
}

.property:not(.highlight):has(.fa-shop)::after {
    border-top: 9px solid var(--shop-color);
}

@media (max-width: 800px) {
    .principal-container {
        flex-direction: column;
        /* apila verticalmente */
    }

    .map-container {
        width: 100%;
        order: 1;
        position: unset;
    }

    #map {
        margin: 0;
    }

    .buttons-container {
        width: 98%;
        border-right: none;
        order: 2;
    }

    .marginto {
        margin-top: 10px;
    }
}