/* ============================================================
   CYKELBØRSEN – style.css (ren version)
   ============================================================ */

:root {
  --sand:         #F5F0E8;
  --rust:         #C8502A;
  --rust-light:   #E8694A;
  --forest:       #2A3D2E;
  --forest-light: #3D5942;
  --cream:        #FEFAF3;
  --charcoal:     #1A1A18;
  --muted:        #8A8578;
  --border:       #DDD8CE;
}

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

/* Skjult tekst kun for skærmlæsere */
.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;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--sand);
  letter-spacing: -0.5px;
}
.logo span { color: var(--rust-light); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
  cursor: pointer;
}
.nav-links a:hover { opacity: 1; }
.btn-sell {
  background: var(--rust);
  color: #fff !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.btn-sell:hover { background: var(--rust-light) !important; }

/* Nav profil */
.nav-profile { margin-left: 4px; display: flex; align-items: center; gap: 6px; }
.profile-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rust);
  border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 700;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-btn:hover { background: var(--rust-light); }

/* Nav indbakke */
.nav-inbox-btn {
  position: relative;
  background: transparent; border: none;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: opacity 0.2s;
  opacity: 0.75;
}
.nav-inbox-btn:hover { opacity: 1; }
.nav-inbox-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--rust); color: #fff;
  border-radius: 100px;
  font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--forest);
  line-height: 1;
}

/* ── HERO ── */
.hero {
  background: var(--forest);
  padding: 56px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-family: 'Fraunces', serif;
  font-size: 3.8rem; font-weight: 900;
  color: var(--sand); line-height: 1.08;
  margin-bottom: 18px;
}
.hero-text h1 em { font-style: italic; color: var(--rust-light); font-weight: 300; }
.hero-text p { color: var(--sand); opacity: 0.7; font-size: 1.05rem; line-height: 1.6; max-width: 420px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--rust); color: #fff;
  padding: 14px 28px; border-radius: 4px;
  font-weight: 500; border: none; cursor: pointer;
  font-size: 0.95rem; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--rust-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--sand);
  padding: 14px 28px; border-radius: 4px;
  font-weight: 500; border: 1.5px solid rgba(245,240,232,0.35);
  cursor: pointer; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--sand); background: rgba(245,240,232,0.07); }
.hero-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(245,240,232,0.12);
  border-radius: 12px; padding: 22px 28px;
  display: flex; align-items: center; gap: 18px;
  animation: fadeUp 0.6s ease both;
}
.stat-card:nth-child(2) { animation-delay: 0.1s; margin-left: 24px; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-icon { font-size: 2rem; }
.stat-number { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; color: var(--sand); }
.stat-label { color: var(--sand); opacity: 0.6; font-size: 0.85rem; }

/* ── SØGEBAR ── */
.search-section { background: var(--sand); padding: 20px 48px; border-bottom: 1px solid var(--border); }
.search-bar { display: flex; gap: 12px; max-width: 900px; margin: 0 auto; align-items: center; }
.search-bar input, .search-bar select {
  padding: 13px 18px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  background: var(--cream); color: var(--charcoal);
  outline: none; transition: border-color 0.2s;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--forest); }
.search-bar input { flex: 1; }
.search-bar select { min-width: 150px; cursor: pointer; }
.search-bar button {
  background: var(--forest); color: var(--sand);
  border: none; padding: 13px 26px; border-radius: 6px;
  cursor: pointer; font-size: 0.92rem; font-weight: 500;
  white-space: nowrap; transition: background 0.2s;
}
.search-bar button:hover { background: var(--forest-light); }

/* ── HURTIGFILTER ── */
.filters-row {
  padding: 14px 48px; background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filters-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-right: 4px; }
.pill {
  padding: 6px 16px; border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem; cursor: pointer;
  background: var(--cream); color: var(--charcoal);
  font-weight: 500; transition: all 0.15s; user-select: none;
}
.pill:hover, .pill.active { background: var(--forest); color: var(--sand); border-color: var(--forest); }

