/* ============================================================
   renieuw.nl Theme v3 — Modern Marketplace Polish
   ============================================================ */

:root {
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;

  --mp-orange: #E85D4C;
  --mp-orange-dark: #D14A3A;
  --mp-orange-light: #FFF4F2;
  --mp-blue: #1A7A5E;
  --mp-blue-dark: #0F4D3A;
  --mp-blue-light: #E8F5EF;
  --mp-navy: #0C3D2E;
  --mp-navy-light: #2D9B78;

  --mp-text: #1A2E28;
  --mp-text-light: #3D5249;
  --mp-text-muted: #5A7268;
  --mp-border: #D4E4DC;
  --mp-border-light: #E8F0EC;
  --mp-bg: #EFF5F2;
  --mp-white: #ffffff;

  --mp-cream: #F7FAF8;
  --mp-warm-gradient: linear-gradient(145deg, #F0F9F5 0%, #E4F2EB 45%, #D8EBE3 100%);
  --mp-hero-gradient: linear-gradient(135deg, #0C3D2E 0%, #1A7A5E 42%, #2D9B78 100%);
  --mp-accent-gradient: linear-gradient(135deg, #E85D4C 0%, #F4A261 100%);
  --mp-glass: rgba(255, 255, 255, 0.72);
  --mp-glass-border: rgba(255, 255, 255, 0.35);

  --mp-shadow-xs: 0 1px 2px rgba(12, 61, 46, 0.05);
  --mp-shadow: 0 2px 12px rgba(12, 61, 46, 0.07), 0 1px 3px rgba(12, 61, 46, 0.04);
  --mp-shadow-md: 0 8px 24px rgba(12, 61, 46, 0.1), 0 2px 6px rgba(12, 61, 46, 0.05);
  --mp-shadow-hover: 0 16px 40px rgba(12, 61, 46, 0.14), 0 4px 12px rgba(12, 61, 46, 0.08);
  --mp-shadow-lg: 0 24px 48px rgba(12, 61, 46, 0.16);
  --mp-focus-ring: 0 0 0 3px rgba(26, 122, 94, 0.28);

  --mp-radius-sm: 8px;
  --mp-radius: 12px;
  --mp-radius-lg: 16px;
  --mp-radius-xl: 24px;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 155, 120, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 93, 76, 0.06), transparent),
    var(--mp-bg);
  color: var(--mp-text);
}

h1, h2, h3, h4, .section-title, .logo-text {
  font-family: var(--font-display);
}

/* ── Header ── */
.header {
  background: var(--mp-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--mp-glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.logo-icon {
  background: var(--mp-hero-gradient);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(26, 122, 94, 0.4);
}

.logo-text {
  background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav a:hover {
  background: var(--mp-blue-light);
}

.btn-plaats-ad {
  background: var(--mp-accent-gradient) !important;
  box-shadow: 0 4px 14px rgba(232, 93, 76, 0.4) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.btn-plaats-ad:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(232, 93, 76, 0.45) !important;
}

/* ── Search (homepage hero integration) ── */
body[data-page="home"] .search-section {
  background: var(--mp-hero-gradient);
  padding: 28px 16px 32px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

body[data-page="home"] .search-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 162, 97, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

body[data-page="home"] .search-container {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .search-bar {
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--mp-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body[data-page="home"] .search-input-wrap input {
  color: var(--mp-text);
  font-weight: 500;
}

body[data-page="home"] .search-input-wrap input::placeholder {
  color: var(--mp-text-muted);
}

body[data-page="home"] .search-btn {
  border-radius: 0 var(--mp-radius-xl) var(--mp-radius-xl) 0;
  padding: 0 32px;
  font-weight: 700;
}

body[data-page="home"] .search-filters {
  margin-top: 16px;
}

body[data-page="home"] .search-filters .category-picker-trigger,
body[data-page="home"] .filter-postcode,
body[data-page="home"] .filter-select {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--mp-shadow-xs);
}

body[data-page="home"] .search-filters .category-picker-trigger.has-value {
  border-color: rgba(255, 255, 255, 0.8);
}

/* ── Homepage hero promo ── */
.home-promo {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 8px;
}

.home-promo-inner {
  display: grid;
  gap: 24px;
  padding: 28px 32px;
  background: var(--mp-white);
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-md);
  border: 1px solid var(--mp-border-light);
  position: relative;
  overflow: hidden;
}

.home-promo-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mp-accent-gradient);
}

@media (min-width: 768px) {
  .home-promo-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 36px 40px;
  }
}

.home-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--mp-blue-light);
  color: var(--mp-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--mp-radius-full);
  margin-bottom: 14px;
}

.home-promo h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--mp-navy);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--mp-blue) 0%, var(--mp-navy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.home-promo-lead {
  font-size: 1.0625rem;
  color: var(--mp-text-light);
  line-height: 1.6;
  max-width: 480px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-stat {
  text-align: center;
  padding: 20px 12px;
  background: linear-gradient(180deg, var(--mp-cream) 0%, var(--mp-white) 100%);
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-light);
  transition: transform var(--mp-duration) var(--mp-ease), box-shadow var(--mp-duration) var(--mp-ease);
}

.home-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow);
}

.home-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--mp-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.home-stat span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.home-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-text-light);
}

.home-trust-item span:first-child {
  font-size: 1.125rem;
}

/* ── Category bar ── */
.category-bar {
  background: transparent;
  border-bottom: none;
  margin-top: 8px;
}

.category-bar-inner {
  padding: 8px 16px 16px;
}

.category-chip {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  box-shadow: var(--mp-shadow-xs);
  font-weight: 600;
  padding: 10px 20px;
}

.category-chip:hover {
  background: var(--mp-blue-light);
  border-color: var(--mp-blue);
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

/* ── Tabs (pill style) ── */
body[data-page="home"] .tabs {
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-full);
  padding: 5px;
  margin: 24px auto 20px;
  max-width: fit-content;
  box-shadow: var(--mp-shadow-xs);
  border-bottom: none;
}

body[data-page="home"] .tab {
  border-radius: var(--mp-radius-full);
  margin-bottom: 0;
  padding: 10px 28px;
  border-bottom: none;
}

body[data-page="home"] .tab::after {
  display: none;
}

body[data-page="home"] .tab.active {
  background: var(--mp-hero-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 122, 94, 0.35);
}

body[data-page="home"] .tab:not(.active):hover {
  background: var(--mp-blue-light);
  color: var(--mp-blue-dark);
}

/* ── Listing cards ── */
.listing-card {
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
}

.listing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mp-hero-gradient);
  opacity: 0;
  transition: opacity var(--mp-duration) var(--mp-ease);
  z-index: 1;
}

