.rtm-collectie-wrap{
  --rtm-card:#fff;
  --rtm-card-soft:#f5f7f2;
  --rtm-border:#d7ddd5;
  --rtm-green:#1d553a;
  --rtm-gold:#bd911d;
  --rtm-text:#1f1e21;
  --rtm-muted:#4f5f57;
  --rtm-muted-2:#74807a;
  max-width:1200px;
  margin:0 auto;
  color:var(--rtm-text);
}

.rtm-collectie-intro{
  margin:0 0 20px;
}

.rtm-collectie-title{
  margin:0;
  color:var(--rtm-green);
  font-size:clamp(32px,4vw,46px);
  line-height:1.05;
}

.rtm-collectie-lead{
  margin:12px 0 0;
  max-width:820px;
  color:var(--rtm-muted);
  font-size:17px;
  line-height:1.7;
}

/* Filters */
.rtm-collectie-filters{
  display:grid;
  grid-template-columns:1.35fr .9fr .9fr auto;
  gap:16px;
  padding:18px;
  border:1px solid var(--rtm-border);
  border-radius:28px;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.04);
  margin:0 0 28px;
}

.rtm-collectie-field label{
  display:block;
  margin:0 0 7px;
  font-size:14px;
  font-weight:600;
  color:#355640;
}

.rtm-collectie-field input,
.rtm-collectie-field select{
  width:100%;
  height:50px;
  border:1px solid var(--rtm-border);
  border-radius:16px;
  background:var(--rtm-card-soft);
  padding:0 14px;
  color:var(--rtm-text);
  font-size:15px;
}

.rtm-collectie-submit{
  height:50px;
  align-self:end;
  border:0;
  border-radius:16px;
  background:var(--rtm-gold);
  color:#fff;
  padding:0 18px;
  font-weight:700;
  cursor:pointer;
}

.rtm-collectie-checkbox-row{
  grid-column:1/-1;
}

.rtm-collectie-checkbox-row label{
  margin:0;
  font-weight:500;
  color:var(--rtm-muted);
}

.rtm-collectie-checkbox-row input{
  width:auto;
  height:auto;
  margin-right:8px;
}

/* Categorieën */
.rtm-collectie-category-section + .rtm-collectie-category-section{
  margin-top:34px;
}

.rtm-collectie-category-title{
  margin:0 0 16px;
  color:var(--rtm-green);
  font-size:28px;
  line-height:1.15;
}

/* Grid / cards */
.rtm-collectie-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.rtm-collectie-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--rtm-border);
  border-radius:28px;
  background:var(--rtm-card);
  box-shadow:0 10px 28px rgba(0,0,0,.05);
}

.rtm-collectie-media{
  position:relative;
  aspect-ratio:4/3;
  background:#d9ded7;
  overflow:hidden;
}

.rtm-collectie-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.rtm-collectie-badge{
  position:absolute;
  left:16px;
  top:16px;
  background:var(--rtm-green);
  color:#fff;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  z-index:2;
}

.rtm-collectie-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(135deg,#e5e7e2,#ccd3cb);
  color:#5e6962;
  padding:20px;
}

.rtm-collectie-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
}

.rtm-collectie-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.rtm-collectie-label{
  font-size:12px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#7b857f;
  margin:0 0 8px;
}

.rtm-collectie-nummer{
  margin:0;
  color:var(--rtm-gold);
  font-size:34px;
  line-height:1;
}

.rtm-collectie-year{
  background:var(--rtm-card-soft);
  padding:10px 12px;
  border-radius:16px;
  text-align:right;
  min-width:88px;
}

.rtm-collectie-year strong{
  display:block;
  color:#355640;
  font-size:14px;
}

.rtm-collectie-year span{
  display:block;
  color:var(--rtm-muted-2);
  font-size:12px;
}

.rtm-collectie-type{
  margin:0;
  color:var(--rtm-green);
  font-size:21px;
  line-height:1.25;
}