/* ── MAIN LAYOUT ── */
.main {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 36px; max-width: 1300px;
  margin: 0 auto; padding: 36px 48px;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-box {
  background: var(--sand); border-radius: 12px;
  padding: 22px; border: 1px solid var(--border);
}
.sidebar-box h3 {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 600; margin-bottom: 14px; color: var(--forest);
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.88rem; color: var(--charcoal); padding: 4px 0;
}
.filter-option input[type="checkbox"] { accent-color: var(--rust); width: 15px; height: 15px; cursor: pointer; }
.filter-count { color: var(--muted); font-size: 0.78rem; margin-left: auto; }

/* Pris filter */
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  transition: border-color 0.2s;
}
.price-inputs:focus-within { border-color: var(--forest); }
.price-inputs input {
  border: none; background: transparent;
  padding: 8px 4px; font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; color: var(--charcoal); width: 100%;
}
.price-inputs input::placeholder { color: var(--muted); }
.price-inputs span { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 0 4px; }
.btn-apply {
  background: var(--forest); color: var(--sand);
  border: none; padding: 10px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s; width: 100%;
}
.btn-apply:hover { background: var(--forest-light); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3px;
}
.badge-dealer  { background: #E8F0E8; color: var(--forest); }
.badge-private { background: #FBF0E8; color: #8A4A20; }

/* ── LISTINGS HEADER ── */
.listings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.listings-header h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; }
.listings-header span { color: var(--muted); font-size: 0.88rem; }
.sort-select {
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 0.85rem;
  background: var(--cream); font-family: 'DM Sans', sans-serif;
  cursor: pointer; color: var(--charcoal); outline: none;
}

/* ── ANNONCEKORT ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bike-card {
  background: var(--cream); border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease both;
}
.bike-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.10); }
.bike-card-img {
  height: 180px; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; position: relative; overflow: hidden;
}
.bike-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.07));
}
.condition-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--cream); border-radius: 4px;
  padding: 3px 9px; font-size: 0.72rem; font-weight: 500;
  color: var(--charcoal); z-index: 1;
}
.warranty-card-badge {
  position: absolute; bottom: 10px; left: 12px;
  background: #e8f5e9; color: #2e7d32;
  border-radius: 4px; padding: 3px 8px;
  font-size: 0.7rem; font-weight: 600; z-index: 1;
}
.save-btn {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,0.85); border: none;
  border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: background 0.15s;
}
.save-btn:hover { background: #fff; }
.bike-card-body { padding: 16px 18px 18px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bike-title { font-family: 'Fraunces', serif; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.bike-price { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 900; color: var(--rust); white-space: nowrap; margin-left: 10px; }
.bike-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.bike-meta span::after { content: ' · '; }
.bike-meta span:last-child::after { content: ''; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.seller-info { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.seller-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--sand); font-weight: 600;
}
.seller-name { color: var(--charcoal); font-weight: 500; }
.card-location { font-size: 0.78rem; color: var(--muted); }

/* ── FORHANDLER SEKTION ── */
.dealer-strip { background: var(--forest); padding: 48px; }
.dealer-strip-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 28px;
  gap: 20px; flex-wrap: wrap;
}
.dealer-strip h2 { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--sand); font-weight: 700; margin-bottom: 8px; }
.dealer-strip p { color: var(--sand); opacity: 0.65; max-width: 540px; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }
.btn-become-dealer {
  background: var(--rust); color: #fff;
  border: none; padding: 13px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
  transition: background 0.2s; flex-shrink: 0;
}
.btn-become-dealer:hover { background: var(--rust-light); }
.dealer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dealer-card {
  background: rgba(245,240,232,0.08);
  border: 1px solid rgba(245,240,232,0.14);
  border-radius: 12px; padding: 20px;
  transition: background 0.2s;
}
.dealer-card:hover { background: rgba(245,240,232,0.13); }
.dealer-logo { font-size: 2rem; margin-bottom: 10px; }
.dealer-logo-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px;
}
.dealer-name { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--sand); font-weight: 600; margin-bottom: 4px; }
.dealer-verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #4caf50; color: #fff;
  font-size: 0.6rem; font-weight: 700; font-style: normal;
  vertical-align: middle; margin-left: 4px;
}
.dealer-city { font-size: 0.8rem; color: var(--sand); opacity: 0.55; }
.dealer-count { font-size: 0.78rem; color: var(--rust-light); margin-top: 8px; font-weight: 500; }

/* ── Bruger profil modal ── */
.user-profile-modal-inner {
  max-width: 860px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  position: relative; padding: 40px 36px 36px;
}
.up-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.up-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; overflow: hidden;
}
.up-name { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--charcoal); margin: 0 0 4px; }
.up-city { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.up-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-member-since { color: var(--muted); font-size: 0.78rem; }

.up-stats {
  display: flex; gap: 0; border: 1px solid rgba(245,240,232,0.12);
  border-radius: 10px; overflow: hidden; margin-bottom: 28px;
}
.up-stat {
  flex: 1; padding: 16px; text-align: center;
  border-right: 1px solid rgba(245,240,232,0.12);
}
.up-stat:last-child { border-right: none; }
.up-stat-val { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); font-family: 'Fraunces', serif; }
.up-stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.up-divider { border: none; border-top: 1px solid rgba(245,240,232,0.12); margin: 24px 0; }
.up-section-title { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--charcoal); margin: 0 0 16px; }
.up-empty { color: var(--muted); font-size: 0.88rem; padding: 8px 0; }

