/* collectie.css */

.collectiePage{
    padding: 34px 0 80px;
    background:
      radial-gradient(1200px 600px at 50% 10%, rgba(20,20,20,0.95), rgba(12,12,12,1)),
      linear-gradient(180deg, rgba(20,20,20,0.9), rgba(12,12,12,1));
  }
  
  .collectieHeader{
    margin-top: 10px;
    display: grid;
    gap: 6px;
  }
  
  .collectieTitle{
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.94);
    filter:
      drop-shadow(3px 3px 1px rgba(0,0,0,0.45))
      drop-shadow(3px 6px 6px rgba(0,0,0,0.28));
  }
  
  .collectieSub{
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.86);
  }
  
  .collectieBar{
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  
  .barBtn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: color-mix(in srgb, var(--green) 85%, #fff);
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow:
      0 14px 32px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.08);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  }
  
  .barBtn:hover{
    transform: translateY(-1px);
    border-color: rgba(46,117,64,0.45);
    background: rgba(0,0,0,0.28);
  }
  
  .barBtnRight{
    color: color-mix(in srgb, var(--green) 85%, #fff);
  }
  
  .barIcon{
    width: 18px;
    height: 18px;
    opacity: 0.95;
  }
  
  .carsRow{
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
  
  .carCard{
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 70px rgba(0,0,0,0.55);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
    outline: none;
  }
  
  .carCard:hover{
    transform: translateY(-4px);
    border-color: rgba(46,117,64,0.40);
    box-shadow: 0 26px 85px rgba(0,0,0,0.62);
  }
  
  .carCard:focus-visible{
    border-color: rgba(46,117,64,0.55);
    box-shadow:
      0 26px 85px rgba(0,0,0,0.62),
      0 0 0 4px rgba(46,117,64,0.25);
  }
  
  .carImgWrap{
    position: relative;
    height: 210px;
    overflow: hidden;
  }
  
  .carImg{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 240ms ease, filter 240ms ease;
    filter: saturate(1.02) contrast(1.02);
  }
  
  .carCard:hover .carImg{
    transform: scale(1.06);
    filter: saturate(1.06) contrast(1.06);
  }
  
  .carMeta{
    padding: 14px 14px 16px;
    display: grid;
    gap: 10px;
  }
  
  .carTitleRow{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  
  .carTitle{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.94);
  }
  
  .carPrice{
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46,117,64,0.22);
    border: 1px solid rgba(46,117,64,0.35);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .carSub{
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 14px;
  }
  
  .carFacts{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .fact{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.86);
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.22);
  }
  
  .factIcon{
    width: 14px;
    height: 14px;
    opacity: 0.95;
  }
  
  /* Belangrijk: modal scroll en layout. Links is “vaste kaart”, rechts is eigen scroll gebied. */
  body.modal-open{
    overflow: hidden;
  }
  
  .modalOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
  }
  
  .carModal{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1080px, calc(100% - 28px));
    height: min(86vh, 860px);
    max-height: min(86vh, 860px);
    border-radius: 26px;
    overflow: hidden;
    background:
      radial-gradient(900px 520px at 30% 10%, rgba(24,24,24,0.96), rgba(12,12,12,0.98)),
      linear-gradient(180deg, rgba(18,18,18,0.96), rgba(10,10,10,0.98));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 40px 120px rgba(0,0,0,0.70);
    z-index: 9999;
  }
  
  .modalGrid{
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    height: 100%;
  }
  
  .modalLeft{
    padding: 18px;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
  }
  
  .modalImgWrap{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    box-shadow: 0 20px 70px rgba(0,0,0,0.55);
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .modalImg{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
  
  .modalHighlights{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 0 0 auto;
  }
  
  .hl{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.22);
    color: rgba(255,255,255,0.88);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 12px;
  }
  
  .hlIcon{
    width: 16px;
    height: 16px;
    color: color-mix(in srgb, var(--green) 80%, #fff);
  }
  
  .modalRight{
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
  }
  
  .modalTitleRow{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex: 0 0 auto;
  }
  
  .modalTitle{
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.94);
  }
  
  .modalSub{
    margin: 6px 0 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.80);
    font-weight: 600;
  }
  
  .modalPrice{
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(46,117,64,0.22);
    border: 1px solid rgba(46,117,64,0.35);
    color: rgba(255,255,255,0.92);
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  
  .modalDrops{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 8px;
  }
  
  .drop{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    margin-bottom: 10px;
    overflow: hidden;
  }
  
  .dropSum{
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 13px;
  }
  
  .dropSum::-webkit-details-marker{
    display: none;
  }
  
  .dropIcon{
    width: 16px;
    height: 16px;
    color: color-mix(in srgb, var(--green) 80%, #fff);
  }
  
  .dropChev{
    margin-left: auto;
    width: 16px;
    height: 16px;
    opacity: 0.9;
    transition: transform 160ms ease;
  }
  
  .drop[open] .dropChev{
    transform: rotate(180deg);
  }
  
  .dropBody{
    padding: 0 14px 14px;
    color: rgba(255,255,255,0.86);
    line-height: 1.65;
    font-size: 14px;
    letter-spacing: 0.03em;
  }
  
  .specListModal{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
  }
  
  .specItem{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.20);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 13px;
  }
  
  .specKey{
    color: rgba(255,255,255,0.82);
    font-weight: 800;
  }
  
  .specVal{
    color: rgba(255,255,255,0.92);
  }
  
  .optionsGrid{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .opt{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.20);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 13px;
    color: rgba(255,255,255,0.90);
  }
  
  .optIcon{
    width: 16px;
    height: 16px;
    color: color-mix(in srgb, var(--green) 80%, #fff);
  }
  
  .modalActions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
    flex: 0 0 auto;
  }
  
  .modalBtn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: color-mix(in srgb, var(--green) 85%, #000);
    color: rgba(255,255,255,0.92);
    font-weight: 900;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow:
      0 14px 30px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.10);
    transition: transform 160ms ease, filter 160ms ease;
  }
  
  .modalBtn:hover{
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
  
  .modalBtn.ghost{
    background: rgba(0,0,0,0.22);
  }
  
  .btnIcon{
    width: 16px;
    height: 16px;
  }
  
  @media (max-width: 980px){
    .carsRow{
      grid-template-columns: 1fr;
    }
  
    .modalGrid{
      grid-template-columns: 1fr;
    }
  
    .modalLeft{
      border-right: none;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
  
    .modalHighlights{
      grid-template-columns: 1fr 1fr;
    }
  
    .modalImgWrap{
      flex: 0 0 auto;
      height: 260px;
    }
  }
  
  @media (prefers-reduced-motion: reduce){
    .carCard,
    .carImg,
    .modalBtn,
    .dropChev{
      transition: none;
    }
  }
  /* Modal fade-in, zodat het niet als jumpscare voelt */
.modalOverlay{
    opacity: 0;
    transition: opacity 220ms ease;
  }
  
  .carModal{
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.985);
    transition: opacity 240ms ease, transform 240ms ease;
  }
  
  /* actieve state */
  .modalOverlay.is-open{
    opacity: 1;
  }
  
  .carModal.is-open{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  @media (prefers-reduced-motion: reduce){
    .modalOverlay,
    .carModal{
      transition: none;
    }
  }
  