.listing-card:hover::before {
  opacity: 1;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mp-shadow-hover);
  border-color: rgba(26, 122, 94, 0.25);
}

.listing-image-wrap {
  background: linear-gradient(145deg, #E8F0EC 0%, #D4E4DC 100%);
}

.listing-info {
  padding: 14px 16px 16px;
}

.listing-price {
  font-size: 1.125rem;
  color: var(--mp-blue-dark);
  font-weight: 800;
}

.listing-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ── Section titles ── */
.section-title {
  font-size: 1.625rem;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--mp-accent-gradient);
  border-radius: 2px;
}

.discover-section {
  margin-top: 56px;
  padding: 40px 32px;
  background: var(--mp-white);
  border-radius: var(--mp-radius-xl);
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow);
}

.discover-group-title {
  font-size: 1.125rem;
  color: var(--mp-navy);
  margin-bottom: 12px;
}

.discover-link {
  border-radius: var(--mp-radius);
  padding: 12px 16px;
  transition: all var(--mp-duration) var(--mp-ease);
}

.discover-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

.discover-link-all {
  background: var(--mp-hero-gradient);
  color: white !important;
  border-color: transparent !important;
}

.discover-link-all:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* ── Category hero ── */
.category-hero {
  background: var(--mp-hero-gradient);
  padding: 48px 32px;
  margin: -16px -16px 32px;
  border-radius: 0 0 var(--mp-radius-xl) var(--mp-radius-xl);
  border-bottom: none;
  color: white;
  text-align: center;
}

.category-hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  width: 400px;
  height: 400px;
  top: -30%;
  right: -5%;
}

.category-hero h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.category-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
}

.category-hero .category-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.category-breadcrumb {
  color: rgba(255, 255, 255, 0.9) !important;
}

.category-breadcrumb a {
  color: white !important;
}

/* ── Subcategories ── */
.subcategory-card {
  border-radius: var(--mp-radius);
  padding: 16px 18px;
  font-weight: 600;
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  transition: all var(--mp-duration) var(--mp-ease);
}

.subcategory-card:hover {
  background: var(--mp-blue-light);
  border-color: var(--mp-blue);
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
  color: var(--mp-blue-dark);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--mp-accent-gradient);
  border-radius: var(--mp-radius);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(232, 93, 76, 0.35);
  transition: all var(--mp-duration) var(--mp-ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 93, 76, 0.42);
}

.btn-secondary {
  border-radius: var(--mp-radius);
  border-width: 2px;
  font-weight: 700;
}

/* ── Forms ── */
.form-card {
  border-radius: var(--mp-radius-xl);
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow-lg);
  background: var(--mp-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mp-blue);
  box-shadow: var(--mp-focus-ring);
}

.category-picker-trigger {
  border-radius: var(--mp-radius);
  min-height: 44px;
}

.category-picker-trigger.has-value {
  border-color: var(--mp-blue);
  background: var(--mp-blue-light);
}

/* ── Category picker modal ── */
.cat-picker-panel {
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-lg);
  border: 1px solid var(--mp-border-light);
  overflow: hidden;
}

.cat-picker-header {
  background: var(--mp-hero-gradient);
  color: white;
  border-bottom: none;
}

.cat-picker-header h2 {
  color: white;
  font-family: var(--font-display);
}

.cat-picker-close {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.cat-picker-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cat-picker-l1-item.active {
  background: var(--mp-blue-light);
  border-left: 3px solid var(--mp-blue);
  color: var(--mp-blue-dark);
}

.cat-picker-l2-item:hover {
  background: var(--mp-blue-light);
  border-color: var(--mp-blue);
}

.cat-picker-l2-all {
  background: linear-gradient(135deg, var(--mp-cream) 0%, var(--mp-blue-light) 100%);
  border: 1px dashed var(--mp-blue);
}

/* ── Footer ── */
.footer {
  background: linear-gradient(165deg, #0A3326 0%, #061F18 50%, #041510 100%);
  margin-top: 72px;
  padding: 64px 16px 36px;
}

.footer::before {
  height: 5px;
  background: var(--mp-accent-gradient);
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(45, 155, 120, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ── Detail page ── */
.detail-card {
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-md);
}

.detail-price {
  font-family: var(--font-display);
  color: var(--mp-blue-dark);
}

.detail-gallery {
  border-radius: var(--mp-radius-xl);
}

/* ── Auth ── */
body[data-page="login"],
body[data-page="register"] {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 122, 94, 0.12), transparent),
    linear-gradient(180deg, #F0F9F5 0%, #E4F2EB 100%);
}

.auth-page .form-card {
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-lg);
}

/* ── CTA band ── */
.home-cta {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 16px;
}

.home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background: var(--mp-hero-gradient);
  border-radius: var(--mp-radius-xl);
  color: white;
  box-shadow: var(--mp-shadow-lg);
  position: relative;
  overflow: hidden;
}

.home-cta-inner::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.25) 0%, transparent 70%);
}

.home-cta h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 8px;
  position: relative;
}

.home-cta p {
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  max-width: 420px;
}

.home-cta .btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  color: var(--mp-navy);
  font-weight: 800;
  border-radius: var(--mp-radius-full);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--mp-duration) var(--mp-ease);
  white-space: nowrap;
}

.home-cta .btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
  color: var(--mp-blue-dark);
}

/* ── Info pages ── */
.info-page {
  padding-top: 8px;
}

.info-content {
  max-width: 800px;
}

.info-lead {
  font-size: 1.1875rem;
  color: var(--mp-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.info-cards {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  padding: 28px;
  background: var(--mp-white);
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow);
  transition: transform var(--mp-duration) var(--mp-ease), box-shadow var(--mp-duration) var(--mp-ease);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mp-shadow-md);
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--mp-navy);
  margin-bottom: 10px;
}

.info-card p {
  color: var(--mp-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ── Browse page cards ── */
.cat-browse-card {
  display: block;
  padding: 14px 16px;
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius);
  color: var(--mp-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--mp-duration) var(--mp-ease);
}

/* ── Toast & badges ── */
.toast {
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-lg);
  font-weight: 600;
}

.badge {
  background: var(--mp-accent-gradient);
  font-weight: 700;
}

/* ── Empty state ── */
.empty-state {
  padding: 48px 24px;
  background: var(--mp-white);
  border-radius: var(--mp-radius-xl);
  border: 2px dashed var(--mp-border);
}

/* ── Pagination ── */
.pagination-btn {
  border-radius: var(--mp-radius);
  font-weight: 600;
}

.pagination-btn.active {
  background: var(--mp-hero-gradient);
  border-color: transparent;
}

.cat-browse-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow-md);
  background: var(--mp-blue-light);
  border-color: var(--mp-blue);
  text-decoration: none;
}

.recently-viewed-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--mp-border-light);
}