.rtm-collectie-subtitel{
  margin:-8px 0 0;
  color:var(--rtm-muted);
  font-size:15px;
  line-height:1.5;
}

.rtm-collectie-excerpt{
  margin:0;
  color:var(--rtm-muted);
  font-size:14px;
  line-height:1.7;
}

.rtm-collectie-footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid #e4e8e2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.rtm-collectie-note{
  font-size:13px;
  color:var(--rtm-muted-2);
}

.rtm-collectie-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid var(--rtm-green);
  background:#fff;
  color:var(--rtm-green);
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}

.rtm-collectie-link:hover{
  background:var(--rtm-green);
  color:#fff;
}

.rtm-collectie-empty{
  padding:32px;
  border:1px solid var(--rtm-border);
  border-radius:28px;
  background:#fff;
  color:var(--rtm-muted);
}

.rtm-collectie-hidden-detail{
  display:none !important;
}

/* Modal */
.rtm-collectie-modal-open{
  overflow:hidden;
}

.rtm-collectie-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(18,24,20,.68);
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.rtm-collectie-modal[hidden]{
  display:none !important;
}

.rtm-collectie-modal-dialog{
  width:min(1180px,100%);
  max-height:calc(100vh - 48px);
  background:#fff;
  border-radius:28px;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.rtm-collectie-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 22px;
  border-bottom:1px solid #e4e8e2;
  background:#fff;
}

.rtm-collectie-modal-title{
  margin:0;
  color:var(--rtm-green);
  font-size:22px;
  line-height:1.2;
}

.rtm-collectie-modal-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--rtm-border);
  background:#fff;
  color:var(--rtm-green);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.rtm-collectie-modal-close:hover{
  background:var(--rtm-green);
  color:#fff;
}

.rtm-collectie-modal-body{
  padding:22px;
  overflow:auto;
}

.rtm-collectie-modal-content .rtm-collectie-detail-inner{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:30px;
}

.rtm-collectie-modal-content .rtm-collectie-detail-media-block{
  min-width:0;
}

.rtm-collectie-main-image{
  margin:0;
}

.rtm-collectie-main-image img,
.rtm-collectie-modal-content .rtm-collectie-main-image img{
  width:100%;
  display:block;
  border-radius:28px;
  aspect-ratio:4/3;
  object-fit:cover;
}

.rtm-collectie-modal-content .rtm-collectie-detail-side{
  padding:0;
  min-width:0;
}

.rtm-collectie-modal-content .rtm-collectie-detail-heading{
  margin:0;
  color:var(--rtm-green);
  font-size:34px;
  line-height:1.1;
}

.rtm-collectie-detail-subtitle{
  margin:10px 0 0;
  color:var(--rtm-muted);
  font-size:16px;
  line-height:1.6;
}

.rtm-collectie-modal-content .rtm-collectie-content{
  margin:22px 0 0;
  color:var(--rtm-muted);
  line-height:1.8;
}

.rtm-collectie-modal-content .rtm-collectie-content-section + .rtm-collectie-content-section{
  margin-top:22px;
}

.rtm-collectie-modal-content .rtm-collectie-content h5{
  margin:0 0 10px;
  color:var(--rtm-green);
  font-size:19px;
  line-height:1.25;
}

/* Facts groepen */
.rtm-collectie-facts-group{
  padding:18px;
  border-radius:24px;
  background:var(--rtm-card-soft);
  border:1px solid #e4e8e2;
}

.rtm-collectie-facts-group + .rtm-collectie-facts-group{
  margin-top:16px;
}

.rtm-collectie-modal-content .rtm-collectie-facts{
  margin:0;
  padding:0;
}

.rtm-collectie-modal-content .rtm-collectie-facts-row{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid #e4e8e2;
}

.rtm-collectie-modal-content .rtm-collectie-facts-row:first-child{
  padding-top:0;
}

.rtm-collectie-modal-content .rtm-collectie-facts-row:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.rtm-collectie-modal-content .rtm-collectie-facts dt{
  margin:0;
  color:#6a746e;
  font-weight:600;
  font-size:14px;
  line-height:1.45;
}

