/* Povodňové mapy – scoped styles. Does not affect existing table or page-header plugins. */
.pmp-map-card,
.pmp-map-card * { box-sizing: border-box; }
.pmp-map-card {
  width: 100%; margin: 24px 0 32px; padding: 20px 22px 22px;
  border: 1px solid #d6e2f2; border-radius: 14px; background: #fff;
  box-shadow: 0 5px 20px rgba(30,55,85,.045); color: #18324b;
}
.pmp-map-card__header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 14px; row-gap: 12px; margin-bottom: 20px;
}
.pmp-map-card__heading {display:flex; align-items:center; gap:14px; flex:1 1 540px; min-width:0;}
/* SVG is a CSS background (not inline SVG) to prevent WP themes overriding its stroke or size. */
.pmp-map-card__icon {
  display:block; flex:0 0 32px; width:32px; height:32px;
  background-position:center; background-size:contain; background-repeat:no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234472C4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
}
.pmp-map-card h3.pmp-map-card__title {
  margin:0 !important; padding:0 !important; border:0 !important;
  font-size:20px; font-weight:700; line-height:1.35; color:#18324b;
}
.pmp-map-card a.pmp-map-card__expand {
  display:inline-flex !important; gap:6px; align-items:center; justify-content:center;
  flex:0 0 auto; padding:10px 13px !important; margin:0 !important;
  border:0 !important; border-radius:8px !important;
  background:#eaf0fc; color:#315fb7; font-size:13px; line-height:1.4;
  font-weight:600; white-space:nowrap; text-decoration:none !important;
  box-shadow:none !important;
}
.pmp-map-card a.pmp-map-card__expand:hover,
.pmp-map-card a.pmp-map-card__expand:focus-visible {background:#dce7fc; color:#234b98;}
.pmp-map-card__expand svg {flex:0 0 auto;}
.pmp-map-card a.pmp-map-card__image-link {display:block; line-height:0; cursor:zoom-in; text-decoration:none;}
.pmp-map-card img.pmp-map-card__image {
  display:block !important; width:100% !important; height:auto !important;
  max-width:100% !important; margin:0 !important; padding:0 !important;
  border:1px solid #d6e2f2; border-radius:10px; object-fit:contain;
}
.pmp-map-card__open:focus-visible {outline:3px solid #4472c4; outline-offset:4px;}
.pmp-map-warning {color:#b03838; font-weight:600;}
@media(max-width:768px) {
 .pmp-map-card {padding:14px; border-radius:12px;}
 .pmp-map-card__header {margin-bottom:14px;}
 .pmp-map-card__heading {flex-basis:100%; gap:9px;}
 .pmp-map-card h3.pmp-map-card__title {font-size:17px;}
 .pmp-map-card a.pmp-map-card__expand {font-size:12px;}
}
/* Native dialog, hidden until activated by JS. */
.pmp-lightbox {
  width:min(98vw, 1700px); max-width:98vw; max-height:98vh; height: min(94vh, 1100px);
  padding:0; margin:auto; border:1px solid #d6e2f2; border-radius:12px;
  background:#fff; color:#18324b; box-shadow:0 20px 90px rgba(0,0,0,.28);
}
.pmp-lightbox::backdrop {background:rgba(16,33,56,.82);}
.pmp-lightbox__panel {display:flex; flex-direction:column; height:100%;}
.pmp-lightbox__toolbar {display:flex; align-items:center; gap:10px; padding:12px 14px; background:#f4f8fc; flex-wrap:wrap;}
.pmp-lightbox__title {font-size:15px; font-weight:700; flex:1 1 240px; margin:0;}
.pmp-lightbox__toolbar button {
  cursor:pointer; font:inherit; font-size:13px; border:1px solid #cbdaef;
  background:#fff; color:#234e8f; padding:7px 10px; border-radius:7px; text-decoration:none;
}
.pmp-lightbox__toolbar button:hover {background:#eaf0fc;}
.pmp-lightbox__stage {flex:1; min-height:0; overflow:auto; display:flex; align-items:safe center; justify-content:safe center; background:#eaf0f7;}
.pmp-lightbox__stage img {max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block;}
.pmp-lightbox__stage.is-zoomed {display:block;}
.pmp-lightbox__stage.is-zoomed img {max-width:none; max-height:none; margin:0 auto;}
.pmp-lightbox__tip {padding:8px 14px; text-align:center; font-size:12px; color:#64758a; background:#f9fbfe; margin:0;}
@media(max-width:640px) { .pmp-lightbox {width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0;} .pmp-lightbox__toolbar {gap:6px;} .pmp-lightbox__toolbar button {font-size:12px;} }