.seller-hero {
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-md);
  border: 1px solid var(--mp-border-light);
}

.messages-layout {
  border-radius: var(--mp-radius-xl);
  overflow: hidden;
  box-shadow: var(--mp-shadow-md);
  border: 1px solid var(--mp-border-light);
}

body:not([data-page="home"]) .search-section {
  background: linear-gradient(180deg, var(--mp-cream) 0%, var(--mp-bg) 100%);
}

body:not([data-page="home"]) .search-bar {
  box-shadow: var(--mp-shadow-md);
}

/* ========== SITE SETTINGS (announcement & maintenance) ========== */
.site-announcement {
  padding: 10px 20px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-announcement-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border-bottom: 1px solid #90caf9;
}

.site-announcement-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  border-bottom: 1px solid #ffcc80;
}

.site-announcement-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-bottom: 1px solid #a5d6a7;
}

.maintenance-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  background: var(--mp-bg);
}

.maintenance-card {
  max-width: 480px;
  text-align: center;
  background: white;
  padding: 48px 40px;
  border-radius: var(--mp-radius-xl, 16px);
  box-shadow: var(--mp-shadow-md);
  border: 1px solid var(--mp-border-light);
}

.maintenance-card h1 {
  font-family: var(--font-display);
  color: var(--mp-navy);
  margin-bottom: 16px;
}

.maintenance-card p {
  color: var(--mp-text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.maintenance-card .btn-sm {
  display: inline-block;
  text-decoration: none;
}

/* ========== LISTING DETAIL — views, live, map ========== */
.detail-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--mp-blue-light);
  border-radius: var(--mp-radius);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-blue-dark);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a047;
  box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.5);
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(67, 160, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0); }
}

.postcode-city-preview {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--mp-text-light);
  line-height: 1.45;
}

.postcode-city-preview.is-loading {
  color: var(--mp-text-muted);
  font-style: italic;
}

.postcode-city-preview.is-valid {
  color: var(--mp-blue-dark);
  font-weight: 600;
}

.postcode-city-preview.is-error {
  color: #c62828;
}

.listing-map-card {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 122, 94, 0.12);
  box-shadow: 0 8px 32px rgba(15, 45, 36, 0.06);
}

.listing-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  flex-wrap: wrap;
}

.listing-map-head-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.listing-map-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8f5ef 0%, #f4fbf7 100%);
  border: 1px solid rgba(26, 122, 94, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.listing-map-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--mp-blue-dark, #1A7A5E);
}

.listing-map-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--mp-navy);
  margin: 0 0 4px;
}

.listing-map-meta {
  font-size: 0.9375rem;
  color: var(--mp-text-light);
  margin: 0;
  line-height: 1.45;
}

.listing-map-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 122, 94, 0.08);
  color: var(--mp-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.listing-map-frame {
  position: relative;
  margin: 0 22px 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 45, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.listing-map {
  height: 320px;
  background: linear-gradient(180deg, #eef4f1 0%, #e3ece7 100%);
}

.listing-map-float {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(15, 45, 36, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-navy);
}

.listing-map-float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mp-blue-dark, #1A7A5E);
  box-shadow: 0 0 0 4px rgba(26, 122, 94, 0.18);
  flex-shrink: 0;
}

.listing-map-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 220px;
  padding: 28px;
  text-align: center;
  color: var(--mp-text-muted);
  font-size: 0.875rem;
}

.listing-map-empty-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.55;
}

.listing-map-disclaimer {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  line-height: 1.5;
}

.listing-map-marker-wrap {
  background: transparent;
  border: none;
}

.listing-map-marker {
  position: relative;
  width: 32px;
  height: 32px;
}

.listing-map-marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(26, 122, 94, 0.18);
  animation: map-marker-pulse 2.4s ease-out infinite;
}

.listing-map-marker-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--mp-blue-dark, #1A7A5E);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 36, 0.28);
}

@keyframes map-marker-pulse {
  0% { transform: scale(0.72); opacity: 0.85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.listing-map-frame .leaflet-control-zoom {
  border: none;
  box-shadow: 0 8px 24px rgba(15, 45, 36, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px !important;
  margin-right: 14px !important;
}

.listing-map-frame .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: var(--mp-navy);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
  font-size: 18px;
}

.listing-map-frame .leaflet-control-zoom a:hover {
  background: #fff;
  color: var(--mp-blue-dark);
}

.listing-map-frame .leaflet-control-attribution {
  margin: 0 8px 8px 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  font-size: 10px;
  color: var(--mp-text-muted);
}

.listing-map-frame .leaflet-control-attribution a {
  color: var(--mp-text-light);
}


body[data-page="home"] .header-home {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body[data-page="home"] .header-home .header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
}

.nav-text-link {
  display: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mp-text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--mp-radius);
}

.nav-text-link:hover {
  background: var(--mp-blue-light);
  color: var(--mp-blue-dark);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-text-link { display: inline-flex; }
}

.home-hero {
  padding: 0 16px 32px;
  margin-top: -8px;
}

.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  padding: 40px 36px;
  background: var(--mp-hero-gradient);
  border-radius: var(--mp-radius-xl);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--mp-shadow-lg);
}

.home-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 162, 97, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 960px) {
  .home-hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 48px 52px;
  }
}

.home-hero-main,
.home-hero-aside {
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--mp-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.home-hero h1 em {
  font-style: italic;
  color: #FFD6A5;
}

.home-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  max-width: 520px;
  margin-bottom: 24px;
}

.home-hero-search {
  margin-bottom: 20px;
}

.home-search-row {
  display: flex;
  background: white;
  border-radius: var(--mp-radius-xl);
  overflow: hidden;
  box-shadow: var(--mp-shadow-lg);
}

.home-search-row input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--mp-text);
  min-width: 0;
}

.home-search-row input:focus {
  outline: none;
}

.home-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  background: var(--mp-accent-gradient);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.home-search-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.home-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.home-search-filters .category-picker-trigger,
.home-search-filters .filter-postcode,
.home-search-filters .filter-select {
  background: #ffffff;
  border: 1px solid rgba(12, 61, 46, 0.15);
  border-radius: var(--mp-radius);
  font-size: 0.875rem;
  color: var(--mp-text);
}

.home-search-filters .category-picker-trigger:not(.has-value) {
  color: var(--mp-text-muted);
}

.home-search-filters .filter-postcode::placeholder {
  color: var(--mp-text-muted);
  opacity: 1;
}

.home-search-filters .filter-postcode {
  flex: 0 1 120px;
  min-width: 100px;
  padding: 10px 14px;
}

.home-search-filters .category-picker-chevron {
  color: var(--mp-text-muted);
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.home-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.home-trust-item::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.6875rem;
}

