@import "theme.css";

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Alleen zichtbaar bij toetsenbordfocus (Tab) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.875rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-text { font-family: var(--font-display); }
.logo-accent { color: var(--accent); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 0.875rem;
}

.header-search {
  flex: 1;
  max-width: 34rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .header-search { display: flex; }
}

.search-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
  flex-shrink: 0;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem;
}

.search-input-wrap--place {
  flex: 0 0 7rem;
}

.search-input-wrap svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
}

.header-search-btn {
  flex-shrink: 0;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

.nav-link-btn {
  display: none;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

@media (min-width: 1024px) {
  .nav-link-btn { display: inline-flex; }
}

.nav-link-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.nav-link-btn.is-open svg {
  transform: rotate(180deg);
}

.nav-link-btn.is-open {
  color: var(--foreground);
  background: var(--muted);
}

.rubrieken-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}

.rubrieken-panel.is-open {
  display: block;
}

.rubrieken-panel-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 1.5rem 0;
}

.rubrieken-list {
  margin: 0;
  padding: 0 0.75rem 0 0;
  border-right: 1px solid var(--border);
  list-style: none;
}

.rubrieken-list-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: color-mix(in srgb, var(--foreground) 85%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rubrieken-list-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.rubrieken-list-item:hover,
.rubrieken-list-item.is-active {
  background: var(--muted);
  color: var(--foreground);
}

.rubrieken-list-item.is-active {
  font-weight: 800;
}

.rubrieken-list-item.is-active svg {
  color: var(--primary);
}

.rubrieken-detail {
  position: relative;
  min-height: 12rem;
  padding-left: 1.5rem;
}

.rubrieken-detail-panel {
  display: none;
}

.rubrieken-detail-panel.is-active {
  display: block;
}

.rubrieken-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rubrieken-detail-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.rubrieken-detail-header p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.rubrieken-detail-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.rubrieken-detail-all:hover {
  text-decoration: underline;
}

.rubrieken-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1280px) {
  .rubrieken-subgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rubrieken-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 85%, transparent);
  transition: background 0.15s, color 0.15s;
}

.rubrieken-sub-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.rubrieken-sub-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.rubrieken-empty {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav-inner {
  padding: 1rem 0 1.25rem;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mobile-search > svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
}

.mobile-search .btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 9999px;
}

.mobile-search .btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.mobile-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-label {
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mobile-rubrieken-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  overflow: hidden;
}

.mobile-rubrieken-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
}

.mobile-rubrieken-list li:last-child a {
  border-bottom: none;
}

.mobile-rubrieken-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 1023px) {
  .rubrieken-panel { display: none !important; }
  .nav-link-btn { display: none !important; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover { opacity: 0.9; }

.btn-dark {
  background: var(--foreground);
  color: var(--background);
}

.btn-dark:hover { opacity: 0.9; }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover { background: var(--muted); }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  font-weight: 600;
}

.btn-ghost:hover { background: var(--muted); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover { opacity: 0.9; }

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  border-radius: 9999px;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg { width: 1.25rem; height: 1.25rem; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero-badge svg { width: 0.875rem; height: 0.875rem; color: var(--accent); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: 1.625;
  margin-bottom: 1.75rem;
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-search {
    flex-direction: row;
    align-items: center;
  }
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xl);
}

.hero-search-field--place {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .hero-search-field--place { width: 12rem; }
}

.hero-search-field svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.hero-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
}

.hero-search-divider {
  display: none;
  width: 1px;
  height: 2rem;
  background: var(--border);
}

@media (min-width: 768px) {
  .hero-search-divider { display: block; }
}

.hero-search .btn {
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.trust-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  fill: none;
}

.trust-item .listing-rating svg,
.hero-card-rating svg {
  fill: var(--accent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  /* ruimte voor overlays die buiten de foto steken */
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: -0.75rem -1rem -0.75rem -1.25rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  background: var(--muted);
}

.hero-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: -0.75rem;
  right: auto;
  max-width: min(18rem, calc(100% - 1.5rem));
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--primary) 95%, transparent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lift);
  animation: rise-in 0.7s ease both;
}

@media (min-width: 768px) {
  .hero-card {
    left: -1.5rem;
    max-width: 18rem;
  }
}

.hero-card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  margin-bottom: 0.375rem;
}

.hero-card-quote {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.hero-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-card-rating svg { width: 0.875rem; height: 0.875rem; }

.hero-stat {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: -0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--foreground);
  color: var(--background);
  box-shadow: var(--shadow-lift);
  text-align: center;
  animation: rise-in 0.7s 0.15s ease both;
}

