[hidden] { display: none !important; }

.location-catalog { --category-color: #63d8ac; --category-tint: rgba(99, 216, 172, .08); }
.category-defensie .location-catalog { --category-color: #ff8492; --category-tint: rgba(255, 132, 146, .08); }
.catalog-heading { margin-bottom: 28px; }
.page-location-catalog .site-main { padding-top: 32px; }
.catalog-title-row .page-title { color: var(--ink); }
.catalog-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #303030; border-radius: 12px; background: #101010; margin-bottom: 28px; }
.catalog-tabs a { padding: 9px 24px; border-radius: 8px; color: #b8b8b8; font-size: 14px; text-decoration: none; }
.catalog-tabs a[aria-current] { background: var(--category-tint); color: var(--category-color); box-shadow: inset 0 0 0 1px var(--category-color); }
.catalog-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-title-row .page-title { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.1; }
.catalog-title-row .btn { flex-shrink: 0; font-size: 12px; padding: 11px 16px; }
.catalog-eyebrow { color: var(--category-color); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px; }
.catalog-intro { max-width: 730px; color: #b7b7b7; line-height: 1.7; font-size: 15px; margin: 16px 0 20px; }
.catalog-stats { display: flex; gap: 26px; flex-wrap: wrap; color: #aaa; font-size: 13px; }
.catalog-stats strong { color: var(--ink); font-size: 18px; margin-right: 5px; }
.catalog-filters { display: grid; grid-template-columns: minmax(200px, 1.8fr) repeat(3, minmax(130px, 1fr)); gap: 14px; border: 1px solid #303030; background: #101010; border-radius: 14px; padding: 18px; }
.catalog-filters label, .location-admin-filters label { display: block; margin-bottom: 8px; font-size: 11px; color: #bbb; letter-spacing: .6px; }
.catalog-filters input, .catalog-filters select, .location-admin-filters input, .location-admin-filters select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #393939; border-radius: 8px; background: #080808; color: var(--ink); font: 13px var(--font-body); }
.catalog-filters input:focus, .catalog-filters select:focus, .location-widget-form input:focus, .location-widget-form select:focus, .location-widget-form textarea:focus, .location-admin-filters input:focus, .location-admin-filters select:focus { outline: 2px solid #75cbb0; outline-offset: 2px; }
.catalog-reset { grid-column: 1 / -1; justify-self: end; border: 0; background: none; color: #bbb; font: 12px var(--font-body); padding: 3px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.catalog-reset:hover { color: white; }
.catalog-results-row { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; }
.catalog-results-row p { color: #aaa; font-size: 13px; margin: 0; }
.catalog-category-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; border: 1px solid currentColor; border-radius: 6px; padding: 5px 9px; }
.catalog-category-nprd { color: #63d8ac; }
.catalog-category-defensie { color: #ff8492; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.location-card { min-width: 0; padding: 20px 20px 0; border: 1px solid #2d2d2d; border-radius: 14px; background: #0e0e0e; overflow: hidden; scroll-margin-top: 100px; transition: border-color .2s; }
.location-card:hover { border-color: #555; }
.location-card:target { border-color: var(--category-color); box-shadow: 0 0 0 2px var(--category-tint); }
.location-card-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 15px; }
.location-card-heading > div { min-width: 0; }
.location-type-icon { flex-shrink: 0; object-fit: contain; }
.location-card-province { display: block; margin-bottom: 5px; font-size: 10px; text-transform: uppercase; color: var(--category-color); letter-spacing: 1.2px; }
.location-card h2 { font: 600 16px/1.4 var(--font-body); margin: 0; overflow-wrap: anywhere; }
.location-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.location-type-badge, .location-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; font-size: 10px; line-height: 1.3; }
.location-type-badge { background: #232323; color: #d7d7d7; }
.location-status { background: rgba(244, 208, 63, .09); color: #e2ca7a; white-space: nowrap; }
.location-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.location-status.is-investigated { background: rgba(99, 216, 172, .1); color: #80d9b3; }
.location-card-address { font-size: 12px; color: #b5b5b5; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.location-card-preview { font-size: 12px; color: #999; line-height: 1.65; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.location-card-details { border-top: 1px solid #292929; }
.location-card-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; cursor: pointer; list-style: none; color: #ddd; font-size: 12px; }
.location-card-details > summary::-webkit-details-marker { display: none; }
.location-card-details > summary > span { font-size: 20px; color: #999; }
.location-card-details[open] > summary > span { transform: rotate(45deg); }
.location-card-body { border-top: 1px solid #292929; padding: 14px 0 4px; }
.location-card-body p { margin: 0 0 12px; font-size: 13px; color: #ddd; line-height: 1.8; overflow-wrap: anywhere; }
.location-card-body .location-detail-category { color: #999; font-size: 11px; }
.location-card-images { display: grid; gap: 10px; margin: 12px 0; }
.location-card-images img { width: 100%; height: auto; border-radius: 8px; }
.location-card-footer { margin: 0 -20px; padding: 12px 20px; border-top: 1px solid #292929; background: #111; font-size: 11px; }
.location-card-footer a { color: var(--category-color); text-decoration: none; display: flex; justify-content: space-between; }
.location-card-footer a:hover { text-decoration: underline; }
.location-no-position { color: #929292; }
.catalog-empty { padding: 48px 20px; border: 1px dashed #3d3d3d; border-radius: 14px; text-align: center; }
.catalog-empty h2 { font-size: 20px; margin: 0 0 12px; }
.catalog-empty p { color: #aaa; font-size: 14px; }
.catalog-type-legend { margin-top: 28px; border-top: 1px solid #333; padding-top: 16px; }
.catalog-type-legend > summary { cursor: pointer; font-size: 13px; color: #bbb; }
.catalog-legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; padding: 20px 0; }
.catalog-legend-grid > div { display: flex; align-items: flex-start; gap: 12px; }
.catalog-legend-grid img { flex-shrink: 0; }
.catalog-legend-grid p { margin: 0; font-size: 12px; line-height: 1.6; }
.catalog-legend-grid strong { display: block; color: #eee; }
.catalog-legend-grid span { color: #aaa; }

.map-location-legend { border: 1px solid #ffffff26; border-radius: 12px; background: rgba(18, 24, 25, .95); color: #eef2f0; box-shadow: 0 6px 24px #0004; backdrop-filter: blur(10px); font: 11px/1.4 var(--font-body); }
.map-location-legend { width: 332px; max-width: calc(100vw - 80px); overflow: hidden; }
.map-location-legend:not([open]) { width: auto; }
.map-location-legend > summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; }
.map-location-legend > summary::-webkit-details-marker { display: none; }
.map-location-legend > summary:hover { background: #ffffff0a; }
.map-location-legend > summary:focus-visible { outline: 2px solid #75cbb0; outline-offset: -3px; border-radius: 10px; }
.map-legend-symbol { color: #a8c5b8; flex-shrink: 0; }
.map-legend-chevron { margin-left: auto; color: #aab8b1; flex-shrink: 0; }
.map-location-legend[open] .map-legend-chevron { transform: rotate(180deg); }
.map-legend-body { padding: 12px; border-top: 1px solid #ffffff1a; max-height: min(310px, calc(70vh - 140px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #53615b transparent; }
.map-legend-toggle { --layer-color: #a8c5b8; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin-bottom: 8px; padding: 6px 8px; border: 1px solid #ffffff18; border-radius: 8px; background: #ffffff04; font-weight: 600; cursor: pointer; }
.map-legend-toggle.catalog-category-defensie { --layer-color: #ff8492; }
.map-legend-toggle.catalog-category-nprd { --layer-color: #63d8ac; }
.map-legend-toggle:hover { background: #ffffff0a; }
.map-legend-toggle:focus-within { outline: 2px solid var(--layer-color); outline-offset: 2px; }
.map-legend-toggle input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.map-legend-switch { position: relative; width: 28px; height: 16px; flex-shrink: 0; border: 1px solid #52605a; border-radius: 999px; background: #35413b; }
.map-legend-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #d4ded8; }
.map-legend-toggle input:checked ~ .map-legend-switch { border-color: var(--layer-color); background: var(--layer-color); }
.map-legend-toggle input:checked ~ .map-legend-switch::after { transform: translateX(12px); background: #132019; }
.map-legend-zones { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #ffffff1a; }
.map-legend-severities { display: flex; gap: 18px; }
.map-legend-severities > span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend-dot { width: 9px; height: 9px; border: 1px solid #ffffff40; border-radius: 50%; }
.map-legend-dot.severity-low { background: #22c55e; }
.map-legend-dot.severity-medium { background: #f4d03f; }
.map-legend-dot.severity-high { background: #e11d2e; }
.map-legend-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.map-legend-type { display: flex; align-items: center; gap: 7px; min-height: 24px; color: #d4ded8; }
.map-legend-type img { flex-shrink: 0; object-fit: contain; }
.map-legend-type span { overflow-wrap: anywhere; }
.location-map-marker { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.page-map #map { scroll-margin-top: calc(var(--header-h) + 16px); }
.location-map-popup { font: 12px/1.6 var(--font-body); min-width: 180px; }
.location-map-popup > strong { font-size: 15px; line-height: 1.4; display: block; }
.location-map-popup p { margin: 8px 0; }
.location-popup-status { display: inline-block; font-size: 10px; border-radius: 5px; padding: 3px 7px; background: #f1ead7; color: #5e4c16; }
.location-map-popup a { display: inline-block; margin-top: 4px; font-weight: 600; }
.map-location-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.map-editor-location-status { margin: 0; color: #aaa; font-size: 12px; line-height: 1.6; }

.location-editor-alert { margin-bottom: 20px; }
.location-editor-summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-size: 14px; }
.location-editor-summary::-webkit-details-marker { display: none; }
.location-editor-summary > span:last-child { margin-left: auto; }
.location-editor-summary > img { flex-shrink: 0; }
.location-editor-summary strong { display: block; font-weight: 500; line-height: 1.5; }
.location-editor-summary small { display: block; color: #aaa; font-size: 11px; line-height: 1.6; margin-top: 4px; }
.location-create-widget[open] > summary, .location-item-widget[open] > summary { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #303030; }
.location-widget-heading h2 { font-size: 20px; margin: 0; }
.location-admin-list { display: grid; gap: 10px; }
.location-admin-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 20px; }
.location-admin-filters .btn { padding: 12px 18px; font-size: 12px; }
.location-type-preview { display: flex; align-items: center; gap: 10px; background: #141414; padding: 10px 12px; border: 1px solid #303030; border-radius: 8px; color: #bbb; font-size: 12px; }
.location-form-hint { margin: -4px 0 4px; color: #aaa; font-size: 12px; line-height: 1.6; }
.location-pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; font-size: 12px; color: #bbb; }
.location-pagination .btn { padding: 10px 14px; font-size: 12px; }
.field-optional { font-weight: normal; text-transform: none; letter-spacing: 0; color: #999; }
.location-coordinate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.location-coordinate-row .location-coordinate-fields { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location-coordinate-actions { display: flex; justify-content: flex-end; }
.location-coordinate-actions .btn { padding: 10px 16px; font-size: 12px; white-space: nowrap; }
.location-map-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 1px solid #444; border-radius: 16px; background: #101010; color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.location-map-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.location-map-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 12px; }
.location-map-dialog-heading h2 { font-size: 22px; margin: 0; }
.location-map-dialog-heading p { margin: 6px 0 0; color: #bbb; font-size: 13px; overflow-wrap: anywhere; }
.location-map-dialog-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #444; border-radius: 8px; background: #1b1b1b; color: white; font-size: 24px; cursor: pointer; }
.location-map-dialog-instructions { margin: 0; padding: 0 22px 18px; font-size: 13px; line-height: 1.6; color: #bbb; }
.location-map-dialog-error { margin: 0 22px 18px; padding: 12px; border: 1px solid #77682e; border-radius: 8px; color: #e2ca7a; font-size: 13px; line-height: 1.6; }
.location-coordinate-map { height: clamp(220px, 50dvh, 480px); background: #222; cursor: crosshair; }
.location-map-selection { display: flex; gap: 26px; padding: 16px 22px; color: #aaa; font-size: 12px; }
.location-map-selection output { display: inline-block; margin-left: 6px; color: white; font-variant-numeric: tabular-nums; }
.location-map-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 22px 20px; }
.location-map-dialog-actions .btn { font-size: 12px; padding: 11px 16px; }
.location-map-dialog button:focus-visible { outline: 2px solid #75cbb0; outline-offset: 3px; }
.location-catalog a:focus-visible, .location-catalog summary:focus-visible, .catalog-reset:focus-visible, .location-editor-summary:focus-visible { outline: 2px solid #75cbb0; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1050px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .location-map-dialog-heading { padding: 16px 16px 12px; }
    .location-map-dialog-instructions { padding: 0 16px 16px; font-size: 12px; }
    .location-map-selection { gap: 10px 22px; flex-wrap: wrap; padding: 14px 16px; }
    .location-map-dialog-actions { padding: 0 16px 16px; }
    .catalog-heading { margin-bottom: 22px; }
    .catalog-title-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .catalog-title-row .btn { font-size: 11px; }
    .catalog-tabs { margin-bottom: 24px; }
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
    .catalog-filters > div:last-of-type { grid-column: 1 / -1; }
    .catalog-stats { gap: 16px; font-size: 11px; }
    .catalog-intro { font-size: 14px; }
    .catalog-legend-grid { grid-template-columns: minmax(0, 1fr); }
    .location-card { padding-top: 18px; }
    .location-admin-filters { grid-template-columns: minmax(0, 1fr); }
    .location-editor-summary { flex-wrap: wrap; }
    .location-editor-summary > span:not(.location-status) { min-width: 0; flex: 1; }
    .location-editor-summary .location-status { margin-left: 44px; }
    .location-create-widget, .location-list-widget { padding: 16px; }
    .location-pagination { flex-wrap: wrap; }
}
