/* CSS for custom tooltip styling */
:host {
  display: block; // Or flex, depending on layout needs
  width: 100%;
  height: 100%;
}

.map-container-element { // If you add this class to your #mapContainer div
  width: 100%;
  height: 100%;
}

.custom-infowindow {
  background-color: #ffffff;
  color: #333333;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); // Standard Google Maps shadow is similar
  padding: 0; // Let inner elements handle padding if using a header
  max-width: 300px; // Good practice for InfoWindows

  .infowindow-header { 
    background-color: #4285F4; // Google Blue, or your theme color
    color: #ffffff;
    padding: 8px 12px; // Adjusted padding
    border-top-left-radius: 8px; // Match parent
    border-top-right-radius: 8px; // Match parent

    h3, h4, h5 { // Target specific heading levels you use
      margin: 0;
      font-size: 16px;
      font-weight: 500;
    }
  }

  .infowindow-content {
    padding: 10px 12px; // Adjusted padding
    line-height: 1.5;

    p {
      margin: 5px 0; // Consistent paragraph spacing
      &:first-child {
        margin-top: 0;
      }
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}


.div{
  padding: 2px;
}


/* Add this to your component's SCSS file */
.custom-html-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  cursor: pointer;
  font-size: 16px;
  border: 2px solid white;
  background-color: #FF5733; // Example background
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

//   #markers {
//     position: absolute;
//     top: 10px;
//     left: 10px;
//     z-index: 1;
//   }


.custom-html-marker-label { 
  color: #fff;
  background-color: #FF5733;
  font-size: 14px;
  padding: 8px;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.info-window-container {
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.info-window-header {
  display: flex;
  justify-content: space-between; /* Puts space between title and close button */
  align-items: center; /* Vertically aligns title and close button */
  margin-bottom: 5px; /* Adds a little space below the header */
}

.info-window-title {
  font-weight: bold;
  color: #333;
  flex-grow: 1; /* Allows title to take up available space */
}

.info-window-close-button {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px; /* Adds some space between title and button */
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 1;
  }

  svg {
    fill: #777;
  }
}

.info-window-body {
  .info-window-detail {
    margin-bottom: 3px;
    color: #555;
    font-size: 0.9em;
  }
}


::ng-deep {

  .gm-style-iw-ch {
    display: none !important;
  }  
  .gm-style-iw-chr{
    display: none !important;
  }
  /* Make sure highlighted elements stay on top */
  .highlighted-route {
    z-index: 1000 !important;
  }
  
  .highlighted-marker {
    z-index: 1001 !important;
  }
}