@media (min-width: 768px) {
  .hero-stat { right: -1rem; }
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.6875rem;
  opacity: 0.7;
  font-weight: 600;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-top: 0.375rem;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

/* ── Categories ── */
.categories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-2xl);
  color: #fff;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.category-card:hover .category-icon {
  transform: scale(1.04);
}

.category-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  color: #fff;
}

.category-card-title h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.125rem;
}

.category-card .cat-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.category-tag {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  transition: background 0.15s, color 0.15s;
}

.category-tag:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.category-more {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

.category-more:hover { text-decoration: underline; }

/* ── Listings ── */
.listings-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(4, 1fr); }
}

.listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.listing-image {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.listing-card:hover .listing-image img { transform: scale(1.03); }

.listing-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.listing-badge svg { width: 0.75rem; height: 0.75rem; color: var(--accent); }

.listing-price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground) 85%, transparent);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
}

.listing-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listing-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.listing-cat-pill {
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--muted);
  font-weight: 600;
}

.listing-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-location svg {
  width: 0.75rem;
  height: 0.75rem;
}

.listing-title {
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
}

.listing-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.listing-provider {
  font-size: 0.8125rem;
  font-weight: 700;
}

.listing-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.listing-rating svg { width: 0.875rem; height: 0.875rem; fill: var(--accent); color: var(--accent); }

.listing-reviews {
  color: var(--muted-foreground);
  font-weight: 600;
}

.listing-card .listing-price { display: none; }

/* ── How it works ── */
.how-section {
  padding: 2rem 0 4rem;
}

.how-box {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .how-box {
    grid-template-columns: 1fr 1.2fr;
    padding: 4rem;
    align-items: center;
  }
}

.how-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.how-intro p {
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  max-width: 24rem;
  line-height: 1.55;
}

.how-steps {
  display: grid;
  gap: 1rem;
  list-style: none;
}

@media (min-width: 640px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

.how-step {
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--primary-foreground) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 10%, transparent);
}

.how-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.how-step strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.how-step p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  line-height: 1.5;
}

/* ── Steps (legacy) ── */
.steps-grid { display: none; }

/* ── CTA ── */
.cta-section {
  padding: 1rem 0 4rem;
}

.cta-box {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 3.5rem;
  }
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.cta-box > div > p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-features {
  display: grid;
  gap: 0.75rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
}

.cta-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-top: 0.75rem;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.875rem;
}

.footer-col ul { display: grid; gap: 0.5rem; }

.footer-col a {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--foreground); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a:hover { color: var(--foreground); }

/* ── Misc homepage ── */
.section-muted {
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}

.listing-image--placeholder {
  display: grid;
  place-items: center;
}

.listing-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.55;
}

/* ── Account / dashboard ── */
.account-layout {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 960px) {
  .account-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.account-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 1rem;
}

.account-user-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.account-user-card strong {
  display: block;
  font-size: 0.9375rem;
}

.account-user-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  word-break: break-all;
}

.account-nav {
  display: grid;
  gap: 0.25rem;
}

