/* ============================================================
   MAISON GALA — Premium platform to rent, sell and discover
   quality clothing and services.
   Theme: Luxe Gold & Champagne — deep anthracite navy chrome,
   champagne gold accents, warm off-white canvas, white cards.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* — Luxe Gold & Champagne palette — */
  /* Dark chrome: deep anthracite / chic dark blue (navbar, primary, headings) */
  --burgundy:      #1a2238;
  --burgundy-deep: #10152a;
  --burgundy-soft: #2a3450;
  --burgundy-glow: #3a4568;
  /* Luxe accent: champagne gold (active buttons, borders, likes, badges) */
  --green:         #d4af37;   /* main gold accent */
  --green-deep:    #b28f26;   /* deeper gold — hovers */
  --green-soft:    #e3c860;   /* soft/light gold — gradients */
  /* Gold tints (were "pink"): light-gold accents + very light champagne tint */
  --pink:          #d4af37;
  --pink-soft:     #e6c964;   /* light gold — accents on dark surfaces */
  --pink-tint:     #f5ecd0;   /* very light champagne — soft card washes */
  --pink-deep:     #8a6a12;   /* deep gold — readable accent text/labels */
  /* Canvas + surfaces */
  --beige:         #fcfbfa;   /* soft warm champagne off-white — page bg */
  --beige-warm:    #f4f1ea;   /* slightly warmer alt surface */
  --cream:         #ffffff;   /* pure white — cards, containers */

  /* — Legacy aliases (keep existing rules working, new colours) — */
  --royal:        var(--burgundy);
  --royal-deep:   var(--burgundy-deep);
  --royal-soft:   var(--burgundy-soft);
  --royal-glow:   var(--burgundy-glow);
  --ivory:        var(--beige);
  --ivory-warm:   var(--beige-warm);
  --gold:         #d4af37;            /* accent → champagne gold */
  --gold-light:   #ecd98a;            /* light gold — on dark surfaces */
  --gold-deep:    #8a6a12;            /* deep gold — readable on light */
  --ink:          #2c3e50;            /* body text → dark anthracite */
  --muted:        #5f6b7a;            /* secondary text — readable slate */
  --line:         rgba(26, 34, 56, 0.12);

  /* — Radii (alles zacht & afgerond) — */
  --r-sm: 18px;
  --r:    24px;
  --r-lg: 32px;
  --r-xl: 42px;
  --r-pill: 999px;

  /* — Shadows (subtiel, antraciet-getint; gouden gloed voor accenten) — */
  --sh-sm: 0 6px 18px rgba(26, 34, 56, 0.08);
  --sh:    0 18px 44px rgba(26, 34, 56, 0.12);
  --sh-lg: 0 34px 80px rgba(26, 34, 56, 0.18);
  --sh-gold: 0 14px 32px rgba(212, 175, 55, 0.34);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.08; letter-spacing: 0.4px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.section { padding: 96px 0; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; display: inline-block; margin-bottom: 14px;
}
.section-title { font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--royal); }
.section-lead { color: var(--muted); max-width: 56ch; margin-top: 14px; font-size: 1.04rem; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* — Decorative Moroccan zellige hairline — */
.divider {
  height: 2px; width: 120px; margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.center .divider { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--r-pill); border: none; cursor: pointer;
  font-weight: 500; font-size: 0.96rem; letter-spacing: 0.02em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  color: var(--burgundy-deep); box-shadow: var(--sh-gold); font-weight: 600;
}
.btn-gold:hover { box-shadow: 0 20px 44px rgba(212, 175, 55, 0.46); }
/* Primary CTA — luxe champagne gold with dark anthracite text */
.btn-royal { background: var(--gold); color: var(--burgundy-deep); font-weight: 600; box-shadow: var(--sh-gold); }
.btn-royal:hover { background: var(--green-deep); box-shadow: 0 20px 44px rgba(212, 175, 55, 0.42); }
.btn-ghost {
  background: transparent; color: var(--burgundy); border: 1.5px solid rgba(26, 34, 56, 0.34);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--burgundy-deep); background: rgba(212, 175, 55, 0.12); }
/* Secondary gold pill (navbar "Plaats advertentie", follow-seller, filter reset) */
.btn-light { background: var(--green-soft); color: var(--burgundy-deep); font-weight: 600; box-shadow: var(--sh-sm); }
.btn-light:hover { background: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 38px; font-size: 1.04rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--burgundy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
/* Text wordmark logo — no image, no blue square; blends into the theme */
.brand-mark {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 1.72rem; letter-spacing: 0.2em; line-height: 1;
  color: var(--cream); text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 0.34em;
}
.brand-mark .m2 { color: var(--pink-soft); font-style: italic; letter-spacing: 0.12em; }
/* On light surfaces (auth cards) the wordmark turns burgundy */
.brand-mark.on-light { color: var(--burgundy); }
.brand-mark.on-light .m2 { color: var(--green); }
/* Collapsible wrapper — holds the text links + action buttons.
   Sits inline on desktop; becomes a full-width dropdown on mobile. */
.nav-menu { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 0.92rem; font-weight: 400;
  color: rgba(244, 240, 226, 0.86); transition: background .3s, color .3s; position: relative;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link.active { color: #fff; font-weight: 500; }
.nav-spacer { margin-left: auto; }
.nav-actions, .dash-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 2px;
  box-shadow: var(--sh-sm);
}
.lang-btn {
  border: none; background: transparent; cursor: pointer; padding: 7px 13px;
  border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); transition: all .3s var(--ease);
}
.lang-btn.active { background: var(--royal); color: var(--cream); box-shadow: var(--sh-sm); }
.lang-btn:not(.active):hover { color: var(--royal); }

/* Round icon button (chat, profile) */
.icon-btn {
  width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--cream); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--royal); font-size: 1.1rem; position: relative;
  transition: all .3s var(--ease); box-shadow: var(--sh-sm);
}
.icon-btn:hover { background: var(--royal); color: var(--cream); transform: translateY(-2px); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; background: var(--gold);
  color: var(--royal-deep); font-size: 0.64rem; font-weight: 700; min-width: 19px; height: 19px;
  border-radius: var(--r-pill); display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--ivory);
}

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(244, 240, 226, 0.4);
  width: 46px; height: 46px; border-radius: var(--r-pill); align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--cream); cursor: pointer; flex-shrink: 0; margin-left: auto;
  transition: background .3s, border-color .3s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--pink-soft); }

