
/*
 * Optional: Makes the sample page fill the window.
 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#map {
    height: 100%;
    width: 100%;
}

/*
 * Property styles in unhighlighted state.
 */
.property {
    position: relative;
}
.property .icon{
    background-color:red;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 16px;
    padding: 4px 10px;
}

.property .details {
    display: none;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 3px 6px 0px rgba(153, 153, 153, 0.45);
    height: auto;
    padding: 7px;
    width: auto;
    flex-direction: row;
    flex: 1;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%,0);
}
.property .details .imgCover{
    width: 168px;
    height: 120px;
}
.property .details .imgCover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.property .details .infoBox{
    display: flex;
    flex-direction: column;
    width: 200px;
    color: #333;
    margin-left: 8px;
}
.property .details .infoBox .money{
    margin-top: 6px;
    font-size: 20px;
}
.property .details .infoBox .money span{
    color: #6785FD;
    margin-left: 4px;
}
.property .details .infoBox .bd{
    margin-top: 26px;
    color: #999999;
    font-size: 16px;
    align-items: center;
    display: flex;
}
.property .details .infoBox .bd div{
    width: 1px;
    height: 10px;
    background-color: #999999;
    margin: 0 8px;
}
.property .details .infoBox .sqft{
    margin-top: 24px;
    color: #666666;
    font-size: 16px;
}


.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::after {
    border-top: 9px solid #FFFFFF;
}

.property.highlight .details {
    display: flex;
}
.property.highlight .icon{
    background-color: #6785FD;
}
.property.highlight .icon svg {
    width: 50px;
    height: 50px;
}

.property .bed {
    color: #FFA000;
}

.property .bath {
    color: #03A9F4;
}

.property .size {
    color: #388E3C;
}

/*
 * House icon colors.
 */
.property.highlight:has(.fa-house) .icon {
    color: var(--house-color);
}

.property:not(.highlight):has(.fa-house) {
    background-color: var(--house-color);
}

.property:not(.highlight):has(.fa-house)::after {
    border-top: 9px solid var(--house-color);
}

/*
 * 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 screen and (max-width:600px) {
    .property .icon{
        font-size: 12px;
    }
}