/* =========================================================
   HERO RESULTS
   ========================================================= */
.hero-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 20px;
  padding: 24px 30px;
  margin-bottom: 20px;
}
.hero-results__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-results__logo {
  height: 56px;
}
.hero-results__title {
  font-family: "Zilla Slab", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
}
.hero-results__subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  line-height: 1.5;
}
.hero-results__image {
  height: 110px;
  flex-shrink: 0;
}

/* =========================================================
   RESULTS OUTER WRAPPER
   ========================================================= */
.results-outer {
  max-width: 1260px;
  margin: 0 auto 40px;
  padding: 140px 30px 30px;
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 24px;
}

/* =========================================================
   FILTER CHIPS
   ========================================================= */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 30px;
  background: #fff;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.filter-chip:hover {
  border-color: rgb(var(--color-blue-primary));
}
.filter-chip.active {
  background-color: rgb(var(--color-blue-primary));
  color: #fff;
  border-color: rgb(var(--color-blue-primary));
}
.filter-chip--locked {
  cursor: default;
  opacity: 0.85;
}
.filter-chip--locked:hover {
  border-color: rgb(var(--color-blue-primary));
}

.filters {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 30px;
}
.filters__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filters__label {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
.filters__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
}

/* =========================================================
   TABLE
   ========================================================= */
.table-container {
  overflow-x: auto;
}
.table-wrapper {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  background: transparent;
}
table td,
table th {
  padding: 16px;
  border-bottom: none;
  vertical-align: middle;
}
table thead th {
  font-size: 17.6px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
  background: rgb(var(--color-grey-light));
  text-align: left;
}
table thead th:not(:first-child) {
  text-align: right;
}

/* Info tooltip (?) icon */
.info-tooltip {
  display: inline-block;
  cursor: help;
  font-size: 13px;
  font-weight: 400;
  color: rgb(var(--color-blue-primary));
  opacity: 0.7;
  position: relative;
}
.info-tooltip:hover {
  opacity: 1;
}
.filter-chip.active .info-tooltip {
  color: #fff;
}
.info-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 10px 12px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  white-space: normal;
  text-align: left;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.info-tooltip:hover::after {
  opacity: 1;
}

.result-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.result-row:hover {
  background-color: #edf1f3;
}
.result-row:nth-child(4n + 3) {
  background-color: #f8f9fa;
}

/* Vergelijk checkbox */
.cell-checkbox {
  text-align: center;
  width: 40px;
}
.compare-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgb(var(--color-blue-primary));
}
/* Highlight geselecteerde rij */
.result-row--selected {
  background-color: rgba(var(--color-blue-primary), 0.06) !important;
}

.cell-insurer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cell-insurer__logo {
  width: 80px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
}
.cell-insurer__name {
  font-size: 17.6px;
  font-weight: 600;
  color: #000;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.cell-insurer__toggle {
  margin-left: auto;
  font-size: 14px;
  color: rgb(var(--color-blue-primary));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.result-row.expanded .cell-insurer__toggle {
  transform: rotate(180deg);
}

.cell-price {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}
.cell-price--unavailable {
  color: rgb(var(--color-red));
  font-size: 18px;
  font-weight: 400;
}
.cell-price--website {
  font-size: 14px;
  font-weight: 500;
}

.detail-row td {
  padding: 0 !important;
  border-bottom: none;
}
.detail-panel {
  background: #f8f9fa;
  padding: 24px;
  display: block;
}
.detail-panel__description {
  font-size: 17.6px;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}
.detail-panel__title {
  font-size: 17.6px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}
.detail-panel__coverage {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-panel__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.detail-panel__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.detail-panel__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--color-blue-primary));
  background: transparent;
  border: 1px solid rgb(var(--color-blue-primary));
  border-radius: 4px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.detail-panel__link:hover {
  background: rgb(var(--color-blue-primary));
  color: #fff;
}

.results-section {
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 24px;
}
.results-tables-wrapper {
  position: relative;
}
.results-section__deductible {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.results-section__deductible .filters__label {
  font-size: 15px;
}
.results-section__deductible .formfield__select {
  font-size: 15px;
}
.results-section__title {
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: rgb(var(--color-blue-primary));
  line-height: 32px;
  margin-bottom: 8px;
}
.results-section__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-bottom: 24px;
}

.results-section__empty {
  font-size: 14px;
  color: #888;
  font-style: italic;
  padding: 24px 0;
}

/* =========================================================
   COMPARE CTA — sticky knop na tabel
   ========================================================= */
.compare-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}
.compare-cta__btn {
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 30px;
}

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.badge--available {
  background: rgba(var(--color-green), 0.1);
  color: rgb(var(--color-green));
}
.badge--unavailable {
  background: rgba(var(--color-red), 0.1);
  color: rgb(var(--color-red));
}
.badge--website {
  background: rgba(var(--color-blue-primary), 0.1);
  color: rgb(var(--color-blue-primary));
}

/* =========================================================
   RESPONSIVE — Mobile (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Results outer wrapper */
  .results-outer {
    padding: 72px 16px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Hero */
  .hero-results {
    padding: 16px 20px;
    border-radius: 16px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .hero-results__left {
    gap: 10px;
  }
  .hero-results__logo {
    height: 32px;
  }
  .hero-results__title {
    font-size: 20px;
  }
  .hero-results__subtitle {
    font-size: 13px;
  }
  .hero-results__image {
    display: none;
  }

  /* Summary card */
  .card--summary {
    padding: 16px;
  }
  .summary {
    flex-direction: column;
    gap: 12px;
  }
  .summary__details {
    gap: 4px 16px;
  }
  .summary__item {
    font-size: 13px;
  }

  /* Results sections */
  .results-section {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .results-section__title {
    font-size: 18px;
    line-height: 1.3;
  }
  .results-section__subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }

  /* Deductible dropdown — position inline on mobile */
  .results-section__deductible {
    position: static;
    margin-bottom: 16px;
  }

  /* Filters */
  .filters {
    gap: 16px;
    margin-bottom: 20px !important;
  }
  .filters__chips {
    gap: 6px;
  }
  .filter-chip {
    font-size: 12px;
    padding: 6px 10px;
    gap: 4px;
  }
  .info-tooltip {
    font-size: 11px;
  }

  /* Table — horizontal scroll with card-like cells */
  .table-container {
    margin: 0 -16px;
  }
  table td,
  table th {
    padding: 10px 8px;
    font-size: 13px;
  }
  table thead th {
    font-size: 13px;
    white-space: nowrap;
  }
  .cell-insurer__logo {
    width: 40px;
    height: 28px;
  }
  .cell-insurer__name {
    font-size: 14px;
  }
  .cell-insurer {
    gap: 8px;
  }
  .cell-price {
    font-size: 14px;
  }
  .cell-price--website {
    font-size: 12px;
  }

  /* Detail panel */
  .detail-panel {
    padding: 16px;
  }
  .detail-panel__description {
    font-size: 14px;
  }
  .detail-panel__title {
    font-size: 14px;
  }

  /* Compare CTA */
  .compare-cta {
    justify-content: center;
  }
}
