.folderaanbieding-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.folderaanbieding-intro {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.folderaanbieding-page-title {
  margin-bottom: .5rem;
}

.folderaanbieding-updated {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  background: #edf7f3;
  color: #145a43;
  border: 1px solid rgba(20, 90, 67, .18);
  border-radius: 8px;
  font-size: .9rem;
}

.folderaanbieding-summary {
  color: #495057;
}

.folderaanbieding-section-title {
  margin-bottom: 0;
}

.folderaanbieding-grid {
  margin-top: 0;
}

.folderaanbieding-grid > .col {
  display: flex;
  align-self: stretch;
  content-visibility: auto;
  contain-intrinsic-size: 360px 820px;
}

.folderaanbieding-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.folderaanbieding-card:hover,
.folderaanbieding-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(20, 90, 67, .28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12) !important;
}

.folderaanbieding-card .card-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  border-bottom: 1px solid rgba(13, 27, 42, .08);
}

.folderaanbieding-store-title {
  margin-bottom: .25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.folderaanbieding-store-location {
  color: #5f6b7a;
  font-size: .92rem;
}

.folderaanbieding-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.card-body-flex {
  display: grid !important;
  grid-template-rows: 2.7em 2.8em 1.5em minmax(0, 1fr);
  row-gap: .45rem;
  align-content: start;
}

.folderaanbieding-branch {
  display: -webkit-box;
  height: 2.7em;
  margin: 0;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.folderaanbieding-address,
.folderaanbieding-store-link {
  margin: 0;
  color: #495057;
}

.folderaanbieding-address {
  display: -webkit-box;
  height: 2.8em;
  overflow: hidden;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.folderaanbieding-store-link {
  display: flex;
  align-items: center;
  height: 1.5em;
  line-height: 1.4;
}

.folderaanbieding-store-link a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5em;
  color: #145a43;
  font-weight: 700;
}

.folderaanbieding-store-link a:hover,
.folderaanbieding-store-link a:focus {
  color: #0f4434;
}

.folderaanbieding-page .btn-success {
  background-color: #145a43;
  border-color: #145a43;
  color: #fff;
}

.folderaanbieding-page .btn-success:hover,
.folderaanbieding-page .btn-success:focus,
.folderaanbieding-page .btn-success:active {
  background-color: #0f4434;
  border-color: #0f4434;
  color: #fff;
  text-decoration: none;
}

.thumbnails-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .25rem;
  align-items: start;
}

.folderaanbieding-thumb-wrapper {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: center;
}

.folderaanbieding-thumb-button {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
}

.folderaanbieding-thumb-wrapper img {
  width: 100%;
  aspect-ratio: 1659 / 2407;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(13, 27, 42, .12);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  background: #fff;
}

.folderaanbieding-thumb-wrapper img:hover,
.folderaanbieding-thumb-button:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .14);
  border-color: rgba(20, 90, 67, .58);
}

.folderaanbieding-thumb-caption {
  min-height: 1.5rem;
  color: #5f6b7a;
  font-size: .85rem;
  line-height: 1.3;
}

.folderaanbieding-card .card-footer {
  margin-top: auto;
  background: #fbfcfe;
  border-top: 1px solid rgba(13, 27, 42, .08);
  text-align: center;
}

.date-range-text {
  margin: 0 0 .75rem;
  color: #212529;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}

.folderaanbieding-results-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.folderaanbieding-lightbox {
  width: min(96vw, 1100px);
  max-width: 1100px;
  border: 0;
  padding: 0;
  background: transparent;
}

.folderaanbieding-lightbox::backdrop {
  background: rgba(0, 0, 0, .82);
}

.folderaanbieding-lightbox-shell {
  position: relative;
  background: transparent;
}

.folderaanbieding-lightbox-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #111;
}

.folderaanbieding-lightbox-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .folderaanbieding-intro {
    padding: 1.25rem !important;
  }

  .folderaanbieding-lightbox {
    width: 96vw;
  }

  .folderaanbieding-lightbox-image {
    max-height: 84vh;
  }
}

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

  .folderaanbieding-card .card-header {
    min-height: auto;
  }

  .card-body-flex {
    grid-template-rows: auto auto auto auto;
  }

  .folderaanbieding-branch,
  .folderaanbieding-address,
  .folderaanbieding-store-link {
    height: auto;
  }
}