/* Aktive cykler grid */
.up-bikes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
  margin-bottom: 4px;
}
.up-bike-card {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.up-bike-card:hover { transform: translateY(-2px); border-color: rgba(245,240,232,0.25); }
.up-bike-img {
  height: 130px; background: rgba(245,240,232,0.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.up-bike-info { padding: 10px 12px 12px; }
.up-bike-title { font-weight: 600; font-size: 0.88rem; color: var(--charcoal); margin-bottom: 2px; }
.up-bike-price { color: var(--rust); font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.up-bike-meta { font-size: 0.75rem; color: var(--muted); }

/* Solgte cykler liste */
.up-sold-list { display: flex; flex-direction: column; gap: 8px; }
.up-sold-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(245,240,232,0.04); border: 1px solid rgba(245,240,232,0.08);
  gap: 12px;
}
.up-sold-info { display: flex; flex-direction: column; gap: 2px; }
.up-sold-title { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.up-sold-meta  { font-size: 0.75rem; color: var(--muted); }
.up-sold-price { font-size: 0.85rem; color: var(--muted); text-align: right; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.sold-chip {
  background: rgba(200,200,200,0.15); color: var(--muted);
  font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; font-weight: 600;
}

/* Anmeldelser */
.up-reviews-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.up-review-card {
  padding: 14px 16px; border-radius: 10px;
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
}
.up-review-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.up-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--evergreen); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.up-review-name { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.up-review-date { font-size: 0.75rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.up-review-comment { font-size: 0.85rem; color: var(--charcoal); opacity: 0.85; line-height: 1.55; margin: 0; }

/* Stjerner */
.star, .up-review-stars .star { color: rgba(245,240,232,0.2); font-size: 1rem; }
.star.filled { color: #f5a623; }
.up-review-stars { display: flex; gap: 2px; margin-top: 2px; }

/* Stjerne-vælger */
.up-write-review { margin-top: 8px; }
.up-star-picker { display: flex; gap: 6px; margin-bottom: 12px; }
.star-pick { font-size: 1.8rem; color: rgba(245,240,232,0.2); cursor: pointer; transition: color 0.1s; }
.star-pick.active { color: #f5a623; }
.up-review-textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: rgba(245,240,232,0.07); border: 1px solid rgba(245,240,232,0.2);
  border-radius: 8px; padding: 10px 14px; color: var(--charcoal);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  margin-bottom: 12px; box-sizing: border-box;
}
.up-review-textarea:focus { outline: none; border-color: var(--rust); }
.btn-submit-review {
  background: var(--rust); color: #fff; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s;
}
.btn-submit-review:hover { opacity: 0.88; }

/* Klikbar sælger-boks i cykelmodal */
.bike-detail-seller:hover { background: rgba(245,240,232,0.07); }

@media (max-width: 600px) {
  .user-profile-modal-inner { padding: 24px 16px 20px; }
  .up-header { gap: 14px; }
  .up-avatar { width: 58px; height: 58px; font-size: 1.3rem; }
  .up-bikes-grid { grid-template-columns: 1fr 1fr; }
  .up-sold-row { flex-direction: column; align-items: flex-start; }
}

/* ── Forhandler profil modal ── */
.dealer-profile-modal-inner {
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 36px 32px 32px;
}
.dealer-profile-hero {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 4px;
}
.dealer-profile-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.dealer-profile-name {
  font-family: 'Fraunces', serif; font-size: 1.5rem;
  color: var(--charcoal); margin: 0 0 4px;
}
.dealer-profile-city { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.dealer-profile-count { color: var(--rust); font-size: 0.88rem; font-weight: 600; }
.dealer-profile-divider {
  border: none; border-top: 1px solid rgba(245,240,232,0.12);
  margin: 20px 0 16px;
}
.dealer-profile-section-title {
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  color: var(--charcoal); margin: 0 0 20px;
}
.dealer-profile-bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .dealer-profile-modal-inner { padding: 24px 16px 20px; }
  .dealer-profile-hero { gap: 16px; }
  .dealer-profile-logo { width: 54px; height: 54px; font-size: 1.2rem; }
  .dealer-profile-bikes-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Fremhævede forhandler-kort (top 3) */
.dealer-card--featured {
  background: rgba(200,130,42,0.13);
  border: 1.5px solid rgba(200,130,42,0.45);
  position: relative;
}
.dealer-card--featured:hover { background: rgba(200,130,42,0.2); }
/* "Se resten" knap under top-forhandlere */
.dealer-see-all-wrap {
  display: flex; justify-content: center;
  margin-top: 20px;
}
.dealer-rest-grid { flex-wrap: wrap; }

.btn-see-all-dealers {
  background: transparent; color: var(--sand);
  border: 1.5px solid rgba(245,240,232,0.3);
  padding: 11px 28px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-see-all-dealers:hover {
  background: rgba(245,240,232,0.08);
  border-color: rgba(245,240,232,0.6);
}

/* Tom forhandler state */
.dealer-empty-state { grid-template-columns: 1fr !important; }
.dealer-empty-card {
  background: rgba(245,240,232,0.06);
  border: 2px dashed rgba(245,240,232,0.2);
  border-radius: 14px; padding: 48px 32px;
  text-align: center; color: var(--sand);
}
.dealer-empty-card h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; margin-bottom: 10px; }
.dealer-empty-card p { opacity: 0.6; font-size: 0.9rem; max-width: 360px; margin: 0 auto 20px; }
.btn-become-dealer-small {
  background: transparent; color: var(--rust-light);
  border: 1.5px solid var(--rust-light);
  padding: 10px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-become-dealer-small:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* Forhandler perks */
.dealer-perks { display: flex; flex-direction: column; gap: 10px; background: var(--sand); border-radius: 10px; padding: 18px 20px; border: 1px solid var(--border); }
.dealer-perk { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; }

/* ── GRATIS PRØVEPERIODE BANNER ── */
.dealer-trial-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1.5px solid #a5d6a7;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.86rem;
  color: #2e7d32;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── PRISPLAN VÆLGER ── */
.dealer-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.dealer-plan-btn {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.dealer-plan-btn:hover { border-color: var(--rust); }
.dealer-plan-btn.selected {
  border-color: var(--rust);
  background: #fff8f5;
  box-shadow: 0 0 0 3px rgba(200,80,42,0.12);
}
.plan-name { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.plan-price { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); font-family: 'Fraunces', serif; line-height: 1.1; }
.plan-unit { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }
.plan-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--forest);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 0 10px 0 8px;
  letter-spacing: 0.03em;
}

/* ── ABONNEMENTSBOKS I PROFIL ── */
.subscription-box {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.subscription-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 3px; }
.subscription-sub   { font-size: 0.78rem; color: var(--muted); }
.sub-status-active   { background: #e8f5e9; color: #2e7d32; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-trial    { background: #e3f2fd; color: #1565c0; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-past-due { background: #fff3e0; color: #e65100; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-canceled { background: #fce4ec; color: #c62828; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.btn-manage-subscription {
  width: 100%;
  padding: 10px 16px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.btn-manage-subscription:hover { background: var(--forest); }

/* ── FOOTER ── */
footer { background: var(--charcoal); padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .logo { font-size: 1.3rem; }
footer p { color: var(--muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--sand); }

/* ── MODALER ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,24,0.55); z-index: 1500;
  align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }

/* Profil-modaler ligger over standard-modaler */
#user-profile-modal,
#dealer-profile-modal { z-index: 2000; }

/* Cykel-modal ligger over profil-modaler (kan åbnes inde fra en profil) */
#bike-modal,
#map-bike-modal { z-index: 2500; }

/* Login-modal skal ligge over cykel-modalen */
#login-modal { z-index: 3000; }

/* Del/share-modal skal ligge over cykel-modalen */
#share-modal { z-index: 3000; }
.modal {
  background: var(--cream); border-radius: 16px;
  max-width: 600px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 26px 32px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--cream); z-index: 1;
}
.modal-header h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; }
.modal-close {
  background: var(--sand); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal); transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 28px 32px 32px; }
.modal-wide { max-width: 780px; }
.modal-seller-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; font-weight: 500; }

/* Seller toggle */
.seller-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.seller-type-btn {
  padding: 16px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--sand);
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.seller-type-btn.selected { border-color: var(--forest); background: var(--forest); color: var(--sand); }
.seller-type-btn .type-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.seller-type-btn .type-label { font-weight: 600; font-size: 0.9rem; display: block; }
.seller-type-btn .type-sub { font-size: 0.78rem; opacity: 0.7; }
.dealer-fields-hidden { display: none; margin-bottom: 16px; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; background: var(--cream);
  color: var(--charcoal); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--forest); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  background: var(--rust); color: #fff; border: none;
  padding: 15px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; width: 100%; margin-top: 20px;
  font-family: 'DM Sans', sans-serif; transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--rust-light); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 7px;
}

/* Billede upload */
.img-upload {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; background: var(--sand);
}
.img-upload:hover { border-color: var(--forest); background: #f0ece3; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.img-upload p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.img-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.img-preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item.primary { border-color: var(--forest); }
.img-preview-item .primary-badge { position: absolute; bottom: 4px; left: 4px; background: var(--forest); color: var(--sand); font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.img-preview-item .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-preview-item .set-primary { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 4px; font-size: 0.65rem; padding: 2px 5px; cursor: pointer; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--forest); color: var(--sand);
  padding: 14px 22px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; z-index: 300;
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── AI SUPPORT CHAT WIDGET ── */
#chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 9999; pointer-events: none; }
#chat-toggle { pointer-events: auto; }

#chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rust); color: #fff; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
#chat-toggle:hover { background: var(--rust-light); transform: scale(1.08); }
#chat-toggle svg { width: 24px; height: 24px; }

#chat-window {
  position: absolute; bottom: 68px; right: 0;
  width: 340px; max-height: 480px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.85) translateY(20px); opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
#chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

#chat-header {
  background: var(--forest); color: var(--sand);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 2px;
  font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
#chat-subtitle { font-size: 0.72rem; font-weight: 400; opacity: 0.75; }

#chat-messages {
  flex: 1; overflow-y: auto; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  background: var(--cream);
}
.chat-msg { display: flex; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap;
}
.chat-msg--bot  .chat-bubble { background: #fff; border: 1px solid var(--border); color: var(--charcoal); border-bottom-left-radius: 4px; }
.chat-msg--user .chat-bubble { background: var(--rust); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing .chat-bubble { color: var(--muted); font-style: italic; }

#chat-input-area {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); flex-shrink: 0; align-items: flex-end;
  background: var(--cream);
}
#chat-input {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; font-size: 0.85rem; font-family: 'DM Sans', sans-serif;
  background: #fff; color: var(--charcoal); line-height: 1.4; max-height: 100px;
  overflow-y: auto;
}
#chat-input:focus { outline: none; border-color: var(--forest); }
#chat-send-btn {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--rust); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#chat-send-btn:hover { background: var(--rust-light); }
#chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#chat-send-btn svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  #chat-widget { bottom: 16px; right: 16px; }
  #chat-window { width: calc(100vw - 32px); }
}

/* ── PROFIL ── */
.profile-header { display: flex; align-items: center; gap: 18px; padding: 0 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.profile-avatar-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; cursor: pointer; }
.profile-avatar-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.profile-big-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--sand); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-name { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 3px; }
.profile-email { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.profile-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.profile-tab { background: none; border: none; padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s, border-color 0.2s; flex-shrink: 0; }
.profile-tab:hover { color: var(--charcoal); }
.profile-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.btn-logout { background: transparent; color: var(--rust); border: 1.5px solid var(--rust); padding: 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%; margin-top: 10px; font-family: 'DM Sans', sans-serif; transition: background 0.2s, color 0.2s; }
.btn-logout:hover { background: var(--rust); color: #fff; }

/* Mine annoncer */
.my-listings-grid { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.my-listing-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--sand); border-radius: 10px; border: 1px solid var(--border); gap: 12px; }
.my-listing-info { flex: 1; }
.my-listing-title { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.my-listing-meta { font-size: 0.78rem; color: var(--muted); }
.my-listing-price { font-family: 'Fraunces', serif; font-weight: 900; color: var(--rust); font-size: 1rem; white-space: nowrap; }
.btn-delete { background: none; border: 1.5px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; color: var(--muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-delete:hover { border-color: var(--rust); color: var(--rust); }
.btn-edit { background: var(--forest); color: var(--sand); border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.15s; white-space: nowrap; }
.btn-edit:hover { background: var(--forest-light); }
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.88rem; font-weight: 500; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); cursor: pointer; }
#edit-seller-type { cursor: pointer; }

/* ── ANNONCE DETALJE ── */
.bike-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bike-detail-img { background: var(--sand); border-radius: 12px; height: 280px; display: flex; align-items: center; justify-content: center; font-size: 6rem; overflow: hidden; }
.bike-detail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.bike-detail-info { display: flex; flex-direction: column; gap: 14px; }
.bike-detail-price { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; color: var(--rust); }
.bike-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tag { background: var(--sand); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; font-weight: 500; color: var(--charcoal); }
.bike-detail-seller { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.seller-avatar-large { width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; flex-shrink: 0; }
.seller-detail-name { font-weight: 600; font-size: 0.95rem; }
.seller-detail-city { font-size: 0.8rem; color: var(--muted); }
.bike-detail-description { background: var(--sand); border-radius: 10px; padding: 16px; font-size: 0.88rem; line-height: 1.6; color: var(--charcoal); border: 1px solid var(--border); }

/* ── Billedgalleri ── */
.bike-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; background: var(--sand); border-radius: 12px; height: 280px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity 0.15s ease; }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: background 0.15s; z-index: 2; }
.gallery-nav-btn:hover { background: white; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,0.5); color: white; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; z-index: 2; font-family: 'DM Sans', sans-serif; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x mandatory; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 2.5px solid transparent; cursor: pointer; padding: 0; background: none; transition: border-color 0.15s; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--rust); }
.gallery-thumb:hover:not(.active) { border-color: var(--muted); }
.action-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn-contact { background: var(--forest); color: var(--sand); border: none; padding: 13px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; text-align: center; }
.btn-contact:hover { background: var(--forest-light); }
.btn-bid { background: var(--rust); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; text-align: center; }
.btn-bid:hover { background: var(--rust-light); }
.btn-save-listing { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); padding: 11px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; text-align: center; }
.btn-save-listing:hover { border-color: var(--rust); color: var(--rust); }
.message-box { display: none; margin-top: 12px; }
.message-box textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; resize: vertical; min-height: 90px; outline: none; background: var(--cream); transition: border-color 0.2s; }
.message-box textarea:focus { border-color: var(--forest); }
.message-box button { margin-top: 8px; background: var(--forest); color: var(--sand); border: none; padding: 11px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; width: 100%; }
.message-box button:hover { background: var(--forest-light); }
.bid-box { display: none; margin-top: 12px; }
.bid-box-inner { display: flex; gap: 8px; align-items: center; }
.bid-box input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; background: var(--cream); transition: border-color 0.2s; }
.bid-box input:focus { border-color: var(--rust); }
.bid-box button { background: var(--rust); color: #fff; border: none; padding: 11px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; }
.bid-box button:hover { background: var(--rust-light); }

/* ── INDBAKKE ── */
.inbox-badge { background: var(--rust); color: #fff; border-radius: 100px; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
.inbox-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--sand); border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.inbox-row:hover { background: var(--border); }
.inbox-row.unread { border-left: 3px solid var(--rust); }
.inbox-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.inbox-content { flex: 1; min-width: 0; }
.inbox-from { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.inbox-bike { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.inbox-preview { font-size: 0.82rem; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.thread-header { background: var(--sand); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--border); font-size: 0.88rem; }
.thread-messages { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; padding: 4px 0; margin-bottom: 14px; }
.message-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.5; }
.message-bubble.sent { background: var(--forest); color: var(--sand); align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--sand); color: var(--charcoal); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message-bubble .msg-time { font-size: 0.7rem; opacity: 0.6; margin-top: 4px; }
.message-bubble.bid-bubble.received { background: #fff8ec; border-color: var(--rust); font-weight: 600; }
.message-bubble.accepted-bubble { background: #edf7ed; border-color: #4caf50; color: #2e7d32; font-weight: 600; align-self: stretch; border-radius: 10px; border: 1.5px solid #4caf50; }
.btn-accept-bid { display: block; width: 100%; margin-top: 10px; padding: 9px 0; background: var(--forest); color: #fff; border: none; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.btn-accept-bid:hover { background: var(--rust); }
.thread-reply { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.thread-reply textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; resize: none; height: 80px; outline: none; background: var(--cream); transition: border-color 0.2s; }
.thread-reply textarea:focus { border-color: var(--forest); }
.thread-reply button { background: var(--forest); color: var(--sand); border: none; padding: 11px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.thread-reply button:hover { background: var(--forest-light); }

/* ── LOGIN / GLEMT ── */
.btn-back-login { background: none; border: none; color: var(--muted); font-size: 0.85rem; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 12px; padding: 0; display: block; width: 100%; text-align: center; transition: color 0.15s; }
.btn-back-login:hover { color: var(--charcoal); }

/* ── NOTIFIKATION PULS ── */
@keyframes inboxPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,80,42,0.7); }
  50%  { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(200,80,42,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,80,42,0); }
}
.inbox-pulse { animation: inboxPulse 0.6s ease 3; }

/* ── MOBIL FILTER DRAWER ── */
.mobile-filter-bar { display: none; gap: 10px; margin-bottom: 14px; }
.btn-mobile-filter { flex: 1; background: var(--sand); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; transition: border-color 0.15s; }
.btn-mobile-filter:hover { border-color: var(--forest); }
.mobile-filter-drawer { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--cream); border-radius: 20px 20px 0 0; padding: 20px 20px 40px; z-index: 200; max-height: 80vh; overflow-y: auto; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.3s ease; }
.mobile-filter-drawer.open { display: block; transform: translateY(0); }
.drawer-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 20px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-header h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; }
.drawer-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.mobile-filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
.mobile-filter-overlay.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 14px 16px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.btn-sell) { display: none; }
  .btn-sell { font-size: 0.8rem; padding: 8px 14px; }
  .logo { font-size: 1.3rem; }
  .hero { grid-template-columns: 1fr; padding: 32px 16px 24px; gap: 24px; }
  .hero h1 { font-size: 2.8rem; line-height: 1.1; }
  .hero p  { font-size: 0.9rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns button { width: 100%; }
  .hero-stats { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .stat-card { min-width: 130px; padding: 14px; flex-shrink: 0; }
  .stat-number { font-size: 1.4rem; }
  .search-section { padding: 16px; }
  .search-bar { flex-direction: column; gap: 10px; border-radius: 12px; padding: 14px; }
  .search-bar input, .search-bar select, .search-bar button { width: 100%; border-radius: 8px; font-size: 0.9rem; }
  .search-bar button { padding: 12px; }
  .filters-row { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters-row::-webkit-scrollbar { display: none; }
  .filters-label { display: none; }
  .pill { flex-shrink: 0; font-size: 0.8rem; padding: 7px 14px; }
  .main { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .sidebar { display: none; }
  .mobile-filter-bar { display: flex !important; }
  .listings-grid { grid-template-columns: 1fr; gap: 14px; }
  .listings-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .sort-select { width: 100%; }
  .bike-card-img { height: 180px; }
  .dealer-strip { padding: 28px 16px; }
  .dealer-strip h2 { font-size: 1.5rem; }
  .dealer-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dealer-card { padding: 16px 12px; }
  footer { padding: 28px 16px; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; width: 100%; max-width: 100%; }
  .modal-wide { max-width: 100%; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 0 20px 40px; }
  .bike-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .bike-detail-img { height: 220px; }
  .bike-detail-price { font-size: 1.8rem; }
  .gallery-main { height: 220px; }
  .gallery-thumb { width: 52px; height: 52px; }
  .profile-header { gap: 14px; }
  .profile-avatar-wrap { width: 52px; height: 52px; }
  .profile-big-avatar { width: 52px; height: 52px; font-size: 1.1rem; }
  .seller-toggle { gap: 8px; }
  .seller-type-btn { padding: 12px 8px; }
  .type-label { font-size: 0.85rem; }
  .type-sub { font-size: 0.72rem; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: 1; }
  .dealer-strip-header { flex-direction: column; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero { padding: 48px 32px; gap: 32px; }
  .hero h1 { font-size: 3rem; }
  .main { padding: 24px 32px; gap: 24px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .dealer-cards { grid-template-columns: repeat(2, 1fr); }
  .modal { max-width: 600px; }
}

@media (min-width: 769px) {
  .mobile-filter-bar { display: none !important; }
  .mobile-filter-drawer { display: none !important; }
  .mobile-filter-overlay { display: none !important; }
}

/* ── ADMIN ── */
.nav-admin-btn {
  background: rgba(245,240,232,0.12);
  border: 1.5px solid rgba(245,240,232,0.2);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; margin-right: 4px;
}
.nav-admin-btn:hover { background: rgba(245,240,232,0.25); }

.admin-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--sand); border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 10px;
}
.admin-row-info { flex: 1; }
.admin-row-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.admin-row-meta { font-size: 0.78rem; color: var(--muted); }
.admin-row-actions { display: flex; gap: 8px; }
.btn-approve {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 7px 14px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
}
.btn-approve:hover { background: var(--forest-light); }
.btn-reject {
  background: none; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 7px 14px;
  font-size: 0.78rem; color: var(--muted); cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.btn-reject:hover { border-color: var(--rust); color: var(--rust); }

/* Verificeret badge */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #2A7D4F;
  border-radius: 50%;
  color: #fff; font-size: 0.6rem;
  font-weight: 700; margin-left: 4px;
  vertical-align: middle;
  border: 2px solid var(--cream);
  flex-shrink: 0;
}
.verified-badge-large {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: #2A7D4F; border-radius: 50%;
  color: #fff; font-size: 0.75rem; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
  border: 2px solid var(--cream);
}

/* Profil avatar med verificeret badge */
.avatar-wrapper { position: relative; display: inline-flex; }
.avatar-verified {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  background: #2A7D4F; border-radius: 50%;
  border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #fff;
}

/* ── AUTOCOMPLETE ── */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 150;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--sand); }
.autocomplete-item strong { color: var(--rust); }
.autocomplete-meta { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.autocomplete-no-results {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

/* ── DEL ANNONCE ── */
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  color: var(--charcoal);
  background: var(--sand);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.share-icon { font-size: 1.6rem; }
.share-whatsapp:hover { border-color: #25D366; background: #f0fdf4; color: #16a34a; }
.share-facebook:hover { border-color: #1877F2; background: #eff6ff; color: #1877F2; }
.share-link:hover     { border-color: var(--forest); background: #f0f4f0; color: var(--forest); }
.share-sms:hover      { border-color: var(--rust); background: #fff7f5; color: var(--rust); }

.share-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 4px 4px 14px;
}
.share-link-box input {
  flex: 1; border: none; background: transparent;
  font-size: 0.82rem; color: var(--muted);
  font-family: 'DM Sans', sans-serif; outline: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-link-box button {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.share-link-box button:hover { background: var(--forest-light); }

/* ── SÆT SOM SOLGT ── */
.sold-tag {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,24,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; border-radius: 0;
}
.sold-tag span {
  background: var(--charcoal); color: #fff;
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  font-weight: 700; padding: 8px 20px; border-radius: 6px;
  transform: rotate(-5deg);
}
.btn-sold {
  background: var(--charcoal); color: var(--sand);
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.btn-sold:hover { background: #333; }
.btn-unsold {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.btn-unsold:hover { background: var(--forest-light); }

/* ── SÅDAN VIRKER DET ── */
.how-it-works {
  background: var(--sand);
  padding: 56px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.how-it-works h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 8px;
}
.how-subtitle {
  color: var(--muted); font-size: 0.95rem;
  margin-bottom: 40px;
}
.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 180px; max-width: 220px;
  padding: 24px 16px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.how-icon { font-size: 2.2rem; margin-bottom: 12px; }
.how-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 8px; color: var(--charcoal);
}
.how-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.how-step-arrow {
  font-size: 1.5rem; color: var(--border);
  padding: 0 12px; flex-shrink: 0;
}

@media (max-width: 768px) {
  .how-it-works { padding: 36px 16px; }
  .how-steps { gap: 12px; }
  .how-step-arrow { display: none; }
  .how-step { min-width: 140px; }
}

/* ── KORTVISNING ── */
.view-toggle {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.view-toggle:hover      { border-color: var(--forest); }
.view-toggle.active     { background: var(--forest); border-color: var(--forest); color: white; }

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  font-family: 'DM Sans', sans-serif !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px !important;
}
.map-popup {
  padding: 14px 16px;
}
.map-popup-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.map-popup-price {
  color: var(--rust);
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.map-popup-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.map-popup-btn {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 8px 14px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; width: 100%;
  transition: background 0.15s;
}
.map-popup-btn:hover { background: var(--forest-light); }

/* Bruger lokation knap */
.locate-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 1000;
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.locate-btn:hover { border-color: var(--forest); }

/* ── ID VERIFICERING ── */
.id-verify-box {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.id-verify-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.id-verify-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.id-verify-sub { font-size: 0.78rem; color: var(--muted); }

.id-status-pending {
  background: #FBF0E8; color: #8A4A20;
  border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; padding: 4px 10px;
  white-space: nowrap; flex-shrink: 0;
}
.id-status-waiting {
  background: #FFF8E1; color: #B8860B;
  border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; padding: 4px 10px;
  white-space: nowrap; flex-shrink: 0;
}
.id-status-verified {
  background: #E8F0E8; color: #2A7D4F;
  border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; padding: 4px 10px;
  white-space: nowrap; flex-shrink: 0;
}

/* ID badge */
.id-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1877F2; color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.6rem; font-weight: 700;
  margin-left: 4px; vertical-align: middle;
  border: 2px solid var(--cream);
  title: 'ID verificeret';
}

/* Admin ID liste */
.admin-id-img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
}
.admin-id-img:hover { transform: scale(1.05); }
