.mip-map-shell{
  --mip-primary:#213547;
  --mip-accent:#d6a84b;
  --mip-height:650px;
  position:relative;
  width:100%;
}
.mip-map{
  width:100%;
  height:var(--mip-height);
  min-height:420px;
  border-radius:22px;
  overflow:hidden;
  background:#eef1f3;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
}
.mip-filter-soft .leaflet-tile-pane{
  filter:saturate(.65) contrast(.95) brightness(1.04);
}
.mip-filter-mono .leaflet-tile-pane{
  filter:grayscale(1) contrast(.92) brightness(1.06);
}
.mip-marker-wrap{
  background:transparent!important;
  border:0!important;
}
.mip-marker{
  --marker:#213547;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:var(--marker);
  border:3px solid #fff;
  border-radius:50% 50% 50% 12%;
  transform:rotate(-45deg);
  box-shadow:0 5px 14px rgba(0,0,0,.28);
  font-size:15px;
  font-weight:800;
}
.mip-marker>*,
.mip-marker{
  line-height:1;
}
.mip-marker .mip-pin-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#fff;
}
.mip-marker .mip-pin-dot,
.mip-marker{
  /* marker itself remains rotated; text is corrected below via pseudo wrapping */
}
.mip-marker-wrap .mip-marker{
  text-align:center;
}
.mip-pin-glyph{
  display:inline-block;
  transform:rotate(45deg);
}
.leaflet-control-attribution{
  font-size:10px;
}
.mip-modal-global{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.mip-modal-global.is-open{display:flex}
.mip-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,17,23,.72);
  backdrop-filter:blur(4px);
}
.mip-modal-card{
  position:relative;
  z-index:1;
  width:min(920px,100%);
  max-height:min(88vh,900px);
  overflow:auto;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  display:grid;
  grid-template-columns:minmax(260px,42%) 1fr;
}
.mip-modal-close{
  position:absolute;
  right:14px;
  top:14px;
  z-index:3;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#111;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 3px 14px rgba(0,0,0,.14);
}
.mip-modal-media{
  min-height:420px;
  background:#e9edef;
}
.mip-modal-media>img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
  display:block;
}
.mip-media-placeholder{
  min-height:420px;
  height:100%;
  background:linear-gradient(135deg,var(--mip-primary,#213547),var(--mip-accent,#d6a84b));
}
.mip-modal-body{
  padding:48px 42px 36px;
}
.mip-modal-kicker{
  color:var(--mip-primary,#213547);
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.12em;
  margin-bottom:8px;
}
.mip-modal-body h2{
  margin:0 0 18px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.06;
}
.mip-modal-content{
  font-size:16px;
  line-height:1.7;
}
.mip-modal-content>:first-child{margin-top:0}
.mip-modal-thumbs{
  display:flex;
  gap:9px;
  margin-top:24px;
  overflow-x:auto;
  padding-bottom:4px;
}
.mip-thumb{
  flex:0 0 72px;
  height:56px;
  padding:0;
  border:2px solid transparent;
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  background:#eee;
}
.mip-thumb:focus{outline:3px solid var(--mip-accent,#d6a84b);outline-offset:2px}
.mip-thumb img{width:100%;height:100%;object-fit:cover;display:block}
body.mip-modal-open{overflow:hidden}

@media(max-width:720px){
  .mip-map{min-height:520px;border-radius:14px}
  .mip-modal-global{padding:10px;align-items:flex-end}
  .mip-modal-card{
    grid-template-columns:1fr;
    max-height:94vh;
    border-radius:20px 20px 10px 10px;
  }
  .mip-modal-media{min-height:220px;max-height:36vh}
  .mip-modal-media>img{min-height:220px;max-height:36vh}
  .mip-media-placeholder{min-height:220px}
  .mip-modal-body{padding:28px 22px 28px}
}
@media(prefers-reduced-motion:reduce){
  .mip-modal-global *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
