/* hgm.css - Google map container, pin, cluster and info window. Low specificity so theme CSS wins. */
.hgm-host { position: relative; }
.hgm-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.hgm-failed > .hgm-canvas { display: none !important; }
.hgm-pin { display: block; line-height: 0; cursor: pointer; }
.hgm-pin > svg, .hgm-pin > img { display: block; width: 100%; height: 100%; }
.hgm-cluster {
  --hgm-accent: #B8922A;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--hgm-accent); color: var(--hgm-accent-fg, #fff); border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .4); font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.hgm-cluster--m { width: 42px; height: 42px; }
.hgm-cluster--l { width: 48px; height: 48px; font-size: 14px; }
:where(.hgm-iw) { min-width: 220px; max-width: 280px; }

/* Card-style info windows (hotelLocations family): the theme CSS styles .map-popup-card itself, so the
   Google chrome is reduced to a clipped, padding-free box with a small round close button. Browsers
   without :has() keep the default chrome (still usable, just padded). */
.gm-style .gm-style-iw-c:has(.hgm-iw--card), .gm-style .gm-style-iw-c:has(.hgm-iw--rott) { padding: 0; overflow: hidden; }
.gm-style .gm-style-iw-d:has(.hgm-iw--card), .gm-style .gm-style-iw-d:has(.hgm-iw--rott) { overflow: hidden !important; }
.gm-style .gm-style-iw-c:has(.hgm-iw--card) .gm-ui-hover-effect,
.gm-style .gm-style-iw-c:has(.hgm-iw--rott) .gm-ui-hover-effect {
  top: 6px !important; right: 6px !important; width: 28px !important; height: 28px !important;
  border-radius: 50%; background: rgba(255, 255, 255, .92) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.gm-style .gm-style-iw-c:has(.hgm-iw--card) .gm-ui-hover-effect > span,
.gm-style .gm-style-iw-c:has(.hgm-iw--rott) .gm-ui-hover-effect > span { margin: 4px !important; width: 20px !important; height: 20px !important; }
.gm-style .gm-style-iw-chr:has(+ .gm-style-iw-d .hgm-iw--card), .gm-style .gm-style-iw-chr:has(+ .gm-style-iw-d .hgm-iw--rott) { height: 0; }
/* tip colour follows the theme's popup background (set by the core from the adapter's chrome option) */
.gm-style .gm-style-iw-t[style*="--hgm-iw-bg"] .gm-style-iw-tc::after { background: var(--hgm-iw-bg); }
.hgm-iw--card { width: 240px; min-width: 0; }
.hgm-iw--rott { min-width: 240px; }

/* riyadh: same soft shadow the theme gives its Leaflet pins */
.hgm-pin.hgm-rott { filter: drop-shadow(0 2px 4px rgba(26, 20, 13, .25)); }
