/* GeoApps2 algemene kaart- en popupstijl */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    overflow: hidden;
}

#map,
main#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.app-title {
    position: absolute;
    top: 10px;
    left: 55px;
    z-index: 1200;
    min-height: 28px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.app-title a {
    margin-left: 9px;
    color: #356b3c;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.app-title a:hover {
    text-decoration: underline;
}

/*
 * Cursor-gedrag:
 * - standaard kaart en WMS-features: gewone pijl;
 * - gewoon klikken/GetFeatureInfo: pijl blijft staan;
 * - alleen Leaflet tijdens werkelijk slepen: handje;
 * - echte markers en controls: pointer.
 */
.leaflet-container,
.leaflet-container.leaflet-grab,
.leaflet-container.leaflet-touch-drag,
.leaflet-container.leaflet-touch-zoom {
    cursor: default !important;
}

/* Geen :active-regel: een gewone klik op een WMS-feature blijft dus een pijl. */
.leaflet-dragging .leaflet-container,
.leaflet-dragging .leaflet-container.leaflet-grab {
    cursor: grabbing !important;
}

/* Echte interactieve Leaflet-objecten en bedieningselementen. */
.leaflet-marker-icon,
.leaflet-control a,
.leaflet-control button,
.leaflet-popup a,
button,
a {
    cursor: pointer;
}

.leaflet-popup-content {
    margin: 10px 12px;
}

.leaflet-popup-content-wrapper {
    border-radius: 5px;
}

/* Foto-overlay, gedeeld door viewer/editor-apps. */
#status {
    margin-left: 7px;
    font-weight: 400;
}