/* Auth buttons sit on the burgundy navbar — keep them clearly legible */
.nav .btn-ghost { color: var(--cream); border-color: rgba(244, 240, 226, 0.5); background: transparent; }
.nav .btn-ghost:hover { border-color: var(--pink-soft); color: var(--pink-soft); background: rgba(255, 255, 255, 0.1); }

/* Auth-state visibility (driven by js/app.js).
   Before app.js runs, <html> has no .mg-auth-ready, so the logged-in-only
   buttons are hidden to avoid a flash for anonymous / first-paint visitors.
   Once app.js has confirmed the session it adds .mg-auth-ready and controls
   visibility purely through .mg-auth-hidden — so a *shown* button falls back
   to its own natural display (inline-flex nav buttons and full-width block
   buttons alike) instead of the blanket hide rule below. */
html:not(.mg-auth-ready) [data-auth="in"] { display: none; }
.mg-auth-hidden { display: none !important; }

/* ---- Mobile navbar: collapse links + actions behind the hamburger ---- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    flex-basis: 100%; order: 5; display: none;
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  .nav.open .nav-menu { display: flex; padding: 12px 0 4px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; padding: 13px 16px; border-radius: 16px; }
  .nav-actions, .dash-actions {
    flex-wrap: wrap; gap: 10px; margin-left: 0; margin-top: 8px;
    padding-top: 14px; border-top: 1px solid rgba(244, 240, 226, 0.18);
  }
  .nav-actions .btn, .dash-actions .btn { flex: 1 1 100%; justify-content: center; }
  .nav-actions .icon-btn { flex: 0 0 auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 96px 0 120px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(26,34,56,0.07), transparent 60%),
    radial-gradient(90% 80% at 5% 110%, rgba(188,98,110,0.14), transparent 55%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%232e3d24' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M30 0l15 15-15 15-15-15zM30 30l15 15-15 15-15-15z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: var(--royal); }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 46ch; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 48px; }
.hero-stat strong { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--royal); display: block; line-height: 1; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }

/* Hero visual — stacked dress cards */
.hero-visual { position: relative; height: 540px; }
.hero-card {
  position: absolute; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); border: 6px solid var(--cream);
}
.hero-card .ph { height: 100%; }
.hero-card.c1 { width: 64%; height: 78%; top: 0; right: 0; z-index: 2; }
.hero-card.c2 { width: 50%; height: 56%; bottom: 0; left: 0; z-index: 3; }
.hero-badge {
  position: absolute; z-index: 4; bottom: 14%; right: -8px;
  background: var(--cream); border-radius: var(--r); padding: 16px 22px; box-shadow: var(--sh);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge i { color: var(--gold); font-size: 1.5rem; }
.hero-badge small { color: var(--muted); font-size: 0.74rem; display: block; }
.hero-badge b { color: var(--royal); font-size: 0.96rem; }

/* ============================================================
   IMAGE PLACEHOLDERS (woven Moroccan textile gradients + SVG)
   ============================================================ */
.ph { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--burgundy); }
.ph[data-tone="1"] { background: linear-gradient(150deg, #2a3450, #3a4568 55%, #1a2238); }
.ph[data-tone="2"] { background: linear-gradient(150deg, #b28f26, #d4af37 55%, #8a6a12); }
.ph[data-tone="3"] { background: linear-gradient(150deg, #232d4d, #10152a 55%, #1a2238); }
.ph[data-tone="4"] { background: linear-gradient(150deg, #a07d1e, #c9a227 55%, #7a5f14); }
.ph[data-tone="5"] { background: linear-gradient(150deg, #3a4568, #2a3450 55%, #232d4d); }
.ph[data-tone="6"] { background: linear-gradient(150deg, #1a2238, #6b5310 55%, #2a3450); }
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1' stroke-opacity='0.6'%3E%3Cpath d='M40 4l10 10-10 10-10-10zM40 56l10 10-10 10-10-10zM4 40l10-10 10 10-10 10zM56 40l10-10 10 10-10 10zM40 28a12 12 0 100 24 12 12 0 000-24z'/%3E%3C/g%3E%3C/svg%3E");
}
.ph .ph-figure {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.92;
}
.ph .ph-figure svg { width: 46%; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }

/* ============================================================
   SEARCH / ADVANCED FILTERS
   ============================================================ */
.search-shell {
  position: relative; z-index: 5; margin-top: -56px;
}
.search-bar {
  background: var(--cream); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end;
  border: 1px solid rgba(255,255,255,0.6);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); padding-left: 6px; }
.field-control {
  position: relative; display: flex; align-items: center;
  background: var(--ivory); border: 1.5px solid transparent; border-radius: var(--r);
  transition: border .3s, box-shadow .3s;
}
.field-control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.28); }
.field-control i { padding-left: 16px; color: var(--gold-deep); font-size: 0.9rem; }
.field-control select, .field-control input {
  border: none; background: transparent; padding: 14px 16px; width: 100%; outline: none;
  border-radius: var(--r); cursor: pointer; appearance: none; font-size: 0.95rem;
}
.field-control select { padding-right: 34px; }
.field-control::after {
  /* chevron for selects only */
}
.search-submit { height: 100%; }
.search-submit .btn { height: 56px; padding-inline: 26px; }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.card {
  background: var(--cream); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh); }
.card .ph { aspect-ratio: 4/5; }
.card-body { padding: 20px 22px 24px; }
.card-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 6px;
}
.card h3 { font-size: 1.5rem; color: var(--royal); }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--royal); font-weight: 600; }
.price small { font-size: 0.8rem; color: var(--muted); font-family: 'Jost'; }
.card-img-wrap { position: relative; }
.fav {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: var(--r-pill);
  background: rgba(253,251,246,0.9); display: grid; place-items: center; color: var(--royal);
  cursor: pointer; transition: all .3s; border: none; backdrop-filter: blur(6px);
}
.fav:hover, .fav.on { background: var(--gold); color: var(--burgundy-deep); }

/* ============================================================
   CAROUSEL — "In de kijker"
   ============================================================ */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { flex: 0 0 320px; scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 12px; }
.carousel-arrow {
  width: 52px; height: 52px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: var(--cream); color: var(--royal); cursor: pointer; font-size: 1rem;
  transition: all .3s var(--ease);
}
.carousel-arrow:hover { background: var(--royal); color: var(--cream); border-color: var(--royal); transform: translateY(-2px); }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.step {
  background: var(--cream); border-radius: var(--r-lg); padding: 34px 28px; position: relative;
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3.4rem; color: var(--gold-light);
  line-height: 1; font-weight: 600; opacity: 0.85;
}
.step-icon {
  width: 58px; height: 58px; border-radius: var(--r); background: var(--royal); color: var(--gold-light);
  display: grid; place-items: center; font-size: 1.3rem; margin: -10px 0 18px;
  box-shadow: var(--sh-sm);
}
.step h3 { font-size: 1.45rem; color: var(--royal); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.plan {
  background: var(--cream); border-radius: var(--r-lg); padding: 34px 28px; display: flex; flex-direction: column;
  border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--sh); }
.plan.featured {
  background: linear-gradient(165deg, var(--royal-soft), var(--royal-deep));
  color: var(--ivory); border: none; box-shadow: var(--sh-lg); transform: scale(1.03);
}
.plan.featured:hover { transform: scale(1.03) translateY(-8px); }
.plan.featured .plan-name, .plan.featured .plan-price, .plan.featured .plan-feat li { color: var(--ivory); }
.plan.featured .plan-price small { color: var(--gold-light); }
.ribbon {
  position: absolute; top: 20px; right: -2px; background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--royal-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 7px 16px; border-radius: var(--r-pill) 0 0 var(--r-pill); box-shadow: var(--sh-sm);
}
.plan-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--royal); font-weight: 600; }
.plan-price { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--royal); font-weight: 700; margin: 8px 0 4px; line-height: 1; }
.plan-price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; font-family: 'Jost'; }
.plan-trial { font-size: 0.82rem; color: var(--gold-deep); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 18px; }
.plan.featured .plan-trial { color: var(--gold-light); }
.plan-feat { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 26px; flex: 1; }
.plan-feat li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.92rem; color: var(--ink); }
.plan-feat li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.plan.featured .plan-feat li i { color: var(--gold-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--royal), var(--royal-deep)); color: var(--ivory);
  padding: 80px 0 36px; position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23e2c987' stroke-width='1'%3E%3Cpath d='M40 4l10 10-10 10-10-10zM40 56l10 10-10 10-10-10zM4 40l10-10 10 10-10 10zM56 40l10-10 10 10-10 10z'/%3E%3C/g%3E%3C/svg%3E");
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 56px; position: relative; }
.footer-brand img { height: 60px; border-radius: 16px; margin-bottom: 18px; background: var(--cream); padding: 6px; }
.footer p.fdesc { color: rgba(247,243,234,0.72); font-size: 0.94rem; max-width: 34ch; }
.footer h4 { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(247,243,234,0.8); font-size: 0.94rem; transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.contact-form { display: grid; gap: 14px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(226,201,135,0.22); color: var(--ivory);
  border-radius: var(--r); padding: 14px 18px; outline: none; transition: border .3s, background .3s; width: 100%;
  resize: vertical; font-size: 0.94rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(247,243,234,0.5); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.12); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(226,201,135,0.2);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  position: relative; font-size: 0.84rem; color: rgba(247,243,234,0.62);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid rgba(226,201,135,0.3);
  display: grid; place-items: center; color: var(--gold-light); transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--royal-deep); transform: translateY(-3px); }
