/* 1. Strip ALL Google Maps default padding and spacing */
.gm-style-iw.gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  max-width: 450px !important; /* Fixed width for the wider mockup */
  width: 450px !important;
}
.gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
  padding: 0 !important;
}
.gm-style-iw-ch {
  padding-top: 0px !important;
}

button.gm-ui-hover-effect {
  display: none !important;
}

div#tt-map {
  min-height: 650px !important;
}

/* 2. Setup Our Custom Wrapper */
.tt-custom-popup {
  background: #ffffff;
  width: 100%;
  font-family: Arial, sans-serif;
  position: relative;
  max-height: 540px; /* Taller height */
  display: flex;
  flex-direction: column;
}

/* 3. Image Area */
.tt-popup-image {
  background-color: #d3dce3;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  line-height: 0;
}
.tt-popup-image img {
  width: 100%;
  height: 220px; /* Taller image to remain proportional */
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

/* 4. Custom Close Button */
.tt-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 5. Scrollable Content Area */
.tt-popup-content {
  padding: 20px 20px 45px 20px;
  overflow-y: auto; /* Adds the scrollbar right here */
  max-height: 320px; /* Restricts height so it actually scrolls */
}
.tt-popup-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #222;
  line-height: 1.3;
}
.tt-popup-body {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* 6. Dynamic Link Colors */
.tt-popup-body a {
  color: var(--tt-popup-link) !important;
  font-weight: bold;
  text-decoration: none;
}
.tt-popup-body a:hover {
  text-decoration: underline;
}
