/* ================================================================
   CS PROJECTEN PLUGIN — Stijlen
   Gebaseerd op het bestaande CS Camera Installatie design systeem
   ================================================================ */

/* ── PROJECTEN PAGINA (filterpagina) ── */

.csp-pagina { font-family: 'Barlow', sans-serif; }

/* Filter bar */
.csp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf2;
}
.csp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  color: #3d4a5c;
  background: #f4f6f9;
  border: 2px solid transparent;
  transition: all .2s;
}
.csp-filter-btn:hover {
  background: white;
  border-color: #E87722;
  color: #E87722;
}
.csp-filter-btn.active {
  background: #E87722;
  color: white;
  border-color: #E87722;
}
.csp-filter-count {
  background: rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 800;
}
.csp-filter-btn.active .csp-filter-count { background: rgba(255,255,255,.25); }

/* Grid */
.csp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Kaart */
.csp-kaart {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: all .3s;
}
.csp-kaart:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.csp-kaart-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1c2330;
}
.csp-kaart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.csp-kaart:hover .csp-kaart-img img { transform: scale(1.05); }
.csp-kaart-no-img { width: 100%; height: 100%; background: #1c2330; }
.csp-kaart-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,17,23,.5) 0%, transparent 60%);
}
.csp-kaart-vlag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
  line-height: 0;
}
.csp-kaart-cats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}
.csp-kaart-cat {
  background: #E87722;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 9px;
  border-radius: 3px;
}
.csp-kaart-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.csp-kaart-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0d1117 !important;
  text-transform: uppercase !important;
  margin: 0 0 6px !important;
  line-height: 1.2 !important;
}
.csp-kaart-sub {
  font-size: 14px;
  color: #8a97a8;
  margin: 0 0 12px;
  line-height: 1.5;
}
.csp-kaart-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f4f8;
}
.csp-kaart-loc, .csp-kaart-jaar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #8a97a8;
}
.csp-kaart-arrow {
  display: block;
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #E87722;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: gap .2s;
}
.csp-kaart:hover .csp-kaart-arrow { letter-spacing: 1px; }

/* Paginering */
.csp-paginering {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.csp-pag-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #3d4a5c;
  background: #f4f6f9;
  transition: all .2s;
}
.csp-pag-btn:hover { background: white; color: #E87722; }
.csp-pag-btn.active { background: #E87722; color: white; }

/* Geen projecten */
.csp-geen-projecten {
  text-align: center;
  padding: 80px 20px;
  color: #8a97a8;
}
.csp-geen-projecten p { font-size: 18px; margin: 16px 0 24px; }
.csp-btn-terug {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  background: #E87722;
  color: white;
  transition: background .2s;
}
.csp-btn-terug:hover { background: #c8601a; color: white; }

/* ── SINGLE PROJECT PAGINA ── */

.csp-single { font-family: 'Barlow', sans-serif; }

/* Hero */
.csp-single-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: #141921;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.csp-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.45) 55%, rgba(13,17,23,.2) 100%);
}
.csp-single-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 50px;
  width: 100%;
}
.csp-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.csp-single-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.csp-single-breadcrumb a:hover { color: #E87722; }
.csp-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.csp-single-cat {
  background: #E87722;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s;
}
.csp-single-cat:hover { background: #c8601a; color: white; }
.csp-single-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: clamp(34px,5vw,62px) !important;
  font-weight: 800 !important;
  color: white !important;
  text-transform: uppercase !important;
  line-height: 1.05 !important;
  margin: 0 0 12px !important;
}
.csp-single-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  margin: 0 0 20px;
  max-width: 600px;
  line-height: 1.6;
}
.csp-single-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.csp-single-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.csp-single-flag { align-items: center; }

/* Content layout */
.csp-single-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.csp-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* Main content */
.csp-single-content {
  font-size: 16px;
  color: #3d4a5c;
  line-height: 1.85;
  margin-bottom: 40px;
}
.csp-single-content p { margin-bottom: 16px; }
.csp-single-content h2 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0d1117 !important;
  text-transform: uppercase !important;
  margin: 32px 0 12px !important;
}
.csp-single-section-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0d1117 !important;
  text-transform: uppercase !important;
  margin: 0 0 20px !important;
}

/* Galerij */
.csp-single-gallery-wrap { margin-bottom: 40px; }
.csp-single-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.csp-gal-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.csp-gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.csp-gal-thumb:hover img { transform: scale(1.05); }
.csp-gal-zoom {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.csp-gal-thumb:hover .csp-gal-zoom { opacity: 1; }

/* CTA bar */
.csp-single-cta-bar {
  background: #f4f6f9;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.csp-single-cta-bar p {
  font-size: 16px;
  font-weight: 600;
  color: #0d1117;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.csp-single-btn-p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  background: #E87722;
  color: white;
  transition: background .2s;
}
.csp-single-btn-p:hover { background: #c8601a; color: white; }
.csp-single-btn-s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 4px;
  border: 2px solid #e2e8f0;
  color: #3d4a5c;
  transition: all .2s;
}
.csp-single-btn-s:hover { border-color: #E87722; color: #E87722; }

/* Sidebar cards */
.csp-single-sidebar { display: flex; flex-direction: column; gap: 20px; }
.csp-single-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.csp-card-dark { background: #0d1117; }
.csp-single-card-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0d1117 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  margin: 0 0 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Specs tabel */
.csp-specs-table { width: 100%; border-collapse: collapse; }
.csp-specs-table tr { border-bottom: 1px solid #f0f4f8; }
.csp-specs-table tr:last-child { border-bottom: none; }
.csp-specs-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #8a97a8;
  padding: 9px 8px 9px 0;
  width: 38%;
  vertical-align: top;
}
.csp-specs-table td {
  font-size: 14px;
  color: #0d1117;
  font-weight: 500;
  padding: 9px 0;
  vertical-align: top;
}

/* Info dl */
.csp-info-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; }
.csp-info-dl dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #8a97a8;
  padding-top: 2px;
}
.csp-info-dl dd { font-size: 14px; color: #0d1117; font-weight: 500; margin: 0; }
.csp-info-land { display: flex; align-items: center; gap: 6px; }

/* Tel link */
.csp-single-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color .2s;
}
.csp-single-tel:hover { color: #E87722; }

/* Dienst links */
.csp-dienst-links { display: flex; flex-direction: column; gap: 8px; }
.csp-dienst-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #E87722;
  text-decoration: none;
  transition: gap .2s;
}
.csp-dienst-links a::before { content: '→'; }
.csp-dienst-links a:hover { gap: 10px; }

/* ── LIGHTBOX ── */
.csp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.csp-lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}
.csp-lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.csp-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  z-index: 2;
}
.csp-lb-close:hover { background: #E87722; }
.csp-lb-prev, .csp-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.csp-lb-prev { left: 20px; }
.csp-lb-next { right: 20px; }
.csp-lb-prev:hover, .csp-lb-next:hover { background: #E87722; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .csp-grid { grid-template-columns: 1fr 1fr; }
  .csp-single-layout { grid-template-columns: 1fr; }
  .csp-single-sidebar { order: -1; }
  .csp-single-hero { min-height: 340px; }
}
@media (max-width: 600px) {
  .csp-grid { grid-template-columns: 1fr; }
  .csp-single-gallery { grid-template-columns: 1fr 1fr; }
  .csp-single-cta-bar { flex-direction: column; align-items: flex-start; }
  .csp-filter-bar { gap: 7px; }
  .csp-filter-btn { font-size: 12px; padding: 7px 12px; }
}
