body {
  padding-top: 70px;
  background: #f6f8fb;
}

.navbar-brand span {
  font-weight: 700;
}

.hero,
.app-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef5ff 100%);
  border: 1px solid #e6edf7;
  border-radius: 1rem;
  padding: 2rem;
}

.card {
  border-radius: 0.9rem;
}

#map {
  width: 100%;
  height: min(72vh, 680px);
  min-height: 480px;
  border-radius: 0.75rem;
  border: 1px solid #dee2e6;
}

.map-card {
  overflow: hidden;
}

.filter-card {
  top: 86px;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
}

.filter-accordion .accordion-button {
  font-size: 0.95rem;
  font-weight: 600;
}

.filter-accordion .accordion-body {
  padding: 0.75rem 1rem;
  max-height: 210px;
  overflow-y: auto;
}

.filter-option {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.kpi-card .display-5,
.kpi-card .display-6,
.kpi-card .h5 {
  font-weight: 650;
}

.kpi-card h6,
.chart-card h6 {
  color: #495057;
}

.table th,
.table td {
  vertical-align: middle;
}

.chart-box {
  height: 280px;
}

/* Leaflet legende onderaan de kaart */
.kaart-legende {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.75rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
  font-size: 0.9rem;
  min-width: 145px;
}

.legende-subtitle {
  color: #6c757d;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.legende-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.legende-kleur {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #333;
}

.kpi-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.kpi-year-grid div {
  background: #f8f9fa;
  border-radius: 0.6rem;
  padding: 0.55rem;
  text-align: center;
  border: 1px solid #e9ecef;
}

.kpi-year-grid small,
.kpi-year-grid strong {
  display: block;
}

.kpi-year-grid strong {
  font-size: 1.35rem;
}

.ongeval-popup {
  min-width: 230px;
}

.leaflet-control-layers {
  border-radius: 0.6rem;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .filter-card {
    position: static !important;
    max-height: none;
  }

  #map {
    height: 560px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 66px;
  }

  .hero,
  .app-hero {
    padding: 1.25rem;
  }

  #map {
    height: 460px;
    min-height: 420px;
  }

  .chart-box {
    height: 240px;
  }
}

/* Zichtbare filtergroepen: geen verborgen accordion meer */
.filter-grid {
  display: grid;
  gap: 0.85rem;
}

.filter-group {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.filter-group-title {
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.filter-options {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.filter-option .form-check-label {
  line-height: 1.2;
}

.filter-option-count {
  color: #6c757d;
  font-size: 0.82em;
}

@media (max-width: 991.98px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border: 0;
}

.service-card h2,
.service-card h3 {
  color: #0d3b66;
}

.hero .badge,
.app-hero .badge {
  letter-spacing: 0.01em;
}

footer a {
  color: inherit;
}

/* Monitoring dashboard look-and-feel */
.dashboard-hero {
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 45%, #eefcf5 100%);
}

.dashboard-summary-card,
.search-card,
.dashboard-note-card,
.callout-card {
  border: 0;
}

.search-card .input-group-lg > .form-control,
.search-card .input-group-lg > .btn {
  border-radius: 0.75rem;
}

.search-card .input-group-lg > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-card .input-group-lg > .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.kpi-card {
  border: 0;
  border-left: 4px solid #0d6efd;
}

.kpi-card small {
  font-size: 0.82rem;
}

.dashboard-layout .card,
.chart-card,
.kpi-card {
  box-shadow: 0 0.35rem 1.2rem rgba(15, 23, 42, 0.06) !important;
}

.blog-flow article {
  border: 0;
}

.blog-flow article h3 {
  color: #0d3b66;
}

.callout-card {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
}

.callout-card .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

.callout-card .btn-outline-secondary:hover {
  color: #0d6efd;
  background: #fff;
  border-color: #fff;
}

/* GeoVista geïnspireerde huisstijl */
:root {
  --gv-navy: #0d3b66;
  --gv-blue: #1464b4;
  --gv-green: #11a36a;
  --gv-mint: #eefcf5;
  --gv-soft-blue: #eef5ff;
  --gv-ink: #14213d;
}

body {
  background: #f5f8fb;
  color: var(--gv-ink);
}

.site-navbar,
.navbar.bg-dark {
  background: linear-gradient(90deg, #08233f 0%, var(--gv-navy) 62%, #0f6b55 100%) !important;
  box-shadow: 0 0.35rem 1rem rgba(8, 35, 63, 0.16);
}

.navbar-brand span {
  color: #9ff3c6;
}

.navbar .nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
}

.nav-link-external {
  color: #b8f3d2 !important;
}

.brand-badge,
.hero .badge.brand-badge,
.app-hero .badge.brand-badge {
  background: rgba(17, 163, 106, 0.12) !important;
  color: #07583c !important;
  border: 1px solid rgba(17, 163, 106, 0.35);
}

.hero,
.app-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--gv-soft-blue) 48%, var(--gv-mint) 100%);
  border-color: rgba(13, 59, 102, 0.10);
}

.dashboard-hero,
.sales-hero {
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after,
.sales-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(17, 163, 106, 0.20) 0%, rgba(17, 163, 106, 0) 70%);
  pointer-events: none;
}

.btn-primary {
  background-color: var(--gv-blue);
  border-color: var(--gv-blue);
}

