/* ============================================
   Modern Provider Cards Styling
   Dedicated CSS for aanbieder vergelijkingskaarten
   ============================================ */

/* Grid Layout */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hide rating and features on mobile */
@media screen and (max-width: 768px) {

  .provider-name,
  .provider-rating,
  .provider-features {
    display: none !important;
  }
}

/* Provider Card Base Styling */
.provider-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

/* USP Badge */
.provider-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  z-index: 2;
}

.badge-icon {
  font-size: 1rem;
  line-height: 1;
}

.badge-text {
  white-space: nowrap;
}

/* Provider Logo */
.provider-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 0.5rem; */
}

.provider-logo img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: brightness(0.95);
}

/* Provider Name */
.provider-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

/* Rating Section */
.provider-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* padding: 0.5rem 0; */
  border-bottom: 1px solid #f3f4f6;
}

.stars-img {
  height: 18px;
  width: auto;
}

.rating-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
}

/* Features List */
.provider-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}

.feature-icon {
  width: 16px;
  height: 16px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Call-to-Action Button */
.provider-cta {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  margin-top: auto;
}

.provider-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.provider-cta:active {
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile (0-768px) */
@media screen and (max-width: 768px) {
  .providers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .provider-card {
    padding: 1.25rem;
  }

  .provider-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }

  .provider-name {
    font-size: 1.25rem;
  }

  .provider-logo {
    height: 70px;
  }

  .provider-logo img {
    max-width: 120px;
    max-height: 60px;
  }
}

/* Tablet (769px-1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Desktop (1025px+) - Always 4 columns */
@media screen and (min-width: 1025px) {
  .providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Desktop (1400px+) - Always 5 columns */
@media screen and (min-width: 1350px) {
  .providers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================
   Accessibility & Print Styles
   ============================================ */

/* Focus states voor toetsenbord navigatie */
.provider-card:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.provider-cta:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .provider-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .provider-badge {
    background: #3b82f6;
  }

  .provider-cta {
    background: #3b82f6;
  }
}

/* ============================================
   Dark Mode Support (optioneel)
   ============================================ */

@media (prefers-color-scheme: dark) {
  .provider-card {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .provider-name {
    color: #f9fafb;
  }

  .rating-text {
    color: #d1d5db;
  }

  .feature-item {
    color: #d1d5db;
  }

  .provider-rating {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.cottage-card {
  background: #fdfbf7;
  /* Warme, gebroken wit */
  border: 1px solid #e2d9d0;
  border-top: 4px solid #5d7d5d;
  /* Groen dakrandje */
  border-bottom: 4px solid #8b5a2b;
  /* Houten fundering */
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 6px rgba(139, 90, 43, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cottage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(139, 90, 43, 0.15);
  border-top-color: #4a664a;
}

.cottage-badge {
  background: #8b5a2b;
  /* Houtkleur */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  white-space: nowrap;
}

.cottage-btn {
  background-color: #5d7d5d;
  /* Bosgroen */
  color: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
  margin-top: auto;
  /* Duwt knop naar beneden */
  border: 1px solid #4a664a;
}

.cottage-btn:hover {
  background-color: #4a664a;
  text-decoration: none;
}

.provider-features-compact {
  font-size: 0.8rem;
  color: #666;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.feat-tag {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 2px 6px;
  border-radius: 4px;
}