.rtm-collectie-modal-content .rtm-collectie-facts dd{
  margin:0;
  color:var(--rtm-text);
  line-height:1.55;
}

/* Levensloop timeline */
.rtm-collectie-levensloop-timeline{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e4e8e2;
}

.rtm-collectie-levensloop-timeline.has-facts{
  margin-top:16px;
}

.rtm-collectie-levensloop-item{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid #e4e8e2;
}

.rtm-collectie-levensloop-item:first-child{
  padding-top:0;
}

.rtm-collectie-levensloop-item:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.rtm-collectie-levensloop-periode{
  margin:0;
  color:#6a746e;
  font-weight:600;
  font-size:14px;
  line-height:1.45;
}

.rtm-collectie-levensloop-tekst{
  color:var(--rtm-text);
  line-height:1.55;
}

/* Galerij */
.rtm-collectie-gallery-grid,
.rtm-collectie-modal-content .rtm-collectie-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}

.rtm-collectie-gallery-item{
  appearance:none;
  -webkit-appearance:none;
  border:none !important;
  outline:none;
  box-shadow:none !important;
  background:transparent !important;
  padding:0 !important;
  margin:0;
  cursor:pointer;
  display:block;
  width:100%;
  border-radius:18px;
  overflow:hidden;
}

.rtm-collectie-gallery-item:hover,
.rtm-collectie-gallery-item:focus,
.rtm-collectie-gallery-item:active{
  border:none !important;
  outline:none;
  box-shadow:none !important;
  background:transparent !important;
}

.rtm-collectie-gallery-item img,
.rtm-collectie-modal-content .rtm-collectie-gallery-item img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  border-radius:18px;
  border:2px solid transparent;
  transition:border-color .2s ease, transform .2s ease;
}

.rtm-collectie-gallery-item:hover img{
  transform:scale(1.01);
}

.rtm-collectie-gallery-item.is-primary img{
  border-color:#1D553A;
}

/* Focus / buttons */
.rtm-collectie-link,
.rtm-collectie-link:hover,
.rtm-collectie-link:focus,
.rtm-collectie-link:active{
  box-shadow:none !important;
  outline:none !important;
}

.rtm-collectie-open-modal,
.rtm-collectie-open-modal:hover,
.rtm-collectie-open-modal:focus,
.rtm-collectie-open-modal:active{
  box-shadow:none !important;
  outline:none !important;
}

/* Responsive */
@media (max-width:1024px){
  .rtm-collectie-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rtm-collectie-filters{
    grid-template-columns:1fr 1fr;
  }

  .rtm-collectie-modal-content .rtm-collectie-detail-inner{
    grid-template-columns:1fr;
  }
}

@media (max-width:767px){
  .rtm-collectie-filters,
  .rtm-collectie-grid,
  .rtm-collectie-gallery-grid,
  .rtm-collectie-modal-content .rtm-collectie-gallery-grid{
    grid-template-columns:1fr;
  }

  .rtm-collectie-body{
    padding:18px;
  }

  .rtm-collectie-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .rtm-collectie-modal{
    padding:12px;
  }

  .rtm-collectie-modal-dialog{
    max-height:calc(100vh - 24px);
    border-radius:22px;
  }

  .rtm-collectie-modal-header{
    padding:14px 16px;
  }

  .rtm-collectie-modal-title{
    font-size:20px;
  }

  .rtm-collectie-modal-body{
    padding:16px;
  }

  .rtm-collectie-modal-content .rtm-collectie-detail-heading{
    font-size:28px;
  }

  .rtm-collectie-detail-subtitle{
    font-size:15px;
  }

  .rtm-collectie-facts-group{
    padding:16px;
    border-radius:20px;
  }

  .rtm-collectie-modal-content .rtm-collectie-facts-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .rtm-collectie-levensloop-item{
    grid-template-columns:1fr;
    gap:4px;
  }

  .rtm-collectie-category-title{
    font-size:24px;
  }
}