:root {
  --fa1-color: #FF9800;
  --fa2-color: #0288D1;
  --fa3-color: #7B1FA2;
  --fa4-color: #558B2F;
  --fa5-color: #CC6CE7;
  --fa6-color: #6CC3E9;
  --fa7-color: #59FFB4;
  --fa8-color: #157349;
  --fa9-color: #95A625;
  --fa10-color: #A68025;
  --fa11-color: #711739;
  --fa12-color: #7a34eb;
  --fa13-color: #eb3461;
}
/*
 * 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;
  position: relative;
  transition: all 0.3s ease-out;
  width: 30px;
}

.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 .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;
}

/*
 * 1 icon colors.
 */
.property.highlight:has(.fa-1) .icon {
  color: var(--fa1-color);
}

.property:not(.highlight):has(.fa-1) {
  background-color: var(--fa1-color);
}

.property:not(.highlight):has(.fa-1)::after {
  border-top: 9px solid var(--fa1-color);
}

/*
 * 2 icon colors.
 */
.property.highlight:has(.fa-2) .icon {
  color: var(--fa2-color);
}

.property:not(.highlight):has(.fa-2) {
  background-color: var(--fa2-color);
}

.property:not(.highlight):has(.fa-2)::after {
  border-top: 9px solid var(--fa2-color);
}

/*
 * 3 icon colors.
 */
.property.highlight:has(.fa-3) .icon {
  color: var(--fa3-color);
}

.property:not(.highlight):has(.fa-3) {
  background-color: var(--fa3-color);
}

.property:not(.highlight):has(.fa-3)::after {
  border-top: 9px solid var(--fa3-color);
}

/*
 * 4 icon colors.
 */
.property.highlight:has(.fa-4) .icon {
  color: var(--fa4-color);
}

.property:not(.highlight):has(.fa-4) {
  background-color: var(--fa4-color);
}

.property:not(.highlight):has(.fa-4)::after {
  border-top: 9px solid var(--fa4-color);
}
/*
 * 5 icon colors.
 */
.property.highlight:has(.fa-5) .icon {
  color: var(--fa5-color);
}

.property:not(.highlight):has(.fa-5) {
  background-color: var(--fa5-color);
}

.property:not(.highlight):has(.fa-5)::after {
  border-top: 9px solid var(--fa5-color);
}
/*
 * 6 icon colors.
 */
.property.highlight:has(.fa-6) .icon {
  color: var(--fa6-color);
}

.property:not(.highlight):has(.fa-6) {
  background-color: var(--fa6-color);
}

.property:not(.highlight):has(.fa-6)::after {
  border-top: 9px solid var(--fa6-color);
}
/*
 * 7 icon colors.
 */
.property.highlight:has(.fa-7) .icon {
  color: var(--fa7-color);
}

.property:not(.highlight):has(.fa-7) {
  background-color: var(--fa7-color);
}

.property:not(.highlight):has(.fa-7)::after {
  border-top: 9px solid var(--fa7-color);
}
/*
 * 8 icon colors.
 */
.property.highlight:has(.fa-8) .icon {
  color: var(--fa8-color);
}

.property:not(.highlight):has(.fa-8) {
  background-color: var(--fa8-color);
}

.property:not(.highlight):has(.fa-8)::after {
  border-top: 9px solid var(--fa8-color);
}

/*
 * 9 icon colors.
 */
.property.highlight:has(.fa-9) .icon {
  color: var(--fa9-color);
}

.property:not(.highlight):has(.fa-9) {
  background-color: var(--fa9-color);
}

.property:not(.highlight):has(.fa-9)::after {
  border-top: 9px solid var(--fa9-color);
}

/*
 * 10 icon colors.
 */
.property.highlight:has(.fa-a) .icon {
  color: var(--fa10-color);
}

.property:not(.highlight):has(.fa-a) {
  background-color: var(--fa10-color);
}

.property:not(.highlight):has(.fa-a)::after {
  border-top: 9px solid var(--fa10-color);
}

/*
 * 11 icon colors.
 */
.property.highlight:has(.fa-b) .icon {
  color: var(--fa11-color);
}

.property:not(.highlight):has(.fa-b) {
  background-color: var(--fa11-color);
}

.property:not(.highlight):has(.fa-b)::after {
  border-top: 9px solid var(--fa11-color);
}

/*
 * 12 icon colors.
 */
.property.highlight:has(.fa-c) .icon {
  color: var(--fa12-color);
}

.property:not(.highlight):has(.fa-c) {
  background-color: var(--fa12-color);
}

.property:not(.highlight):has(.fa-c)::after {
  border-top: 9px solid var(--fa12-color);
}

/*
 * 13 icon colors.
 */
.property.highlight:has(.fa-d) .icon {
  color: var(--fa13-color);
}

.property:not(.highlight):has(.fa-d) {
  background-color: var(--fa13-color);
}

.property:not(.highlight):has(.fa-d)::after {
  border-top: 9px solid var(--fa13-color);
}
