/* Google Maps Info Window Styles */
.dy-map-info-window {
  min-width: 250px;
  max-width: 300px;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.dy-map-info-window__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  padding: 0;
  color: #212121;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.dy-map-info-window__body {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.dy-map-info-window__address {
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.dy-map-info-window__link {
  display: block;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 12px;
}

.dy-map-info-window__link a {
  color: #ed1c24;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.dy-map-info-window__link a:hover {
  color: #ed1c24;
  text-decoration: underline;
}

.dy-map-info-window__link a i {
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.dy-map-info-window__link a:hover i {
  transform: translateX(2px);
}

.dy-map-info-window__phone {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #ed1c24;
  font-weight: 500;
  line-height: 1.6;
}

/* Google Maps Info Window Container Overrides */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  max-width: 320px !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 20px 24px !important;
  box-sizing: border-box !important;
  max-height: none !important;
}

/* Remove default padding from Google Maps */
.gm-style .gm-style-iw-d > div {
  padding: 0 !important;
  margin: 0 !important;
}

.gm-style-iw-chr {
  position: absolute;
  right: 0;
  padding: 0 !important;
}

/* Style the close button */
.gm-style .gm-style-iw-tc {
  top: 0 !important;
}

.gm-style .gm-ui-hover-effect {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gm-style .gm-ui-hover-effect:hover {
  opacity: 1;
}

/* Info window tail/pointer styling */
.gm-style .gm-style-iw-t::after {
  background: #fff !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure content doesn't get cut off */
.gm-style-iw-d::-webkit-scrollbar {
  width: 8px;
}

.gm-style-iw-d::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Reset any default margins/padding from Google Maps */
.gm-style .dy-map-info-window,
.gm-style .dy-map-info-window * {
  box-sizing: border-box;
}

/* Ensure proper spacing between elements */
.dy-map-info-window__body > *:last-child {
  margin-bottom: 0 !important;
}