.liability { font-size: 0.82rem; color: rgba(247,243,234,0.55); max-width: 60ch; margin-top: 12px; line-height: 1.5; }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 75px); display: grid; place-items: center; padding: 56px 0;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(26,34,56,0.07), transparent 60%),
    radial-gradient(70% 50% at 100% 110%, rgba(188,98,110,0.12), transparent 55%);
  position: relative;
}
.auth-wrap::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%232e3d24' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M30 0l15 15-15 15-15-15zM30 30l15 15-15 15-15-15z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-card {
  position: relative; z-index: 2; width: min(540px, 92vw);
  background: var(--cream); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: 46px clamp(26px, 5vw, 52px); border: 1px solid rgba(255,255,255,0.7);
}
.auth-logo { display: grid; place-items: center; margin-bottom: 22px; }
.auth-logo img {
  height: 96px; border-radius: var(--r); background: var(--royal); padding: 14px 20px;
  box-shadow: var(--sh);
}
.auth-logo .brand-mark { font-size: 2.1rem; }
.auth-card h1 { font-size: 2.4rem; color: var(--royal); text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 8px 0 30px; font-size: 0.98rem; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--royal); letter-spacing: 0.04em; padding-left: 6px; }
.input-control { position: relative; display: flex; align-items: center; }
.input-control i { position: absolute; left: 18px; color: var(--gold-deep); font-size: 0.95rem; }
.input-control input, .input-control select, .form-group textarea {
  width: 100%; background: var(--ivory); border: 1.5px solid transparent; border-radius: var(--r);
  padding: 15px 18px 15px 46px; outline: none; transition: border .3s, box-shadow .3s; font-size: 0.96rem;
}
.form-group textarea { padding-left: 18px; resize: vertical; min-height: 120px; }
.input-control input:focus, .input-control select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.28);
}