.home-featured-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.home-featured-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--mp-radius-lg);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(8px);
}

.home-featured-cat:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.home-featured-cat-icon {
  font-size: 1.5rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-stat {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--mp-radius-lg);
  backdrop-filter: blur(8px);
}

.home-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 2px;
}

.home-stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.home-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 48px;
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .home-main {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.home-sidebar {
  position: sticky;
  top: 16px;
}

.home-sidebar-block {
  background: white;
  border-radius: var(--mp-radius-lg);
  padding: 20px;
  box-shadow: var(--mp-shadow);
  border: 1px solid var(--mp-border-light);
}

.home-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--mp-navy);
  margin-bottom: 14px;
}

.home-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.home-sidebar-link:hover {
  background: var(--mp-blue-light);
  color: var(--mp-blue-dark);
  text-decoration: none;
}

.home-sidebar-link-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
}

.home-sidebar-more {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mp-border-light);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-blue);
  text-decoration: none;
}

.home-listings-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.home-listings-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-advanced-search {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-blue);
  text-decoration: none;
}

.home-advanced-search:hover {
  color: var(--mp-blue-dark);
  text-decoration: underline;
}

.nav-staff-link.nav-staff-visible {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: var(--mp-radius);
  padding: 6px 10px;
  color: #e65100 !important;
  font-weight: 700;
}

.home-listings-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mp-navy);
  margin: 0;
}

.home-sort-pills {
  display: flex;
  gap: 8px;
  background: white;
  padding: 4px;
  border-radius: var(--mp-radius-full);
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow-xs);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-sort-pills::-webkit-scrollbar {
  display: none;
}

.sort-pill {
  padding: 8px 18px;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: var(--mp-radius-full);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-pill:hover {
  color: var(--mp-navy);
  background: var(--mp-cream);
}

.sort-pill.active {
  background: var(--mp-hero-gradient);
  color: white;
  box-shadow: var(--mp-shadow-xs);
}

body[data-page="home"] .discover-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--mp-border-light);
}

body[data-page="home"] .discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

body[data-page="home"] .discover-group {
  background: white;
  border-radius: var(--mp-radius-lg);
  padding: 20px;
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow-xs);
}

body[data-page="home"] .discover-group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mp-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mp-blue-light);
}

body[data-page="home"] .discover-subgrid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-page="home"] .discover-link {
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--mp-text-light);
  text-decoration: none;
}

body[data-page="home"] .discover-link:hover {
  color: var(--mp-blue);
}

body[data-page="home"] .discover-link-all {
  font-weight: 600;
  color: var(--mp-blue);
  margin-top: 8px;
}

/* ========== Leesbaarheid — inputs, placeholders, contrast ========== */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  color: var(--mp-text);
  background-color: var(--mp-white);
}

input::placeholder,
textarea::placeholder {
  color: var(--mp-text-muted);
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--mp-text);
  box-shadow: 0 0 0 1000px var(--mp-white) inset;
}

.filter-postcode,
.filter-select,
.admin-search,
.admin-section-search,
.search-filters-row input,
.search-filters-row select {
  color: var(--mp-text);
  background-color: var(--mp-white);
}

.cat-picker-search {
  color: var(--mp-text);
  background: var(--mp-white);
}

.cat-picker-search::placeholder {
  color: var(--mp-text-muted);
  opacity: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
  color: var(--mp-text);
}

/* Groene hero: formuliervelden altijd donkere tekst op wit */
.home-hero-inner input,
.home-hero-inner select,
.home-hero-inner textarea,
.home-hero-inner .category-picker-trigger {
  color: var(--mp-text);
}

.home-hero-inner .category-picker-trigger:not(.has-value) {
  color: var(--mp-text-muted);
}

/* Zoekbalk op groene achtergrond — witte tekst blijft */
.search-bar .search-input-wrap input {
  color: #ffffff;
  background: transparent;
}

.search-bar .search-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.home-search-row input {
  color: var(--mp-text);
  background: #ffffff;
}

.home-search-row input::placeholder {
  color: var(--mp-text-muted);
  opacity: 1;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.detail-meta-row span,
.listing-meta,
.spec-value {
  color: var(--mp-text-light);
}

.chat-input input {
  color: var(--mp-text);
  background: var(--mp-white);
}

.bid-form input {
  color: var(--mp-text);
  background: var(--mp-white);
}

/* ========== User presence (online / laatst gezien) ========== */
.user-presence,
.conv-presence,
.chat-presence,
.seller-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  margin-top: 2px;
}

.conv-presence {
  display: flex;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 2px 0 4px;
}

.chat-presence {
  display: flex;
  margin-top: 6px;
  font-size: 0.8125rem;
}

.seller-presence {
  display: flex;
  margin: 4px 0 2px;
}

.user-presence.is-online,
.conv-presence.is-online,
.chat-presence.is-online,
.seller-presence.is-online {
  color: #2e7d32;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9e9e9e;
  flex-shrink: 0;
}

.is-online .presence-dot {
  background: #43a047;
  box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.45);
  animation: live-pulse 2s infinite;
}

/* Promotion badges on listing cards */
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.promo-badge-dagtopper {
  background: linear-gradient(135deg, #ff6f00, #ff9800);
}

.promo-badge-topper {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
}

.promo-badge-spotlight {
  background: linear-gradient(135deg, #6a1b9a, #ab47bc);
}

.listing-card-promoted .listing-image-wrap {
  outline: 2px solid rgba(255, 152, 0, 0.45);
  outline-offset: -2px;
}

.my-listing-promo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.my-listing-promo .promo-badge {
  position: static;
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* Wallet */
.wallet-balance-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  color: #e65100;
  font-weight: 700;
  font-size: 0.85rem;
}

.wallet-header-card {
  background: linear-gradient(135deg, var(--mp-navy), #1a3a5c);
  color: #fff;
  border-radius: var(--mp-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--mp-shadow-lg);
}

.wallet-label {
  opacity: 0.85;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.wallet-balance-large {
  font-family: "DM Serif Display", serif;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.wallet-balance-large span {
  font-size: 3rem;
}

.wallet-section {
  margin-bottom: 32px;
}

.wallet-section-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: var(--mp-navy);
  margin-bottom: 12px;
}

.wallet-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.wallet-package-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--mp-shadow);
}

.wallet-package-card.is-popular {
  border-color: var(--mp-accent);
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.wallet-package-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mp-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.wallet-package-amount,
.wallet-package-credits {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--mp-navy);
  margin: 8px 0;
}

.wallet-package-amount span,
.wallet-package-credits span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.wallet-package-bonus {
  display: inline-block;
  color: #2e7d32;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.wallet-package-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.wallet-promo-list {
  display: grid;
  gap: 10px;
}

.wallet-promo-info {
  background: #fff;
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius);
  padding: 12px 16px;
  font-size: 0.92rem;
}

.wallet-promo-info span {
  color: var(--mp-accent-dark, #e65100);
  font-weight: 700;
}

.wallet-tx-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow);
  font-size: 0.9rem;
}