@media (max-width: 480px) {
    .app-title {
        right: 10px;
        left: 55px;
        max-width: calc(100% - 65px);
    }
}
/* Centraal kaartbedieningsblok: zoom, standaarduitsnede en locatie. */
.geoapps-map-control a{display:flex!important;align-items:center;justify-content:center;width:30px!important;height:30px!important;line-height:30px!important;color:#111!important;background:#fff!important}.geoapps-map-control a:hover{background:#f4f4f4!important}.geoapps-map-control svg{display:block;width:20px;height:20px}.geoapps-map-control.geoapps-locate-active a{color:#1769aa!important}.geoapps-location-marker{background:#1769aa;border:3px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0008}

/* Centrale schaalafhankelijke laagnaamweergave. */
.geoapps-layer-out-of-scale{color:#929292!important;opacity:.62}.geoapps-layer-out-of-scale input{filter:grayscale(1)}
/* Fase 1: gedeelde compacte popups en toegankelijke statusweergave. */
.point-view-section{margin:5px 0 3px;padding:3px 5px;border-left:3px solid #56875b;background:#e3ebe3;color:#344735;font-weight:700}.point-view-empty{padding:5px;color:#666;font-style:italic}#status[data-status-type=error]{color:#9b1c1c}#status[data-status-type=loading]{color:#555}
/* Uniforme achtergrondgroep voor standaard Leaflet-laagcontrols. */
.leaflet-control-layers .geoapps-background-group{margin:0 0 4px;padding:0 0 5px;border:0;border-bottom:1px solid #ddd}.leaflet-control-layers .geoapps-background-group summary{padding:4px 1px;cursor:pointer;font-weight:700;color:#333}.leaflet-control-layers .geoapps-background-group .leaflet-control-layers-base{padding:1px 0}.leaflet-control-layers .geoapps-background-group label{padding:2px 0}@media(prefers-color-scheme:dark){.leaflet-control-layers .geoapps-background-group{border-color:#555}.leaflet-control-layers .geoapps-background-group summary{color:#eee}}
/* Uniforme uitklapbare laaggroepen: stijl gebaseerd op GeoInfo. */
.geoapps-layer-groups details,.ecologie-layers-control details,.nature-layers details{border-bottom:1px solid #e5e5e5;padding:4px 0;background:transparent!important}.geoapps-layer-groups summary,.ecologie-layers-control summary,.nature-layers summary{cursor:pointer;font-weight:700;padding:4px 0;color:inherit!important;background:transparent!important;border:0!important}.geoapps-layer-groups label,.ecologie-layers-control label,.nature-layers label{display:flex;gap:7px;align-items:flex-start;padding:3px 2px;cursor:pointer}.geoapps-layer-groups input,.ecologie-layers-control input,.nature-layers input{margin-top:2px}@media(prefers-color-scheme:dark){.geoapps-layer-groups details,.ecologie-layers-control details,.nature-layers details{border-color:#555}}
/* Uniforme lagenlijststijl in alle apps, gebaseerd op GeoInfo. */
.leaflet-control-layers,
.geoapps-layer-control,
.ecologie-layers-control,
.nature-layers,
.nest-layer-control,
.geoapps-layer-groups{
  color:#222!important;
  font:13px/1.35 Arial,sans-serif!important;
}
.leaflet-control-layers label,
.leaflet-control-layers span,
.geoapps-layer-control label,.geoapps-layer-control summary,
.ecologie-layers-control label,.ecologie-layers-control summary,
.nature-layers label,.nature-layers summary,
.nest-layer-control label,.nest-layer-control summary,
.geoapps-layer-groups label,.geoapps-layer-groups summary{
  font-family:Arial,sans-serif!important;
  font-size:13px!important;
  line-height:1.35!important;
}
.geoapps-layer-control details,.ecologie-layers-control details,.nature-layers details,.nest-layer-control details,.geoapps-layer-groups details{
  margin:0!important;border:0!important;border-bottom:1px solid #e5e5e5!important;padding:4px 0!important;background:transparent!important;
}
.geoapps-layer-control summary,.ecologie-layers-control summary,.nature-layers summary,.nest-layer-control summary,.geoapps-layer-groups summary{
  cursor:pointer!important;font-weight:700!important;padding:4px 0!important;color:#222!important;background:transparent!important;
}
.geoapps-layer-control label,.ecologie-layers-control label,.nature-layers label,.nest-layer-control label,.geoapps-layer-groups label{
  display:flex!important;gap:7px!important;align-items:flex-start!important;padding:3px 2px!important;cursor:pointer!important;
}
.geoapps-layer-control input,.ecologie-layers-control input,.nature-layers input,.nest-layer-control input,.geoapps-layer-groups input{margin:2px 0 0!important}
.leaflet-control-layers .geoapps-background-group summary{font:700 13px/1.35 Arial,sans-serif!important;color:#222!important;background:transparent!important;padding:4px 0!important}
.leaflet-control-layers .geoapps-background-group label{font:13px/1.35 Arial,sans-serif!important;padding:3px 2px!important}
@media(prefers-color-scheme:dark){.leaflet-control-layers,.geoapps-layer-control,.ecologie-layers-control,.nature-layers,.nest-layer-control,.geoapps-layer-groups{color:#eee!important}.geoapps-layer-control summary,.ecologie-layers-control summary,.nature-layers summary,.nest-layer-control summary,.geoapps-layer-groups summary,.leaflet-control-layers .geoapps-background-group summary{color:#eee!important}}
/* Lagenlijsten: overal exact dezelfde binnenruimte en inhoudsafhankelijke breedte. */
.leaflet-control-layers,
.geoapps-layer-control,
.ecologie-layers-control,
.nature-layers,
.nest-layer-control,
.geoapps-layer-groups{
  box-sizing:border-box!important;
  width:max-content!important;
  min-width:0!important;
  max-width:min(420px,calc(100vw - 24px))!important;
  padding:6px 8px!important;
}
.geoapps-layer-control .gvl-groups,
.ecologie-layers-control,
.nature-layers,
.nest-layer-control,
.geoapps-layer-groups{white-space:nowrap!important;}
.leaflet-control-layers-list{margin:0!important;padding:0!important;}
.leaflet-control-layers-base,.leaflet-control-layers-overlays{margin:0!important;padding:0!important;}
.leaflet-control-layers .geoapps-background-group,
.geoapps-layer-control details,
.ecologie-layers-control details,
.nature-layers details,
.nest-layer-control details,
.geoapps-layer-groups details{
  box-sizing:border-box!important;
  margin:0!important;
  padding:4px 0!important;
}
.leaflet-control-layers label,
.geoapps-layer-control label,
.ecologie-layers-control label,
.nature-layers label,
.nest-layer-control label,
.geoapps-layer-groups label{
  box-sizing:border-box!important;
  margin:0!important;
  padding:3px 2px!important;
}
.leaflet-control-layers .geoapps-background-group summary,
.geoapps-layer-control summary,
.ecologie-layers-control summary,
.nature-layers summary,
.nest-layer-control summary,
.geoapps-layer-groups summary{
  box-sizing:border-box!important;
  margin:0!important;
  padding:4px 0!important;
}
/* Alleen bij uitzonderlijk lange laagnamen mag tekst afbreken binnen de viewportlimiet. */
@media(max-width:520px){
  .leaflet-control-layers,
  .geoapps-layer-control,
  .ecologie-layers-control,
  .nature-layers,
  .nest-layer-control,
  .geoapps-layer-groups{max-width:calc(100vw - 20px)!important;}
  .geoapps-layer-control .gvl-groups,.ecologie-layers-control,.nature-layers,.nest-layer-control,.geoapps-layer-groups{white-space:normal!important;}
}

/* Uniforme compacte popupopmaak voor alle GeoApps2-apps. */
.leaflet-popup-content{margin:10px 12px;font:12px/1.2 Arial,sans-serif;color:#222}
.leaflet-popup-content-wrapper{border-radius:4px}
.leaflet-popup-content .point-view-popup,.leaflet-popup-content .feature-popup,.leaflet-popup-content .obs-popup,.leaflet-popup-content .nature-observation-popup,.leaflet-popup-content .info-popup{box-sizing:border-box;min-width:285px;max-width:390px;padding:5px;background:#f3f6f3;color:#2f3b31;font:12px/1.2 Arial,sans-serif}
.leaflet-popup-content .point-view-section,.leaflet-popup-content .popup-title,.leaflet-popup-content .obs-title,.leaflet-popup-content .nature-popup-section-title,.leaflet-popup-content .info-title{margin:0 0 3px;padding:4px 6px;border:0;border-left:3px solid #56875b;background:#e3ebe3;color:#344735;font:700 12px/1.2 Arial,sans-serif}
.leaflet-popup-content .point-view-row,.leaflet-popup-content .popup-row,.leaflet-popup-content .obs-row,.leaflet-popup-content .nature-popup-row,.leaflet-popup-content .info-row{display:grid;grid-template-columns:115px minmax(0,1fr);gap:6px;align-items:start;box-sizing:border-box;padding:2px 3px;border:0;border-bottom:1px solid #e1e5e1;font:12px/1.2 Arial,sans-serif}
.leaflet-popup-content .point-view-row:last-child,.leaflet-popup-content .popup-row:last-child,.leaflet-popup-content .obs-row:last-child,.leaflet-popup-content .nature-popup-row:last-child,.leaflet-popup-content .info-row:last-child{border-bottom:0}
.leaflet-popup-content .point-view-row>span,.leaflet-popup-content .popup-row>span,.leaflet-popup-content .obs-row>span,.leaflet-popup-content .info-row>span,.leaflet-popup-content .nature-popup-row>dt{min-width:0;margin:0;padding:0;color:#566058;font:400 12px/1.2 Arial,sans-serif;overflow-wrap:anywhere}
.leaflet-popup-content .point-view-row>strong,.leaflet-popup-content .popup-row>strong,.leaflet-popup-content .obs-row>strong,.leaflet-popup-content .info-row>strong,.leaflet-popup-content .nature-popup-row>dd{min-width:0;margin:0;padding:0;color:#222;background:transparent;font:500 12px/1.2 Arial,sans-serif;overflow-wrap:anywhere;word-break:normal}
.leaflet-popup-content table{width:100%;border-collapse:collapse;font:12px/1.2 Arial,sans-serif}
.leaflet-popup-content table td,.leaflet-popup-content table th{padding:2px 3px;border-bottom:1px solid #e1e5e1;text-align:left;vertical-align:top}
.leaflet-popup-content table td:first-child,.leaflet-popup-content table th:first-child{width:115px;color:#566058;font-weight:400}
.leaflet-popup-content a{color:#356b3c}


/* Uniforme popupweergave GeoApps2 */
.leaflet-popup-content .popup-title,
.leaflet-popup-content .point-view-section,
.leaflet-popup-content .obs-title,
.leaflet-popup-content .nature-popup-title,
.leaflet-popup-content .info-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.leaflet-popup-content .point-view-row,
.leaflet-popup-content .popup-row,
.leaflet-popup-content .obs-row,
.leaflet-popup-content .nature-popup-row,
.leaflet-popup-content .info-row{
  grid-template-columns:115px minmax(0,1fr);
  column-gap:8px;
}
.leaflet-popup-content table{table-layout:fixed}
.leaflet-popup-content table td:first-child,
.leaflet-popup-content table th:first-child{width:115px}
.leaflet-popup-content .actions,
.leaflet-popup-content .popup-actions,
.leaflet-popup-content .editor-actions,
.leaflet-popup-content .form-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
}
.leaflet-popup-content .actions button,
.leaflet-popup-content .popup-actions button,
.leaflet-popup-content .editor-actions button,
.leaflet-popup-content .form-actions button{
  box-sizing:border-box;
  flex:0 0 96px;
  width:96px;
  min-width:96px;
}


/* Uniform donker thema voor alle lagencontrols. */
@media (prefers-color-scheme: dark) {
  .leaflet-control-layers,
  .leaflet-control-layers-expanded,
  .geoapps-layer-control,
  .geoapps-layer-groups,
  .ecologie-layers-control,
  .nature-layers,
  .nest-layer-control,
  .ndff-filter-control {
    background:#1f1f1f!important;
    color:#f2f2f2!important;
    border-color:#555!important;
    box-shadow:0 1px 6px rgba(0,0,0,.72)!important;
  }
  .leaflet-control-layers-list,
  .leaflet-control-layers-base,
  .leaflet-control-layers-overlays,
  .leaflet-control-layers label,
  .leaflet-control-layers span,
  .leaflet-control-layers summary,
  .geoapps-layer-control label,
  .geoapps-layer-control summary,
  .geoapps-layer-groups label,
  .geoapps-layer-groups summary,
  .ecologie-layers-control label,
  .ecologie-layers-control summary,
  .nature-layers label,
  .nature-layers summary,
  .nest-layer-control label,
  .nest-layer-control summary,
  .ndff-filter-control label,
  .ndff-filter-control summary {
    color:#f2f2f2!important;
  }
  .leaflet-control-layers-separator,
  .leaflet-control-layers .geoapps-background-group,
  .geoapps-layer-control .gvl-head,
  .geoapps-layer-control details,
  .geoapps-layer-groups details,
  .ecologie-layers-control details,
  .nature-layers details,
  .nest-layer-control details,
  .ndff-filter-control details {
    border-color:#555!important;
  }
  .leaflet-control-layers label:hover,
  .geoapps-layer-control label:hover,
  .geoapps-layer-groups label:hover,
  .ecologie-layers-control label:hover,
  .nature-layers label:hover,
  .nest-layer-control label:hover,
  .ndff-filter-control label:hover {
    background:#333!important;
  }
  .geoapps-layer-out-of-scale,
  .gvl-out-of-scale {color:#aaa!important;opacity:.72!important}
}

/* De ondergrondgroep heeft zelf een scheidingslijn; voorkom een tweede brede Leaflet-lijn. */
.leaflet-control-layers-separator{display:none!important}


/* Enige centrale lagencontrol-opmaak voor alle GeoApps2-apps.
   Afmetingen en ritme gebaseerd op de huidige Nestkasten-layercontrol. */
.leaflet-control-layers,
.leaflet-control-layers-expanded,
.geoapps-layer-control,
.geoapps-layer-groups,
.ecologie-layers-control,
.nature-layers,
.nature-edit-layers,
.nest-layer-control,
.ndff-filter-control{
 box-sizing:border-box!important;width:max-content!important;min-width:0!important;
 max-width:min(420px,calc(100vw - 24px))!important;padding:8px!important;
 border-radius:4px!important;background:#fff!important;color:#222!important;
 box-shadow:0 1px 5px rgba(0,0,0,.45)!important;
 font:400 13px/1.35 Arial,Helvetica,sans-serif!important;
}
.leaflet-control-layers-list,.leaflet-control-layers-base,.leaflet-control-layers-overlays,
.geoapps-layer-control .gvl-groups{margin:0!important;padding:0!important;font:inherit!important}
.leaflet-control-layers .geoapps-background-group,.geoapps-layer-control details,
.geoapps-layer-groups details,.ecologie-layers-control details,.nature-layers details,
.nest-layer-control details,.ndff-filter-control details{
 box-sizing:border-box!important;margin:0!important;padding:3px 0!important;
 border:0!important;border-bottom:1px solid #ddd!important;background:transparent!important
}
.leaflet-control-layers .geoapps-background-group{margin-bottom:3px!important;padding-bottom:4px!important}
.leaflet-control-layers label,.geoapps-layer-control label,.geoapps-layer-groups label,
.ecologie-layers-control label,.nature-layers label,.nature-edit-layers label,
.nest-layer-control label,.ndff-filter-control label{
 box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;
 gap:7px!important;min-height:0!important;margin:0!important;padding:3px!important;
 color:inherit!important;background:transparent!important;font:400 12px/1.35 Arial,Helvetica,sans-serif!important;
 cursor:pointer!important;white-space:nowrap!important
}
.leaflet-control-layers input,.geoapps-layer-control input,.geoapps-layer-groups input,
.ecologie-layers-control input,.nature-layers input,.nature-edit-layers input,
.nest-layer-control input,.ndff-filter-control input{flex:0 0 auto!important;margin:2px 0 0!important}
.leaflet-control-layers summary,.geoapps-layer-control summary,.geoapps-layer-groups summary,
.ecologie-layers-control summary,.nature-layers summary,.nest-layer-control summary,
.ndff-filter-control summary,.nature-edit-layers .nature-edit-section,
.geoapps-layer-control .gvl-head{
 box-sizing:border-box!important;min-height:0!important;margin:0!important;padding:3px 0!important;
 color:inherit!important;background:transparent!important;border:0!important;
 font:700 13px/1.35 Arial,Helvetica,sans-serif!important;cursor:pointer!important
}
.geoapps-layer-control .gvl-head{padding:5px 2px!important;border-bottom:1px solid #ddd!important}
.geoapps-layer-control .gvl-groups{padding:2px 0!important}
.leaflet-control-layers-separator{display:none!important}
.leaflet-control-layers label:hover,.geoapps-layer-control label:hover,.geoapps-layer-groups label:hover,
.ecologie-layers-control label:hover,.nature-layers label:hover,.nature-edit-layers label:hover,
.nest-layer-control label:hover,.ndff-filter-control label:hover{background:#eef3ef!important}
@media(prefers-color-scheme:dark){
 .leaflet-control-layers,.leaflet-control-layers-expanded,.geoapps-layer-control,.geoapps-layer-groups,
 .ecologie-layers-control,.nature-layers,.nature-edit-layers,.nest-layer-control,.ndff-filter-control{
  background:#1f1f1f!important;color:#f2f2f2!important;border-color:#555!important
 }
 .leaflet-control-layers .geoapps-background-group,.geoapps-layer-control details,.geoapps-layer-groups details,
 .ecologie-layers-control details,.nature-layers details,.nest-layer-control details,.ndff-filter-control details,
 .geoapps-layer-control .gvl-head{border-color:#555!important}
 .leaflet-control-layers label:hover,.geoapps-layer-control label:hover,.geoapps-layer-groups label:hover,
 .ecologie-layers-control label:hover,.nature-layers label:hover,.nature-edit-layers label:hover,
 .nest-layer-control label:hover,.ndff-filter-control label:hover{background:#333!important}
}
@media(max-width:520px){
 .leaflet-control-layers,.leaflet-control-layers-expanded,.geoapps-layer-control,.geoapps-layer-groups,
 .ecologie-layers-control,.nature-layers,.nature-edit-layers,.nest-layer-control,.ndff-filter-control{
  max-width:calc(100vw - 20px)!important
 }
 .leaflet-control-layers label,.geoapps-layer-control label,.geoapps-layer-groups label,
 .ecologie-layers-control label,.nature-layers label,.nature-edit-layers label,
 .nest-layer-control label,.ndff-filter-control label{white-space:normal!important}
}

/* Centrale componentstructuur voor elke layer control. */
.geoapps-central-layer-control{
 box-sizing:border-box!important;width:max-content!important;min-width:0!important;
 max-width:min(390px,calc(100vw - 24px))!important;padding:8px!important;
 border-radius:4px!important;background:#fff!important;color:#222!important;
 box-shadow:0 1px 5px rgba(0,0,0,.45)!important;
 font:13px/1.35 Arial,Helvetica,sans-serif!important
}
.geoapps-central-layer-control .geoapps-layer-group{margin:0!important;padding:3px 0!important;border:0!important;border-bottom:1px solid #ddd!important;background:transparent!important}
.geoapps-central-layer-control .geoapps-layer-group:last-child{border-bottom:0!important}
.geoapps-central-layer-control .geoapps-layer-heading{margin:0!important;padding:3px 0!important;color:inherit!important;background:transparent!important;border:0!important;font:700 13px/1.35 Arial,Helvetica,sans-serif!important;cursor:pointer!important}
.geoapps-central-layer-control .geoapps-layer-row{box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;gap:7px!important;min-height:0!important;margin:0!important;padding:3px!important;color:inherit!important;background:transparent!important;font:400 13px/1.35 Arial,Helvetica,sans-serif!important;cursor:pointer!important;white-space:nowrap!important}
.geoapps-central-layer-control .geoapps-layer-row input{flex:0 0 auto!important;margin:2px 0 0!important}
.geoapps-central-layer-control .geoapps-layer-row:hover{background:#eef3ef!important}
.geoapps-central-layer-control .leaflet-control-layers-list,.geoapps-central-layer-control .leaflet-control-layers-base,.geoapps-central-layer-control .leaflet-control-layers-overlays{margin:0!important;padding:0!important;font:inherit!important}
.geoapps-central-layer-control .leaflet-control-layers-separator{display:none!important}
@media(prefers-color-scheme:dark){.geoapps-central-layer-control{background:#1f1f1f!important;color:#f2f2f2!important}.geoapps-central-layer-control .geoapps-layer-group{border-color:#555!important}.geoapps-central-layer-control .geoapps-layer-row:hover{background:#333!important}}
@media(max-width:520px){.geoapps-central-layer-control{max-width:calc(100vw - 20px)!important}.geoapps-central-layer-control .geoapps-layer-row{white-space:normal!important}}

/* Enige centrale visuele definitie voor alle layer controls, gebaseerd op Nestkasten. */
.geoapps-central-layer-control{box-sizing:border-box!important;width:max-content!important;min-width:0!important;max-width:min(390px,calc(100vw - 24px))!important;padding:8px!important;border-radius:4px!important;background:#fff!important;color:#222!important;box-shadow:0 1px 5px rgba(0,0,0,.45)!important;font:13px/1.35 Arial,Helvetica,sans-serif!important}
.geoapps-central-layer-control .geoapps-central-layer-group{box-sizing:border-box!important;margin:0!important;padding:3px 0!important;border:0!important;border-bottom:1px solid #ddd!important;background:transparent!important}
.geoapps-central-layer-control .geoapps-central-layer-group:last-child{border-bottom:0!important}
.geoapps-central-layer-control .geoapps-central-layer-heading{box-sizing:border-box!important;margin:0!important;padding:3px 0!important;border:0!important;background:transparent!important;color:inherit!important;font:700 13px/1.35 Arial,Helvetica,sans-serif!important;cursor:pointer!important}
.geoapps-central-layer-control .geoapps-central-layer-row{box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;gap:7px!important;min-height:0!important;margin:0!important;padding:3px!important;background:transparent!important;color:inherit!important;font:400 13px/1.35 Arial,Helvetica,sans-serif!important;cursor:pointer!important;white-space:nowrap!important}
.geoapps-central-layer-control .geoapps-central-layer-row input{flex:0 0 auto!important;margin:2px 0 0!important}
.geoapps-central-layer-control .geoapps-central-layer-row:hover{background:#eef3ef!important}
.geoapps-central-layer-control .leaflet-control-layers-list,.geoapps-central-layer-control .leaflet-control-layers-base,.geoapps-central-layer-control .leaflet-control-layers-overlays,.geoapps-central-layer-control .gvl-groups{margin:0!important;padding:0!important;font:inherit!important}
.geoapps-central-layer-control .leaflet-control-layers-separator{display:none!important}
@media(prefers-color-scheme:dark){.geoapps-central-layer-control{background:#1f1f1f!important;color:#f2f2f2!important}.geoapps-central-layer-control .geoapps-central-layer-group{border-color:#555!important}.geoapps-central-layer-control .geoapps-central-layer-row:hover{background:#333!important}}
@media(max-width:520px){.geoapps-central-layer-control{max-width:calc(100vw - 20px)!important}.geoapps-central-layer-control .geoapps-central-layer-row{white-space:normal!important}}

/* Centrale responsive bediening van de layer control. */
.geoapps-layer-toggle{display:none;align-items:center;gap:6px;min-height:38px;margin:0;padding:7px 10px;border:0;border-radius:4px;background:#fff;color:#222;font:600 13px/1.2 Arial,sans-serif;cursor:pointer}
.geoapps-layer-toggle:focus-visible{outline:2px solid #356b3c;outline-offset:2px}
.geoapps-layer-content{max-height:calc(100vh - 110px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:768px){
 .leaflet-top.leaflet-right.geoapps-has-layer-control{top:0}
 .geoapps-central-layer-control{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)}
 .geoapps-layer-toggle{display:flex}
 .geoapps-layer-content{min-height:0;max-height:calc(100dvh - 58px);margin-top:5px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .geoapps-layer-content>.ecologie-layers-control{min-height:0;max-height:none!important;overflow:visible!important}
 .geoapps-layer-collapsed{width:auto!important;padding:0!important}
 .geoapps-layer-collapsed .geoapps-layer-content{display:none}
}
@media(max-width:480px) and (orientation:portrait){
 .app-title,.geoapps-address-search,.geoapps-species-search,.geoapps-complex-search{left:55px;right:58px;width:auto;max-width:none;box-sizing:border-box}
 .app-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .geoapps-layer-collapsed .geoapps-layer-toggle-text{display:none}
 .geoapps-layer-collapsed .geoapps-layer-toggle{width:38px;justify-content:center;padding:7px}
}
@media(prefers-color-scheme:dark){.geoapps-layer-toggle{background:#333;color:#eee}}


/* Telefoon portrait: compacte kopvelden; uitgeklapte layer control blijft rechtsboven en ligt erbovenop. */
@media(max-width:480px) and (orientation:portrait){
 .leaflet-top.leaflet-right.geoapps-has-layer-control{top:0!important;z-index:1300!important}
 .leaflet-top.leaflet-right.geoapps-has-layer-control .geoapps-central-layer-control{position:relative;z-index:1300!important}
 body .app-title,body .geoapps-address-search,body .geoapps-species-search,body .geoapps-complex-search{left:75px!important;right:75px!important;width:auto!important;max-width:none!important;box-sizing:border-box!important}
 .geoapps-central-layer-control:not(.geoapps-layer-collapsed){width:max-content!important;max-width:calc(100vw - 20px)!important}
 .geoapps-central-layer-control:not(.geoapps-layer-collapsed) .geoapps-layer-content{max-height:calc(100dvh - 58px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}

/* Mobiel: geopende layer control begrenst de achtergrond; alleen de inhoud scrolt. */
@media(max-width:768px){
 .geoapps-central-layer-control:not(.geoapps-layer-collapsed){
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  max-height:calc(100dvh - 20px)!important;
  overflow:hidden!important;
 }
 .geoapps-central-layer-control:not(.geoapps-layer-collapsed) .geoapps-layer-toggle{
  flex:0 0 auto!important;
 }
 .geoapps-central-layer-control:not(.geoapps-layer-collapsed) .geoapps-layer-content{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
 }
}

/* Centrale popupkleuren gebaseerd op de Natuurdatabase. */
.leaflet-popup-content .point-view-popup,.leaflet-popup-content .feature-popup,.leaflet-popup-content .obs-popup,.leaflet-popup-content .nature-observation-popup,.leaflet-popup-content .info-popup{background:#f3f6f3!important;color:#24372b!important}
.leaflet-popup-content .point-view-section,.leaflet-popup-content .popup-title,.leaflet-popup-content .obs-title,.leaflet-popup-content .nature-popup-section-title,.leaflet-popup-content .info-title{border-left-color:#579c66!important;background:#e2ece3!important;color:#183d25!important}
.leaflet-popup-content .point-view-row,.leaflet-popup-content .popup-row,.leaflet-popup-content .obs-row,.leaflet-popup-content .nature-popup-row,.leaflet-popup-content .info-row{border-bottom-color:#dce4de!important}
.leaflet-popup-content .point-view-row>span,.leaflet-popup-content .popup-row>span,.leaflet-popup-content .obs-row>span,.leaflet-popup-content .info-row>span,.leaflet-popup-content .nature-popup-row>dt{color:#34483b!important}
.leaflet-popup-content .point-view-row>strong,.leaflet-popup-content .popup-row>strong,.leaflet-popup-content .obs-row>strong,.leaflet-popup-content .info-row>strong,.leaflet-popup-content .nature-popup-row>dd{color:#111!important}
.leaflet-popup-content a,.leaflet-popup-content button.ndff-species-photo{color:#087a38!important}

/* Centrale popuptypografie: attribuutnamen normaal, attribuutwaarden vet. */
.leaflet-popup-content .point-view-row>span,
.leaflet-popup-content .popup-row>span,
.leaflet-popup-content .obs-row>span,
.leaflet-popup-content .info-row>span,
.leaflet-popup-content .nest-popup-row>span,
.leaflet-popup-content .eco-popup-row>span,
.leaflet-popup-content .nature-popup-row>dt,
.leaflet-popup-content dl dt,
.leaflet-popup-content table th,
.leaflet-popup-content table td:first-child{font-weight:400!important}
.leaflet-popup-content .point-view-row>strong,
.leaflet-popup-content .popup-row>strong,
.leaflet-popup-content .obs-row>strong,
.leaflet-popup-content .info-row>strong,
.leaflet-popup-content .nest-popup-row>strong,
.leaflet-popup-content .eco-popup-row>strong,
.leaflet-popup-content .nature-popup-row>dd,
.leaflet-popup-content dl dd,
.leaflet-popup-content table td:not(:first-child){font-weight:700!important}
.leaflet-popup-content .point-view-row>strong *,
.leaflet-popup-content .popup-row>strong *,
.leaflet-popup-content .obs-row>strong *,
.leaflet-popup-content .info-row>strong *,
.leaflet-popup-content .nest-popup-row>strong *,
.leaflet-popup-content .eco-popup-row>strong *,
.leaflet-popup-content .nature-popup-row>dd *{font-weight:700!important}

/* Centrale inhoudsafhankelijke popupbreedte. */
.leaflet-popup-content-wrapper{width:auto!important;max-width:calc(100vw - 40px)!important}
.leaflet-popup-content{box-sizing:border-box!important;width:max-content!important;min-width:180px!important;max-width:min(420px,calc(100vw - 50px))!important}
.leaflet-popup-content>.point-view-popup,
.leaflet-popup-content>.feature-popup,
.leaflet-popup-content>.obs-popup,
.leaflet-popup-content>.nature-observation-popup,
.leaflet-popup-content>.info-popup,
.leaflet-popup-content>.eco-popup,
.leaflet-popup-content>.nest-popup,
.leaflet-popup-content>.ndff-popup{box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:100%!important}
.leaflet-popup-content strong,
.leaflet-popup-content dd,
.leaflet-popup-content td,
.leaflet-popup-content a{overflow-wrap:anywhere;word-break:normal}
@media(max-width:480px){
 .leaflet-popup-content-wrapper{max-width:calc(100vw - 40px)!important}
 .leaflet-popup-content{min-width:160px!important;max-width:calc(100vw - 60px)!important}
}


/* Centrale, compacte en gecentreerde Foto-knop in alle popups. */
.leaflet-popup-content button[data-photo],
.leaflet-popup-content .point-view-photo,
.leaflet-popup-content .nest-photo-button{
 display:block!important;
 box-sizing:border-box!important;
 width:fit-content!important;
 min-width:90px!important;
 max-width:180px!important;
 min-height:29px!important;
 margin:8px auto 2px!important;
 padding:6px 14px!important;
 border:1px solid #7994ad!important;
 border-radius:3px!important;
 background:#fff!important;
 color:#087a38!important;
 font:700 12px Arial,sans-serif!important;
 text-align:center!important;
 cursor:pointer!important;
}
.leaflet-popup-content button[data-photo]:hover,
.leaflet-popup-content button[data-photo]:focus,
.leaflet-popup-content .point-view-photo:hover,
.leaflet-popup-content .point-view-photo:focus,
.leaflet-popup-content .nest-photo-button:hover,
.leaflet-popup-content .nest-photo-button:focus{background:#e2ece3!important}

/* 20261117 popup-normalisatie: enkele eindoverride bovenop stabiele 20261116 basis. */
.leaflet-popup-content .feature-popup,.leaflet-popup-content .point-view-popup,.leaflet-popup-content .nature-observation-popup,.leaflet-popup-content .ndff-popup,.leaflet-popup-content .obs-popup,.leaflet-popup-content .eco-popup,.leaflet-popup-content .nest-popup,.leaflet-popup-content .info-popup{box-sizing:border-box!important;width:400px!important;min-width:400px!important;max-width:400px!important;background:#f3f6f3!important;color:#24372b!important}
.leaflet-popup-content .popup-title,.leaflet-popup-content .point-view-section,.leaflet-popup-content .nature-popup-section-title,.leaflet-popup-content .obs-title,.leaflet-popup-content .info-title{background:#e2ece3!important;color:#183d25!important;border-left-color:#579c66!important;font-weight:700!important}
.leaflet-popup-content .popup-row,.leaflet-popup-content .point-view-row,.leaflet-popup-content .nature-popup-row,.leaflet-popup-content .obs-row,.leaflet-popup-content .eco-popup-row,.leaflet-popup-content .nest-popup-row,.leaflet-popup-content .info-row{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;column-gap:10px!important;align-items:start!important}
.leaflet-popup-content .popup-row>span,.leaflet-popup-content .point-view-row>span,.leaflet-popup-content .nature-popup-row>dt,.leaflet-popup-content .obs-row>span,.leaflet-popup-content .eco-popup-row>span,.leaflet-popup-content .nest-popup-row>span,.leaflet-popup-content .info-row>span{white-space:nowrap!important;font-weight:400!important;word-break:normal!important}
.leaflet-popup-content .popup-row>strong,.leaflet-popup-content .point-view-row>strong,.leaflet-popup-content .nature-popup-row>dd,.leaflet-popup-content .obs-row>strong,.leaflet-popup-content .eco-popup-row>strong,.leaflet-popup-content .nest-popup-row>strong,.leaflet-popup-content .info-row>strong{min-width:0!important;font-weight:700!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
.geoapps-popup-link{color:#087a38!important;font-weight:700!important;text-decoration:underline!important;text-underline-offset:2px}
.geoapps-photo-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:5vh 5vw;background:rgba(0,0,0,.82)}.geoapps-photo-overlay[hidden]{display:none!important}.geoapps-photo-overlay img{max-width:90vw;max-height:90vh;object-fit:contain}.geoapps-photo-close{position:absolute;top:12px;right:14px;width:40px;height:40px}
@media(max-width:600px){.leaflet-popup-content .feature-popup,.leaflet-popup-content .point-view-popup,.leaflet-popup-content .nature-observation-popup,.leaflet-popup-content .ndff-popup,.leaflet-popup-content .obs-popup,.leaflet-popup-content .eco-popup,.leaflet-popup-content .nest-popup,.leaflet-popup-content .info-popup{width:calc(100vw - 16px)!important;min-width:0!important;max-width:calc(100vw - 16px)!important}.leaflet-popup-content .popup-row,.leaflet-popup-content .point-view-row,.leaflet-popup-content .nature-popup-row,.leaflet-popup-content .obs-row,.leaflet-popup-content .eco-popup-row,.leaflet-popup-content .nest-popup-row,.leaflet-popup-content .info-row{grid-template-columns:110px minmax(0,1fr)!important;column-gap:8px!important}}

/* Popup fase 2: centrale read-only popupstijl. */
.leaflet-popup-content .geoapps-popup{box-sizing:border-box;width:300px;min-width:240px;max-width:min(380px,calc(100vw - 24px));padding:5px;background:#f3f6f3;color:#24372b;font:12px/1.25 Arial,sans-serif}
.leaflet-popup-content .geoapps-popup-title,.leaflet-popup-content .geoapps-popup-section-title{box-sizing:border-box;width:100%;margin:0 0 4px;padding:4px 6px;border-left:4px solid #579c66;background:#e2ece3;color:#183d25;font-weight:700}
.leaflet-popup-content .geoapps-popup-section{margin:0;padding:0}
.leaflet-popup-content .geoapps-popup-row{box-sizing:border-box;display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:8px;align-items:start;width:100%;margin:0;padding:3px 2px;border-bottom:1px solid #dce4de}
.leaflet-popup-content .geoapps-popup-label{min-width:0;color:#34483b;font-weight:400;white-space:normal;overflow-wrap:normal;word-break:keep-all;hyphens:none}
.leaflet-popup-content .geoapps-popup-value{min-width:0;color:#111;font-weight:700;white-space:normal;overflow-wrap:normal;word-break:normal}
.leaflet-popup-content .geoapps-popup-empty{padding:5px;color:#666;font-style:italic}
.leaflet-popup-content .geoapps-popup-link{color:#087a38;font-weight:700;text-decoration:underline;text-underline-offset:2px}
@media(max-width:600px){.leaflet-popup-content .geoapps-popup{width:min(300px,calc(100vw - 24px));min-width:220px;max-width:calc(100vw - 24px)}.leaflet-popup-content .geoapps-popup-row{grid-template-columns:85px minmax(0,1fr);column-gap:7px}}

/* Edit popup fase 1: robuuste formulierbreedtes en gecentreerde acties. */
.leaflet-popup-content form,
.leaflet-popup-content .edit-form,
.leaflet-popup-content .editor-form{box-sizing:border-box;max-width:100%;min-width:0}
.leaflet-popup-content form label,
.leaflet-popup-content form .row,
.leaflet-popup-content form .field,
.leaflet-popup-content form .geo-field-wrap{box-sizing:border-box;min-width:0;max-width:100%}
.leaflet-popup-content form input,
.leaflet-popup-content form select,
.leaflet-popup-content form textarea{box-sizing:border-box;max-width:100%;min-width:0}
.leaflet-popup-content form input[type="file"]{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}
.leaflet-popup-content form input[type="file"]::file-selector-button{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Edit popup fase 1b: compacte foto-uploadcontrol. */
.geo-photo-field{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;overflow:hidden}
.geo-photo-field .geo-file-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;min-width:92px;max-width:120px;padding:6px 10px;border:1px solid #9ca9a0;border-radius:3px;background:#fff;color:#33463a;cursor:pointer;white-space:nowrap}
.geo-photo-field .geo-file-button:hover{background:#eef4ef}
.geo-photo-field .geo-file-button input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.geo-photo-field .geo-file-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#59635d;font-size:12px}

/* Edit popup verfijning: Foto en Nieuwe foto exact gelijk uitlijnen. */
.geo-photo-field>button[data-photo],
.geo-photo-field>.geo-file-button{width:92px!important;height:32px!important;min-width:92px!important;max-width:92px!important;padding:0 10px!important;margin:0!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:30px!important;vertical-align:middle!important;border-radius:3px!important}

/* Edit popup fase 3: lange document- en PDF-namen mogen de popup niet verbreden. */
.leaflet-popup-content .nature-document-form,
.leaflet-popup-content .nature-document-form label,
.leaflet-popup-content .nature-document-form .file-name{box-sizing:border-box;min-width:0;max-width:100%}
.leaflet-popup-content .nature-document-form .file-name{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.35;text-align:center}
.leaflet-popup-content .nature-document-form input[type="file"]{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.leaflet-popup-content .file-name,
.leaflet-popup-content .document-name,
.leaflet-popup-content .pdf-name{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* Documenteditor: bestaande PDF openen en compacte nieuwe-PDF-keuze. */
.geo-pdf-field{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.geo-pdf-button{width:108px;height:32px;min-width:108px;max-width:108px;margin:0!important;padding:0 8px!important;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid #9ca9a0;border-radius:3px;background:#fff;color:#33463a;font:inherit;line-height:30px;white-space:nowrap;cursor:pointer}
.geo-pdf-button:hover{background:#eef4ef}
.geo-pdf-upload input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.nature-document-form .file-name[data-pdf-name]{margin-top:7px;width:100%;max-width:100%;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* PDF editpopup: gelijke knopuitlijning en gecentreerde acties. */
.nature-document-form .geo-pdf-button{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important;padding:0 8px!important}

/* Natuurdatabase PDF-popup definitieve uitlijning. */
.nature-document-form .geo-pdf-field{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0!important;max-width:100%!important}
.nature-document-form button.geo-pdf-button,
.nature-document-form label.geo-pdf-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;vertical-align:middle!important;line-height:1!important;height:32px!important;padding:0 8px!important}
.nature-document-form .file-name,
.nature-document-form [data-pdf-name]{display:none!important}

/* Natuurdatabase documenteditor: expliciet gecentreerde knopgroepen. */
.nature-document-form .nature-document-pdf-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
.nature-document-form .nature-document-pdf-actions>.geo-pdf-button{flex:0 0 108px!important;width:108px!important;min-width:108px!important;max-width:108px!important;height:32px!important;margin:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important;box-sizing:border-box!important}
.nature-document-form .nature-document-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:10px!important;width:100%!important;margin:10px 0 0!important;box-sizing:border-box!important}
.nature-document-form .nature-document-actions>button{flex:0 0 106px!important;width:106px!important;min-width:106px!important;max-width:106px!important;margin:0!important}

/* Definitieve centrale edit-popupacties: 1 of 2 knoppen als gecentreerde groep. */
.leaflet-popup-content .actions,
.leaflet-popup-content .popup-actions,
.leaflet-popup-content .editor-actions,
.leaflet-popup-content .form-actions,
.leaflet-popup-content .clean-actions,
.leaflet-popup-content .repair-actions,
.leaflet-popup-content .drain-actions,
.leaflet-popup-content .nature-document-actions{
  display:flex!important; flex-wrap:nowrap!important; justify-content:center!important; align-items:center!important;
  gap:8px!important; width:100%!important; box-sizing:border-box!important; margin-left:0!important; margin-right:0!important;
}
.leaflet-popup-content .actions>button,
.leaflet-popup-content .popup-actions>button,
.leaflet-popup-content .editor-actions>button,
.leaflet-popup-content .form-actions>button,
.leaflet-popup-content .clean-actions>button,
.leaflet-popup-content .repair-actions>button,
.leaflet-popup-content .drain-actions>button,
.leaflet-popup-content .nature-document-actions>button{
  flex:0 0 106px!important; width:106px!important; min-width:106px!important; max-width:106px!important;
  min-height:32px!important; margin:0!important; padding:6px 10px!important; box-sizing:border-box!important;
  display:inline-flex!important; align-items:center!important; justify-content:center!important; text-align:center!important; line-height:1.2!important;
}

/* Centrale foto-overlay met optioneel onderschrift (o.a. iNaturalist). */
.geoapps-photo-overlay .geoapps-photo-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:90vw;max-height:90vh}
.geoapps-photo-overlay .geoapps-photo-frame img{display:block;max-width:90vw;max-height:calc(90vh - 30px);object-fit:contain}
.geoapps-photo-overlay .geoapps-photo-caption{box-sizing:border-box;width:100%;padding:7px 10px 3px;color:#fff;font:600 13px/1.2 Arial,sans-serif;text-align:center}
.geoapps-photo-overlay .geoapps-photo-caption[hidden]{display:none!important}

/* Layer controls: no horizontal scrollbar, wrap long names and use a consistent desktop width. */
.leaflet-control-layers,
.geoapps-layer-control,
.ecologie-layers-control,
.nature-layers,
.nest-layer-control,
.geoapps-layer-groups{
  min-width:210px;
  max-width:min(320px,calc(100vw - 65px));
  box-sizing:border-box;
  overflow-x:hidden;
}
.geoapps-layer-control .leaflet-control-layers-list,
.geoapps-layer-groups{
  overflow-x:hidden;
  max-width:100%;
  box-sizing:border-box;
}
.geoapps-layer-control details,
.geoapps-layer-control summary,
.geoapps-layer-control label,
.geoapps-layer-control .geoapps-layer-row,
.nature-layers details,
.nature-layers summary,
.nature-layers label{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.geoapps-layer-control label > span,
.geoapps-layer-control .geoapps-layer-row > span,
.geoapps-layer-control summary,
.nature-layers label > span,
.nature-layers summary{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
@media(max-width:480px){
  .leaflet-control-layers,
  .geoapps-layer-control,
  .ecologie-layers-control,
  .nature-layers,
  .nest-layer-control,
  .geoapps-layer-groups{
    min-width:0;
    max-width:calc(100vw - 65px);
  }
}


/* GeoApps huisstijl fase 1 - Gemeente Gorinchem, 2026-11-24.
   Open Sans is het webfont uit het huisstijlhandboek. Wanneer de lokale WOFF2-bestanden
   nog niet aanwezig zijn valt de interface terug op Verdana/Arial. Popupkleuren en
   semantische kaartkleuren blijven in deze fase bewust ongewijzigd. */
@font-face{font-family:"Open Sans";src:url("../assets/fonts/OpenSans-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Open Sans";src:url("../assets/fonts/OpenSans-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Open Sans";src:url("../assets/fonts/OpenSans-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
:root{--gorinchem-red:#e60a14;--gorinchem-purple:#3a0056;--gorinchem-dark-red:#860801;--gorinchem-orange:#f76223;--gorinchem-grey:#aeaba8;--gorinchem-light-grey:#f1efee;--gorinchem-white:#fff;--geoapps-ui-font:"Open Sans",Verdana,Arial,sans-serif}
html,body{font-family:var(--geoapps-ui-font)}
.app-title{border-color:var(--gorinchem-grey);border-left:4px solid var(--gorinchem-red);background:rgba(255,255,255,.97);color:#262126;font-family:var(--geoapps-ui-font);font-size:15px;font-weight:600}
.app-title a{color:var(--gorinchem-purple)}
.app-title a:focus-visible,.leaflet-control a:focus-visible,.leaflet-control button:focus-visible{outline:2px solid var(--gorinchem-red);outline-offset:2px}
.geoapps-address-search,.geoapps-species-search,.geoapps-complex-search,.geoapps-year-range,.geoapps-central-layer-control,.geoapps-layer-control,.geoapps-layer-groups,.ecologie-layers-control,.nature-layers,.nature-edit-layers,.nest-layer-control,.ndff-filter-control{font-family:var(--geoapps-ui-font)!important}
.geoapps-address-search input,.geoapps-species-search input,.geoapps-complex-search input,.geoapps-area-select select{font-family:var(--geoapps-ui-font)!important;border-color:var(--gorinchem-grey)!important}
.geoapps-address-search input:focus,.geoapps-species-search input:focus,.geoapps-complex-search input:focus,.geoapps-area-select select:focus{border-color:var(--gorinchem-red)!important;outline:2px solid rgba(230,10,20,.20)!important}
.geoapps-address-result,.geoapps-species-search button:not(.geoapps-species-clear),.geoapps-complex-search button:not(.geoapps-complex-clear){font-family:var(--geoapps-ui-font)!important}
.geoapps-address-result:hover,.geoapps-address-result:focus,.geoapps-species-search button:hover,.geoapps-species-search button:focus,.geoapps-complex-search button:hover,.geoapps-complex-search button:focus{background:var(--gorinchem-light-grey)!important}
.geoapps-layer-toggle{font-family:var(--geoapps-ui-font)!important}
.geoapps-central-layer-control .geoapps-central-layer-heading,.geoapps-central-layer-control .geoapps-layer-heading,.geoapps-layer-control summary,.geoapps-layer-groups summary,.ecologie-layers-control summary,.nature-layers summary,.nature-edit-layers h3,.nest-layer-control summary,.ndff-filter-control summary{font-family:var(--geoapps-ui-font)!important;color:var(--gorinchem-purple)!important}
.geoapps-central-layer-control .geoapps-central-layer-row,.geoapps-central-layer-control .geoapps-layer-row,.geoapps-layer-control label,.geoapps-layer-groups label,.ecologie-layers-control label,.nature-layers label,.nature-edit-layers label,.nest-layer-control label,.ndff-filter-control label{font-family:var(--geoapps-ui-font)!important}
.geoapps-central-layer-control .geoapps-central-layer-row:hover,.geoapps-layer-control label:hover,.geoapps-layer-groups label:hover,.ecologie-layers-control label:hover,.nature-layers label:hover,.nature-edit-layers label:hover,.nest-layer-control label:hover,.ndff-filter-control label:hover{background:var(--gorinchem-light-grey)!important}
/* Formulieracties: primaire gemeentelijke actie rood; verwijderen blijft apart in keelrood. */
.leaflet-popup-content button.primary,.leaflet-popup-content [data-action=save],.leaflet-popup-content [data-save],.clean-actions button,.repair-actions button,.drain-actions button{background:var(--gorinchem-red)!important;border-color:var(--gorinchem-red)!important;color:#fff!important;font-family:var(--geoapps-ui-font)!important}
.leaflet-popup-content button.delete,.leaflet-popup-content [data-action=delete],.leaflet-popup-content [data-delete]{background:#fff!important;border-color:var(--gorinchem-dark-red)!important;color:var(--gorinchem-dark-red)!important;font-family:var(--geoapps-ui-font)!important}

/* 2026-11-25: toegankelijke layer-controlkoppen in dark mode.
   De lichte tekstkleur voorkomt donkerpaars op donkergrijs. */
@media (prefers-color-scheme: dark) {
  .geoapps-central-layer-control .geoapps-central-layer-heading,
  .geoapps-central-layer-control .geoapps-layer-heading,
  .geoapps-layer-control summary,
  .geoapps-layer-groups summary,
  .ecologie-layers-control summary,
  .nature-layers summary,
  .nature-edit-layers h3,
  .nest-layer-control summary,
  .ndff-filter-control summary,
  .leaflet-control-layers .geoapps-background-group summary {
    color: #f2f2f2 !important;
  }
}

/* 2026-11-25: behoud de lichte huisstijl-hoverkleur in dark mode, maar met leesbare donkere tekst. */
@media (prefers-color-scheme: dark) {
  .geoapps-central-layer-control .geoapps-central-layer-row:hover, .geoapps-central-layer-control .geoapps-layer-row:hover,
  .leaflet-control-layers label:hover, .geoapps-layer-control label:hover, .geoapps-layer-groups label:hover,
  .ecologie-layers-control label:hover, .nature-layers label:hover, .nature-edit-layers label:hover,
  .nest-layer-control label:hover, .ndff-filter-control label:hover {
    background:var(--gorinchem-light-grey)!important; color:#262126!important;
  }
  .geoapps-central-layer-control .geoapps-central-layer-row:hover *, .geoapps-central-layer-control .geoapps-layer-row:hover *,
  .leaflet-control-layers label:hover *, .geoapps-layer-control label:hover *, .geoapps-layer-groups label:hover *,
  .ecologie-layers-control label:hover *, .nature-layers label:hover *, .nature-edit-layers label:hover *,
  .nest-layer-control label:hover *, .ndff-filter-control label:hover * {color:#262126!important;}
}
