:root {
  --shop-color: #ff9800;
  --services-color: #0288d1;
  --education-color: #7b1fa2;
  --food-color: #558b2f;
  --delay-time: 0s;
  --madrid-color: #b91e22;
}

.property {
  align-items: center;
  background-color: #ffffff;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 14px;
  gap: 15px;
  height: 40px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: all 0.3s ease-out;
  width: 40px;
}

.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 img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.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.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 img {
  width: 50px;
  height: 50px;
  filter: none;
}

.property.highlight:has(.food) .icon img {
  filter: invert(47%) sepia(19%) saturate(1604%) hue-rotate(52deg)
    brightness(96%) contrast(77%);
}

.property:not(.highlight):has(.food) {
  background-color: var(--madrid-color);
}

.property:not(.highlight):has(.food)::after {
  border-top: 9px solid var(--madrid-color);
}

.property.highlight:has(.shop) .icon img {
  filter: invert(75%) sepia(29%) saturate(7497%) hue-rotate(359deg)
    brightness(101%) contrast(105%);
}

.property:not(.highlight):has(.shop) {
  background-color: var(--madrid-color);
}

.property:not(.highlight):has(.shop)::after {
  border-top: 9px solid var(--madrid-color);
}

.property.highlight:has(.education) .icon img {
  filter: invert(17%) sepia(36%) saturate(5976%) hue-rotate(272deg)
    brightness(97%) contrast(99%);
}

.property:not(.highlight):has(.education) {
  background-color: var(--madrid-color);
}

.property:not(.highlight):has(.education)::after {
  border-top: 9px solid var(--madrid-color);
}

.property.highlight:has(.services) .icon img {
  filter: invert(36%) sepia(93%) saturate(2834%) hue-rotate(179deg)
    brightness(95%) contrast(98%);
}

.property:not(.highlight):has(.services) {
  background-color: var(--madrid-color);
}

.property:not(.highlight):has(.services)::after {
  border-top: 9px solid var(--madrid-color);
}
.generic-button {
  background-color: #fff;
  border: 1px solid var(--madrid-color);
  color: var(--madrid-color);
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.3s ease-out;
}
.generic-button:focus {
    outline: none;
    opacity: 0.9;
}

.generic-button:active {
    opacity: 0.9;
}


.buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;

}

@keyframes drop {
  0% {
    transform: translateY(-200px) scaleY(0.9);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  50% {
    transform: translateY(0px) scaleY(1);
    opacity: 1;
  }
  65% {
    transform: translateY(-17px) scaleY(0.9);
    opacity: 1;
  }
  75% {
    transform: translateY(-22px) scaleY(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scaleY(1);
    opacity: 1;
  }
}
.drop {
  animation: drop 0.3s linear forwards var(--delay-time);
}

