.im-embed {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}
.im-embed interactive-map-view {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.im-root {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.im-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  border-radius: 4px;
  touch-action: pan-y;
}
.im-stage.is-zoomed {
  touch-action: none;
  cursor: grab;
}
.im-stage.is-zoomed.is-panning {
  cursor: grabbing;
  user-select: none;
}
.im-zoom-layer {
  position: relative;
  width: 100%;
  transform-origin: center center;
  will-change: transform;
}
.im-zoom-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
}
.im-zoom-controls button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 0.4rem;
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.im-zoom-controls button:hover {
  background: #fff;
  filter: brightness(1.03);
}
.im-zoom-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}
.im-zoom-controls button i {
  pointer-events: none;
}
.im-bg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 0;
}
.im-icons-html {
  position: absolute;
  inset: 0;
  z-index: 1; /* under SVG fog */
  pointer-events: none;
}
.im-icons-front {
  position: absolute;
  inset: 0;
  z-index: 3; /* above SVG — revealed linked icons only (must stay clickable when zoomed) */
  pointer-events: none;
}
.im-html-icon {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  line-height: 1;
  pointer-events: none;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
}
.im-html-icon > i {
  display: block;
  line-height: 1;
  font-size: 1em;
  font-style: normal;
  pointer-events: none;
  color: inherit;
}
.im-html-icon--clickable {
  pointer-events: auto;
  cursor: pointer;
  border-color: #3d9cf0;
  border-width: 2.5px;
}
.im-html-icon--clickable:hover {
  filter: brightness(1.06);
  transform: translate(-50%, -50%) scale(1.08);
}
.im-cell-hit {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  pointer-events: none;
}
.im-cell-hit--clickable {
  pointer-events: auto;
  cursor: pointer;
}
.im-cell-hit--clickable:hover {
  background: rgba(61, 156, 240, 0.14);
}
.im-cell-link-wrap {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 4;
}
.im-cell-link-grip {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.8);
  pointer-events: none;
  user-select: none;
}
.im-cell-link-grip__tri {
  display: block;
  width: 10px;
  height: 10px;
  overflow: visible;
}
.im-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.im-overlay .im-cell--link {
  pointer-events: none;
}
.im-overlay .im-cell--link:hover {
  fill: rgba(61, 156, 240, 0.16);
}
.im-stage.is-zoomed .im-overlay {
  cursor: grab;
}
.im-stage.is-zoomed.is-panning .im-overlay {
  cursor: grabbing;
}
.im-status { margin: 0.5rem 0; opacity: 0.75; font-size: 0.9rem; }

.im-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000;
  padding: 1rem;
}
.im-modal-backdrop[hidden] { display: none !important; }
.im-modal {
  background: #fff;
  color: #111;
  max-width: 40rem;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}
.im-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.im-modal__title {
  margin: 0 1.5rem 0.5rem 0;
  font-size: 1.35rem;
}
.im-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}
.im-modal__link:hover { text-decoration: underline; }
.im-modal__link[hidden] { display: none !important; }
.im-modal__scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.im-modal__image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}
.im-modal__body img {
  max-width: 100%;
  height: auto;
}
.im-modal__body p { margin: 0 0 0.75rem; }