.account-nav-link {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.account-nav-link:hover,
.account-nav-link.is-active {
  background: var(--muted);
  color: var(--foreground);
}

.account-nav-logout {
  margin-top: 0.5rem;
  color: color-mix(in srgb, var(--destructive, #c0392b) 80%, var(--foreground));
}

.account-content {
  min-width: 0;
}

.account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.account-header p,
.muted-text,
.auth-lead {
  color: var(--muted-foreground);
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.stat-card strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.action-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .action-grid { grid-template-columns: repeat(3, 1fr); }
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.action-card:hover {
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
}

.action-card strong { font-size: 0.9375rem; }
.action-card span { font-size: 0.8125rem; color: var(--muted-foreground); }

.action-card-accent {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.action-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.activity-section { margin-top: 0.5rem; }

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.activity-header h2,
.account-subtitle {
  font-size: 1.125rem;
  font-weight: 800;
}

.activity-list {
  display: grid;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.activity-item strong {
  display: block;
  font-size: 0.875rem;
}

.activity-item span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.activity-item time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.data-table tr:last-child td { border-bottom: none; }

.table-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--muted);
}

.status-active { background: color-mix(in srgb, var(--accent) 15%, var(--muted)); color: var(--accent); }
.status-paused { background: color-mix(in srgb, #f59e0b 15%, var(--muted)); color: #b45309; }
.status-inactive,
.status-expired,
.status-draft { color: var(--muted-foreground); }

.detail-list {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.detail-list div {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.detail-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.detail-list dd {
  font-size: 0.9375rem;
  font-weight: 600;
}

.auth-section { padding-top: 3rem; padding-bottom: 4rem; }

.auth-card-wrap {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 24rem);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.auth-form label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.auth-error {
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, #c0392b 10%, var(--card));
  color: #a93226;
  font-size: 0.875rem;
}

.auth-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ── Browse / detail pages ── */
.page-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 25%, transparent);
}

.page-hero--compact { padding-bottom: 1.25rem; }

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.page-hero-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.category-icon--lg {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}

.category-icon--lg .category-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.breadcrumbs a:hover { color: var(--foreground); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}

.filter-pill-count {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.listing-detail { padding-top: 2rem; }

.listing-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .listing-detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.listing-detail-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--muted);
}

.listing-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail-media--placeholder {
  display: grid;
  place-items: center;
}

.listing-detail-content {
  margin-top: 1.5rem;
}

.listing-detail-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.listing-price--lg {
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.listing-detail-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.listing-body-html {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--foreground) 92%, transparent);
}

.listing-body-html p { margin-bottom: 0.875rem; }
.listing-body-html ul,
.listing-body-html ol { margin: 0 0 0.875rem 1.25rem; list-style: disc; }
.listing-body-html a { color: var(--primary); text-decoration: underline; }

.listing-reviews {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.listing-reviews h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.review-list {
  display: grid;
  gap: 0.875rem;
}

.review-card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.review-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-card-header strong { font-size: 0.875rem; }
.review-card-header span { font-size: 0.8125rem; color: var(--muted-foreground); }
.review-card p { font-size: 0.875rem; line-height: 1.55; }
.review-card time {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.provider-card,
.listing-stats-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.listing-stats-card {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.provider-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.provider-card-header strong {
  display: block;
  font-size: 1rem;
}

.provider-card-header span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.provider-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.provider-badge svg { width: 1rem; height: 1rem; }

.provider-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.provider-rating svg { width: 1rem; height: 1rem; fill: var(--accent); color: var(--accent); }
.provider-rating span { color: var(--muted-foreground); font-weight: 600; }

.provider-details {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.provider-details dt {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: 0.125rem;
}

.provider-details dd {
  font-size: 0.875rem;
  font-weight: 600;
}

.provider-details a { color: var(--primary); }

.btn-block {
  width: 100%;
}

/* ── Browse / category page ── */
.browse-header {
  padding: 2rem 0 1rem;
}

.browse-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.browse-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.browse-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
}

.view-toggle-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted-foreground);
}

.view-toggle-btn svg { width: 1rem; height: 1rem; }

.view-toggle-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.filter-pill.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.filter-pill.is-active .filter-pill-count {
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
}

.filter-pill--clear {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
}

.browse-section { padding-top: 1.5rem; }

.browse-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .browse-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
}

.browse-sidebar { display: none; }

@media (min-width: 1024px) {
  .browse-sidebar { display: block; }
}

.browse-sidebar-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.browse-sidebar-card h3 {
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.browse-sidebar-list {
  display: grid;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.browse-sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 85%, transparent);
}

.browse-sidebar-list a:hover,
.browse-sidebar-list a.is-active {
  background: var(--muted);
  color: var(--foreground);
}

.browse-sidebar-list a.is-active { font-weight: 700; }

.browse-sidebar-list a span:last-child {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.listings-grid--browse {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .listings-grid--browse { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .listings-grid--browse { grid-template-columns: repeat(3, 1fr); }
}

.listings-list {
  display: grid;
  gap: 0.75rem;
}

.listing-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  transition: box-shadow 0.2s;
}

.listing-row:hover { box-shadow: var(--shadow-card); }

@media (min-width: 768px) {
  .listing-row {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
  }
}

.listing-row-image {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--muted);
}

.listing-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-row-body { min-width: 0; }

.listing-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .listing-row-price { align-items: flex-end; text-align: right; }
}

.listing-row-price strong {
  font-size: 0.9375rem;
  color: var(--accent);
}

.listing-badge--static {
  position: static;
  background: color-mix(in srgb, var(--accent) 12%, var(--muted));
  color: var(--accent);
}

.page-hero h1,
.listing-detail-content h1 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.site-footer {
  margin-top: 2rem;
}