.wallet-tx-table th,
.wallet-tx-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--mp-border-light);
}

.wallet-tx-table th {
  background: #f8f9fb;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.wallet-tx-table .tx-plus {
  color: #2e7d32;
  font-weight: 700;
}

.wallet-tx-table .tx-minus {
  color: #c62828;
  font-weight: 700;
}

.btn-promote {
  background: linear-gradient(135deg, #ff6f00, #ff9800);
  color: #fff;
  border: none;
  border-radius: var(--mp-radius);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-promote:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
}

/* Promote modal */
.promote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.promote-modal[hidden] {
  display: none;
}

.promote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.promote-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--mp-radius-lg);
  padding: 28px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--mp-shadow-lg);
}

.promote-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--mp-text-muted);
}

.promote-listing-title {
  font-weight: 600;
  color: var(--mp-navy);
  margin-bottom: 12px;
}

.promote-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.promote-option-card {
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius);
  padding: 14px 16px;
}

.promote-option-card.is-active {
  border-color: rgba(26, 122, 94, 0.35);
  background: #f8fffb;
}

.promote-option-active {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mp-blue-dark);
}

.promote-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.promote-option-price {
  font-weight: 700;
  color: var(--mp-accent-dark, #e65100);
}

body.modal-open {
  overflow: hidden;
}

/* ── Mijn Renieuw dashboard nav ── */
[data-page="mijn"] .section-title {
  margin-bottom: 20px;
}

[data-page="mijn"] .profile-header {
  margin-bottom: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff 0%, var(--mp-cream) 100%);
  border: 1px solid var(--mp-border-light);
}

[data-page="mijn"] .profile-header-info p:first-of-type,
[data-page="mijn"] .profile-header-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-navy) !important;
  margin-bottom: 4px !important;
}

.profile-header-location {
  font-size: 0.9375rem;
  color: var(--mp-text-light);
  margin: 0 0 8px;
}

.profile-header-bio {
  font-size: 0.875rem;
  color: var(--mp-text);
  line-height: 1.5;
  margin: 0 0 10px;
  max-width: 52ch;
}

.profile-header-email {
  color: var(--mp-text-muted);
  margin-bottom: 8px;
}

.profile-header-links {
  margin: 0;
}

.profile-form-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mp-navy);
  margin: 0 0 8px;
}

.profile-form-intro {
  margin-bottom: 20px;
}

.profile-fieldset {
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius);
  padding: 16px 18px;
  margin: 0 0 20px;
  background: var(--mp-bg);
}

.profile-fieldset legend {
  font-weight: 700;
  color: var(--mp-navy);
  padding: 0 6px;
}

.label-optional {
  font-weight: 500;
  color: var(--mp-text-muted);
  font-size: 0.8125rem;
}

.location-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.location-field-head label {
  margin: 0;
}

.seller-hero-bio {
  margin: 12px 0 0;
  max-width: 56ch;
  line-height: 1.55;
  color: var(--mp-text);
}

.seller-hero-phone {
  margin: 8px 0 0;
  color: var(--mp-text-light);
  font-size: 0.9375rem;
}

[data-page="mijn"] .dashboard-nav {
  position: relative;
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-xl);
  padding: 10px;
  margin-bottom: 28px;
  box-shadow: var(--mp-shadow);
}

[data-page="mijn"] .dashboard-nav::before,
[data-page="mijn"] .dashboard-nav::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

[data-page="mijn"] .dashboard-nav::before {
  left: 10px;
  background: linear-gradient(90deg, var(--mp-white) 20%, transparent);
  border-radius: var(--mp-radius-lg) 0 0 var(--mp-radius-lg);
}

[data-page="mijn"] .dashboard-nav::after {
  right: 10px;
  background: linear-gradient(270deg, var(--mp-white) 20%, transparent);
  border-radius: 0 var(--mp-radius-lg) var(--mp-radius-lg) 0;
}

[data-page="mijn"] .dashboard-nav.is-scrollable::before,
[data-page="mijn"] .dashboard-nav.is-scrollable::after {
  opacity: 1;
}

[data-page="mijn"] .dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: none;
  margin-bottom: 0;
  padding: 2px 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

[data-page="mijn"] .dashboard-tabs::-webkit-scrollbar {
  display: none;
}

[data-page="mijn"] .dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--mp-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  margin-bottom: 0;
  transition:
    background 0.2s var(--mp-ease, ease),
    color 0.2s var(--mp-ease, ease),
    box-shadow 0.2s var(--mp-ease, ease),
    transform 0.15s var(--mp-ease, ease);
}

[data-page="mijn"] .dashboard-tab::after {
  display: none;
}

[data-page="mijn"] .dashboard-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-page="mijn"] .dashboard-tab:hover {
  color: var(--mp-navy);
  background: var(--mp-cream);
}

[data-page="mijn"] .dashboard-tab:hover .dashboard-tab-icon {
  opacity: 1;
}

[data-page="mijn"] .dashboard-tab:focus-visible {
  outline: none;
  box-shadow: var(--mp-focus-ring);
}

[data-page="mijn"] .dashboard-tab.active {
  color: var(--mp-blue-dark);
  background: var(--mp-blue-light);
  box-shadow:
    inset 0 0 0 1px rgba(26, 122, 94, 0.18),
    0 2px 8px rgba(26, 122, 94, 0.1);
}

[data-page="mijn"] .dashboard-tab.active .dashboard-tab-icon {
  opacity: 1;
  transform: scale(1.05);
}

[data-page="mijn"] .dashboard-tab-wallet.active {
  color: #bf360c;
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 152, 0, 0.28),
    0 2px 8px rgba(255, 152, 0, 0.12);
}

[data-page="mijn"] .dashboard-tab-sep {
  width: 1px;
  height: 24px;
  background: var(--mp-border);
  flex-shrink: 0;
  margin: 0 4px;
  opacity: 0.7;
}

[data-page="mijn"] .dashboard-panel.active {
  animation: dashboardPanelIn 0.28s var(--mp-ease, ease) both;
}

@keyframes dashboardPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  [data-page="mijn"] .dashboard-tab {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  [data-page="mijn"] .dashboard-tab-sep {
    display: none;
  }
}

@media (max-width: 560px) {
  [data-page="mijn"] .dashboard-nav {
    padding: 8px;
    border-radius: var(--mp-radius-lg);
  }

  [data-page="mijn"] .dashboard-tab {
    padding: 10px 12px;
    gap: 6px;
  }

  [data-page="mijn"] .dashboard-tab span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  [data-page="mijn"] .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* ── Plaats advertentie ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-page="place-ad"] .main,
