:root {
    --building-color: #ff9800;
    --house-color: #0288d1;
    --shop-color: #7b1fa2;
    --warehouse-color: #558b2f;
    --for-sale-color: #0288d1;
    --pending-color: #ff9800;
    --sold-color: #9e9e9e;
}

.property .color-for-sale {
    color: var(--for-sale-color);
}
.property .color-pending {
    color: var(--pending-color);
}
.property .color-sold {
    color: var(--sold-color);
}

.property:not(.highlight):has(.color-for-sale) {
    background-color: var(--for-sale-color);
}
.property:not(.highlight):has(.color-for-sale)::after {
    border-top-color: var(--for-sale-color);
}

.property:not(.highlight):has(.color-pending) {
    background-color: var(--pending-color);
}
.property:not(.highlight):has(.color-pending)::after {
    border-top-color: var(--pending-color);
}

.property:not(.highlight):has(.color-sold) {
    background-color: var(--sold-color);
}
.property:not(.highlight):has(.color-sold)::after {
    border-top-color: var(--sold-color);
}
#map {
    height: 100vh;
    width: 100%;
}
/*
* Property styles in unhighlighted state.
*/
.property {
    align-items: center;
    background-color: #ffffff;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
    z-index: 1;
}

.property:not(.highlight) {
    z-index: 1;
}

.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 {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #ffffff;
}

.property .icon svg {
    height: 20px;
    width: auto;
}

.property .details {
    display: none;
    flex-direction: column;
    flex: 1;
}

.property .details img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.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: auto;
    padding: 8px 15px;
    position: relative;
    width: auto;
    max-width: 260px;
    gap: 0;
    z-index: 9999 !important;
}

.property.highlight::after {
    border-top: 9px solid #ffffff;
}

.property.highlight .details {
    display: flex;
}

.property.highlight .icon svg {
    width: 50px;
    height: 50px;
    display: none;
}
.property.highlight .details a {
    width: -webkit-fill-available;
}

.property .price {
    font-size: 14px;
    font-weight: 700;
    color: #263238;
    margin: 4px 0 2px;
}

.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);
}
