.iih-map { position: relative; width: 100%; margin: 36px auto 24px; isolation: isolate; overflow: visible; line-height: 0; }
.iih-map .iih-map-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; border: 0; border-radius: 10px; }
.iih-map .iih-hotspot { position: absolute; display: grid; place-items: center; width: max(44px, var(--iih-size)); height: max(44px, var(--iih-size)); min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; transform: translate(-50%, -50%); cursor: pointer; overflow: visible; text-transform: none; letter-spacing: normal; -webkit-tap-highlight-color: transparent; }
.iih-map .iih-dot { position: relative; display: block; box-sizing: border-box; width: var(--iih-size); height: var(--iih-size); border: 3px solid #fff; border-radius: 50%; background: var(--iih-color); box-shadow: 0 2px 9px #0005; }
.iih-map .iih-dot::before { content: ''; position: absolute; inset: -5px; border: 2px solid var(--iih-color); border-radius: 50%; opacity: 0; pointer-events: none; }
.iih-map.iih-animated .iih-dot::before { animation: iih-pulse 2.5s ease-out infinite; }
.iih-map .iih-label { position: absolute; bottom: calc(50% + var(--iih-size) / 2 + 7px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(180px, 60vw); padding: 6px 10px; border-radius: 6px; background: var(--iih-label, #172033); color: var(--iih-label-text, #fff); box-shadow: 0 3px 12px #0002; font: 600 12px/1.35 system-ui, sans-serif; text-align: center; overflow-wrap: anywhere; }
.iih-map .iih-hotspot:hover, .iih-map .iih-hotspot:focus-visible { z-index: 5; background: transparent; }
.iih-map .iih-hotspot:focus-visible { outline: 3px solid #111; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.iih-dialog { box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0; width: min(640px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: 85vh; max-height: 85dvh; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #172033; box-shadow: 0 24px 100px #0004; font: 16px/1.65 system-ui, sans-serif; overflow: auto; overscroll-behavior: contain; }
.iih-dialog:not([open]) { display: none; }
.iih-dialog[open] { display: block; animation: iih-enter .18s ease-out; }
.iih-dialog::backdrop { background: rgb(15 23 42 / 65%); backdrop-filter: blur(3px); }
.iih-dialog .iih-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fff; border-bottom: 1px solid #edf0f5; }
.iih-dialog .iih-dialog-title { margin: 0; padding: 0; font: 700 22px/1.3 system-ui, sans-serif; color: #172033; overflow-wrap: anywhere; }
.iih-dialog .iih-dialog-title[hidden] { display: none !important; }
.iih-dialog .iih-dialog-title[hidden] + .iih-dialog-close { margin-left: auto; }
.iih-dialog .iih-dialog-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font: 30px/1 system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.iih-dialog .iih-dialog-close:hover { background: #e2e8f0; }
.iih-dialog :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.iih-dialog .iih-dialog-body { padding: 24px; overflow-wrap: anywhere; }
.iih-popup-content > :first-child { margin-top: 0; }
.iih-popup-content > :last-child { margin-bottom: 0; }
.iih-popup-content img, .iih-popup-content video { max-width: 100%; height: auto; }
.iih-popup-content figure, .iih-popup-content .wp-caption { max-width: 100%; margin-left: 0; margin-right: 0; }
.iih-popup-content a { color: #1d4ed8; text-decoration: underline; }
.iih-popup-content ul, .iih-popup-content ol { padding-left: 1.5em; }
.iih-popup-content table { display: block; max-width: 100%; overflow: auto; }
@keyframes iih-pulse { 0% { transform: scale(.9); opacity: .65; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes iih-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .iih-dialog .iih-dialog-header { padding: 14px 16px; } .iih-dialog .iih-dialog-body { padding: 18px 16px; } .iih-dialog .iih-dialog-title { font-size: 19px; } .iih-map .iih-label { font-size: 11px; padding: 5px 7px; } }
@media (prefers-reduced-motion: reduce) { .iih-map.iih-animated .iih-dot::before, .iih-dialog[open] { animation: none; } }