[data-page="edit-ad"] .main {
  max-width: none;
  padding-bottom: 48px;
}

.place-ad-main {
  padding-top: 0;
}

.place-ad-hero {
  background: var(--mp-hero-gradient);
  color: #fff;
  padding: 40px 24px 48px;
  margin-bottom: 32px;
  border-radius: var(--mp-radius-xl);
  position: relative;
  overflow: hidden;
}

.place-ad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(232, 93, 76, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.place-ad-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.place-ad-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.place-ad-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}

.place-ad-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.place-ad-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.place-ad-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.place-ad-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
}

.place-ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.place-ad-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.place-ad-section {
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-xl);
  padding: 24px 28px;
  box-shadow: var(--mp-shadow);
}

.place-ad-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mp-border-light);
}

.place-ad-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mp-blue-light);
  color: var(--mp-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.place-ad-section-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.place-ad-section-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--mp-navy);
  margin-bottom: 4px;
}

.place-ad-section-head p {
  font-size: 0.875rem;
  color: var(--mp-text-muted);
  margin: 0;
  line-height: 1.45;
}

.place-ad-fields .form-group:last-child {
  margin-bottom: 0;
}

.price-type-pills,
.condition-chips,
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-type-pill,
.condition-chip,
.status-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--mp-border);
  background: var(--mp-cream);
  color: var(--mp-text-light);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.price-type-pill:hover,
.condition-chip:hover,
.status-chip:hover {
  border-color: var(--mp-blue);
  color: var(--mp-navy);
}

.price-type-pill.active,
.condition-chip.active,
.status-chip.active {
  background: var(--mp-blue-light);
  border-color: var(--mp-blue);
  color: var(--mp-blue-dark);
  box-shadow: inset 0 0 0 1px rgba(26, 122, 94, 0.12);
}

.status-chip[data-value="reserved"].active {
  background: #fff8e1;
  border-color: #ffb300;
  color: #e65100;
}

.status-chip[data-value="sold"].active {
  background: #fce4ec;
  border-color: #e57373;
  color: #c62828;
}

.allow-bids-group {
  margin-top: 4px;
}

.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-light);
  background: var(--mp-cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.toggle-option:hover {
  border-color: var(--mp-blue);
  background: var(--mp-blue-light);
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-option-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--mp-border);
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.toggle-option input:checked + .toggle-option-box {
  background: var(--mp-blue);
  border-color: var(--mp-blue);
}

.toggle-option input:checked + .toggle-option-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toggle-option input:focus-visible + .toggle-option-box {
  box-shadow: var(--mp-focus-ring);
}

.toggle-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-option-text strong {
  font-size: 0.9375rem;
  color: var(--mp-navy);
}

.toggle-option-text small {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
  line-height: 1.4;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-prefix .input-prefix {
  position: absolute;
  left: 14px;
  color: var(--mp-text-muted);
  font-weight: 700;
  pointer-events: none;
}

.input-with-prefix input {
  padding-left: 34px !important;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.textarea-meta .form-hint {
  margin: 0;
}

.char-count {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

[data-page="place-ad"] .form-group textarea,
[data-page="edit-ad"] .form-group textarea {
  min-height: 160px;
  line-height: 1.55;
}

[data-page="place-ad"] .category-picker-trigger,
[data-page="edit-ad"] .category-picker-trigger {
  min-height: 48px;
  font-size: 1rem;
  background: var(--mp-white);
}

[data-page="edit-ad"] .category-picker-trigger.has-value {
  font-weight: 600;
}

/* ── Category suggestions from title ── */
.category-suggestions {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--mp-radius-lg);
  background: linear-gradient(135deg, var(--mp-blue-light) 0%, #f8fffb 100%);
  border: 1px solid rgba(26, 122, 94, 0.2);
  animation: categorySuggestIn 0.25s ease both;
}

@keyframes categorySuggestIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-suggestions-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mp-blue-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-suggestions-label::before {
  content: "✨";
  font-size: 0.9rem;
}

.category-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-suggestion-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  background: var(--mp-white);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.category-suggestion-chip:hover {
  border-color: var(--mp-blue);
  box-shadow: var(--mp-shadow);
  transform: translateY(-1px);
}

.category-suggestion-chip.is-selected {
  border-color: var(--mp-blue);
  background: var(--mp-blue-light);
  box-shadow: inset 0 0 0 1px rgba(26, 122, 94, 0.15);
}

.category-suggestion-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.category-suggestion-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-suggestion-text strong {
  font-size: 0.875rem;
  color: var(--mp-navy);
  line-height: 1.3;
}

.category-suggestion-reason {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}

.category-suggestion-check {
  color: var(--mp-blue-dark);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

[data-page="place-ad"] .form-row,
[data-page="edit-ad"] .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  [data-page="place-ad"] .form-row,
  [data-page="edit-ad"] .form-row {
    grid-template-columns: 1fr;
  }
}

.photo-upload-zone {
  border: 2px dashed var(--mp-border);
  border-radius: var(--mp-radius-lg);
  background: linear-gradient(180deg, var(--mp-cream) 0%, #fff 100%);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.photo-upload-zone.is-dragover,
.photo-upload-zone:hover {
  border-color: var(--mp-blue);
  background: var(--mp-blue-light);
  box-shadow: inset 0 0 0 1px rgba(26, 122, 94, 0.1);
}

.photo-upload-zone.has-photos {
  padding-bottom: 12px;
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 24px;
  cursor: pointer;
  text-align: center;
  color: var(--mp-text-light);
}

.photo-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: var(--mp-shadow);
}

.photo-upload-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--mp-blue);
}

.photo-upload-label strong {
  font-size: 1rem;
  color: var(--mp-navy);
}

.photo-upload-hint {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--mp-radius);
  overflow: hidden;
  border: 1px solid var(--mp-border-light);
  box-shadow: var(--mp-shadow-xs);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-cover {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 61, 46, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-remove:hover {
  background: #c62828;
}

.place-ad-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-xl);
  padding: 20px 24px;
  box-shadow: var(--mp-shadow-md);
  position: sticky;
  bottom: 16px;
  z-index: 10;
}

.place-ad-submit-note {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.45;
}

.place-ad-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 220px;
  justify-content: center;
  padding: 14px 28px;
  margin: 0;
}

.place-ad-submit-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.place-ad-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.place-ad-tip-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-lg);
  padding: 20px;
  box-shadow: var(--mp-shadow);
}

.place-ad-tip-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mp-navy);
  margin-bottom: 12px;
}

.place-ad-tip-card p {
  font-size: 0.875rem;
  color: var(--mp-text-light);
  line-height: 1.55;
  margin-bottom: 10px;
}

