:root {
    --doctor-color: #FC893D;
    --hospital-color: #2A1B39;
    --clinic-color: #0288D1;
    --facility-color: #558B2F;
}

/* Base styles for the marker */
.property {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 16px;
    gap: 15px;
    height: 40px;
    justify-content: center;
    padding: 6px;
    position: relative;
    transition: all 0.3s ease-out;
    width: 35px;
}

.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 i {
    font-size: 30px;
}

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

.property .address {
    color: #ffffff;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Styles for the marker in highlighted (expanded) 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;
    width: auto;
}

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

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

.property.highlight .icon i {
    font-size: 40px;
}

/* Category-specific styles */
.property.doctor .icon {
    color: var(--doctor-color);
}

.property.doctor {
    background-color: var(--doctor-color);
}

.property.doctor::after {
    border-top: 9px solid var(--doctor-color);
}

.property.hospital .icon {
    color: var(--hospital-color);
}

.property.hospital {
    background-color: var(--hospital-color);
}

.property.hospital::after {
    border-top: 9px solid var(--hospital-color);
}

.property.clinic .icon {
    color: var(--clinic-color);
}

.property.clinic {
    background-color: var(--clinic-color);
}

.property.clinic::after {
    border-top: 9px solid var(--clinic-color);
}

.property.facility .icon {
    color: var(--facility-color);
}

.property.facility {
    background-color: var(--facility-color);
}

.property.facility::after {
    border-top: 9px solid var(--facility-color);
}