/* Inline validation (Google-style) */
.input-control.invalid input {
  border-color: #d64562; background: rgba(214,69,98,0.05);
}
.input-control.invalid input:focus {
  box-shadow: 0 0 0 4px rgba(214,69,98,0.14);
}
.field-error {
  margin: 7px 0 0; padding-left: 6px; font-size: 0.8rem; font-weight: 500;
  color: #c4283f; display: flex; align-items: center; gap: 6px;
}
.field-error::before {
  content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.78rem;
}

/* Particulier / Bedrijf toggle */
.seg-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--ivory);
  border-radius: var(--r-pill); padding: 6px; margin-bottom: 28px;
}
.seg-toggle button {
  border: none; background: transparent; cursor: pointer; padding: 13px; border-radius: var(--r-pill);
  font-weight: 500; color: var(--muted); transition: all .35s var(--ease); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.seg-toggle button.active { background: var(--royal); color: var(--cream); box-shadow: var(--sh-sm); }

.biz-fields { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.biz-fields.show { max-height: 320px; opacity: 1; margin-bottom: 4px; }

.social-row { display: flex; gap: 14px; margin-top: 8px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--cream);
  cursor: pointer; font-weight: 500; color: var(--ink); transition: all .3s var(--ease);
}
.social-btn:hover { border-color: var(--gold); background: rgba(26,34,56,0.05); transform: translateY(-2px); }
.social-btn i { font-size: 1.2rem; }
.social-btn .fa-google { color: #db4437; }
.social-btn .fa-instagram { color: #c13584; }

.divider-text { display: flex; align-items: center; gap: 16px; color: var(--muted); margin: 26px 0 20px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.auth-foot { text-align: center; margin-top: 26px; color: var(--muted); font-size: 0.94rem; }
.auth-foot a { color: var(--gold-deep); font-weight: 600; }
.check-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 0.88rem; flex-wrap: wrap; gap: 8px; }
.check-row label { display: flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; }
.check-row input { accent-color: var(--royal); width: 17px; height: 17px; }
.check-row a { color: var(--gold-deep); font-weight: 600; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.page-head {
  background:
    radial-gradient(90% 80% at 90% -20%, rgba(26,34,56,0.07), transparent 60%),
    var(--ivory);
  padding: 56px 0;
}
.profile-top { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.avatar {
  width: 132px; height: 132px; border-radius: 38px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--royal-soft), var(--royal-deep));
  display: grid; place-items: center; color: var(--gold-light); font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; box-shadow: var(--sh); border: 5px solid var(--cream); position: relative;
}
.avatar-edit {
  position: absolute; bottom: 4px; right: 4px; width: 38px; height: 38px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--royal-deep); border: 3px solid var(--cream); display: grid; place-items: center;
  cursor: pointer; font-size: 0.82rem;
}
.profile-id h1 { font-size: 2.6rem; color: var(--royal); }
.profile-id .role { display: inline-flex; align-items: center; gap: 8px; background: var(--royal); color: var(--gold-light); padding: 6px 16px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 500; margin-top: 8px; }
.profile-id .loc { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.profile-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-top: 44px; align-items: start; }
.panel {
  background: var(--cream); border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); margin-bottom: 28px;
}
.panel h2 { font-size: 1.8rem; color: var(--royal); margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.panel h2 i { color: var(--gold); font-size: 1.2rem; }
.panel .hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.social-links-grid { display: grid; gap: 16px; }
.social-input { display: flex; align-items: center; gap: 0; background: var(--ivory); border: 1.5px solid transparent; border-radius: var(--r); overflow: hidden; transition: border .3s; }
.social-input:focus-within { border-color: var(--gold); }
.social-input .si-ic { width: 52px; flex-shrink: 0; display: grid; place-items: center; color: var(--royal); font-size: 1.05rem; border-right: 1px solid var(--line); align-self: stretch; }
.social-input input { border: none; background: transparent; padding: 14px 16px; width: 100%; outline: none; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-size: 0.84rem; color: var(--royal); }

/* Profile edit controls */
.profile-head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head-actions .edit-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.view-only-note { margin-top: 20px; color: var(--muted); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.input-control input:disabled, .social-input input:disabled {
  color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; cursor: default;
}
@media (max-width: 640px) {
  .profile-head-actions { margin-left: 0; width: 100%; }
}

/* ============================================================
   CREATE LISTING PAGE
   ============================================================ */
.create-wrap { padding: 56px 0 90px; }
.create-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.create-head .eyebrow { color: var(--gold-deep); font-weight: 600; }
.create-head h1 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--royal); margin: 8px 0 12px; }
.create-head p { color: var(--muted); font-size: 1.02rem; }
.create-form { max-width: 720px; margin: 0 auto; padding: 40px; }
.create-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 34px 20px; border: 2px dashed rgba(26,34,56,0.28); border-radius: var(--r);
  background: var(--ivory); color: var(--muted); cursor: pointer; text-align: center;
  transition: border-color .25s, background .25s;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--royal); background: var(--pink-tint); }
