.pm-map-wrap {
  --pm-ink: #1c2b28;
  --pm-paper: #f6f4ee;
  --pm-line: #d8d2c2;
  --pm-accent: #2f5d50;
  --pm-clay: #b5642f;
  width: 100%;
}

.pm-map-canvas {
  width: 100%;
  border: 1px solid var(--pm-line);
  border-radius: 2px;
  background: #eae6db;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Marker = wrapper placed exactly on the location (zero size), holding the pin + label */
.pm-map-canvas .pm-marker {
  position: absolute;
  width: 0;
  height: 0;
}
.pm-map-canvas .pm-marker:hover,
.pm-map-canvas .pm-marker--hovered {
  z-index: 10;
}

/* Label next to the pin — plain text hint, not clickable */
.pm-map-canvas .pm-pin-label {
  position: absolute;
  left: 14px;
  top: -27px;
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pm-paper);
  background: var(--pm-accent);
  border: 1px solid var(--pm-paper);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none; /* not a link: clicks/drags go through to the map */
  user-select: none;
}

/* Pin (a <button>; the tip of the pin sits on the location) */
.pm-map-canvas .pm-pin {
  position: absolute;
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  margin: -24px 0 0 -10px; /* centre the rotated pin so its tip lands on the point */
  padding: 0;
  border-radius: 50% 50% 50% 0;
  background: var(--pm-accent);
  border: 2px solid var(--pm-paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: rotate(-45deg);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-size: 0;
  line-height: 0;
}
.pm-map-canvas .pm-pin:hover,
.pm-map-canvas .pm-marker--hovered .pm-pin {
  background: var(--pm-clay);
  transform: rotate(-45deg) scale(1.15);
}
.pm-map-canvas .pm-pin:focus-visible {
  outline: 2px solid var(--pm-ink);
  outline-offset: 2px;
}

/* Popup (restyles Google's InfoWindow) */
.pm-map-canvas .gm-style .gm-style-iw-c {
  padding: 0 !important;
  background: #ffffff !important;
  border-radius: 15px !important;
  border: 1px solid var(--pm-line);
  box-shadow: 0 12px 32px rgba(28, 43, 40, 0.28), 0 3px 8px rgba(28, 43, 40, 0.14) !important;
  overflow: hidden; /* keeps the image inside the rounded corners */
  max-height: none !important;
}
.pm-map-canvas .gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
  padding: 0 !important;
}
/* Close button: float it over the image instead of taking its own row */
.pm-map-canvas .gm-style .gm-style-iw-chr {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.pm-map-canvas .gm-style .gm-style-iw-chr button {
  width: 30px !important;
  height: 30px !important;
  margin: 6px !important;
  background: rgba(246, 244, 238, 0.92) !important;
  border-radius: 50%;
  opacity: 1;
}
.pm-map-canvas .gm-style .gm-style-iw-chr button span {
  margin: 5px !important;
  width: 20px !important;
  height: 20px !important;
  background-color: var(--pm-ink) !important;
}
.pm-map-canvas .gm-style .gm-style-iw-tc::after {
  background: #ffffff;
}

.pm-popup-card {
  width: 240px;
}
.pm-popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--pm-line);
}
.pm-popup-body {
  background: #ffffff;
  padding: 12px 14px 14px;
}
.pm-popup-tag {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--pm-accent);
  font-weight: 700;
  margin: 0 0 4px;
}
.pm-popup-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.25;
  color: var(--pm-ink);
}
.pm-popup-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #4a4640;
  margin: 0 0 8px;
}
.pm-popup-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.pm-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
}
.pm-popup-link:hover {
  color: var(--pm-clay);
}
