/* Monitor page + premium components */

.p2mp-landing-hero__body {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: center;
}
.p2mp-kicker {
  margin: 0 0 .25rem;
  color: var(--p2-accent);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.p2mp-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.p2mp-hero-preview__window {
  min-height: 220px;
  border: 1px solid var(--p2-border);
  border-radius: 16px;
  background: radial-gradient(circle at top right, #182235, #080808 60%);
  padding: 1rem;
  box-shadow: var(--p2-shadow);
}
.p2mp-hero-preview__line {
  height: 18px;
  border-radius: 999px;
  margin: .65rem 0;
  opacity: .9;
}
.p2mp-hero-preview__line--blue { background: linear-gradient(90deg, rgba(0,211,255,.2), rgba(93,178,255,.95)); width: 78%; }
.p2mp-hero-preview__line--yellow { background: linear-gradient(90deg, rgba(255,212,0,.2), rgba(255,212,0,.95)); width: 92%; }
.p2mp-hero-preview__line--red { background: linear-gradient(90deg, rgba(255,59,48,.2), rgba(255,59,48,.95)); width: 65%; }
.p2mp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }

.p2mp-monitor-page {
  width: min(1520px, calc(100% - 1rem));
}

.p2mp-monitor-shell {
  display: grid;
  gap: .9rem;
}

.p2mp-filterbar {
  position: sticky;
  top: calc(72px + .5rem);
  z-index: 900;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: .75rem;
  border: 1px solid var(--p2-border);
  background: rgba(11,11,11,.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: .75rem;
  box-shadow: var(--p2-shadow);
}
.p2mp-filterbar__left,
.p2mp-filterbar__right {
  display: grid;
  gap: .65rem;
  align-items: end;
}
.p2mp-filterbar__left {
  grid-template-columns: auto minmax(180px, 240px) minmax(220px, 1fr);
}
.p2mp-filterbar__right {
  grid-template-columns: minmax(240px, 1fr) 130px auto;
}
.p2mp-filterbar__mobile-toggle { display: none; }

.p2mp-field {
  display: grid;
  gap: .35rem;
}
.p2mp-field > label {
  color: var(--p2-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.p2mp-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  min-height: 42px;
}
.p2mp-chip {
  border: 1px solid var(--p2-border);
  background: #121212;
  color: var(--p2-text);
  border-radius: 999px;
  padding: .55rem .85rem;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
}
.p2mp-chip:hover { border-color: #444; }
.p2mp-chip.is-active { opacity: 1; }
.p2mp-chip:not(.is-active) { opacity: .45; }
.p2mp-chip[data-value="brandweer"].is-active { border-color: rgba(255,59,48,.55); }
.p2mp-chip[data-value="ambulance"].is-active { border-color: rgba(255,212,0,.55); }
.p2mp-chip[data-value="politie"].is-active { border-color: rgba(93,178,255,.55); }

.p2mp-monitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: .9rem;
}
.p2mp-main-column,
.p2mp-side-column {
  display: grid;
  gap: .9rem;
  align-content: start;
}

.p2mp-highlight {
  border-color: #343434;
}
.p2mp-highlight__head {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}
.p2mp-highlight__title-wrap {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}
.p2mp-highlight__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.2;
}
.p2mp-highlight__desc {
  color: #d8d8d8;
  margin: .5rem 0 0;
}
.p2mp-highlight__units {
  margin-top: .75rem;
  display: grid;
  gap: .4rem;
}
.p2mp-highlight__unit {
  border: 1px solid #282828;
  border-radius: 10px;
  background: #0c0c0c;
  padding: .55rem .7rem;
  font-weight: 600;
}

.p2mp-live-feed__body { padding: .75rem; }
.p2mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.p2mp-section-head h2 {
  margin: 0;
  font-size: 1rem;
}
.p2mp-section-head__meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.p2mp-feed-list {
  display: grid;
  gap: .55rem;
}
.p2mp-feed-item {
  border: 1px solid #2a2a2a;
  background: #060606;
  border-radius: 14px;
  padding: .75rem;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.p2mp-feed-item:hover {
  border-color: #3d3d3d;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.p2mp-feed-item[hidden] { display: none !important; }

.p2mp-feed-item__grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: .75rem;
}
.p2mp-feed-item__time {
  color: var(--p2-accent);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.p2mp-feed-item__meta {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2b2b2b;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .74rem;
  font-weight: 600;
  background: #111;
}
.pill--dienst { color: #fff; }
.pill--brandweer { border-color: rgba(255,59,48,.45); color: #ffd7d4; }
.pill--ambulance { border-color: rgba(255,212,0,.45); color: #fff6b8; }
.pill--politie { border-color: rgba(93,178,255,.45); color: #d5ebff; }
.pill--prio { color: #ffd4d4; border-color: rgba(255,59,48,.35); }
.pill--regio, .pill--locatie { color: #d2d7dd; }

.p2mp-feed-item__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.p2mp-feed-item__title a {
  flex: 1;
  min-width: 0;
}

.p2mp-share {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  flex: 0 0 auto;
  margin-left: .5rem;
  position: relative;
  z-index: 6;
}

.p2mp-share__item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(42,47,54,.98), rgba(23,27,32,.98));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 3px 10px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: .98;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}

.p2mp-share__item:hover,
.p2mp-share__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.10);
  filter: brightness(1.04);
}

.p2mp-share__item:focus-visible {
  outline: 2px solid rgba(190,0,0,.24);
  outline-offset: 1px;
}

.p2mp-share__item svg,
.p2mp-share__item svg * {
  display: block;
  pointer-events: none;
}

.p2mp-share__item--x {
  background: linear-gradient(180deg, #2a2f36, #181c22);
  color: #ffffff;
}

.p2mp-share__item--facebook {
  background: linear-gradient(180deg, #2c8cff, #1565e0);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}

/* Activity panel */
.p2mp-activity-panel h2 small {
  font-size: .8rem;
  font-weight: 600;
  opacity: .7;
}

.p2mp-activity-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.p2mp-activity-kpi {
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 10px 10px;
}

.p2mp-activity-kpi__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .75;
}

.p2mp-activity-kpi__value {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.p2mp-activity-chart {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 70px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

.p2mp-activity-bar {
  position: relative;
  border-radius: 8px;
  background: rgba(190,0,0,.18);
  border: 1px solid rgba(190,0,0,.20);
}

.p2mp-activity-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(190,0,0,.35), rgba(190,0,0,0));
}

.p2mp-activity-bar[data-level="0"] {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.08);
}

.p2mp-activity-bar-label {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  opacity: .8;
}

.p2mp-activity-sub {
  margin-top: 10px;
  font-size: .85rem;
  opacity: .85;
}

@media (max-width: 980px) {
  .p2mp-activity-kpis { grid-template-columns: 1fr; }
  .p2mp-activity-chart { grid-template-columns: repeat(10, minmax(0, 1fr)); height: 64px; }
}

/* (oude/legacy share + titel-kleur overrides verwijderd) */

.p2mp-feed-item__desc {
  margin: .35rem 0 0;
  color: #d8d8d8;
}

.p2mp-feed-item__units {
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .32rem;
}
.p2mp-feed-item__units li {
  font-weight: 600;
  border-left: 3px solid #313131;
  padding-left: .55rem;
  color: #ededed;
}
.p2mp-feed-item--brandweer .p2mp-feed-item__units li { border-left-color: rgba(255,59,48,.8); }
.p2mp-feed-item--ambulance .p2mp-feed-item__units li { border-left-color: rgba(255,212,0,.85); }
.p2mp-feed-item--politie .p2mp-feed-item__units li { border-left-color: rgba(93,178,255,.85); }

.p2mp-empty-state {
  border: 1px dashed #333;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: var(--p2-muted);
  margin-top: .5rem;
}

.p2mp-panel h2 {
  margin: 0 0 .75rem;
  font-size: .95rem;
}
.p2mp-mini-kpis {
  display: grid;
  gap: .55rem;
}
.p2mp-mini-kpi {
  border: 1px solid #242424;
  background: #0c0c0c;
  border-radius: 12px;
  padding: .6rem .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p2mp-mini-kpi span { color: var(--p2-muted); font-size: .82rem; }
.p2mp-mini-kpi strong { font-size: 1rem; }
.p2mp-mini-kpi.is-brandweer strong { color: var(--p2-brandweer); }
.p2mp-mini-kpi.is-ambulance strong { color: var(--p2-ambulance); }
.p2mp-mini-kpi.is-politie strong { color: var(--p2-politie); }

.p2mp-quick-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.p2mp-quick-buttons .btn {
  text-align: left;
  padding: .65rem .75rem;
}

.p2mp-map-placeholder {
  min-height: 200px;
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  color: var(--p2-muted);
  background: linear-gradient(180deg, #0f0f0f, #0a0a0a);
}
.p2mp-map-placeholder small { color: #7f8790; }

.p2mp-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.p2mp-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.p2mp-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 420px);
  background: #0b0b0b;
  border-left: 1px solid var(--p2-border);
  display: grid;
  grid-template-rows: auto 1fr;
}
.p2mp-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem;
  border-bottom: 1px solid var(--p2-border);
}
.p2mp-mobile-drawer__head h2 { margin: 0; font-size: 1rem; }
.p2mp-mobile-drawer__body { padding: .75rem; overflow: auto; }
.p2mp-mobile-clone-target {
  display: grid;
  gap: .8rem;
}
.p2mp-mobile-clone-target .p2mp-field,
.p2mp-mobile-clone-target .p2mp-chip-group,
.p2mp-mobile-clone-target .p2mp-mobile-actions {
  border: 1px solid #242424;
  border-radius: 12px;
  padding: .7rem;
  background: #0f0f0f;
}
.p2mp-mobile-actions { display: flex; gap: .5rem; }

/* Generic content styles */
.entry-title { margin: 0 0 .45rem; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-excerpt { color: #d4d4d4; }
.p2mp-archive-list { display: grid; gap: .75rem; }

/* Responsive */
@media (max-width: 1280px) {
  .p2mp-filterbar {
    grid-template-columns: 1fr;
  }
  .p2mp-filterbar__right {
    grid-template-columns: minmax(220px, 1fr) 120px auto;
  }
}

@media (max-width: 1100px) {
  .p2mp-monitor-layout {
    grid-template-columns: 1fr;
  }
  .p2mp-side-column {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .p2mp-landing-hero__body,
  .p2mp-feature-grid,
  .p2mp-side-column {
    grid-template-columns: 1fr;
  }

  .p2mp-filterbar {
    top: calc(120px + .5rem);
    padding: .65rem;
  }
  .p2mp-filterbar__left,
  .p2mp-filterbar__right {
    grid-template-columns: 1fr;
  }
  .p2mp-filterbar__mobile-toggle {
    display: inline-flex;
    width: fit-content;
  }

  /* Keep desktop filters visible on tablets; hidden on smaller phones below */

  .p2mp-feed-item__grid {
    grid-template-columns: 1fr;
    gap: .45rem;
  }
  .p2mp-feed-item__time {
    font-size: .88rem;
  }
}

@media (max-width: 640px) {
  .p2mp-monitor-page { width: calc(100% - .5rem); }

  .p2mp-filterbar {
    /* On phones: don't let the sticky filterbar sit over the live feed */
    position: relative;
    top: auto;
    border-radius: 12px;
  }
  .p2mp-filterbar + .p2mp-monitor-layout { margin-top: .35rem; }
  .p2mp-filterbar__left > :not(.p2mp-filterbar__mobile-toggle),
  .p2mp-filterbar__right > * {
    display: none;
  }
  .p2mp-filterbar__left {
    grid-template-columns: 1fr;
  }
  .p2mp-filterbar__mobile-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .p2mp-highlight__units { gap: .35rem; }
  .p2mp-highlight__unit { font-size: .9rem; }

  .p2mp-live-feed__body {
    padding: .55rem;
  }
  .p2mp-feed-item {
    border-radius: 12px;
    padding: .65rem;
  }
  .p2mp-feed-item__meta { gap: .28rem; }
  .pill { font-size: .69rem; padding: .2rem .48rem; }
  .p2mp-feed-item__title { font-size: .94rem; }
  .p2mp-feed-item__desc,
  .p2mp-feed-item__units li { font-size: .9rem; }
}


/* Mobile polish v1.0.1 */
@media (max-width: 640px) {
  .p2mp-side-column { display: none; }
  .p2mp-highlight__title { font-size: 1.02rem; }
}

@media (max-width: 480px) {
  .site-header__inner { gap: .6rem; }
  .kpi-row { width: 100%; justify-content: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { min-width: 0; }
  .header-status { justify-content: flex-start; }
}


/* Compact monitor mode v1.0.3 */
.p2mp-monitor-shell {
  gap: .7rem;
}

.p2mp-filterbar {
  gap: .6rem;
  padding: .6rem;
}
.p2mp-filterbar__left,
.p2mp-filterbar__right {
  gap: .55rem;
}
.p2mp-field > label {
  font-size: .66rem;
  letter-spacing: .07em;
}
.p2mp-chip {
  padding: .45rem .75rem;
}

.p2mp-monitor-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: .7rem;
}
.p2mp-main-column,
.p2mp-side-column {
  gap: .7rem;
}
.p2mp-side-column {
  position: sticky;
  top: calc(72px + 64px + 1rem);
  align-self: start;
}
.p2mp-panel .card__body {
  padding: .8rem;
}
.p2mp-panel h2 {
  margin-bottom: .55rem;
  font-size: .9rem;
}
.p2mp-mini-kpi {
  padding: .5rem .65rem;
}
.p2mp-mini-kpi span { font-size: .78rem; }

.p2mp-live-feed__body {
  padding: .6rem;
}
.p2mp-section-head {
  margin-bottom: .4rem;
}
.p2mp-section-head h2 {
  font-size: .95rem;
}
.p2mp-section-head .badge {
  padding: .28rem .55rem;
  font-size: .72rem;
}

.p2mp-feed-list {
  gap: .4rem;
}
.p2mp-feed-item {
  border-radius: 12px;
  padding: .55rem .65rem;
}
.p2mp-feed-item__grid {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: .65rem;
}
.p2mp-feed-item__time {
  font-size: .86rem;
  line-height: 1.1;
}
.p2mp-feed-item__meta {
  gap: .28rem;
  margin-bottom: .3rem;
}
.pill {
  padding: .14rem .45rem;
  font-size: .67rem;
}
.p2mp-feed-item__title {
  font-size: .9rem;
  line-height: 1.2;
}
.p2mp-feed-item__desc {
  margin: .2rem 0 0;
  font-size: .88rem;
  line-height: 1.22;
}
.p2mp-feed-item__units {
  margin: .35rem 0 0;
  gap: .2rem;
}
.p2mp-feed-item__units li {
  padding-left: .45rem;
  font-size: .84rem;
  line-height: 1.2;
  border-left-width: 2px;
}

.p2mp-quick-buttons {
  gap: .4rem;
}
.p2mp-quick-buttons .btn {
  padding: .55rem .65rem;
}

@media (max-width: 1280px) {
  .p2mp-monitor-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 900px) {
  .p2mp-filterbar {
    padding: .55rem;
  }
  .p2mp-live-feed__body {
    padding: .5rem;
  }
  .p2mp-feed-item {
    padding: .5rem .55rem;
  }
}

@media (max-width: 640px) {
  .p2mp-section-head {
    margin-bottom: .35rem;
  }
  .p2mp-section-head h2 {
    font-size: .9rem;
  }
  .p2mp-feed-list {
    gap: .35rem;
  }
  .p2mp-feed-item {
    border-radius: 10px;
    padding: .5rem;
  }
  .p2mp-feed-item__time {
    font-size: .82rem;
  }
  .p2mp-feed-item__title {
    font-size: .88rem;
  }
  .p2mp-feed-item__desc,
  .p2mp-feed-item__units li {
    font-size: .82rem;
  }
  .pill {
    font-size: .64rem;
    padding: .12rem .4rem;
  }
}


/* Mobile layout/refresh fixes v1.0.8 */
.p2mp-feed-item__grid,
.p2mp-feed-item__main { min-width: 0; }

@media (max-width: 1100px) {
  .p2mp-monitor-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .p2mp-feed-item__grid {
    grid-template-columns: 1fr;
    gap: .4rem;
  }
  .p2mp-feed-item__time {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .p2mp-main-column,
  .p2mp-live-feed,
  .p2mp-feed-list,
  .p2mp-feed-item,
  .p2mp-feed-item__main {
    min-width: 0;
    width: 100%;
  }

  .p2mp-feed-item__title,
  .p2mp-feed-item__title a,
  .p2mp-feed-item__desc,
  .p2mp-feed-item__units li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .p2mp-feed-item__meta {
    gap: .22rem;
  }
  .pill--regio,
  .pill--locatie {
    max-width: 100%;
    white-space: normal;
    line-height: 1.15;
  }
}


/* Click-to-map panel v1.0.9 */
.p2mp-feed-item { cursor: pointer; }
.p2mp-feed-item__title > a:first-child { pointer-events: none; text-decoration: none; }
.p2mp-share__item { pointer-events: auto; cursor: pointer; position: relative; z-index: 8; }
.p2mp-feed-item.is-selected {
  border-color: rgba(0, 211, 255, .45);
  box-shadow: 0 0 0 1px rgba(0,211,255,.18) inset, 0 10px 24px rgba(0,0,0,.28);
}
.p2mp-map-panel__empty {
  min-height: 170px;
  border: 1px dashed #343434;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: .45rem;
  text-align: center;
  color: var(--p2-muted);
  background: linear-gradient(180deg, #0f0f0f, #0a0a0a);
  padding: .9rem;
}
.p2mp-map-panel__empty small { color: #8b939b; line-height: 1.35; }
.p2mp-map-panel__content { display: grid; gap: .55rem; }
.p2mp-map-panel__meta-line { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.p2mp-map-panel__pills { display:flex; flex-wrap:wrap; gap:.3rem; }
.p2mp-map-panel__title { margin:0; font-size:.95rem; line-height:1.25; }
.p2mp-map-panel__desc { margin:0; color:#d9d9d9; font-size:.88rem; line-height:1.25; }
.p2mp-map-panel__note {
  border:1px solid #262626; border-radius:10px; background:#0e0e0e; padding:.5rem .6rem;
  color:#b6bdc5; font-size:.78rem; line-height:1.3;
}
.p2mp-map-frame { border:1px solid #262626; border-radius:12px; overflow:hidden; background:#090909; }
.p2mp-map-frame iframe { display:block; width:100%; height:240px; border:0; }

.p2mp-map-panel__details[hidden] {
  display: none !important;
}

.p2mp-map-panel__actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.p2mp-map-panel .badge[data-p2mp-map-status] { color:#bfc7cf; }
.p2mp-map-panel .badge.is-loading { border-color:#414141; color:#e6e6e6; }
.p2mp-map-panel .badge.is-ok { border-color:rgba(0,200,83,.35); color:#9ff0bf; }
.p2mp-map-panel .badge.is-warn { border-color:rgba(255,212,0,.35); color:#ffe8a0; }
.p2mp-map-panel .badge.is-error { border-color:rgba(255,59,48,.35); color:#ffc3bf; }

.p2mp-map-modal { position:fixed; inset:0; z-index:1200; }
.p2mp-map-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.65); }
.p2mp-map-modal__panel {
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh; border-top-left-radius:16px; border-top-right-radius:16px;
  background:#0b0b0b; border-top:1px solid var(--p2-border);
  display:grid; grid-template-rows:auto 1fr;
}
.p2mp-map-modal__head { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.75rem; border-bottom:1px solid var(--p2-border); }
.p2mp-map-modal__head h2 { margin:0; font-size:1rem; }
.p2mp-map-modal__body { padding:.75rem; overflow:auto; }
.p2mp-map-panel--mobile .p2mp-map-frame iframe { height:280px; }

@media (max-width: 640px) {
  .p2mp-map-panel__empty { min-height: 120px; }
  .p2mp-map-panel__title { font-size: .9rem; }
  .p2mp-map-panel__desc { font-size: .82rem; }
}
@media (min-width: 641px) {
  .p2mp-map-modal { display:none !important; }
}


/* UX + ad placeholders v1.1.0 */
.p2mp-ad-slot {
  border: 1px dashed #353535;
  border-radius: 12px;
  background: linear-gradient(180deg, #101010, #0a0a0a);
  padding: .55rem;
  display: grid;
  gap: .45rem;
}
.p2mp-ad-slot__label {
  color: #8f97a0;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.p2mp-ad-slot__code { width: 100%; min-width: 0; }
.p2mp-ad-slot__code > * { max-width: 100% !important; }
.p2mp-ad-slot__code iframe,
.p2mp-ad-slot__code img { display:block; max-width:100%; width:100%; border:0; }
.p2mp-ad-slot__code ins { max-width:100%; display:block; }

.p2mp-ad-slot__inner {
  min-height: 84px;
  border: 1px dashed #2e2e2e;
  border-radius: 10px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #b8bec6;
  padding: .65rem;
  line-height: 1.25;
}
.p2mp-ad-slot--header .p2mp-ad-slot__inner { min-height: 70px; }
.p2mp-ad-slot--side .p2mp-ad-slot__inner { min-height: 220px; }
.p2mp-monitor-top-ad { margin-bottom: .15rem; }

.p2mp-map-panel__content--compact { gap: .5rem; }
.p2mp-map-panel__compact-meta { display: grid; gap: .45rem; }
.p2mp-map-panel__content--compact .p2mp-map-panel__pills { order: 1; }
.p2mp-map-panel__content--compact .p2mp-map-panel__note--compact { font-size: .74rem; }
.p2mp-map-panel__content--compact .p2mp-map-frame iframe { height: 280px; }
.btn--small { padding: .38rem .6rem; font-size: .74rem; }

@media (max-width: 1100px) {
  .p2mp-ad-slot--side { display: none; }
}
@media (max-width: 640px) {
  .p2mp-ad-slot--header .p2mp-ad-slot__inner { min-height: 56px; font-size: .86rem; }
  .p2mp-map-panel__content--compact .p2mp-map-frame iframe { height: 300px; }
}


/* v1.1.1 UX fixes: header ad position + sidebar scroll */
.p2mp-monitor-top-ad { display:none !important; }
.site-header__ad-inline .p2mp-ad-slot { padding:.45rem; }
.site-header__ad-inline .p2mp-ad-slot__label { font-size:.62rem; }
.site-header__ad-inline .p2mp-ad-slot__inner { min-height:52px; padding:.45rem .6rem; font-size:.82rem; }
.p2mp-side-column {
  position: sticky;
  top: calc(72px + 64px + .8rem);
  max-height: calc(100vh - (72px + 64px + 1.4rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .15rem;
}
.p2mp-side-column::-webkit-scrollbar { width: 10px; }
.p2mp-side-column::-webkit-scrollbar-track { background: transparent; }
.p2mp-side-column::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.p2mp-side-column .card { flex-shrink: 0; }
.p2mp-map-panel__empty { min-height: 88px; }
.p2mp-map-panel__content--compact .p2mp-map-frame iframe { height: 220px; }
.p2mp-map-panel__content--compact .p2mp-map-panel__compact-meta { gap:.35rem; }
.p2mp-map-panel__note--compact { display:none !important; }
.p2mp-ad-slot--side .p2mp-ad-slot__inner { min-height: 160px; }
.p2mp-map-panel iframe { pointer-events:auto; }
@media (max-width: 1280px) { .p2mp-side-column { top: calc(72px + 72px + .7rem); max-height: calc(100vh - (72px + 72px + 1.2rem)); } }
@media (max-width: 1100px) { .p2mp-side-column { position: static; max-height: none; overflow: visible; padding-right:0; } }
@media (max-width: 640px) { .site-header__ad-inline { display:none; } }


/* v1.1.3 fixes */
.p2mp-map-panel__content--compact .p2mp-map-frame iframe { min-height: 260px; }

/* v1.2.0 archive panel */
.p2mp-archive { margin-top: .9rem; }
.p2mp-archive__body { display:grid; gap:.75rem; }
.p2mp-archive-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:.6rem; flex-wrap:wrap;
  padding:.55rem; border:1px solid #222; border-radius:12px; background:linear-gradient(180deg,#111,#0c0c0c);
}
.p2mp-chip-group--archive { gap:.4rem; }
.p2mp-chip--small { padding:.35rem .55rem; font-size:.76rem; border-radius:999px; }
.p2mp-archive-toolbar__actions { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.p2mp-inline-field { display:flex; align-items:center; gap:.4rem; color:#b7bec6; font-size:.8rem; }
.p2mp-inline-field select { background:#0f0f0f; color:#fff; border:1px solid #2d2d2d; border-radius:8px; padding:.3rem .45rem; }
.p2mp-archive-status {
  color:#b7c0c8; font-size:.84rem; padding:.45rem .55rem; border:1px solid #222; border-radius:10px; background:#0d0d0d;
}
.p2mp-archive-status[data-state="loading"] { color:#e4e8ec; }
.p2mp-archive-status[data-state="error"] { color:#ffc3bf; border-color:rgba(255,59,48,.28); }
.p2mp-archive-status[data-state="warn"] { color:#ffe8a0; border-color:rgba(255,212,0,.22); }
.p2mp-archive-status[data-state="ok"] { color:#a7f0bf; border-color:rgba(50,215,75,.22); }
.p2mp-archive-list { min-height: 120px; }
.p2mp-archive.is-loading .p2mp-archive-list { opacity:.75; }
@media (max-width: 640px) {
  .p2mp-archive-toolbar { align-items:stretch; }
  .p2mp-archive-toolbar__actions { width:100%; }
  .p2mp-archive-toolbar__actions .btn { flex:1 1 auto; }
}


/* Aparte archiefpagina */
.p2mp-archive-page-main { width: min(1520px, calc(100% - 1rem)); }
.p2mp-archive-page .card__body { padding: .9rem; }
.p2mp-muted { color: var(--p2-muted); margin: .2rem 0 .8rem; }
.p2mp-archive-adv-filters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .8rem;
}
.p2mp-archive-adv-filters .p2mp-field { grid-column: span 2; }
.p2mp-archive-adv-filters .p2mp-field--wide { grid-column: span 4; }
.p2mp-archive-adv-filters .p2mp-field--inline-check { grid-column: span 4; align-content: end; }
.p2mp-archive-adv-filters input,
.p2mp-archive-adv-filters select {
  width: 100%;
  border: 1px solid var(--p2-border);
  background: #0d0d0d;
  color: var(--p2-text);
  border-radius: 10px;
  padding: .55rem .65rem;
}
.p2mp-archive-adv-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; justify-content:space-between; margin-bottom:.75rem; }
.p2mp-archive-adv-actions__left { display:flex; gap:.5rem; flex-wrap:wrap; }
.p2mp-archive-adv-pager { display:flex; gap:.45rem; align-items:center; flex-wrap:wrap; }
.p2mp-archive-table-wrap { border:1px solid var(--p2-border); border-radius:14px; overflow:auto; background:#090909; }
.p2mp-archive-table { width:100%; border-collapse:collapse; min-width:1000px; }
.p2mp-archive-table th, .p2mp-archive-table td { border-bottom:1px solid #1f1f1f; padding:.55rem .65rem; vertical-align:top; }
.p2mp-archive-table th { color:var(--p2-muted); font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; position:sticky; top:0; background:#0b0b0b; z-index:2; }
.p2mp-archive-table tbody tr:hover { background:rgba(255,255,255,.02); }
.p2mp-arch-col-time { white-space:nowrap; color:var(--p2-accent); font-weight:600; }
.p2mp-arch-title { font-weight:700; }
.p2mp-arch-desc, .p2mp-arch-loc { color:#c8c8c8; font-size:.88rem; margin-top:.15rem; }
.p2mp-arch-units { margin-top:.35rem; display:grid; gap:.2rem; }
.p2mp-archive-table details > summary { cursor:pointer; color:var(--p2-muted); }

@media (max-width: 1100px) {
  .p2mp-archive-adv-filters .p2mp-field { grid-column: span 3; }
  .p2mp-archive-adv-filters .p2mp-field--wide { grid-column: span 6; }
  .p2mp-archive-adv-filters .p2mp-field--inline-check { grid-column: span 6; }
}
@media (max-width: 768px) {
  .p2mp-archive-adv-filters { grid-template-columns: 1fr 1fr; }
  .p2mp-archive-adv-filters .p2mp-field,
  .p2mp-archive-adv-filters .p2mp-field--wide,
  .p2mp-archive-adv-filters .p2mp-field--inline-check { grid-column: span 1; }
  .p2mp-archive-adv-actions { align-items: stretch; }
  .p2mp-archive-adv-actions__left { width:100%; }
  .p2mp-archive-adv-actions__left > * { flex:1 1 auto; }
  .p2mp-archive-adv-pager { width:100%; justify-content:space-between; }
}


/* v1.4.0 2026 monitor skin (Alarmcheck-inspired: dark header + red nav + grey data panels) */
:root {
  --p2-bg: #d7d9dc;
  --p2-surface: #eceff2;
  --p2-surface-2: #dde2e7;
  --p2-border: #b3bbc4;
  --p2-text: #121417;
  --p2-muted: #505a65;
  --p2-accent: #be0000;
  --p2-brandweer: #cc1e1e;
  --p2-ambulance: #2f8f31;
  --p2-politie: #2c78b8;
  --p2-success: #1d8f2d;
  --p2-shadow: 0 10px 28px rgba(22, 28, 35, .10);
  --p2-radius: 12px;
  --p2-line-blue: #b9d4e5;
  --p2-red-top: #d30000;
  --p2-red-top-2: #aa0000;
  --p2-header-top: #555;
  --p2-header-bottom: #2b2b2b;
}

html, body { background: #d9dbde; color: var(--p2-text); }
body {
  background-image: linear-gradient(180deg, #e1e3e6 0%, #d6d9dd 100%);
  color: var(--p2-text);
}
a { color: inherit; }
a:hover { text-decoration: none; }

.site-header {
  border-bottom: 2px solid #8f0000;
  background: linear-gradient(180deg, rgba(87,87,87,.98), rgba(41,41,41,.98));
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--p2-red-top), #ff2727 35%, var(--p2-red-top-2));
}
.site-header__inner { padding: .7rem 0; }
.site-branding { min-width: 0; }
.site-title, .site-title a { color: #fff; }
.site-tagline { color: #d8dde2; }
.site-logo-dot {
  background: #20c05a;
  box-shadow: 0 0 0 4px rgba(32,192,90,.18), 0 0 10px rgba(32,192,90,.25);
}

.header-status .badge,
.kpi,
.site-header__ad-inline .p2mp-ad-slot {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.header-status .badge { color: #eef2f6; }
.header-status .badge strong { color: #fff; }
.badge--live { color: #c5ffd5; border-color: rgba(44, 200, 90, .35); }
.badge--live::before { background: #20c05a; box-shadow: 0 0 8px rgba(32,192,90,.65); }
.kpi__label { color: #cfd5da; }
.kpi--total .kpi__value { color: #fff; }

.site-main {
  width: min(1520px, calc(100% - 1rem));
  padding-top: .8rem;
}
.site-footer {
  border-top: 1px solid #b6bec7;
  background: linear-gradient(180deg, #eceff3, #e1e5ea);
  color: #515c67;
}
.site-footer__link:hover { color: #b70000; border-bottom-color: rgba(183,0,0,.25); }
.site-footer__sep { color: #8a949f; }

.card,
.p2mp-filterbar,
.p2mp-map-panel__empty,
.p2mp-archive-toolbar,
.p2mp-archive-status,
.p2mp-mobile-clone-target .p2mp-field,
.p2mp-mobile-clone-target .p2mp-chip-group,
.p2mp-mobile-clone-target .p2mp-mobile-actions {
  background: linear-gradient(180deg, #f1f3f6, #e5e9ee) !important;
  border-color: #bcc4cc !important;
  box-shadow: 0 8px 22px rgba(26,34,43,.08);
  color: var(--p2-text);
}

.page-subtitle,
.p2mp-muted,
.p2mp-inline-field,
.p2mp-archive-status,
.p2mp-empty-state,
.p2mp-map-panel__note,
.p2mp-map-panel__empty,
.p2mp-map-panel__empty small,
.p2mp-highlight__desc,
.p2mp-feed-item__desc,
.p2mp-arch-desc,
.p2mp-arch-loc { color: #4f5963 !important; }

.btn, button, input[type="submit"] {
  border-color: #b3bbc4;
  background: linear-gradient(180deg, #f8fafc, #e5eaf0);
  color: #121417;
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(255,255,255,.55) inset;
  transition: all .15s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  border-color: #9ea7b1;
  background: linear-gradient(180deg, #fff, #e8edf2);
}
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(190,0,0,.28);
  outline-offset: 2px;
}
.btn--ghost {
  background: linear-gradient(180deg, #f2f4f7, #e3e8ee);
}
.btn--small {
  border-radius: 9px;
}

/* Actieve acties/tabs in rode monitorstijl */
.p2mp-chip,
.pill,
.badge {
  border-radius: 999px;
}
.p2mp-chip {
  background: linear-gradient(180deg, #f5f7fa, #e2e6eb);
  border-color: #b7bec6;
  color: #1a1f24;
  opacity: .95;
}
.p2mp-chip:hover { border-color: #9ea7b1; }
.p2mp-chip:not(.is-active) { opacity: .78; }
.p2mp-chip.is-active {
  color: #fff;
  border-color: #8d0000;
  background: linear-gradient(180deg, #de1111, #b40000);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset;
}
.p2mp-chip[data-value="brandweer"].is-active,
.p2mp-chip[data-value="ambulance"].is-active,
.p2mp-chip[data-value="politie"].is-active {
  border-color: #880000;
}

/* Inputs / filters */
input, select,
.p2mp-archive-adv-filters input,
.p2mp-archive-adv-filters select,
.p2mp-inline-field select {
  border-color: #b6bec7 !important;
  background: linear-gradient(180deg, #fff, #f0f3f7) !important;
  color: #15181c !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
input::placeholder { color: #6d7782; }
.p2mp-field > label { color: #525c67; font-weight: 700; }

/* Section heads */
.p2mp-section-head h1,
.p2mp-section-head h2,
.p2mp-panel h2,
.p2mp-highlight__title,
.page-title,
.entry-title { color: #171a1e; }

.badge {
  border-color: #b8c0c9;
  background: linear-gradient(180deg, #f6f8fa, #e7ecf1);
  color: #25303a;
}
.badge strong { color: #15191d; }
.p2mp-section-head .badge {
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset;
}

/* Monitor list items: closer to classic table rows, but 2026 polished */
.p2mp-feed-list {
  gap: .36rem;
}
.p2mp-feed-item {
  border: 1px solid #c4ccd4;
  border-top: 2px solid var(--p2-line-blue);
  background: linear-gradient(180deg, #eef1f4, #dfe4e8);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(17,22,27,.04);
}
.p2mp-feed-item:hover {
  border-color: #aeb8c1;
  border-top-color: #9fc7de;
  box-shadow: 0 6px 16px rgba(15, 21, 26, .10);
  transform: translateY(-1px);
}
.p2mp-feed-item__time {
  color: #2a3138;
  font-weight: 700;
}
.p2mp-feed-item__title {
  color: #15191d !important;
  letter-spacing: -.01em;
}
.p2mp-feed-item__desc {
  color: #28313a !important;
}
.p2mp-feed-item__units li {
  color: #108a24;
  border-left-color: #9dc8dd;
  background: rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .16rem .3rem .16rem .5rem;
}
.p2mp-feed-item--brandweer .p2mp-feed-item__title,
.p2mp-feed-item--ambulance .p2mp-feed-item__title,
.p2mp-feed-item--politie .p2mp-feed-item__title { color: #15191d !important; }
.p2mp-feed-item--brandweer .p2mp-feed-item__units li { border-left-color: #c53b3b; }
.p2mp-feed-item--ambulance .p2mp-feed-item__units li { border-left-color: #2f8f31; }
.p2mp-feed-item--politie .p2mp-feed-item__units li { border-left-color: #2c78b8; }

.pill {
  background: linear-gradient(180deg, #f8fafc, #e8edf2);
  border-color: #bcc4cc;
  color: #29323b;
}
.pill--dienst { color: #111; }
.pill--brandweer { border-color: rgba(197,59,59,.4); color: #7c1f1f; }
.pill--ambulance { border-color: rgba(47,143,49,.45); color: #166f1d; }
.pill--politie { border-color: rgba(44,120,184,.4); color: #175893; }
.pill--knrm { border-color: rgba(0,153,204,.40); color: #0b5f7d; }
.pill--kmar { border-color: rgba(82,72,160,.38); color: #3d318f; }
.pill--overig { border-color: rgba(108,118,130,.30); color: #3e4955; }
.pill--prio { border-color: rgba(190,0,0,.28); color: #8d0000; background: linear-gradient(180deg, #fff4f4, #f5e3e3); }
.pill--regio, .pill--locatie { color: #3b4650; }

.p2mp-empty-state {
  border-color: #b5c0ca;
  background: linear-gradient(180deg, #f2f5f8, #e6ebf1);
}

/* Sidebar / KPI panels */
.p2mp-mini-kpi {
  border-color: #c0c8d0;
  background: linear-gradient(180deg, #f8fafc, #e6ebf0);
}
.p2mp-mini-kpi span { color: #59646e; }
.p2mp-mini-kpi strong { color: #111; }
.p2mp-quick-buttons .btn { font-weight: 600; }

.p2mp-highlight {
  border-color: #bfc7cf;
}
.p2mp-highlight__unit {
  border-color: #c2cad3;
  background: linear-gradient(180deg, #fafbfd, #eaeef3);
  color: #1c2228;
}

/* Map panel / modal */
.p2mp-map-panel__note {
  border-color: #c0c8d0;
  background: linear-gradient(180deg, #f7f9fb, #e8edf2);
}
.p2mp-map-frame {
  border-color: #bac3cc;
  background: #dfe4e9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.p2mp-map-panel .badge[data-p2mp-map-status] { color: #3d4750; }
.p2mp-map-panel .badge.is-loading { border-color:#bcc4cc; color:#2a3138; }
.p2mp-map-panel .badge.is-ok { border-color:rgba(29,143,45,.35); color:#156f24; }
.p2mp-map-panel .badge.is-warn { border-color:rgba(190,0,0,.20); color:#a16a00; }
.p2mp-map-panel .badge.is-error { border-color:rgba(190,0,0,.30); color:#8d0000; }
.p2mp-map-modal__panel {
  background: linear-gradient(180deg, #f0f3f7, #e2e7ed);
  border-top-color: #bac2cb;
}
.p2mp-map-modal__head { border-bottom-color: #bcc4cc; }

/* Banner manager slots integrated into the same skin */
.p2mp-ad-slot {
  border: 1px solid #b7c0ca;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef2f6, #e2e7ed);
  box-shadow: 0 6px 16px rgba(21, 28, 35, .07);
}
.p2mp-ad-slot__label {
  color: #525c67;
  letter-spacing: .07em;
}
.p2mp-ad-slot__inner {
  border: 1px dashed #bcc6cf;
  background: linear-gradient(180deg, #fafbfd, #eef2f6);
  color: #4e5863;
}
.site-header__ad-inline .p2mp-ad-slot {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.site-header__ad-inline .p2mp-ad-slot__label { color: #dce2e8; }
.site-header__ad-inline .p2mp-ad-slot__inner {
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  color: #e7ebef;
}

/* Archive table in grey + blue separators, dark headers */
.p2mp-archive-toolbar {
  border-color: #bcc4cc !important;
  background: linear-gradient(180deg, #f1f4f7, #e6ebf0) !important;
}
.p2mp-archive-status {
  border-color: #c0c8d0 !important;
  background: linear-gradient(180deg, #f7f9fb, #e9eef3) !important;
}
.p2mp-archive-table-wrap {
  border-color: #bcc4cc;
  background: #dfe4ea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.p2mp-archive-table th,
.p2mp-archive-table td {
  border-bottom-color: #b7d0e0;
}
.p2mp-archive-table th {
  color: #f5f7fa;
  background: linear-gradient(180deg, #3c3f44, #202226);
  border-bottom-color: #141619;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
}
.p2mp-archive-table tbody tr {
  background: #e2e6ea;
}
.p2mp-archive-table tbody tr:nth-child(odd) {
  background: #edf0f3;
}
.p2mp-archive-table tbody tr:hover {
  background: #d8e8f2;
}
.p2mp-arch-col-time { color: #22292f; }
.p2mp-arch-desc, .p2mp-arch-loc { color: #36414c !important; }
.p2mp-archive-table details > summary { color: #4e5964; }

/* Front-page hero polish so the new palette still looks premium */
.p2mp-kicker { color: #8b0000; }
.p2mp-hero-preview__window {
  background: radial-gradient(circle at top right, #dfe6ee, #edf1f5 55%, #d9dfe7 100%);
  border-color: #bcc4cc;
}
.p2mp-hero-preview__line--blue { background: linear-gradient(90deg, rgba(44,120,184,.15), rgba(44,120,184,.85)); }
.p2mp-hero-preview__line--yellow { background: linear-gradient(90deg, rgba(47,143,49,.15), rgba(47,143,49,.88)); }
.p2mp-hero-preview__line--red { background: linear-gradient(90deg, rgba(190,0,0,.15), rgba(190,0,0,.85)); }

/* Subtle red accents on key actions */
.p2mp-archive-toolbar__actions .btn[data-p2mp-archive-load],
.p2mp-archive-adv-actions__left .btn[data-p2mp-arch-load],
button.btn--primary,
.btn.is-primary {
  color: #fff;
  border-color: #8e0000;
  background: linear-gradient(180deg, #d51212, #af0000);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.p2mp-archive-toolbar__actions .btn[data-p2mp-archive-load]:hover,
.p2mp-archive-adv-actions__left .btn[data-p2mp-arch-load]:hover,
button.btn--primary:hover,
.btn.is-primary:hover {
  background: linear-gradient(180deg, #e11d1d, #ba0000);
  border-color: #7b0000;
}

/* Scrollbars in sidebar: lighter, less noisy */
.p2mp-side-column::-webkit-scrollbar-thumb {
  background: #b3bcc5;
  border-color: transparent;
}

/* Mobile drawer and overlays */
.p2mp-mobile-drawer__backdrop,
.p2mp-map-modal__backdrop { background: rgba(15, 18, 22, .45); }
.p2mp-mobile-drawer__panel {
  background: linear-gradient(180deg, #f0f3f7, #e1e6ec);
  border-left-color: #bcc4cc;
}
.p2mp-mobile-drawer__head { border-bottom-color: #bcc4cc; }

/* Top bar spacing refinement for 2026 look */
@media (min-width: 1101px) {
  .p2mp-monitor-layout { grid-template-columns: minmax(0, 1fr) 312px; gap: .8rem; }
  .p2mp-feed-item__grid { grid-template-columns: 144px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .p2mp-filterbar {
    background: linear-gradient(180deg, rgba(241,244,247,.96), rgba(229,235,240,.96)) !important;
  }
  .site-header {
    background: linear-gradient(180deg, rgba(87,87,87,.97), rgba(41,41,41,.97));
  }
  .p2mp-feed-item {
    border-radius: 9px;
  }
}


/* v1.4.1 monitor finetune: denser scanlines, better side tools, cleaner banner integration */
.site-header {
  box-shadow: inset 0 -2px 0 rgba(190,0,0,.95), 0 10px 28px rgba(16,22,28,.18);
}
.site-header__inner {
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.p2mp-monitor-shell { gap: .75rem; }
.p2mp-filterbar {
  border-width: 1px;
  box-shadow: 0 10px 24px rgba(17,22,27,.10);
}
.p2mp-live-feed.card,
.p2mp-archive.card,
.p2mp-highlight.card,
.p2mp-panel.card {
  position: relative;
}
.p2mp-live-feed.card::before,
.p2mp-archive.card::before,
.p2mp-highlight.card::before,
.p2mp-panel.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, #c41616 0%, #9b0000 35%, #9fc7de 100%);
  opacity: .9;
}
.p2mp-live-feed__body,
.p2mp-archive__body,
.p2mp-panel .card__body {
  padding-top: .75rem;
}
.p2mp-section-head { margin-bottom: .45rem; }
.p2mp-section-head__meta { gap: .35rem; }

.p2mp-feed-list { gap: .3rem; }
.p2mp-feed-item {
  padding: .5rem .58rem;
  border-radius: 9px;
}
.p2mp-feed-item__grid {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: .55rem;
}
.p2mp-feed-item__time {
  font-size: .83rem;
  letter-spacing: -.01em;
}
.p2mp-feed-item__meta {
  margin-bottom: .22rem;
}
.p2mp-feed-item__title {
  font-size: .88rem;
  line-height: 1.18;
}
.p2mp-feed-item__desc {
  margin-top: .14rem;
  font-size: .84rem;
  line-height: 1.18;
}
.p2mp-feed-item__units {
  margin-top: .22rem;
  gap: .18rem;
}
.p2mp-feed-item__units li {
  font-size: .79rem;
  line-height: 1.14;
}
.pill { font-size: .64rem; padding: .12rem .4rem; }

.p2mp-map-panel .card__body h2,
.p2mp-side-summary .card__body h2,
.p2mp-side-ad-panel .card__body h2 {
  margin: -.15rem -.15rem .55rem;
  padding: .3rem .4rem .45rem;
  border-bottom: 1px solid #c5ced7;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #29313a;
}
.p2mp-map-panel__empty {
  border: 1px dashed #c4ccd4;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.2));
}
.p2mp-map-panel__content--compact .p2mp-map-frame iframe {
  min-height: 240px;
  height: 240px;
}
.p2mp-side-summary .card__body { display: grid; gap: .6rem; }
.p2mp-mini-kpis { gap: .4rem; }
.p2mp-mini-kpi { padding: .45rem .55rem; border-radius: 10px; }
.p2mp-mini-kpi strong { font-size: .95rem; }
.p2mp-side-tools { gap: .35rem; }
.p2mp-side-tools .btn {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 600;
}
.p2mp-side-ad-panel .card__body { display: grid; gap: .45rem; }
.p2mp-side-ad-panel .p2mp-ad-slot { margin-top: 0; }
.p2mp-ad-slot--side .p2mp-ad-slot__inner { min-height: 180px; }

.p2mp-archive-toolbar {
  gap: .45rem;
  padding: .45rem;
}
.p2mp-archive-toolbar__actions { gap: .35rem; }
.p2mp-archive-table th,
.p2mp-archive-table td { padding: .48rem .55rem; }

@media (max-width: 1100px) {
  .p2mp-side-column {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .p2mp-feed-item__grid {
    grid-template-columns: 128px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .p2mp-feed-item__grid { grid-template-columns: 1fr; }
  .p2mp-feed-item { padding: .48rem .52rem; }
}
@media (max-width: 640px) {
  .p2mp-live-feed.card::before,
  .p2mp-archive.card::before,
  .p2mp-highlight.card::before,
  .p2mp-panel.card::before { height: 1px; }
  .p2mp-side-summary,
  .p2mp-side-ad-panel { display: none; }
}


/* Bijzondere meldingen (laatste 5 uur) */
.p2mp-special-panel h2 small {
  color: var(--p2-muted);
  font-weight: 500;
  font-size: .78em;
}
.p2mp-special-list {
  display: grid;
  gap: .55rem;
}
.p2mp-special-empty {
  border: 1px dashed var(--p2-border);
  border-radius: 10px;
  padding: .75rem;
  color: var(--p2-muted);
  background: rgba(255,255,255,.55);
  font-size: .86rem;
}
.p2mp-special-group {
  border: 1px solid var(--p2-border);
  border-radius: 12px;
  background: var(--p2-surface);
  overflow: hidden;
}
.p2mp-special-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--p2-line-blue);
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.35));
}
.p2mp-special-group__count {
  color: var(--p2-muted);
  font-size: .78rem;
  font-weight: 700;
}
.p2mp-special-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .18rem .5rem;
  border: 1px solid var(--p2-border);
  background: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.p2mp-special-badge--grip { border-color: rgba(190,0,0,.45); color: #7a0000; }
.p2mp-special-badge--vos  { border-color: rgba(160,120,0,.45); color: #6e5200; }
.p2mp-special-badge--tis  { border-color: rgba(44,120,184,.45); color: #1f5b8c; }
.p2mp-special-group__list {
  display: grid;
  gap: 0;
}
.p2mp-special-row {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(185,212,229,.85);
  background: transparent;
  color: inherit;
  text-align: left;
  padding: .52rem .6rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .45rem;
  align-items: center;
  cursor: pointer;
  font: inherit;
}
.p2mp-special-group__list .p2mp-special-row:first-child { border-top: 0; }
.p2mp-special-row:hover {
  background: rgba(0,0,0,.03);
}
.p2mp-special-row__label {
  font-weight: 700;
  color: var(--p2-text);
  white-space: nowrap;
}
.p2mp-special-row__regio {
  min-width: 0;
  color: var(--p2-muted);
  font-size: .84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p2mp-special-row__time {
  color: var(--p2-muted);
  font-size: .8rem;
  white-space: nowrap;
}
.p2mp-special-row__dup {
  color: var(--p2-muted);
  font-size: .78rem;
}
@media (max-width: 900px) {

  .p2mp-special-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'label time'
      'regio regio';
  }
  .p2mp-special-row__label { grid-area: label; }
  .p2mp-special-row__time { grid-area: time; justify-self: end; }
  .p2mp-special-row__regio { grid-area: regio; }
  .p2mp-special-row__dup { display: none; }
}

/* Map: hide empty helper block to avoid blank space */
.p2mp-map-panel__empty{display:none;}


/* v1.6.24 header refresh: move LIVE/last-update next to brand + less boring top bar */
.site-header__inner {
  grid-template-columns: minmax(0,1fr) minmax(280px,520px);
  gap: 1rem;
}
.site-branding {
  min-width: 0;
  gap: .85rem 1rem;
  flex-wrap: wrap;
}
.site-branding__text {
  min-width: 0;
}
.site-branding__meta.header-status {
  margin-left: .15rem;
  justify-content: flex-start;
  gap: .45rem;
}
.site-branding__meta .badge {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  padding: .34rem .68rem;
}
.site-branding__meta .badge--live {
  color: #cbffd6;
  border-color: rgba(44,200,90,.42);
}
.site-branding__meta .badge--update strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
@media (max-width: 1200px) {
  .site-header__inner { grid-template-columns: 1fr; }
  .site-header__ad-inline { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .site-branding__meta { width: 100%; margin-left: 0; }
}

/* v1.6.24 top styling round: zakelijke basis + commandocenter accenten */
.site-header {
  background: linear-gradient(180deg, rgba(74,74,74,.98), rgba(35,35,35,.985));
}
.site-header__inner {
  align-items: center;
  gap: .85rem;
}
.site-branding {
  align-items: center;
  row-gap: .55rem;
  column-gap: .85rem;
}
.site-branding__text {
  display: flex;
  align-items: center;
  min-height: 40px;
}
.site-branding__meta.header-status {
  margin-left: .05rem;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .18rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(90deg, rgba(24,180,74,.06), rgba(255,255,255,0));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 3px 10px rgba(0,0,0,.12);
}
.site-branding__meta .badge {
  position: relative;
  min-height: 32px;
  padding: .3rem .64rem;
  border-radius: 999px;
  line-height: 1;
  font-weight: 600;
}
.site-branding__meta .badge--live {
  color: #d4ffe0;
  border-color: rgba(44,200,90,.42);
  background:
    radial-gradient(circle at 10% 50%, rgba(44,200,90,.18), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.site-branding__meta .badge--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: .18rem;
  background: #2ad665;
  box-shadow: 0 0 0 0 rgba(42,214,101,.42), 0 0 8px rgba(42,214,101,.55);
  animation: p2mpLivePulse 1.8s ease-out infinite;
  display: inline-block;
  flex: 0 0 auto;
}
.site-branding__meta .badge--update {
  color: #e6ebf1;
  border-color: rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    linear-gradient(90deg, rgba(190,0,0,.06), transparent 60%);
}
.site-branding__meta .badge--update strong {
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.site-header__ad-inline {
  align-self: center;
}

@keyframes p2mpLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(42,214,101,.40), 0 0 8px rgba(42,214,101,.50); }
  70%  { box-shadow: 0 0 0 7px rgba(42,214,101,0), 0 0 10px rgba(42,214,101,.35); }
  100% { box-shadow: 0 0 0 0 rgba(42,214,101,0), 0 0 8px rgba(42,214,101,.45); }
}

/* Filterbar: strakkere dashboard-basis met subtiele commandocenter-accenten */
.p2mp-filterbar {
  position: relative;
  padding: .8rem .9rem;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17,22,27,.11);
  overflow: hidden;
}
.p2mp-filterbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(211,0,0,.85), rgba(255,40,40,.45) 40%, rgba(211,0,0,.85));
  pointer-events: none;
}
.p2mp-filterbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.p2mp-filterbar__left,
.p2mp-filterbar__right {
  gap: .55rem .65rem;
  align-items: end;
}
.p2mp-filterbar .p2mp-field {
  gap: .32rem;
}
.p2mp-filterbar .p2mp-field > label {
  color: #59636e;
  letter-spacing: .08em;
  font-size: .69rem;
}
.p2mp-filterbar input,
.p2mp-filterbar select,
.p2mp-filterbar .btn,
.p2mp-filterbar .p2mp-chip {
  min-height: 40px;
}
.p2mp-filterbar .p2mp-chip-group {
  padding: .12rem;
  border-radius: 14px;
  border: 1px solid rgba(183,190,198,.9);
  background: linear-gradient(180deg, rgba(250,252,255,.72), rgba(231,236,242,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  min-height: 42px;
}
.p2mp-filterbar .p2mp-chip {
  font-weight: 700;
  padding: .5rem .85rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset;
}
.p2mp-filterbar .p2mp-chip:not(.is-active) {
  opacity: .92;
  color: #303840;
  background: linear-gradient(180deg, #f6f8fb, #e7ecf1);
  border-color: #c0c8d1;
}
.p2mp-filterbar .p2mp-chip[data-p2mp-toggle-archive]:not(.is-active) {
  background: linear-gradient(180deg, #f5f6f8, #e8ecef);
  color: #4b555f;
}
.p2mp-filterbar .p2mp-chip.is-active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.08);
}
.p2mp-filterbar .btn[data-p2mp-reset] {
  font-weight: 700;
  min-width: 86px;
}
.p2mp-filterbar .p2mp-field--search input {
  min-width: 230px;
}

@media (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  }
  .p2mp-filterbar__left {
    grid-template-columns: minmax(180px,240px) minmax(240px,1fr);
  }
}

@media (max-width: 1200px) {
  .site-branding__meta.header-status {
    width: auto;
    max-width: 100%;
  }
}
@media (max-width: 820px) {
  .site-branding__meta.header-status {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }
  .site-branding__meta .badge {
    min-height: 30px;
  }
}

/* v1.6.25 filterbar layout fix: rollback broken top styling changes while keeping header refresh */
.p2mp-filterbar {
  position: sticky !important;
  top: calc(72px + .5rem) !important;
  z-index: 900 !important;
  overflow: visible !important;
  display: grid;
  grid-template-columns: 1.15fr .85fr !important;
  gap: .75rem !important;
  padding: .75rem !important;
  border-radius: 16px !important;
  background: rgba(11,11,11,.95) !important;
  backdrop-filter: blur(10px);
}
.p2mp-filterbar::before,
.p2mp-filterbar::after {
  content: none !important;
}
.p2mp-filterbar__left,
.p2mp-filterbar__right {
  gap: .65rem !important;
  align-items: end !important;
}
/* Desktop: hidden mobile toggle means two real columns on the left */
@media (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  }
  .p2mp-filterbar__left {
    grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) !important;
  }
  .p2mp-filterbar__right {
    grid-template-columns: auto 130px auto !important;
    align-items: end;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    flex-wrap: nowrap;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
.p2mp-filterbar .p2mp-field > label {
  color: var(--p2-muted) !important;
  font-size: .72rem !important;
  letter-spacing: .06em !important;
}
.p2mp-filterbar input,
.p2mp-filterbar select,
.p2mp-filterbar .btn,
.p2mp-filterbar .p2mp-chip {
  min-height: initial;
}
.p2mp-filterbar .p2mp-chip {
  box-shadow: none !important;
}
.p2mp-filterbar .p2mp-chip:not(.is-active) {
  opacity: .45 !important;
  color: var(--p2-text) !important;
  background: #121212 !important;
  border-color: var(--p2-border) !important;
}
.p2mp-filterbar .p2mp-chip[data-p2mp-toggle-archive]:not(.is-active) {
  color: var(--p2-text) !important;
  background: #121212 !important;
}
/* Keep the v1.6.24 header styling, but make the change visible without touching filter layout */
.site-header {
  background: linear-gradient(180deg, rgba(66,66,66,.985), rgba(28,28,28,.99));
}
.site-branding__meta.header-status {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 12px rgba(0,0,0,.16);
}


/* v1.6.26 filterbar spacing + archive compact button (prevent PRIO overlap) */
@media (min-width: 1101px) {
  .p2mp-filterbar__right {
    grid-template-columns: minmax(0, 1fr) auto 130px auto !important;
    gap: .55rem !important;
    align-items: end !important;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
  }
}

.p2mp-chip--archive-compact {
  white-space: nowrap;
  font-weight: 600;
  opacity: .88;
  background: #171717 !important;
  border-color: var(--p2-border) !important;
  color: var(--p2-text) !important;
  box-shadow: none !important;
  padding-inline: .75rem;
}
.p2mp-chip--archive-compact:hover {
  opacity: 1;
  border-color: #5a6168 !important;
}
.p2mp-chip--archive-compact.is-active {
  opacity: 1;
  border-color: rgba(255, 196, 82, .55) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)), #171717 !important;
}

/* Make right side wrap safely on smaller desktop widths */
@media (max-width: 1320px) and (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: 1fr !important;
  }
  .p2mp-filterbar__right {
    grid-template-columns: minmax(0,1fr) auto 130px auto !important;
  }
}

@media (max-width: 1100px) {
  .p2mp-chip--archive-compact {
    justify-self: start;
  }
}

/* v1.6.27 filterbar right-column layout hardening (separate Archief + prevent overlap) */
@media (min-width: 1101px) {
  .p2mp-filterbar__right {
    grid-template-columns: auto 130px auto !important;
    grid-template-areas:
      "dienst dienst dienst"
      "archive prio reset";
    justify-content: end;
    align-content: end;
    row-gap: .45rem !important;
    column-gap: .55rem !important;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    grid-area: dienst;
    justify-self: end;
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .p2mp-filterbar__right .p2mp-chip-group .p2mp-chip {
    white-space: nowrap;
  }
  .p2mp-filterbar__right .p2mp-chip--archive-compact {
    grid-area: archive;
    justify-self: start;
    align-self: end;
    min-height: 36px;
    padding: .42rem .7rem;
    font-size: .92rem;
  }
  .p2mp-filterbar__right .p2mp-field--prio {
    grid-area: prio;
    align-self: end;
  }
  .p2mp-filterbar__right .btn[data-p2mp-reset] {
    grid-area: reset;
    align-self: end;
    min-width: 82px;
  }
}

/* On medium desktops, let the service buttons wrap cleanly and keep controls readable */
@media (max-width: 1420px) and (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: 1fr !important;
  }
  .p2mp-filterbar__right {
    justify-content: stretch;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    justify-self: start;
    flex-wrap: wrap;
    gap: .45rem;
  }
}

/* v1.6.28 filterbar cleanup: remove black bar styling + make Archief secondary but visible */
.p2mp-filterbar {
  background: linear-gradient(180deg, rgba(247,249,252,.98), rgba(234,239,245,.97)) !important;
  border: 1px solid #bcc6d0 !important;
  box-shadow: 0 6px 18px rgba(18,24,31,.08) !important;
  backdrop-filter: none !important;
  color: #151a1f;
}
.p2mp-filterbar::before,
.p2mp-filterbar::after {
  content: none !important;
}
.p2mp-filterbar .p2mp-field > label {
  color: #56616d !important;
}
.p2mp-filterbar__right .p2mp-chip-group {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}
.p2mp-filterbar .p2mp-chip-group .p2mp-chip {
  white-space: nowrap;
}
.p2mp-filterbar .p2mp-chip--archive-compact {
  opacity: 1 !important;
  background: linear-gradient(180deg, #f4f6f9, #e4eaf0) !important;
  border: 1px solid #b8c1cb !important;
  color: #25303a !important;
  font-weight: 700;
  min-height: 38px;
  padding: .45rem .7rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact:hover {
  border-color: #9ea8b3 !important;
  background: linear-gradient(180deg, #fff, #e8edf3) !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact.is-active {
  border-color: #a07300 !important;
  color: #3a2b00 !important;
  background: linear-gradient(180deg, #fff8db, #f2e6b0) !important;
}

/* Desktop layout: keep services on top-right, Archief/Prio/Reset below with no overlap */
@media (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
    gap: .75rem !important;
  }
  .p2mp-filterbar__left {
    grid-template-columns: minmax(180px,240px) minmax(260px,1fr) !important;
    align-items: end !important;
  }
  .p2mp-filterbar__right {
    display: grid !important;
    grid-template-columns: auto minmax(120px,130px) auto !important;
    grid-template-areas:
      "dienst dienst dienst"
      "archive prio reset";
    justify-content: end;
    align-content: end;
    row-gap: .45rem !important;
    column-gap: .55rem !important;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    grid-area: dienst;
    justify-self: end;
    flex-wrap: nowrap !important;
  }
  .p2mp-filterbar__right .p2mp-chip--archive-compact {
    grid-area: archive;
    justify-self: start;
    align-self: end;
  }
  .p2mp-filterbar__right .p2mp-field--prio {
    grid-area: prio;
    align-self: end;
    min-width: 0;
  }
  .p2mp-filterbar__right .btn[data-p2mp-reset] {
    grid-area: reset;
    align-self: end;
    min-width: 84px;
  }
}

/* Medium desktop: stack filterbar columns to prevent collisions */
@media (max-width: 1460px) and (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: 1fr !important;
  }
  .p2mp-filterbar__right {
    justify-content: stretch;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    justify-self: start;
    flex-wrap: wrap !important;
  }
}

/* Phones/tablets: keep archive visible and neutral */
@media (max-width: 1100px) {
  .p2mp-filterbar .p2mp-chip--archive-compact {
    justify-self: start;
    width: auto;
  }
}


/* v1.6.29 filterbar stabilization + archive button visibility (override stacked hotfix CSS) */
.p2mp-filterbar {
  background: linear-gradient(180deg, rgba(247,249,252,.985), rgba(236,241,247,.985)) !important;
  border: 1px solid #bcc6d0 !important;
  box-shadow: 0 8px 18px rgba(18,24,31,.08) !important;
  backdrop-filter: none !important;
}
.p2mp-filterbar .p2mp-field > label { color: #59636e !important; }
.p2mp-filterbar input,
.p2mp-filterbar select {
  background: #fff !important;
  color: #1d2430 !important;
  border-color: #bfc8d1 !important;
}
.p2mp-filterbar .btn[data-p2mp-reset] {
  background: linear-gradient(180deg, #f9fbfd, #e9eef3) !important;
  color: #1f2a35 !important;
  border-color: #bcc5cf !important;
}
.p2mp-filterbar .p2mp-chip-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact {
  opacity: 1 !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  white-space: nowrap !important;
  color: #28333f !important;
  background: linear-gradient(180deg, #f4f7fa, #e5ebf1) !important;
  border: 1px solid #b9c2cc !important;
  font-weight: 700 !important;
  padding: .45rem .75rem !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact::before,
.p2mp-filterbar .p2mp-chip--archive-compact::after {
  text-indent: 0 !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact.is-active {
  color: #402d00 !important;
  border-color: #c8a247 !important;
  background: linear-gradient(180deg, #fff7d7, #f1e3a6) !important;
}

@media (min-width: 1101px) {
  .p2mp-filterbar { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr) !important; }
  .p2mp-filterbar__left { grid-template-columns: minmax(170px,240px) minmax(260px,1fr) !important; }
  .p2mp-filterbar__right {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    gap: .5rem .6rem !important;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    order: 1;
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: .45rem !important;
  }
  .p2mp-filterbar__right .p2mp-chip--archive-compact { order: 2; }
  .p2mp-filterbar__right .p2mp-field--prio { order: 3; width: 118px; min-width: 118px; }
  .p2mp-filterbar__right .btn[data-p2mp-reset] { order: 4; min-width: 86px; }
}
@media (max-width: 1460px) and (min-width: 1101px) {
  .p2mp-filterbar { grid-template-columns: 1fr !important; }
  .p2mp-filterbar__right { justify-content: flex-start !important; }
  .p2mp-filterbar__right .p2mp-chip-group { justify-content: flex-start !important; }
}


/* v1.6.30: Archief-knop zichtbaar + nette secundaire styling (fix tekst verdwenen) */
.p2mp-filterbar .p2mp-chip--archive-compact {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .38rem !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-indent: 0 !important;
  letter-spacing: normal !important;
  min-width: 112px !important;
  width: auto !important;
  max-width: none !important;
  padding: .48rem .85rem !important;
  font-size: .94rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  color: #2b3642 !important;
  background: linear-gradient(180deg, #f6f8fb, #e8edf3) !important;
  border: 1px solid #bcc5cf !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.04) !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact:hover {
  color: #1f2a35 !important;
  border-color: #aeb7c1 !important;
  background: linear-gradient(180deg, #ffffff, #edf2f7) !important;
}
.p2mp-filterbar .p2mp-chip--archive-compact.is-active {
  color: #3a2b00 !important;
  border-color: #c8a247 !important;
  background: linear-gradient(180deg, #fff7d7, #f1e3a6) !important;
}
@media (min-width: 1101px) {
  .p2mp-filterbar__right .p2mp-chip--archive-compact {
    flex: 0 0 auto !important;
    min-width: 112px !important;
  }
}


/* v1.6.32: visible archief button + safe desktop filterbar alignment (visual correction) */
.p2mp-filterbar {
  background: linear-gradient(180deg, rgba(247,249,252,.98), rgba(236,240,246,.975)) !important;
  border: 1px solid #bcc6d0 !important;
  box-shadow: 0 8px 20px rgba(18,24,31,.07) !important;
  backdrop-filter: none !important;
}
.p2mp-filterbar .p2mp-field > label { color:#586370 !important; }
.p2mp-filterbar input,
.p2mp-filterbar select {
  background:#fff !important;
  color:#1d2430 !important;
  border-color:#c2cbd4 !important;
}
.p2mp-filterbar .p2mp-chip-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}
.p2mp-filterbar .p2mp-chip-group .p2mp-chip { white-space: nowrap; }

/* Replace problematic archive-chip look with a proper secondary button */
.p2mp-filterbar .p2mp-archive-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .42rem !important;
  min-height: 38px !important;
  min-width: 116px !important;
  width: auto !important;
  padding: .46rem .8rem !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-indent: 0 !important;
  color: #24303b !important;
  background: linear-gradient(180deg, #f5f7fa, #e6ebf1) !important;
  border: 1px solid #bcc5cf !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.04) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}
.p2mp-filterbar .p2mp-archive-toggle-btn .p2mp-archive-toggle-btn__label {
  display: inline !important;
  color: inherit !important;
  font-size: .93rem !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
}
.p2mp-filterbar .p2mp-archive-toggle-btn:hover {
  color:#1e2a35 !important;
  border-color:#aeb7c1 !important;
  background: linear-gradient(180deg, #ffffff, #edf2f7) !important;
}
.p2mp-filterbar .p2mp-archive-toggle-btn.is-active {
  color:#3a2b00 !important;
  border-color:#c8a247 !important;
  background: linear-gradient(180deg, #fff7d7, #f1e3a6) !important;
}

/* Desktop layout: predictable 2-row right column without overlap */
@media (min-width: 1101px) {
  .p2mp-filterbar {
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr) !important;
    gap: .75rem !important;
  }
  .p2mp-filterbar__left {
    grid-template-columns: minmax(180px,240px) minmax(260px,1fr) !important;
    align-items: end !important;
  }
  .p2mp-filterbar__right {
    display: grid !important;
    grid-template-columns: auto 118px auto !important;
    grid-template-areas:
      "dienst dienst dienst"
      "archive prio reset";
    justify-content: end !important;
    align-content: end !important;
    row-gap: .45rem !important;
    column-gap: .55rem !important;
  }
  .p2mp-filterbar__right .p2mp-chip-group {
    grid-area: dienst;
    justify-self: end;
    display:flex !important;
    flex-wrap: nowrap !important;
    gap:.45rem !important;
  }
  .p2mp-filterbar__right .p2mp-archive-toggle-btn {
    grid-area: archive;
    justify-self: start;
    align-self: end;
    min-width: 116px !important;
  }
  .p2mp-filterbar__right .p2mp-field--prio {
    grid-area: prio;
    align-self: end;
    min-width: 0;
  }
  .p2mp-filterbar__right .btn[data-p2mp-reset] {
    grid-area: reset;
    align-self: end;
    min-width: 84px;
  }
}

/* Medium desktop: stack columns before collisions happen */
@media (max-width: 1460px) and (min-width: 1101px) {
  .p2mp-filterbar { grid-template-columns: 1fr !important; }
  .p2mp-filterbar__right { justify-content: stretch !important; }
  .p2mp-filterbar__right .p2mp-chip-group { justify-self: start !important; flex-wrap: wrap !important; }
}

/* Mobile/tablet: keep archive button readable */
@media (max-width: 1100px) {
  .p2mp-filterbar .p2mp-archive-toggle-btn {
    min-width: 108px !important;
    justify-self: start !important;
  }
}


/* ===== 2026 skin polish: less sterile, more depth (v1.6.32) ===== */
html, body { background: #d9dbde; }
body {
  background-image:
    radial-gradient(900px 420px at 12% 0%, rgba(211, 0, 0, .10), rgba(211, 0, 0, 0) 60%),
    radial-gradient(860px 420px at 88% 0%, rgba(44, 120, 184, .10), rgba(44, 120, 184, 0) 60%),
    linear-gradient(180deg, #e3e6ea 0%, #d6d9dd 100%);
  background-attachment: fixed;
}

/* Filterbar: a touch richer without going dark */
.p2mp-filterbar { 
  position: sticky;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(234,238,243,.96)) !important;
  border-color: #b8c0c8 !important;
  box-shadow: 0 10px 26px rgba(26,34,43,.10) !important;
}
.p2mp-filterbar::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(211,0,0,.70), rgba(211,0,0,.18), rgba(44,120,184,.18), rgba(44,120,184,.55));
  pointer-events: none;
  opacity: .85;
}

/* Cards: slightly different from filterbar */
.card {
  background: linear-gradient(180deg, #ffffff, #eef2f6) !important;
  border-color: #bcc4cc !important;
  box-shadow: 0 10px 26px rgba(26,34,43,.10) !important;
}
#p2mp-live-feed.card { border-top: 3px solid rgba(211, 0, 0, .55); }
.p2mp-side-column .card { border-top: 3px solid rgba(44, 120, 184, .35); }

/* Section heading: small status dot */
.p2mp-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.p2mp-section-head h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0) 55%), rgba(211,0,0,.92);
  box-shadow: 0 0 0 3px rgba(211,0,0,.12);
}

/* Feed items: service stripe + hover depth */
.p2mp-feed-item {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,247,250,.92));
  border-color: #c6ced6;
  box-shadow: 0 6px 16px rgba(26,34,43,.06);
  transition: box-shadow .15s ease, transform .15s ease;
}
.p2mp-feed-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: rgba(80,90,101,.35);
}
.p2mp-feed-item--brandweer::before { background: rgba(204, 30, 30, .75); }
.p2mp-feed-item--ambulance::before { background: rgba(255, 212, 0, .75); }
.p2mp-feed-item--politie::before { background: rgba(44, 120, 184, .70); }
.p2mp-feed-item--knrm::before { background: rgba(0, 153, 204, .75); }
.p2mp-feed-item--kmar::before { background: rgba(82, 72, 160, .70); }
.p2mp-feed-item--overig::before { background: rgba(108, 118, 130, .55); }
.p2mp-feed-item:hover {
  box-shadow: 0 10px 22px rgba(26,34,43,.10);
  transform: translateY(-1px);
}

/* Pills: a bit more contrast */
.pill { box-shadow: 0 1px 0 rgba(255,255,255,.65) inset; }

/* Archive toggle: keep label readable */
.p2mp-filterbar .p2mp-archive-toggle-btn,
.p2mp-filterbar .p2mp-archive-toggle-btn span,
.p2mp-filterbar .p2mp-archive-toggle-btn .p2mp-archive-toggle-text {
  color: #1b1f24 !important;
}

/* ===== Visual warmth pass (v1.6.33) ===== */
:root { --p2mp-style-build: "1.6.45"; }

/* ===== Subtiele UX toevoegingen (v1.6.36) ===== */

/* Badge toggle (Geen TEST) */
.badge--toggle {
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.7);
}
.badge--toggle.is-active,
.badge--toggle[aria-pressed="true"] {
  border-color: rgba(200,0,0,.35);
  background: rgba(255, 245, 245, .95);
}

/* Nieuwe meldingen: duidelijk maar rustig (service-kleur), zonder de service-stripe te overschrijven. */
.p2mp-feed-item.is-new {
  /* defaults */
  --new-accent: rgba(44, 120, 184, .55);
  --new-badge-bg: rgba(44, 120, 184, .88);
  --new-badge-fg: #fff;
  position: relative;
  box-shadow: 0 0 0 2px var(--new-accent) inset, 0 18px 40px rgba(26,34,43,.18);
  background-image: linear-gradient(180deg, rgba(255,255,255,.99), rgba(241,246,251,.99));
  transition: box-shadow .7s ease, background-image .7s ease;
}
.p2mp-feed-item--brandweer.is-new {
  --new-accent: rgba(204, 30, 30, .55);
  --new-badge-bg: rgba(204, 30, 30, .88);
  --new-badge-fg: #fff;
}
.p2mp-feed-item--ambulance.is-new {
  --new-accent: rgba(255, 212, 0, .60);
  --new-badge-bg: rgba(255, 212, 0, .95);
  --new-badge-fg: #1b1f24;
}
.p2mp-feed-item--politie.is-new {
  --new-accent: rgba(44, 120, 184, .55);
  --new-badge-bg: rgba(44, 120, 184, .88);
  --new-badge-fg: #fff;
}
.p2mp-feed-item--knrm.is-new {
  --new-accent: rgba(0, 153, 204, .55);
  --new-badge-bg: rgba(0, 153, 204, .90);
  --new-badge-fg: #fff;
}
.p2mp-feed-item--kmar.is-new {
  --new-accent: rgba(82, 72, 160, .55);
  --new-badge-bg: rgba(82, 72, 160, .90);
  --new-badge-fg: #fff;
}
.p2mp-feed-item--overig.is-new {
  --new-accent: rgba(108, 118, 130, .55);
  --new-badge-bg: rgba(108, 118, 130, .86);
  --new-badge-fg: #fff;
}

/* pulse the existing service stripe (it's ::before on the card) */
.p2mp-feed-item.is-new::before {
  filter: drop-shadow(0 0 10px var(--new-accent));
  animation: p2mpNewStripePulse 1.2s ease-in-out 0s 2;
}
@keyframes p2mpNewStripePulse {
  0% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  50% { filter: drop-shadow(0 0 14px var(--new-accent)); }
  100% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

/* small NEW badge, top-right */
.p2mp-feed-item.is-new::after {
  content: "NIEUW";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--new-badge-bg);
  color: var(--new-badge-fg);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

@media (prefers-reduced-motion: reduce) {
  .p2mp-feed-item.is-new::before { animation: none; }
}


/* Map details */
.p2mp-map-panel__details {
  margin: .6rem 0 .75rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.65);
}
.p2mp-map-panel__title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  margin-bottom: .25rem;
}
.p2mp-map-panel__desc {
  font-size: .9rem;
  color: #2c333a;
  margin: .15rem 0 .35rem;
}
.p2mp-map-panel__note {
  font-size: .8rem;
  color: #4a5560;
  margin-top: .35rem;
}

.p2mp-map-panel__details[hidden] {
  display: none !important;
}

.p2mp-map-panel__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

html, body {
  background:
    radial-gradient(circle at 18% 0%, #f6f7f8 0%, #e4e7eb 52%, #d6d9dd 100%),
    radial-gradient(circle at 78% 14%, rgba(211,0,0,.09) 0%, rgba(211,0,0,0) 46%);
  background-attachment: fixed;
}

/* Slightly richer container presence without changing layout */
.site-main {
  padding-top: 1rem;
}

/* Filterbar: a bit warmer/less flat */
.p2mp-filterbar {
  background: linear-gradient(180deg, #f6f8fb, #e7ecf2) !important;
  box-shadow: 0 12px 26px rgba(26,34,43,.12);
}

/* Live section + panels: subtle depth */
.p2mp-live-feed__body,
.p2mp-panel {
  box-shadow: 0 10px 22px rgba(26,34,43,.10);
}

/* Feed items: slightly more contrast so it feels less sterile */
.p2mp-feed-item {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,246,250,.96));
  box-shadow: 0 8px 18px rgba(26,34,43,.08);
}
.p2mp-feed-item:hover {
  box-shadow: 0 12px 24px rgba(26,34,43,.12);
}

/* Headings: a touch more character */
.p2mp-section-head h2 {
  letter-spacing: -.012em;
}

/* ===== Visual warmth pass (v1.6.35) — more visible, still safe ===== */
html, body {
  background:
    radial-gradient(1200px 520px at 12% 0%, rgba(211,0,0,.13), rgba(211,0,0,0) 62%),
    radial-gradient(1100px 520px at 88% 0%, rgba(44,120,184,.12), rgba(44,120,184,0) 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(0,0,0,.08), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.020) 0 8px, rgba(255,255,255,.000) 8px 16px),
    linear-gradient(180deg, #eef1f4 0%, #d8dde2 100%);
  background-attachment: fixed;
}

/* Slight “glass” container feel */
.site-main {
  padding-top: 1.2rem;
}
.p2mp-monitor-shell {
  filter: drop-shadow(0 10px 28px rgba(26,34,43,.10));
}

/* Filterbar: clearer separation + accent line */
.p2mp-filterbar {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(230,236,243,.96)) !important;
  border-color: #aeb8c2 !important;
  box-shadow: 0 14px 30px rgba(26,34,43,.14) !important;
}
.p2mp-filterbar::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 1px;
  border-radius: 99px;
  background: rgba(26,34,43,.08);
  pointer-events: none;
}

/* Panels/cards: more depth and less “flat white” */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,242,248,.98)) !important;
  border-color: #b3bcc6 !important;
  box-shadow: 0 14px 30px rgba(26,34,43,.12) !important;
}

/* Side panels get a subtle header tint */
.p2mp-panel__head,
.p2mp-panel-head,
.card h3 {
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)) !important;
}

/* Feed items: clearer card feel + stronger hover */
.p2mp-feed-item {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,246,251,.98));
  border-color: #bfc8d1;
  box-shadow: 0 10px 22px rgba(26,34,43,.10);
}
.p2mp-feed-item:hover {
  box-shadow: 0 16px 34px rgba(26,34,43,.16);
  transform: translateY(-1px);
}

/* Service stripes slightly thicker */
.p2mp-feed-item::before { width: 6px; }

/* Buttons/inputs: slightly warmer */
.p2mp-filterbar input[type="text"],
.p2mp-filterbar select {
  background: rgba(255,255,255,.92) !important;
  border-color: #b7c0ca !important;
}


/* v1.6.49: verberg server-side live-lijst tot de eerste verse fetch klaar is */
.p2mp-live-loading {
  display: none;
  padding: .5rem 0 .15rem;
}
.p2mp-live-loading .badge {
  font-size: .82rem;
}
#p2mp-live-feed[data-p2mp-initial-state="pending"] .p2mp-live-loading {
  display: flex;
  align-items: center;
  gap: .5rem;
}
#p2mp-live-feed[data-p2mp-initial-state="pending"] .p2mp-feed-list,
#p2mp-live-feed[data-p2mp-initial-state="pending"] [data-p2mp-empty] {
  display: none !important;
}


/* Hide map note permanently */
.p2mp-map-panel__note,
.p2mp-map-panel__note--compact,
[data-p2mp-map-note] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}


/* 1.6.64 */
.p2mp-map-panel__details,
.p2mp-map-panel__note {
  display: none !important;
}


/* 1.6.66 - compacte filterheader met dropdownmenu */
.p2mp-filterbar {
  position: sticky;
  top: calc(72px + .5rem);
  z-index: 900;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .65rem !important;
  padding: .9rem !important;
  overflow: visible !important;
}

.p2mp-filterbar__top {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(320px, 1fr) auto;
  gap: .75rem;
  align-items: end;
}

.p2mp-filterbar__left,
.p2mp-filterbar__right {
  display: contents !important;
}

.p2mp-filterbar__menu-trigger {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.p2mp-filterbar__filters-btn {
  min-width: 142px;
  justify-content: center;
  gap: .5rem;
}

.p2mp-filterbar__filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #be0000;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.p2mp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.p2mp-active-filters[hidden] { display: none !important; }

.p2mp-active-filters__chip,
.p2mp-active-filters__reset {
  appearance: none;
  border: 1px solid #c0c8d0;
  background: rgba(255,255,255,.82);
  color: #25303b;
  border-radius: 999px;
  padding: .38rem .7rem;
  font: inherit;
  line-height: 1;
}

.p2mp-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
}

.p2mp-active-filters__chip:hover,
.p2mp-active-filters__reset:hover {
  border-color: #9ca9b6;
  background: rgba(255,255,255,.96);
}

.p2mp-active-filters__close {
  font-size: .92rem;
  opacity: .72;
}

.p2mp-active-filters__reset {
  color: #59636e;
  cursor: pointer;
}

.p2mp-filter-menu {
  position: absolute;
  top: calc(100% - .15rem);
  right: .9rem;
  width: min(420px, calc(100vw - 2rem));
  z-index: 950;
}

.p2mp-filter-menu[hidden] { display: none !important; }

.p2mp-filter-menu__panel {
  border: 1px solid #b8c1cb;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,242,247,.98));
  box-shadow: 0 20px 40px rgba(26,34,43,.18);
  padding: .85rem;
}

.p2mp-filter-menu__head,
.p2mp-filter-menu__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.p2mp-filter-menu__head {
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(88,99,110,.14);
}

.p2mp-filter-menu__head h2 {
  margin: 0;
  font-size: 1rem;
}

.p2mp-filter-menu__body {
  display: grid;
  gap: .85rem;
  padding: .85rem 0;
}

.p2mp-filter-menu__group {
  display: grid;
  gap: .45rem;
}

.p2mp-filter-menu__label {
  color: #59636e;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.p2mp-filter-menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: .75rem;
  align-items: end;
}

.p2mp-filter-menu__grid--single {
  grid-template-columns: minmax(0, 180px);
}

.p2mp-filter-menu .p2mp-chip-group {
  min-height: 0;
}

.p2mp-filter-menu .p2mp-chip {
  background: rgba(255,255,255,.92);
  border-color: #c0c8d0;
  color: #25303b;
}

.p2mp-filter-menu .p2mp-chip:not(.is-active) {
  opacity: .52;
}

.p2mp-filter-menu .p2mp-field--prio label {
  color: #59636e !important;
}

.p2mp-filter-menu .p2mp-archive-toggle-btn {
  width: 100%;
  justify-content: center;
}

.p2mp-filter-menu__actions {
  padding-top: .7rem;
  border-top: 1px solid rgba(88,99,110,.14);
}

@media (max-width: 920px) {
  .p2mp-filterbar__top {
    grid-template-columns: minmax(170px, 220px) minmax(220px, 1fr) auto;
  }
}

@media (max-width: 767px) {
  .p2mp-filterbar {
    top: auto;
    position: relative;
    padding: .75rem !important;
  }

  .p2mp-filterbar__top {
    grid-template-columns: 1fr;
  }

  .p2mp-filterbar__mobile-toggle {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .p2mp-filterbar__menu-trigger {
    display: none;
  }

  .p2mp-filter-menu {
    display: none !important;
  }
}


/* 1.6.66 - zoekveld compacter en badge 0 verbergen */
.p2mp-filterbar__top {
  grid-template-columns: minmax(180px, 240px) minmax(320px, 720px) 150px;
  justify-content: space-between;
}

.p2mp-field--search {
  justify-self: start;
  width: 100%;
  max-width: 720px;
}

.p2mp-field--search input {
  width: 100%;
}

.p2mp-filterbar__filters-count[hidden] {
  display: none !important;
}

@media (max-width: 1200px) {
  .p2mp-filterbar__top {
    grid-template-columns: minmax(170px, 220px) minmax(280px, 1fr) 150px;
    justify-content: stretch;
  }

  .p2mp-field--search {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 920px) {
  .p2mp-filterbar__top {
    grid-template-columns: minmax(170px, 220px) minmax(220px, 1fr) auto;
  }
}


/* 1.6.67 - zoekveld smaller en verder naar rechts */
.p2mp-filterbar__top {
  grid-template-columns: minmax(180px, 230px) 1fr 150px;
}

.p2mp-field--search {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  margin-left: auto;
}

@media (max-width: 1200px) {
  .p2mp-field--search {
    max-width: 500px;
  }
}

@media (max-width: 920px) {
  .p2mp-field--search {
    max-width: none;
    justify-self: stretch;
  }
}

/* 1.6.67 - extra activiteit context */
.p2mp-activity-normal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.p2mp-activity-normal__item {
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.45);
  border-radius: 12px;
  padding: 9px 10px;
}

.p2mp-activity-normal__label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .76;
}

.p2mp-activity-normal__value {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .p2mp-activity-normal {
    grid-template-columns: 1fr;
  }
}


/* 1.6.68 - activiteit duidelijker */
.p2mp-activity-note {
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.35;
  opacity: .78;
}


/* v1.6.69: contextregel + duidelijke kaartlege staat */
.p2mp-current-view {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-top: .15rem;
  padding: .2rem 0 .1rem;
  color: #50606f;
  font-size: .84rem;
  line-height: 1.35;
}
.p2mp-current-view__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c7886;
}
.p2mp-current-view__text {
  color: #33414f;
  font-weight: 600;
}
.p2mp-active-filters {
  margin-top: .45rem;
}
.p2mp-map-panel__empty {
  display: grid !important;
  min-height: 110px;
}
.p2mp-map-panel__empty strong {
  font-size: .98rem;
  color: #2f3a45;
}
.p2mp-map-panel__empty small {
  max-width: 24ch;
  margin: 0 auto;
  color: #647281;
}
@media (max-width: 900px) {
  .p2mp-current-view {
    font-size: .8rem;
  }
}

/* v1.6.71: header bediening + rustigere kaartstate */
.site-branding__meta .badge--action {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  cursor: pointer;
  color: #eef2f6;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.site-branding__meta .badge--action:hover {
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.site-branding__meta .badge--action.is-active {
  color: #fff3bf;
  border-color: rgba(255,205,64,.32);
  background:
    linear-gradient(180deg, rgba(255,205,64,.16), rgba(255,205,64,.05)),
    linear-gradient(90deg, rgba(255,205,64,.09), rgba(255,255,255,0));
}
.site-branding__meta .badge--action[disabled] {
  opacity: .5;
  cursor: default;
}
.site-branding__meta .badge--live.is-paused {
  color: #ffe4bf;
  border-color: rgba(255,176,64,.34);
  background:
    radial-gradient(circle at 10% 50%, rgba(255,176,64,.16), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.site-branding__meta .badge--live.is-paused::before {
  background: #ffb040;
  box-shadow: 0 0 0 0 rgba(255,176,64,.32), 0 0 8px rgba(255,176,64,.45);
  animation: none;
}
.p2mp-map-panel__empty {
  min-height: 92px;
}
.p2mp-map-panel__empty small {
  display: none !important;
}
@media (max-width: 920px) {
  .site-branding__meta.header-status {
    width: 100%;
    flex-wrap: wrap;
  }
}


/* 1.6.82 mobiele monitor-optimalisatie */
@media (max-width: 900px) {
  .p2mp-highlight,
  .p2mp-special-panel,
  .p2mp-activity-panel,
  .p2mp-side-ad-panel,
  .p2mp-side-column {
    display: none !important;
  }

  .p2mp-monitor-page {
    width: calc(100% - .5rem);
  }

  .p2mp-monitor-shell {
    gap: .55rem;
  }

  .p2mp-filterbar {
    position: relative;
    top: auto;
    padding: .7rem !important;
    border-radius: 12px;
  }

  .p2mp-filterbar__top {
    grid-template-columns: 1fr !important;
    gap: .55rem;
  }

  .p2mp-filterbar__menu-trigger,
  .p2mp-filter-menu,
  .p2mp-current-view {
    display: none !important;
  }

  .p2mp-filterbar__mobile-toggle {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .p2mp-monitor-layout {
    grid-template-columns: 1fr !important;
    gap: .55rem;
  }

  .p2mp-live-feed__body {
    padding: .6rem;
  }

  .p2mp-section-head {
    align-items: flex-start;
    gap: .45rem;
  }

  .p2mp-section-head__meta {
    gap: .3rem;
  }

  .p2mp-section-head__meta .badge {
    font-size: .72rem;
    padding: .18rem .42rem;
  }

  .p2mp-feed-list {
    gap: .42rem;
  }

  .p2mp-feed-item {
    padding: .65rem .68rem;
    border-radius: 12px;
  }

  .p2mp-feed-item__grid {
    grid-template-columns: 1fr !important;
    gap: .35rem;
  }

  .p2mp-feed-item__time {
    font-size: .79rem;
    line-height: 1.2;
    white-space: normal;
  }

  .p2mp-feed-item__meta {
    gap: .22rem;
    margin-bottom: .28rem;
  }

  .pill {
    font-size: .66rem;
    padding: .14rem .42rem;
  }

  .p2mp-feed-item__title {
    font-size: .95rem;
    line-height: 1.24;
  }

  .p2mp-feed-item__desc {
    margin-top: .18rem;
    font-size: .86rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .p2mp-feed-item__units {
    margin-top: .28rem;
    gap: .2rem;
  }

  .p2mp-feed-item__units li {
    font-size: .77rem;
    line-height: 1.2;
    padding: .28rem .42rem;
  }
}

@media (max-width: 520px) {
  .p2mp-section-head__meta .badge:first-child {
    display: none;
  }

  .p2mp-feed-item__desc {
    -webkit-line-clamp: 2;
  }

  .p2mp-feed-item__units {
    display: grid;
    gap: .18rem;
    margin-top: .28rem;
  }

  .p2mp-feed-item__units li {
    font-size: .74rem;
    line-height: 1.18;
    padding: .24rem .4rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}


/* 1.6.83 compactere mobiele bovenkant */
@media (max-width: 900px) {
  .site-header {
    position: relative;
  }

  .site-header__inner {
    gap: .45rem;
    padding: .5rem 0;
  }

  .site-branding {
    row-gap: .38rem;
    column-gap: .65rem;
  }

  .site-logo-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(50,215,75,.15);
  }

  .site-title {
    font-size: 1.02rem;
  }

  .site-branding__meta.header-status {
    margin-left: 0;
    gap: .22rem;
    padding: .14rem;
    border-radius: 14px;
  }

  .site-branding__meta .badge {
    min-height: 28px;
    padding: .24rem .56rem;
    font-size: .8rem;
  }

  .site-branding__meta .badge--update {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-branding__meta.header-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
  }

  .site-branding__meta .badge {
    justify-content: center;
  }

  .site-branding__meta .badge--update {
    justify-content: flex-start;
    overflow: hidden;
  }

  .site-branding__meta .badge--update strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-branding__meta .badge--action {
    width: 100%;
  }
}


/* v1.6.85 mobile filter drawer: always pin to top on iPhone/Safari */
@media (max-width: 640px) {
  .p2mp-mobile-drawer {
    z-index: 1600;
  }
  .p2mp-mobile-drawer__backdrop {
    position: fixed;
    inset: 0;
  }
  .p2mp-mobile-drawer__panel {
    position: fixed;
    top: calc(env(safe-area-inset-top) + .55rem);
    left: .5rem;
    right: .5rem;
    bottom: auto;
    width: auto;
    height: auto;
    max-height: min(72vh, 34rem);
    border: 1px solid #bcc4cc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(16, 22, 28, .22);
  }
  .p2mp-mobile-drawer__head {
    padding: .7rem .85rem;
  }
  .p2mp-mobile-drawer__body {
    padding: .75rem;
    max-height: calc(72vh - 68px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}


/* v1.6.86 mobile filterbar: never sticky on phones; keep it in normal flow */
@media (max-width: 767px) {
  .p2mp-filterbar {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
  }

  .p2mp-filterbar.is-stuck,
  .p2mp-filterbar.is-open,
  .p2mp-filterbar[data-open="1"] {
    position: relative !important;
    top: auto !important;
  }

  .p2mp-mobile-drawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1600 !important;
  }

  .p2mp-mobile-drawer__panel {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + .5rem) !important;
    left: .5rem !important;
    right: .5rem !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: min(72vh, 34rem) !important;
    margin: 0 !important;
  }
}


/* v1.6.89 mobile sticky status strip */
.p2mp-mobile-status-strip {
  display: none;
}

@media (max-width: 767px) {
  .site-header .header-status {
    display: none !important;
  }

  .p2mp-mobile-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    position: sticky;
    top: 0;
    z-index: 35;
    margin: 0 0 .8rem;
    padding: .55rem .85rem;
    border: 1px solid #c8cfd6;
    border-radius: 0 0 12px 12px;
    background: rgba(244, 246, 248, .97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #24313c;
    font-size: .92rem;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  }

  .p2mp-mobile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    white-space: nowrap;
  }

  .p2mp-mobile-status-pill--countdown {
    margin-left: auto;
    color: #445261;
    font-weight: 700;
  }

  .p2mp-mobile-status-strip__label {
    color: #5c6975;
    font-weight: 600;
  }

  .p2mp-mobile-status-strip strong {
    color: #1d2a33;
    font-weight: 800;
    letter-spacing: .01em;
  }
}

@media (max-width: 420px) {
  .p2mp-mobile-status-strip {
    padding: .5rem .75rem;
    font-size: .88rem;
  }

  .p2mp-mobile-status-pill {
    gap: .25rem;
  }
}


/* v1.7.01 subtiele share-iconen zonder dropdown */
.p2mp-feed-item__title { align-items: center; }


/* v1.7.09 hard fixes: solid dark header + always-visible social share buttons */
.site-header,
body.home .site-header,
body.front-page .site-header,
body.blog .site-header,
body.archive .site-header,
body.category .site-header,
body.single .site-header {
  background: linear-gradient(180deg, #3b3b3b 0%, #232323 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}
.site-header::before,
.site-header::after {
  opacity: 1 !important;
}
.site-branding__meta.header-status,
.header-status {
  background: linear-gradient(180deg, rgba(59,59,59,.96), rgba(34,34,34,.96)) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 12px rgba(0,0,0,.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}
.site-header__menu-bar {
  background: linear-gradient(180deg, rgba(46,46,46,.98), rgba(27,27,27,.98)) !important;
}

.p2mp-feed-item__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.p2mp-feed-item__title > a:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.p2mp-share {
  flex: 0 0 auto;
  margin-left: .35rem;
}
.p2mp-share__item {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  overflow: hidden;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  color: #fff !important;
  text-rendering: geometricPrecision;
}
.p2mp-share__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  transform: translateY(-.5px);
}
.p2mp-share__item--x {
  background: linear-gradient(180deg, #2e3238, #171a1f) !important;
  color: #ffffff !important;
}
.p2mp-share__item--page {
  background: linear-gradient(180deg, #3f4854, #232931) !important;
  color: #ffffff !important;
}
.p2mp-share__item--page .p2mp-share__glyph {
  font-size: 16px;
  font-weight: 900;
  transform: translateY(-1px);
}


/* v1.7.16 compacte meldingsdetailpagina */
.p2mp-message-page.card .card__body {
  padding: 1.15rem 1.15rem 1rem;
}
.p2mp-message-page .page-header {
  margin-bottom: .8rem;
}
.p2mp-message-page .page-title {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: .45rem;
}
.p2mp-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  font-size: .94rem;
  color: #6b7280;
  margin: 0 0 .9rem;
}
.p2mp-message-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .62rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
}
.p2mp-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1rem;
}
.p2mp-message-actions .button,
.p2mp-message-actions .button:visited {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.p2mp-message-lead {
  margin: 0 0 .85rem;
  color: #4b5563;
}
.p2mp-message-box {
  margin: 0 0 1rem;
  padding: .95rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
}
.p2mp-message-box__label {
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 .4rem;
  font-weight: 700;
}
.p2mp-message-box__value {
  margin: 0;
  color: #111827;
  line-height: 1.6;
  font-weight: 600;
}
.p2mp-message-copy-note {
  font-size: .88rem;
  color: #6b7280;
  margin: .2rem 0 0;
}
.p2mp-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.94);
  color: #fff;
  padding: .65rem .9rem;
  border-radius: 999px;
  font-size: .92rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (max-width: 640px) {
  .p2mp-message-page.card .card__body {
    padding: 1rem .9rem .95rem;
  }
  .p2mp-message-actions {
    gap: .45rem;
  }
  .p2mp-message-actions .button {
    width: 100%;
    justify-content: center;
  }
}


/* v1.7.17 compactere publieke meldingspagina */
body.p2mp-public-message .site-main,
body.p2mp-public-message #primary {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
body.p2mp-public-message .p2mp-public-title,
body.p2mp-public-message .site-main h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  line-height: 1.15 !important;
  margin: .15rem 0 .55rem !important;
  max-width: 980px;
}
body.p2mp-public-message .p2mp-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 .9rem;
}
body.p2mp-public-message .p2mp-public-actions__btn,
body.p2mp-public-message .p2mp-public-actions__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.12);
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(17,24,39,.07);
}
body.p2mp-public-message .p2mp-public-actions__btn--x {
  background: linear-gradient(180deg, #2f3338, #171a1f);
  color: #fff !important;
  border-color: #171a1f;
}
body.p2mp-public-message .p2mp-public-actions__btn--copy,
body.p2mp-public-message .p2mp-public-actions__btn--link {
  background: #f9fafb;
}
body.p2mp-public-message .p2mp-public-back,
body.p2mp-public-message a.p2mp-public-back,
body.p2mp-public-message button.p2mp-public-back {
  min-height: 38px;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .96rem;
}
body.p2mp-public-message .p2mp-public-meta-card {
  padding: .8rem .9rem !important;
  border-radius: 14px !important;
}
body.p2mp-public-message .p2mp-public-meta-card p,
body.p2mp-public-message .p2mp-public-meta-card div,
body.p2mp-public-message .p2mp-public-meta-card span {
  margin-bottom: 0;
}
body.p2mp-public-message .p2mp-public-panel {
  padding: 1rem 1.05rem !important;
  border-radius: 16px !important;
}
body.p2mp-public-message input[type='text'],
body.p2mp-public-message textarea {
  min-height: 46px;
  font-size: .95rem;
}
body.p2mp-public-message .p2mp-inline-copy {
  margin-top: .55rem;
  display: flex;
  justify-content: flex-end;
}
body.p2mp-public-message .p2mp-inline-copy .p2mp-public-actions__btn {
  min-height: 38px;
  padding: .5rem .85rem;
}
body.p2mp-public-message .p2mp-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  padding: .7rem .95rem;
  border-radius: 12px;
  background: rgba(17,24,39,.94);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.26);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
body.p2mp-public-message .p2mp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 900px) {
  body.p2mp-public-message .site-main,
  body.p2mp-public-message #primary { max-width: 100%; }
  body.p2mp-public-message .p2mp-public-title,
  body.p2mp-public-message .site-main h1 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
}


/* v1.7.18 echt compacte meldingsdetailpagina */
body.p2mp-public-message .site-main,
body.p2mp-public-message #primary {
  max-width: 820px !important;
  margin-left: auto;
  margin-right: auto;
}
body.p2mp-public-message .p2mp-public-title,
body.p2mp-public-message .site-main h1 {
  font-size: clamp(1.15rem, 2vw, 1.9rem) !important;
  line-height: 1.18 !important;
  margin: 0 0 .45rem !important;
  max-width: 820px !important;
}
body.p2mp-public-message .p2mp-public-back,
body.p2mp-public-message a.p2mp-public-back,
body.p2mp-public-message button.p2mp-public-back {
  min-height: 34px !important;
  padding: .42rem .75rem !important;
  font-size: .9rem !important;
  margin: 0 0 .45rem !important;
}
body.p2mp-public-message .p2mp-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 .7rem !important;
}
body.p2mp-public-message .p2mp-public-actions__btn,
body.p2mp-public-message .p2mp-public-actions__btn:visited {
  min-height: 34px;
  padding: .42rem .72rem;
  border-radius: 10px;
  font-size: .9rem;
  box-shadow: none;
}
body.p2mp-public-message .p2mp-public-actions__btn--x {
  background: #171a1f;
  color: #fff !important;
  border-color: #171a1f;
}
body.p2mp-public-message .p2mp-public-actions__btn--facebook {
  background: #1877f2;
  color: #fff !important;
  border-color: #1877f2;
}
body.p2mp-public-message .p2mp-public-actions__btn--whatsapp {
  background: #25d366;
  color: #fff !important;
  border-color: #25d366;
}
body.p2mp-public-message .p2mp-public-actions__btn--copy,
body.p2mp-public-message .p2mp-public-actions__btn--link,
body.p2mp-public-message .p2mp-public-actions__btn--map {
  background: #f3f4f6;
  color: #111827 !important;
}
body.p2mp-public-message .p2mp-public-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 .75rem;
}
body.p2mp-public-message .p2mp-public-meta-card {
  padding: .6rem .75rem !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}
body.p2mp-public-message .p2mp-public-meta-card p,
body.p2mp-public-message .p2mp-public-meta-card div,
body.p2mp-public-message .p2mp-public-meta-card span {
  font-size: .92rem;
}
body.p2mp-public-message .p2mp-public-panel {
  padding: .75rem .85rem !important;
  border-radius: 14px !important;
  margin: 0 0 .75rem !important;
}
body.p2mp-public-message .p2mp-public-panel h2,
body.p2mp-public-message .p2mp-public-panel h3,
body.p2mp-public-message .p2mp-public-panel strong {
  margin-bottom: .45rem !important;
}
body.p2mp-public-message .p2mp-public-panel p,
body.p2mp-public-message .p2mp-public-panel div,
body.p2mp-public-message .p2mp-public-panel span {
  font-size: .96rem;
}
body.p2mp-public-message .p2mp-public-panel--capcodes > div,
body.p2mp-public-message .p2mp-public-capcode-item {
  padding: .65rem .8rem !important;
  border-radius: 12px !important;
  margin-bottom: .5rem !important;
}
body.p2mp-public-message .p2mp-public-panel--capcodes > div:last-child,
body.p2mp-public-message .p2mp-public-capcode-item:last-child {
  margin-bottom: 0 !important;
}
body.p2mp-public-message .p2mp-public-panel--capcodes strong,
body.p2mp-public-message .p2mp-public-panel--capcodes b {
  display: block;
  margin-bottom: .2rem;
  font-size: 1rem;
}
@media (max-width: 900px) {
  body.p2mp-public-message .site-main,
  body.p2mp-public-message #primary {
    max-width: 100% !important;
  }
  body.p2mp-public-message .p2mp-public-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.p2mp-public-message .p2mp-public-title,
  body.p2mp-public-message .site-main h1 {
    font-size: clamp(1.05rem, 7vw, 1.45rem) !important;
  }
  body.p2mp-public-message .p2mp-public-actions {
    gap: .35rem;
  }
  body.p2mp-public-message .p2mp-public-actions__btn,
  body.p2mp-public-message .p2mp-public-actions__btn:visited {
    width: calc(50% - .2rem);
    justify-content: center;
  }
  body.p2mp-public-message .p2mp-public-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.7.20 echte compacte publieke meldingspagina */
body.p2mp-public-message .site-main,
body.p2mp-public-message #primary {
  width: min(980px, calc(100% - 1.25rem)) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding-top: .65rem !important;
}
body.p2mp-public-message .p2mp-public-compact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
body.p2mp-public-message .p2mp-public-compact__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
body.p2mp-public-message .p2mp-public-title {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem) !important;
  line-height: 1.15 !important;
  max-width: 980px !important;
}
body.p2mp-public-message .p2mp-public-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
body.p2mp-public-message .p2mp-public-pill,
body.p2mp-public-message .p2mp-public-submeta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #243042;
  font-size: .92rem;
  font-weight: 700;
}
body.p2mp-public-message .p2mp-public-submeta {
  background: #f5f7fa;
  font-weight: 600;
}
body.p2mp-public-message .p2mp-public-compact__location {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}
body.p2mp-public-message .p2mp-public-card {
  padding: .9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
body.p2mp-public-message .p2mp-public-card__message {
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}
body.p2mp-public-message .p2mp-public-capcodes {
  display: grid;
  gap: .5rem;
}
body.p2mp-public-message .p2mp-public-capcode {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .7rem .85rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
body.p2mp-public-message .p2mp-public-capcode strong {
  font-size: 1rem;
  color: #111827;
}
body.p2mp-public-message .p2mp-public-capcode span {
  color: #374151;
  line-height: 1.35;
}
body.p2mp-public-message .p2mp-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
body.p2mp-public-message .p2mp-public-actions__btn,
body.p2mp-public-message .p2mp-public-actions__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .45rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 2px 8px rgba(17,24,39,.06);
}
body.p2mp-public-message .p2mp-public-actions__btn--x {
  background: linear-gradient(180deg, #2f3338, #171a1f);
  color: #fff !important;
  border-color: #171a1f;
}
body.p2mp-public-message .p2mp-public-actions__btn--facebook {
  background: #1877f2;
  color: #fff !important;
  border-color: #1877f2;
}
body.p2mp-public-message .p2mp-public-actions__btn--whatsapp {
  background: #22c55e;
  color: #fff !important;
  border-color: #22c55e;
}
body.p2mp-public-message .p2mp-public-actions__btn--map {
  background: #111827;
  color: #fff !important;
  border-color: #111827;
}
body.p2mp-public-message .p2mp-public-back,
body.p2mp-public-message .p2mp-public-back:visited {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 2px 8px rgba(17,24,39,.06);
  text-decoration: none;
  color: #111827;
  font-weight: 700;
}
body.p2mp-public-message .p2mp-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  padding: .65rem .9rem;
  border-radius: 10px;
  background: rgba(17,24,39,.96);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.26);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
body.p2mp-public-message .p2mp-toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 780px){
  body.p2mp-public-message .p2mp-public-compact__top { align-items: flex-start; }
  body.p2mp-public-message .p2mp-public-capcode { grid-template-columns: 1fr; gap: .25rem; }
  body.p2mp-public-message .p2mp-public-actions { width: 100%; }
  body.p2mp-public-message .p2mp-public-actions__btn { flex: 1 1 calc(50% - .3rem); }
}

/* v1.7.21 second region */
.p2mp-filterbar__region2-trigger{display:flex;align-items:flex-end;}
.p2mp-field--region-secondary[hidden]{display:none !important;}
.p2mp-region2-controls{display:flex;gap:.45rem;align-items:center;}
.p2mp-region2-controls select{flex:1 1 auto;}
.p2mp-region2-remove{min-width:42px;padding:0 .7rem;}
@media (max-width:980px){.p2mp-filterbar__region2-trigger{width:100%;}.p2mp-region2-add{width:100%;}}


/* v1.7.22 second region layout fix */
.p2mp-filterbar__top{
  display:grid;
  grid-template-columns:minmax(180px,230px) minmax(180px,230px) minmax(140px,max-content) minmax(260px,1fr) max-content;
  align-items:end;
  gap:.75rem;
}
.p2mp-field--region-secondary{min-width:180px;}
.p2mp-filterbar__region2-trigger{justify-self:start;}
.p2mp-field--search{max-width:none;width:100%;min-width:260px;justify-self:stretch;margin-left:0;}
.p2mp-filterbar__menu-trigger{justify-self:end;}
.p2mp-region2-controls select{min-width:180px;}
@media (max-width:1200px){
  .p2mp-filterbar__top{grid-template-columns:minmax(180px,230px) minmax(180px,230px) minmax(120px,max-content) minmax(220px,1fr) max-content;}
}
@media (max-width:980px){
  .p2mp-filterbar__top{grid-template-columns:1fr 1fr;}
  .p2mp-filterbar__region2-trigger,.p2mp-filterbar__menu-trigger,.p2mp-field--search,.p2mp-field--region-secondary{grid-column:auto;min-width:0;}
  .p2mp-field--search{grid-column:1 / -1;}
  .p2mp-filterbar__menu-trigger{justify-self:start;}
}
@media (max-width:720px){
  .p2mp-filterbar__top{grid-template-columns:1fr;}
  .p2mp-field--search,.p2mp-field--region-secondary,.p2mp-filterbar__region2-trigger,.p2mp-filterbar__menu-trigger{grid-column:1;}
  .p2mp-region2-controls{flex-wrap:wrap;}
  .p2mp-region2-controls select{width:100%;min-width:0;}
}


/* Compacte inklapbare bovenkant voor meer monitorruimte */
.p2mp-top-collapse-strip{display:none !important;}
.p2mp-top-collapse-strip__inner{display:none !important;}
.p2mp-top-collapse-strip__btn{display:none !important;}

.badge--menu-collapse{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
}
.badge--menu-collapse .p2mp-top-collapse-toggle__icon{
  width:16px;
  height:16px;
  font-size:.7rem;
}
.badge--menu-collapse .p2mp-top-collapse-toggle__label{
  font-size:.78rem;
}

.p2mp-top-collapse-bar {
  display: none !important;
}

.p2mp-top-collapse-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 38px;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(18,18,18,.96);
  color: #f3f5f8;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.p2mp-top-collapse-toggle:hover { border-color: rgba(255,255,255,.24); }
.p2mp-top-collapse-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .76rem;
  line-height: 1;
}
.p2mp-top-collapse-toggle__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

#masthead,
#masthead .site-header__inner,
#masthead .site-header__menu-bar,
#masthead .site-header__ad-inline,
.p2mp-filterbar,
.p2mp-highlight,
.p2mp-mobile-status-strip {
  transition: none !important;
  opacity: 1 !important;
  filter: none !important;
}

body.p2mp-monitor-active.p2mp-top-collapsed .site-header__menu-bar,
body.p2mp-monitor-active.p2mp-top-collapsed .site-header__ad-inline,
body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-filterbar,
body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-highlight,
body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-mobile-status-strip {
  display: none !important;
}

body.p2mp-monitor-active.p2mp-top-collapsed #masthead {
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
}

body.p2mp-monitor-active.p2mp-top-collapsed #masthead .site-header__inner {
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
}

body.p2mp-monitor-active.p2mp-top-collapsed .site-main.p2mp-monitor-page {
  padding-top: .35rem;
}

body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-monitor-shell,
body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-main-column,
body.p2mp-monitor-active.p2mp-top-collapsed .p2mp-side-column {
  gap: .55rem;
}

@media (max-width: 640px) {
  .p2mp-top-collapse-toggle__label {
    font-size: .72rem;
  }
}



body.p2mp-monitor-active.p2mp-monitor-has-top-toggle,
body.p2mp-monitor-active.p2mp-monitor-has-top-toggle #page,
body.p2mp-monitor-active.p2mp-monitor-has-top-toggle .site,
body.p2mp-monitor-active.p2mp-monitor-has-top-toggle .site-main.p2mp-monitor-page {
  opacity: 1 !important;
  filter: none !important;
}


/* v1.7.77 mobiele feed-bediening */
.p2mp-feed-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}

.p2mp-feed-item__action {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  padding: .46rem .78rem;
  border-radius: 999px;
  border: 1px solid #b8c1cb;
  background: rgba(255,255,255,.92);
  color: #25303b;
  text-decoration: none;
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.p2mp-feed-item__action:hover,
.p2mp-feed-item__action:focus-visible {
  border-color: #98a5b2;
  background: rgba(255,255,255,.98);
}

.p2mp-feed-item__action--map {
  background: linear-gradient(180deg, #2f3944, #222a33);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.p2mp-feed-item__action--details {
  background: rgba(255,255,255,.92);
  color: #25303b;
}

.p2mp-feed-item__title > a:first-child {
  pointer-events: auto !important;
  text-decoration: none;
}

@media (max-width: 900px) {
  .p2mp-feed-item {
    cursor: default !important;
  }

  .p2mp-feed-item__title {
    align-items: flex-start;
  }

  .p2mp-feed-item__title .p2mp-share {
    margin-left: auto;
  }

  .p2mp-feed-item__actions {
    display: flex;
  }
}

@media (max-width: 640px) {
  .p2mp-feed-item__actions {
    gap: .35rem;
  }

  .p2mp-feed-item__action {
    flex: 1 1 calc(50% - .2rem);
    min-height: 36px;
    padding: .5rem .72rem;
    font-size: .8rem;
  }
}