.photo-drop i { font-size: 2rem; color: var(--royal); }
.photo-drop .photo-pick {
  margin-top: 4px; background: var(--royal); color: var(--cream); padding: 8px 18px;
  border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600;
}
.photo-previews { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.photo-thumb {
  position: relative; width: 108px; height: 108px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.is-cover::after {
  content: "★"; position: absolute; left: 6px; top: 6px; background: var(--gold); color: var(--cream);
  width: 22px; height: 22px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 0.7rem;
}
.photo-remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: none; cursor: pointer;
  border-radius: var(--r-pill); background: rgba(74,3,11,0.82); color: #fff; display: grid; place-items: center; font-size: 0.72rem;
}
.photo-remove:hover { background: var(--royal); }
.create-actions { display: flex; gap: 14px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .create-form { padding: 26px 20px; }
  .create-form .form-row { grid-template-columns: 1fr; }
  .create-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   CHAT PAGE
   ============================================================ */
.chat-shell {
  display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100vh - 75px);
  background: var(--cream);
}
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--ivory); }
.chat-list-head { padding: 24px 24px 16px; }
.chat-list-head h2 { font-size: 1.8rem; color: var(--royal); }
.chat-search { margin-top: 14px; position: relative; display: flex; align-items: center; }
.chat-search i { position: absolute; left: 16px; color: var(--muted); }
.chat-search input { width: 100%; border: 1.5px solid var(--line); background: var(--cream); border-radius: var(--r-pill); padding: 12px 16px 12px 42px; outline: none; }
.chat-search input:focus { border-color: var(--gold); }
.threads { flex: 1; overflow-y: auto; padding: 8px 12px; }
.thread {
  display: flex; gap: 14px; padding: 14px; border-radius: var(--r); cursor: pointer; align-items: center;
  transition: background .3s; position: relative;
}
.thread:hover { background: rgba(26,34,56,0.05); }
.thread.active { background: var(--cream); box-shadow: var(--sh-sm); }
.thread-av { width: 52px; height: 52px; border-radius: var(--r); flex-shrink: 0; display: grid; place-items: center; color: var(--cream); font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; }
.thread-main { flex: 1; min-width: 0; }
.thread-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.thread-name { font-weight: 500; color: var(--ink); }
.thread-time { font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }
.thread-prev { font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-unread { background: var(--gold); color: var(--royal-deep); font-size: 0.68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: var(--r-pill); display: grid; place-items: center; padding: 0 6px; }

.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.chat-head .thread-av { width: 46px; height: 46px; font-size: 1.2rem; }
.chat-head-info { flex: 1; }
.chat-head-info b { color: var(--royal); font-size: 1.05rem; }
.chat-head-info span { font-size: 0.8rem; color: #2f9e6e; display: flex; align-items: center; gap: 6px; }
.chat-head-info span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e6e; }
.chat-head-actions { display: flex; gap: 10px; position: relative; }

.chat-settings {
  position: absolute; top: 56px; right: 0; width: 280px; background: var(--cream); border-radius: var(--r);
  box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: 10px; z-index: 30;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
}
.chat-settings.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-settings button {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: none;
  background: transparent; cursor: pointer; border-radius: var(--r-sm); color: var(--ink); font-size: 0.92rem;
  transition: background .3s; text-align: left;
}
.chat-settings button:hover { background: var(--ivory); }
.chat-settings button i { width: 22px; color: var(--royal); font-size: 1rem; }
.chat-settings button.danger { color: #c0392b; }
.chat-settings button.danger i { color: #c0392b; }
.chat-settings button.active-toggle { color: var(--gold-deep); }
.chat-settings .cs-sep { height: 1px; background: var(--line); margin: 6px 8px; }

.messages { flex: 1; overflow-y: auto; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--ivory); }
.msg { max-width: 64%; padding: 13px 18px; border-radius: var(--r); font-size: 0.95rem; line-height: 1.5; position: relative; }
.msg.them { background: var(--cream); border: 1px solid var(--line); border-bottom-left-radius: 8px; align-self: flex-start; }
.msg.me { background: linear-gradient(135deg, var(--royal-soft), var(--royal)); color: var(--ivory); border-bottom-right-radius: 8px; align-self: flex-end; }
.msg time { display: block; font-size: 0.68rem; margin-top: 5px; opacity: 0.6; }
.msg-day { text-align: center; font-size: 0.74rem; color: var(--muted); margin: 8px 0; letter-spacing: 0.06em; }
.chat-compose { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: var(--cream); }
.chat-compose input { flex: 1; border: 1.5px solid var(--line); background: var(--ivory); border-radius: var(--r-pill); padding: 14px 20px; outline: none; }
.chat-compose input:focus { border-color: var(--gold); }
.chat-compose .send { width: 50px; height: 50px; border-radius: var(--r-pill); border: none; background: var(--royal); color: var(--cream); cursor: pointer; flex-shrink: 0; transition: all .3s; }
.chat-compose .send:hover { background: var(--royal-soft); transform: scale(1.05); }

.muted-banner { display: none; background: rgba(26,34,56,0.10); color: var(--gold-deep); font-size: 0.84rem; padding: 10px 26px; text-align: center; border-bottom: 1px solid var(--line); }
.muted-banner.show { display: block; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--royal-deep); color: var(--ivory); padding: 15px 26px; border-radius: var(--r-pill);
  box-shadow: var(--sh-lg); z-index: 999; font-size: 0.92rem; display: flex; align-items: center; gap: 12px;
  transition: transform .5s var(--ease); border: 1px solid rgba(226,201,135,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold-light); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: rise .8s var(--ease) forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 520px; }
  .search-bar { grid-template-columns: repeat(2, 1fr); }
  .search-submit { grid-column: 1 / -1; }
  .search-submit .btn { width: 100%; }
  .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .search-bar { grid-template-columns: 1fr; }
  .steps, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-list { display: none; }
  .lang-switch .lang-btn { padding: 6px 9px; }
  .msg { max-width: 82%; }
}