.place-ad-tip-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.place-ad-tip-card li {
  font-size: 0.875rem;
  color: var(--mp-text-light);
  line-height: 1.45;
  padding-left: 14px;
  border-left: 3px solid var(--mp-blue-light);
}

.place-ad-tip-card-accent {
  background: linear-gradient(145deg, var(--mp-blue-light) 0%, #fff 100%);
  border-color: rgba(26, 122, 94, 0.2);
}

@media (max-width: 960px) {
  .place-ad-layout {
    grid-template-columns: 1fr;
  }

  .place-ad-aside {
    position: static;
    order: -1;
  }

  .place-ad-tip-card-accent {
    display: none;
  }
}

@media (max-width: 640px) {
  .place-ad-hero {
    padding: 28px 16px 36px;
    margin-bottom: 24px;
  }

  .place-ad-section {
    padding: 18px 16px;
  }

  .place-ad-section-head {
    flex-direction: column;
    gap: 10px;
  }

  .place-ad-submit-bar {
    flex-direction: column;
    align-items: stretch;
    position: static;
  }

  .place-ad-submit-btn {
    width: 100%;
  }

  .place-ad-submit-bar-edit {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Edit advertentie extras ── */
.place-ad-hero-edit .place-ad-lead {
  margin-bottom: 16px;
}

.edit-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.edit-hero-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.edit-hero-link:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.edit-hero-link-accent {
  background: rgba(255, 152, 0, 0.35);
}

.existing-photos-wrap {
  margin-bottom: 16px;
}

.existing-photo-grid {
  padding: 0;
  margin-bottom: 4px;
}

.existing-photos-label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--mp-navy);
}

.existing-photo-grid .photo-preview-item {
  pointer-events: none;
}

.place-ad-submit-bar-edit {
  align-items: flex-end;
}

.place-ad-submit-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.btn-delete-listing {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: #c62828;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-delete-listing:hover {
  color: #b71c1c;
}

#detail-promote {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: none;
}

/* ── Kenteken / voertuig ── */
.kenteken-lookup-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.kenteken-lookup-row input {
  flex: 1;
  font-family: "Plus Jakarta Sans", monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kenteken-lookup-row .btn-primary {
  width: auto;
  white-space: nowrap;
  margin: 0;
}

.vehicle-preview-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--mp-radius-lg);
  border: 1px solid rgba(26, 122, 94, 0.22);
  background: linear-gradient(145deg, #f8fffb 0%, #fff 100%);
  box-shadow: var(--mp-shadow);
}

.vehicle-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vehicle-preview-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mp-navy);
  margin: 4px 0;
}

.vehicle-preview-kenteken {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffc107;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 0 0 6px;
  border: 2px solid #1a1a1a;
}

.vehicle-valuation-card {
  padding: 14px 16px;
  border-radius: var(--mp-radius);
  background: var(--mp-blue-light);
  border: 1px solid rgba(26, 122, 94, 0.18);
  margin-bottom: 16px;
}

.vehicle-valuation-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mp-blue-dark);
  margin: 0 0 4px;
}

.vehicle-valuation-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--mp-navy);
  line-height: 1.1;
  margin-bottom: 4px;
}

.vehicle-valuation-range {
  font-size: 0.875rem;
  color: var(--mp-text-light);
  margin: 0 0 8px;
}

.vehicle-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.vehicle-spec-item {
  padding: 10px 12px;
  border-radius: var(--mp-radius);
  background: #fff;
  border: 1px solid var(--mp-border-light);
}

.vehicle-spec-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.vehicle-spec-item strong {
  font-size: 0.875rem;
  color: var(--mp-navy);
  line-height: 1.3;
}

.vehicle-specs-card {
  margin: 20px 0;
  padding: 20px 22px;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-light);
  background: #fff;
  box-shadow: var(--mp-shadow);
}

.vehicle-specs-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mp-navy);
  margin-bottom: 8px;
}

.vehicle-detail-intro {
  font-size: 0.9375rem;
  color: var(--mp-text-light);
  margin-bottom: 14px;
}

.vehicle-spec-grid-detail {
  margin-bottom: 10px;
}

.vehicle-rdw-disclaimer {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}

.vehicle-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.vehicle-highlight-card {
  padding: 14px 16px;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border-light);
  background: var(--mp-white);
}

.vehicle-highlight-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-text-muted);
  margin-bottom: 6px;
}

.vehicle-highlight-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mp-navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.vehicle-highlight-value small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mp-text-light);
}

.vehicle-highlight-desc,
.vehicle-highlight-range {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--mp-text-light);
  line-height: 1.45;
}

.vehicle-highlight-range {
  margin-top: 4px;
  color: var(--mp-text-muted);
}

.vehicle-badge-btw {
  border-color: rgba(26, 122, 94, 0.35);
  background: linear-gradient(145deg, #f0faf6 0%, #fff 100%);
}

.vehicle-badge-btw .vehicle-highlight-value {
  color: var(--mp-blue-dark);
}

.vehicle-badge-marge {
  border-color: rgba(100, 116, 139, 0.3);
  background: #fafbfc;
}

.vehicle-badge-roadtax {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(145deg, #f5f9ff 0%, #fff 100%);
}

.vehicle-badge-recall-ok {
  border-color: rgba(26, 122, 94, 0.3);
  background: linear-gradient(145deg, #f3fbf7 0%, #fff 100%);
}

.vehicle-badge-recall-open {
  border-color: rgba(198, 40, 40, 0.35);
  background: linear-gradient(145deg, #fff5f5 0%, #fff 100%);
}

.vehicle-badge-recall-open .vehicle-highlight-value {
  color: #b71c1c;
}

.vehicle-recalls-list {
  margin: 16px 0;
}

.vehicle-recalls-list h3 {
  font-size: 0.9375rem;
  margin: 0 0 10px;
  color: var(--mp-navy);
}

.vehicle-recall-item {
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--mp-white);
}

.vehicle-recall-item summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
}

.vehicle-recall-item summary::-webkit-details-marker {
  display: none;
}

.vehicle-recall-open {
  border-color: rgba(198, 40, 40, 0.25);
  background: #fffafa;
}

.vehicle-recall-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b71c1c;
  white-space: nowrap;
}

.vehicle-recall-meta {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
  margin: 8px 0 0;
}

.vehicle-recall-item p {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--mp-text);
}

