/* Public website map. Theme through custom properties on the host page:
   --irm-bg, --irm-fg, --irm-muted, --irm-line, --irm-accent, --irm-radius */
.irm-map { --irm-bg: #0B1426; --irm-fg: #EAF0FB; --irm-muted: #A3B0C9; --irm-line: rgba(148, 187, 255, .22);
  --irm-accent: #94BBFF; --irm-radius: 18px; color: var(--irm-fg); }
.irm-shell { position: relative; height: min(72vh, 620px); min-height: 380px; border-radius: var(--irm-radius);
  overflow: hidden; border: 1px solid var(--irm-line); background: var(--irm-bg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
/* MapLibre adds .maplibregl-map { position: relative } to this element; keep it filling the shell. */
.irm-shell .irm-canvas.irm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.irm-search { position: absolute; z-index: 3; top: 12px; left: 12px; width: min(360px, calc(100% - 76px)); margin: 0; }
.irm-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--irm-line); background: color-mix(in srgb, var(--irm-bg) 88%, transparent);
  backdrop-filter: blur(10px); color: var(--irm-fg); font: inherit; font-size: 16px; }
.irm-search input::placeholder { color: var(--irm-muted); }
.irm-search input:focus-visible { outline: 2px solid var(--irm-accent); outline-offset: 2px; }
.irm-results { list-style: none; margin: 6px 0 0; padding: 6px; border-radius: 14px; border: 1px solid var(--irm-line);
  background: var(--irm-bg); max-height: 260px; overflow: auto; }
.irm-results button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--irm-fg); font: inherit; cursor: pointer; }
.irm-results button:hover, .irm-results button:focus-visible { background: rgba(148, 187, 255, .12); outline: none; }
.irm-results span, .irm-empty { color: var(--irm-muted); font-size: 13px; }
.irm-empty { padding: 10px 12px; }
.irm-locate { position: absolute; z-index: 3; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--irm-line); background: color-mix(in srgb, var(--irm-bg) 88%, transparent); color: var(--irm-accent);
  display: grid; place-items: center; cursor: pointer; }
.irm-locate:focus-visible { outline: 2px solid var(--irm-accent); outline-offset: 2px; }
.irm-status { position: absolute; z-index: 2; left: 12px; bottom: 12px; right: 64px; margin: 0; width: fit-content; max-width: calc(100% - 76px);
  padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--irm-fg);
  background: color-mix(in srgb, var(--irm-bg) 86%, transparent); border: 1px solid var(--irm-line); }
.irm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 14px 2px 0; font-size: 14px; color: var(--irm-muted); }
.irm-legend li { display: flex; align-items: center; gap: 8px; }
.irm-dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; display: grid; place-items: center;
  font: 13px/1 "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.irm-me { width: 18px; height: 18px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(59, 130, 246, .3); }
.irm-popup .maplibregl-popup-content { background: var(--irm-bg, #0B1426); color: var(--irm-fg, #EAF0FB); border-radius: 14px;
  padding: 12px 14px; border: 1px solid rgba(148, 187, 255, .22); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.irm-popup .maplibregl-popup-tip { border-top-color: #0B1426; border-bottom-color: #0B1426; }
.irm-popup .maplibregl-popup-close-button { color: #A3B0C9; font-size: 18px; padding: 2px 8px; }
.irm-card { display: grid; gap: 4px; font: 14px/1.4 system-ui, sans-serif; }
.irm-card span { color: #A3B0C9; text-transform: capitalize; }
.irm-open { margin-top: 6px; display: inline-block; padding: 8px 12px; border-radius: 10px; background: #175CD3; color: #fff !important;
  text-decoration: none; font-weight: 600; text-align: center; }
@media (max-width: 520px) { .irm-shell { height: 70vh; } .irm-status { right: 12px; max-width: calc(100% - 24px); bottom: 56px; } }