/* ============================================================
   CARD ACCENTS — muted pink details + "Verkocht" badge
   ============================================================ */
.card-img-wrap .badge-sold,
.badge-sold {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--gold); color: var(--burgundy-deep);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.card-tag { color: var(--pink-deep); }
.card .card-body { background: linear-gradient(180deg, var(--pink-tint) 0%, var(--cream) 46%); }

/* ============================================================
   MARKETPLACE DASHBOARD
   ============================================================ */
.dash-nav .nav-inner { padding: 12px 0; }
.dash-actions { display: flex; align-items: center; gap: 12px; }
.dash-shell {
  display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 72px);
}

/* Left sidebar — earthy green */
.dash-side {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: var(--cream); padding: 34px 22px; position: sticky; top: 72px;
  align-self: start; height: calc(100vh - 72px); overflow-y: auto;
}
.dash-side h3 {
  font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(244, 240, 226, 0.6); font-family: 'Jost', sans-serif; font-weight: 600; margin-bottom: 16px;
}
.dash-cats { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dash-cats a {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--r);
  color: rgba(244, 240, 226, 0.9); font-weight: 500; font-size: 1rem;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.dash-cats a i { width: 22px; text-align: center; font-size: 1.05rem; color: var(--pink-soft); }
.dash-cats a:hover, .dash-cats a.active { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateX(3px); }
.dash-cats a.active i { color: #fff; }
.dash-side-note {
  margin-top: 30px; padding: 20px; border-radius: var(--r); background: rgba(0, 0, 0, 0.16);
  font-size: 0.86rem; color: rgba(244, 240, 226, 0.82); line-height: 1.5;
}

/* Collapse toggle — only shown on mobile, where the sidebar folds away */
.side-toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, 0.10); color: var(--cream);
  border: 1px solid rgba(244, 240, 226, 0.22); border-radius: var(--r);
  padding: 13px 18px; cursor: pointer; font-weight: 600; font-size: 1rem;
  font-family: 'Jost', sans-serif; transition: background .3s var(--ease);
}
.side-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.side-toggle .side-toggle-label { display: inline-flex; align-items: center; gap: 12px; }
.side-toggle .side-toggle-label i { color: var(--pink-soft); }
.side-chev { transition: transform .3s var(--ease); }
.dash-side.open .side-chev { transform: rotate(180deg); }

/* Main column */
.dash-main { padding: 36px clamp(20px, 4vw, 46px); min-width: 0; }
.dash-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-welcome h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--burgundy); }
.dash-welcome p { color: var(--muted); margin-top: 6px; }

/* Large search bar in warm beige */
.dash-search {
  background: var(--beige); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh); padding: 16px; display: grid;
  grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 44px;
}
.dash-search .field-control { background: var(--cream); }
.dash-search .field label { color: var(--burgundy); }

.dash-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-section-head h2 { font-size: 1.7rem; color: var(--burgundy); }
.dash-section-head .eyebrow { margin-bottom: 4px; }
.dash-section-head a { color: var(--green); font-weight: 600; font-size: 0.92rem; }