.vehicle-badge-nap-ok {
  border-color: rgba(26, 122, 94, 0.35);
  background: linear-gradient(145deg, #edf9f3 0%, #fff 100%);
}

.vehicle-badge-nap-ok .vehicle-highlight-value {
  color: var(--mp-blue-dark);
}

.vehicle-badge-nap-warn {
  border-color: rgba(198, 40, 40, 0.35);
  background: linear-gradient(145deg, #fff5f5 0%, #fff 100%);
}

.vehicle-badge-nap-warn .vehicle-highlight-value {
  color: #b71c1c;
}

.vehicle-badge-nap-neutral {
  border-color: rgba(100, 116, 139, 0.28);
  background: #fafbfc;
}

.vehicle-badge-origin-nl {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(145deg, #f8fbff 0%, #fff 100%);
}

.vehicle-badge-origin-import {
  border-color: rgba(245, 124, 0, 0.35);
  background: linear-gradient(145deg, #fff8ef 0%, #fff 100%);
}

.vehicle-badge-origin-import .vehicle-highlight-value {
  color: #e65100;
}

.vehicle-badge-origin-export {
  border-color: rgba(106, 27, 154, 0.28);
  background: linear-gradient(145deg, #faf5ff 0%, #fff 100%);
}

.vehicle-badge-origin-export .vehicle-highlight-value {
  color: #6a1b9a;
}

.vehicle-towing-block {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border-light);
  background: var(--mp-bg);
}

.vehicle-towing-block h3 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  color: var(--mp-navy);
}

.vehicle-towing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.vehicle-towing-item {
  padding: 10px 12px;
  border-radius: var(--mp-radius);
  background: var(--mp-white);
  border: 1px solid var(--mp-border-light);
}

.vehicle-towing-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  margin-bottom: 4px;
}

.vehicle-towing-item strong {
  font-size: 0.9375rem;
  color: var(--mp-navy);
}

.detail-promo-wrap {
  margin: 8px 0 12px;
}

.detail-promo-wrap .promo-badge {
  position: static;
  display: inline-block;
}

.conv-item .conv-presence {
  color: var(--mp-text-muted);
}

.conv-item.active .conv-presence.is-online {
  color: #a5d6a7;
}

/* ── Listing status banners ── */
.listing-status-banner {
  padding: 14px 18px;
  border-radius: var(--mp-radius);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.listing-status-sold {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #8b2e2a;
}

.listing-status-reserved {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a5a00;
}

.listing-status-frozen {
  background: #e8eaf6;
  border: 1px solid #c5cae9;
  color: #283593;
}

/* ── Reviews & trust ── */
.review-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--mp-text-light);
  flex-wrap: wrap;
}

.review-summary strong {
  color: var(--mp-navy);
}

.review-summary-empty {
  color: var(--mp-text-muted);
  font-size: 0.8125rem;
}

.star {
  color: #d4e4dc;
  font-size: 0.9rem;
}

.star.filled {
  color: #f4a261;
}

#seller-review-line {
  margin: 4px 0 6px;
}

.seller-hero-reviews {
  margin: 6px 0 8px;
}

.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--mp-border-light);
}

.review-card:last-child {
  border-bottom: none;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card-date {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
}

.review-card-title {
  font-size: 0.9375rem;
  color: var(--mp-navy);
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.review-card-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mp-text);
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.review-card-listing {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
  margin: 0 0 6px;
}

.review-card-foot {
  font-size: 0.8125rem;
  color: var(--mp-text-muted);
}

.review-seller-reply {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--mp-blue-light);
  border-radius: var(--mp-radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.review-empty {
  color: var(--mp-text-muted);
  font-size: 0.9375rem;
}

.seller-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.seller-reviews-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mp-navy);
  margin: 0;
}

.seller-reviews-all-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.seller-reviews-section {
  margin-top: 24px;
}

.trust-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.trust-warning-high {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #8b2e2a;
}

.trust-warning-medium {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a5a00;
}

.trust-warning-info {
  background: var(--mp-blue-light);
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
}

.trust-tips {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--mp-text-light);
  line-height: 1.6;
}

.trust-tips li {
  margin-bottom: 6px;
}

.review-modal-content label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--mp-navy);
}

.review-modal-content input[type="text"],
.review-modal-content textarea {
  width: 100%;
}

.review-star-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-star-option {
  cursor: pointer;
}

.review-star-option input {
  position: absolute;
  opacity: 0;
}

.review-star-option span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  color: #f4a261;
  font-size: 0.875rem;
}

.review-star-option input:checked + span {
  border-color: var(--mp-blue);
  background: var(--mp-blue-light);
}

.review-eligibility-note {
  font-size: 0.9375rem;
  color: var(--mp-text-light);
  margin: 0;
}

.review-modal-intro {
  font-size: 0.875rem;
  color: var(--mp-text-muted);
  margin: 0 0 4px;
}

/* Platform payments & orders */
.btn-buy-secure {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--mp-radius);
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-buy-secure:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.35);
}

.platform-pay-group {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--mp-border);
}

.platform-pay-options {
  margin-top: 12px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-panel {
  margin: 12px 16px;
  padding: 16px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  background: var(--mp-surface, #fff);
  box-shadow: var(--mp-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.order-panel-offer {
  border-color: #40916c;
  background: linear-gradient(180deg, #f0faf4 0%, #fff 100%);
}

.order-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.order-panel-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.order-status-pending { background: #fff3cd; color: #856404; }
.order-status-held { background: #cce5ff; color: #004085; }
.order-status-active { background: #d4edda; color: #155724; }
.order-status-done { background: #e2e3e5; color: #383d41; }
.order-status-cancelled { background: #f8d7da; color: #721c24; }

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9375rem;
}

.order-row-total {
  font-weight: 700;
  border-top: 1px solid var(--mp-border);
  margin-top: 4px;
  padding-top: 10px;
}

.order-fee-note,
.order-payout-note {
  margin: 8px 0 0;
}

.order-panel-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.order-panel-listing {
  font-size: 0.875rem;
  color: var(--mp-text-muted);
  margin: 0 0 8px;
}

.buy-secure-intro {
  font-size: 0.9375rem;
  color: var(--mp-text-light);
  margin: 0 0 16px;
}

.buy-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-delivery-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.buy-preview {
  margin: 16px 0 8px;
  padding: 12px;
  background: var(--mp-bg-alt, #f8f9fa);
  border-radius: var(--mp-radius-sm);
}

.wallet-package-euro {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mp-navy);
}

.wallet-credits-line {
  margin-top: 8px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  background: #fff;
}

.order-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
}

.order-card-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--mp-radius-sm);
  flex-shrink: 0;
}

.order-card-head h3 {
  font-size: 1rem;
  margin: 4px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.order-card-total {
  margin-left: auto;
  white-space: nowrap;
  font-size: 1.1rem;
  color: var(--mp-navy);
}

.order-card-body .order-panel {
  margin: 0;
  border: none;
  border-top: 1px solid var(--mp-border);
  border-radius: 0;
  box-shadow: none;
}

#chat-order-panel .order-panel {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

