:root {
    --venditore-color: #7b1fa2;
    --espositore-color: #558B2F;
    --nero: #000;
    --bianco: #fff;
  }
  
  /*
   * Always set the map height explicitly to define the size of the div element
   * that contains the map.
   */
  #map {
    height: 100%;
    width: 100%;
  }
  
  /*
   * Property styles in unhighlighted state.
   */
   
  .property {
    align-items: center;
    background-color: red;
    border-radius: 50%;
    color: #000;
    display: flex;
    font-size: 14px;
    gap: 15px;
    justify-content: center;
    padding: 8px;
    position: relative;
    transition: all 0.3s ease-out;
  }
  
  .property::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid red;
    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 .bi::before {
    font-size: 20px;
  }
  
  .property .details {
    display: none;
    flex-direction: column;
    flex: 1;
  }
  
  .property .details .nome {
    font-weight: 700;
    margin-top: 5px;
  }
  
  .property .details .indirizzo,
  .property .details .telefono {
    margin-top: 5px;
  }
  
  .property .details .nota {
    color: red;
    margin-bottom: 8px;
    margin-top: 5px;
    font-style: italic;
  }
  
  .property .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
    z-index: 99;
  }
  
  /*
   * Property styles in highlighted state.
   */
  
  .property.highlight {
    background-color: #FFFFFF !important;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    min-height: 80px;
    padding: 8px 15px;
    width: auto;
    min-width: 250px;
    color: #000;
  }
  
  .property.highlight::after {
    border-top: 9px solid #FFFFFF;
  }
  
  .property.highlight .details {
    display: flex;
  }
  
  .property.highlight .icon {
    display: none;
  }
  
  .property.highlight a, .property.highlight button {
    display: block;
    background-color: var(--nero);
    padding: 4px;
    color: var(--bianco);
    border-radius: 4px;
    line-height: 16px;
    text-decoration: none !important;
    border: none;
  }
  
  /*
   * Venditore icon colors.
   */
  
  .property:not(.highlight):has(.bi-cart-check-fill) {
    background-color: var(--venditore-color);
  }
  
  .property:not(.highlight):has(.bi-cart-check-fill)::after {
    border-top: 9px solid var(--venditore-color);
  }
  
  /*
   * Espositore icon colors.
   */
  
  .property:not(.highlight):has(.bi-shop-window) {
    background-color: var(--espositore-color);
  }
  
  .property:not(.highlight):has(.bi-shop-window)::after {
    border-top: 9px solid var(--espositore-color);
  }
  
  /*
   * Home icon colors.
   */
  
  .property.markerHome {
    background-color: var(--nero);
  }
  
  .property:has(.bi-house-fill)::after {
    border-top: 9px solid  var(--nero);
  }
  
  @media (max-width: 991px) {
    #map {
      min-height: 600px;
    }
  }