/* Featured row + recent grid */
.ad-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 48px;
}
.ad-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.ad-card {
  background: var(--cream); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column;
}
.ad-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.ad-thumb { position: relative; aspect-ratio: 4/3; }
.ad-thumb .ph { aspect-ratio: 4/3; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-body { padding: 15px 17px 18px; background: linear-gradient(180deg, var(--pink-tint) 0%, var(--cream) 52%); flex: 1; display: flex; flex-direction: column; }
.ad-cat { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-deep); font-weight: 700; }
.ad-title { font-family: 'Cormorant Garamond', serif; font-size: 1.28rem; color: var(--burgundy); margin: 3px 0 4px; line-height: 1.15; }
.ad-loc { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ad-loc i { color: var(--green); }
.ad-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ad-price { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--green); }
.ad-price small { font-size: 0.74rem; color: var(--muted); font-family: 'Jost', sans-serif; }

/* Profile modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16, 21, 42, 0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(460px, 94vw); background: var(--cream); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 34px clamp(24px, 4vw, 40px); position: relative;
  animation: rise .4s var(--ease);
}
.modal h2 { font-size: 1.9rem; color: var(--burgundy); margin-bottom: 4px; }
.modal .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: var(--r-pill);
  border: none; background: var(--beige); color: var(--burgundy); cursor: pointer; font-size: 1rem;
  transition: background .3s;
}
.modal-close:hover { background: var(--pink-tint); }
.modal .form-group { margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; }

@media (max-width: 1024px) {
  .ad-row { grid-template-columns: repeat(3, 1fr); }
  .ad-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-search { grid-template-columns: 1fr 1fr; }
  .dash-search .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side {
    position: static; height: auto; padding: 14px 18px;
  }
  /* On mobile the sidebar folds behind a toggle button (inklapbaar) */
  .side-toggle { display: flex; }
  .dash-side h3 { display: none; }
  .dash-cats, .dash-side-note { display: none; }
  .dash-side.open .dash-cats { display: flex; margin-top: 12px; }
  .dash-side.open .dash-side-note { display: block; margin-top: 14px; }
}
@media (max-width: 620px) {
  .ad-row, .ad-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-search { grid-template-columns: 1fr; }
}

/* ============================================================
   LISTING DETAIL — advertentie-pagina
   ============================================================ */
.listing-wrap { max-width: 1040px; margin: 0 auto; padding: 40px 22px 80px; }
.listing-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.listing-back:hover { color: var(--royal); }
.listing-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.listing-gallery { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--sh-sm); }
.listing-hero { aspect-ratio: 4/3; position: relative; }
.listing-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-hero .ph { aspect-ratio: 4/3; }
.listing-thumbs { display: flex; gap: 10px; padding: 12px; flex-wrap: wrap; }
.listing-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; }
.listing-thumbs img.active { border-color: var(--gold); }
.listing-info .ad-cat { font-size: 0.72rem; }
.listing-info h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; color: var(--royal); line-height: 1.1; margin: 6px 0 10px; }
.listing-price { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.listing-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.listing-loc i { color: var(--gold); }
.listing-owner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 22px; }
.listing-owner .thread-av { width: 46px; height: 46px; font-size: 1.1rem; background: linear-gradient(150deg, var(--royal), var(--royal-soft)); }
.listing-owner-name { font-weight: 600; color: var(--ink); }
.listing-owner-sub { font-size: 0.78rem; color: var(--muted); }
.listing-actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.listing-actions .btn { flex: 1 1 auto; }
.btn-fav {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 14px 22px; border-radius: var(--r-pill); cursor: pointer; font: inherit; font-weight: 600;
  background: var(--cream); color: var(--pink-deep); border: 1.5px solid var(--gold);
  transition: all .3s var(--ease);
}
.btn-fav:hover { background: var(--pink-tint); }
.btn-fav.on { background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold); }
.btn-fav.on i { animation: favPop .4s var(--ease); }
@keyframes favPop { 0%{ transform: scale(1);} 40%{ transform: scale(1.35);} 100%{ transform: scale(1);} }
.listing-desc-title { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-deep); font-weight: 700; margin-bottom: 8px; }
.listing-desc { color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.listing-note { font-size: 0.86rem; color: var(--muted); margin-top: 14px; font-style: italic; }
.listing-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.listing-state i { font-size: 2.4rem; color: var(--gold-deep); margin-bottom: 14px; display: block; }
@media (max-width: 800px) { .listing-grid { grid-template-columns: 1fr; } }

/* Chat empty / placeholder states */
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: 1; padding: 40px 24px; color: var(--muted); gap: 8px; }
.chat-empty i { font-size: 2.6rem; color: var(--gold-deep); margin-bottom: 6px; }
.chat-empty b { color: var(--royal); font-size: 1.1rem; }
.chat-main.is-empty .chat-head, .chat-main.is-empty .chat-compose, .chat-main.is-empty .muted-banner { display: none; }

/* Listing cards double as links to the ad detail page */
a.ad-card { text-decoration: none; color: inherit; }
a.ad-card:hover { text-decoration: none; }

/* ============================================================
   CATEGORY FILTER BAR (Location + Price range)
   ============================================================ */
.cat-filter {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.9fr 0.9fr auto;
  gap: 14px;
  align-items: end;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--sh-sm);
  margin-bottom: 26px;
}
.cat-filter .field-control { background: var(--ivory); border-color: var(--line); }
.cat-filter .field-control input { cursor: text; }
.cat-filter-actions { display: flex; gap: 10px; align-items: center; }
.cat-filter-actions .btn { padding: 13px 20px; }
@media (max-width: 760px) {
  .cat-filter { grid-template-columns: 1fr 1fr; }
  .cat-filter .field:first-child { grid-column: 1 / -1; }
  .cat-filter-actions { grid-column: 1 / -1; }
  .cat-filter-actions .btn { flex: 1; }
}