.btn-primary:hover {
  background-color: var(--gv-navy);
  border-color: var(--gv-navy);
}

.alert-brand-subtle {
  background: #effaf5;
  color: #07583c;
  border-color: rgba(17, 163, 106, 0.25) !important;
}

.kpi-card {
  border-left-color: var(--gv-blue);
}

.kpi-card-accent {
  border-left-color: var(--gv-green);
}

.kpi-card .display-5,
.kpi-card .display-6,
.kpi-card .h5 {
  color: var(--gv-navy);
}

.filter-group-title,
.chart-card h6,
.kpi-card h6,
.blog-flow article h3,
.service-card h2,
.service-card h3 {
  color: var(--gv-navy);
}

#salesMap {
  width: 100%;
  height: min(42vh, 420px);
  min-height: 320px;
  border-radius: 0.75rem;
  border: 1px solid #dee2e6;
}

.sales-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 48%, #edf9f2 100%);
}

.callout-card {
  background: linear-gradient(135deg, var(--gv-navy) 0%, var(--gv-blue) 58%, #0f6b55 100%);
}

@media (max-width: 576px) {
  #salesMap {
    height: 360px;
    min-height: 320px;
  }
}


#kpiStraat {
  color: var(--gv-navy);
  font-weight: 700;
}

/* Online rendering fix voor compacte saleskaart */
#salesMap { min-height: 360px; height: 380px; width: 100%; background: #eef4f8; border-radius: 0.75rem; }
#salesMap .alert { position: relative; z-index: 1000; }
@media (max-width: 768px) { #salesMap { height: 320px; min-height: 320px; } }

/* Compacte dashboard-layout: kaart kleiner, data prominenter naast de kaart */
.dashboard-page {
  --dashboard-gap: 0.85rem;
}

.dashboard-hero-compact {
  padding: 1.25rem 1.5rem;
}

.dashboard-hero-compact .lead {
  font-size: 1.08rem;
}

.compact-intro {
  max-width: 760px;
}

.live-update-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 163, 106, 0.22);
  border-radius: 0.95rem;
  padding: 1rem;
  box-shadow: 0 0.35rem 1.1rem rgba(15, 23, 42, 0.05);
}

.live-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  margin-top: 0.25rem;
  background: var(--gv-green);
  box-shadow: 0 0 0 0.35rem rgba(17, 163, 106, 0.16);
  flex: 0 0 auto;
}

.dashboard-control-card .form-label {
  margin-bottom: 0.35rem;
}

.dashboard-layout-compact {
  align-items: stretch;
}

.dashboard-layout-compact .map-card,
.dashboard-layout-compact .map-card .card-body {
  min-height: 100%;
}

#map {
  height: min(52vh, 520px);
  min-height: 390px;
}

.map-toolbar {
  min-height: 36px;
}

.insight-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.live-panel {
  border: 0;
  border-top: 4px solid var(--gv-green);
}

.live-badge {
  color: #07583c;
  background: rgba(17, 163, 106, 0.14);
  border: 1px solid rgba(17, 163, 106, 0.28);
}

.live-count-alert {
  background: #effaf5;
  font-size: 0.93rem;
}

.kpi-compact-grid .mini-kpi {
  height: 100%;
  background: #f8fbff;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  padding: 0.7rem;
}

.mini-kpi span,
.mini-kpi small {
  display: block;
  color: #6c757d;
  font-size: 0.78rem;
  line-height: 1.2;
}

.mini-kpi strong {
  display: block;
  color: var(--gv-navy);
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0.15rem 0;
}

.mini-kpi-wide strong.h5 {
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.compact-table {
  font-size: 0.84rem;
}

.compact-table th,
.compact-table td {
  white-space: nowrap;
}

.chart-section-prominent {
  scroll-margin-top: 90px;
}

.chart-section-prominent .chart-card {
  border: 0;
}

.chart-box {
  height: 240px;
}

.compact-filter-grid {
  gap: 0.65rem;
}

.compact-filter-grid .filter-group {
  padding: 0.65rem;
}

.compact-filter-grid .filter-options {
  max-height: 125px;
}

.filter-card {
  top: 82px;
  max-height: calc(100vh - 95px);
}

.supporting-info-section {
  margin-top: 0.25rem;
}

@media (min-width: 1200px) {
  .dashboard-layout-compact > .col-xxl-3:first-child {
    width: 24%;
  }

  .dashboard-layout-compact > .col-xxl-6 {
    width: 50%;
  }

  .dashboard-layout-compact > .col-xxl-3:last-child {
    width: 26%;
  }
}

@media (max-width: 1199.98px) {
  #map {
    height: 500px;
    min-height: 430px;
  }

  .insight-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .insight-column .card {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .dashboard-hero-compact {
    padding: 1.1rem;
  }

  #map {
    height: 460px;
    min-height: 390px;
  }

  .insight-column {
    grid-template-columns: 1fr;
  }

  .chart-box {
    height: 230px;
  }
}

@media (max-width: 576px) {
  #map {
    height: 390px;
    min-height: 340px;
  }

  .dashboard-control-card .input-group-lg {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-control-card .input-group-lg > .form-control,
  .dashboard-control-card .input-group-lg > .btn {
    width: 100%;
    border-radius: 0.75rem !important;
  }

  .mini-kpi strong {
    font-size: 1.35rem;
  }
}
