:root {
  --building-color: #2a7bb9;
  --house-color: #0288D1;
  --shop-color: #7B1FA2;
  --warehouse-color: #558B2F;
}


/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#new_map_intraction {
  height: 100%;
  width: 100%;
}

/*
 * Property styles in unhighlighted state.
 */
#new_map_intraction .property {
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 25px;
  gap: 15px;
  height: 50px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: align-items, border-radius, color, display, font-size, gap, height, justify-content, padding, position, position, width 0.3s ease-out;
  width: 50px;
}

#new_map_intraction .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: 91%;
  transform: translate(-50%, 0);
  /* transition: all 0.3s ease-out; */
  width: 0;
  z-index: -1;
}

#new_map_intraction .property .icon {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
}

#new_map_intraction .property .icon svg {
  height: 30px;
  width: auto;
}

#new_map_intraction .property .details {
  display: none;
  flex-direction: column;
  flex: 1;
}
#new_map_intraction .property .title{
  margin-bottom: 10px;    font-size: 20px;
}
#new_map_intraction .property .price{
      font-size: 20px;
}
#new_map_intraction .property .address {
  color: #9E9E9E;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
  font-size: 15px;
  max-width: 300px;
}

#new_map_intraction .property .features {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  gap: 10px;    flex-wrap: wrap;    
  width: 370px;
}

#new_map_intraction .property .features > div {
  align-items: center;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 10px;
  gap: 10px;
  padding: 5px;
  font-size: 14px;    width: max-content;
}

/*
 * Property styles in highlighted state.
 */
#new_map_intraction .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;
}

#new_map_intraction .property.highlight::after {
  border-top: 9px solid #FFFFFF;
}

#new_map_intraction .property.highlight .details {
  display: flex;
}

#new_map_intraction .property.highlight .icon svg {
  width: 50px;
  height: 50px;
}

#new_map_intraction .property .bed {
  color: #2a7bb9;
}

#new_map_intraction .property .bath {
  color: #03A9F4;
}

#new_map_intraction .property .size {
  color: #388E3C;
}

/*
 * House icon colors.
 */
#new_map_intraction .property.highlight:has(.fa-house) .icon {
  color: var(--house-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-house) {
  background-color: var(--house-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-house)::after {
  border-top: 9px solid var(--house-color);
}

/*
 * Building icon colors.
 */
#new_map_intraction .property.highlight:has(.fa-building) .icon {
  color: var(--building-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-building) {
  background-color: var(--building-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-building)::after {
  border-top: 9px solid var(--building-color);
}

/*
 * Warehouse icon colors.
 */
#new_map_intraction .property.highlight:has(.fa-warehouse) .icon {
  color: var(--warehouse-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-warehouse) {
  background-color: var(--warehouse-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-warehouse)::after {
  border-top: 9px solid var(--warehouse-color);
}

/*
 * Shop icon colors.
 */
#new_map_intraction .property.highlight:has(.fa-shop) .icon {
  color: var(--shop-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-shop) {
  background-color: var(--shop-color);
}

#new_map_intraction .property:not(.highlight):has(.fa-shop)::after {
  border-top: 9px solid var(--shop-color);
}

#new_map_intraction .property.highlight svg * {
  fill: #2a7bb9;
  stroke: #2a7bb9;
}

#new_map_intraction .property .image {
  display: none;
}

#new_map_intraction .property.highlight .image{
  display: flex;
}

#new_map_intraction .property.highlight .image img{
  width: 150px;
  height: 150px;
  object-fit: cover;
}
#new_map_intraction .property.highlight .icon{
  display: none;
}
#new_map_intraction .property .features > div a {
  text-decoration: none;
  color: #263238;
}

#new_map_intraction .close-btn.close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: transparent;
  display: none;
}

#new_map_intraction .property.highlight .close-btn.close{
  display: flex;
}


#new_map_intraction .property.highlight i {
  color: #2a7bb9;
  font-size: 20px;
}