/* ============================================================
   SHARED MARKETPLACE NAVBAR — central search + right actions
   ============================================================ */
/* Brand (left) · central search (grows, auto-margins centre it) · actions
   (right). The search keeps a single auto-margin pair so it centres between
   the brand and the actions, which sit flush at the right edge. */
.app-nav .nav-inner { align-items: center; }
.app-nav .nav-actions { margin-left: 0; }

/* Central search bar sitting in the middle of the burgundy header */
.nav-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--sh-sm);
}
.nav-search > i { color: var(--gold-deep); font-size: 0.95rem; flex-shrink: 0; }
.nav-search input {
  flex: 1 1 auto; min-width: 0; border: none; background: transparent; outline: none;
  font-family: 'Jost', sans-serif; font-size: 0.94rem; color: var(--ink); padding: 8px 0;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nav-search-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-pill); border: none;
  background: var(--burgundy); color: var(--cream); cursor: pointer; display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-search-btn:hover { background: var(--burgundy-soft); transform: translateY(-1px); }

/* Live suggestions dropdown */
.nav-search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 200;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 8px; max-height: 60vh; overflow-y: auto;
}
.nsr-group {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-deep);
  font-weight: 700; padding: 10px 12px 6px;
}
.nsr-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--ink); transition: background .2s;
}
.nsr-row:hover { background: var(--ivory); }
.nsr-row .nsr-av {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--royal-soft), var(--royal-deep)); color: var(--cream);
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 0.95rem;
}
.nsr-row .nsr-thumb {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  background-size: cover; background-position: center; background-color: var(--ivory);
}
.nsr-row .nsr-thumb-ph { display: grid; place-items: center; color: var(--pink-deep); }
.nsr-row .nsr-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nsr-row .nsr-text b { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsr-row .nsr-text small { color: var(--muted); font-size: 0.78rem; }
.nsr-row > i { color: var(--muted); font-size: 0.8rem; }
.nsr-empty { padding: 18px 12px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.nsr-all {
  width: 100%; margin-top: 6px; padding: 11px; border: none; cursor: pointer;
  background: var(--burgundy); color: var(--cream); border-radius: var(--r-sm);
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.88rem;
  transition: background .3s;
}
.nsr-all:hover { background: var(--burgundy-soft); }

@media (max-width: 860px) {
  /* Mobile app-nav: never collapse behind a menu. Keep the brand and the
     action buttons/icons on the top row; drop the central search to a
     full-width second row so the header stays tidy and never breaks. */
  .app-nav .nav-inner { row-gap: 10px; }
  .app-nav .nav-actions {
    order: 2; margin-left: auto; margin-top: 0;
    padding-top: 0; border-top: none;
    flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  }
  .app-nav .nav-actions .btn { flex: 0 0 auto; }
  .app-nav .nav-search {
    order: 3; flex-basis: 100%; width: 100%; max-width: none; margin: 0;
  }
}

/* ============================================================
   SOCIAL — Like button + Follow button + profile stats
   ============================================================ */
.btn-like {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 20px;
  border-radius: var(--r); border: 1.5px solid var(--pink); background: var(--cream);
  color: var(--pink-deep); font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: all .3s var(--ease);
}
.btn-like:hover { background: var(--pink-tint); }
.btn-like.on { background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold); }
.btn-like.on i { animation: favPop .4s var(--ease); }
.btn-like .like-count {
  min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 600;
  background: rgba(26, 34, 56, 0.10); color: inherit;
}
.btn-like.on .like-count { background: rgba(26, 34, 56, 0.16); }

/* Follower / following counts under the profile name */
.profile-stats { display: flex; gap: 24px; margin-top: 14px; }
.profile-stats span { color: var(--muted); font-size: 0.9rem; }
.profile-stats strong { color: var(--royal); font-weight: 700; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-right: 4px; }
#followBtn.following { background: var(--burgundy); color: var(--gold); border-color: var(--burgundy); }

/* Follow-the-seller button on the advertisement page */
.btn-follow-seller { margin: -10px 0 22px; }
.btn-follow-seller.following { background: var(--burgundy); color: var(--gold); border-color: var(--burgundy); }
.btn-follow-seller.following i { color: var(--gold); }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-page { padding: 40px 0 90px; }
.search-head { margin-bottom: 32px; }
.search-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--royal); margin-top: 6px; }
.search-section { margin-bottom: 44px; }
.search-count {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 4px 14px; font-size: 0.82rem; font-weight: 600; color: var(--royal);
}
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.person-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.person-card .person-av {
  width: 54px; height: 54px; border-radius: var(--r-pill); flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--royal-soft), var(--royal-deep)); color: var(--cream);
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.3rem;
}
.person-card .person-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.person-card .person-info b { color: var(--royal); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-card .person-info small { color: var(--muted); font-size: 0.82rem; }
.person-card .person-go { color: var(--pink-deep); flex-shrink: 0; }
.search-empty { color: var(--muted); font-size: 0.95rem; padding: 8px 2px; }
.search-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.search-state i { font-size: 2rem; color: var(--gold-deep); margin-bottom: 12px; display: block; }
