/* Rimbamaya - gaya diturunkan dari mockup (Plus Jakarta Sans, hijau #0B7A6E, kuning #FFC83D). */
:root {
  --green: #0B7A6E;
  --green-dark: #075A51;
  --green-ink: #0B5E55;
  --green-soft: #E6F4F1;
  --green-on: #E6F6F3;
  --yellow: #FFC83D;
  --yellow-soft: #FFF1CC;
  --yellow-ink: #7A5200;
  --warn-bg: #FFF6DC;
  --warn-ink: #4A3500;
  --ink: #0F1B2D;
  --ink-2: #27364A;
  --muted: #5B6878;
  --line: #E3E9EF;
  --line-2: #EEF2F6;
  --input: #C9D4DF;
  --bg: #F4F7FA;
  --ph: #E4ECF2;
  --ph-ink: #8A9BAD;
  --danger: #B42318;
  --danger-soft: #FDECEA;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.bold { font-weight: 700; }
.xbold { font-weight: 800; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.icon { flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; position: relative; background: none; border: 0; cursor: pointer; }
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--green-soft); color: var(--green-ink); font-weight: 800; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #D92D20; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.header-search { flex: 1 1 420px; display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 4px 4px 4px 14px; min-height: 48px; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.header-search + .main-nav { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F5B800; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2c44; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--input); font-weight: 700; }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 700; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.chip:hover { background: #d3ece7; color: var(--green-ink); }
.chip-outline { background: #fff; border: 1.5px solid var(--input); color: var(--ink); }
.chip-active { background: var(--green); color: #fff; }
.chip-active:hover { background: var(--green-dark); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill-verified { background: var(--green-soft); color: var(--green-ink); }
.pill-dark { background: var(--ink); color: #fff; font-weight: 700; }
.pill-yellow { background: var(--yellow); color: var(--ink); }
.pill-gray { background: var(--line-2); color: var(--ink-2); }
.pill-red { background: var(--danger-soft); color: var(--danger); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn.is-on { color: #D92D20; }
.icon-btn.is-on svg path { fill: currentColor; }

/* ---------- Cards & sections ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; }
.card-sm { border-radius: 20px; padding: 20px; }
.card h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.section { padding-top: 48px; }
.section-title { margin: 0 0 20px; font-size: 26px; font-weight: 800; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head .section-title { margin: 0; }
.page { padding-top: 20px; padding-bottom: 56px; }
.page-title { margin: 0; font-size: 30px; font-weight: 800; }
.page-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.notice a { color: var(--warn-ink); font-weight: 800; }
.notice-info { background: var(--green-soft); color: #1E4A44; }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.flash { margin-top: 16px; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 20px; margin: 12px 0 6px; }

/* ---------- Hero (beranda) ---------- */
.hero { background: var(--green); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.hero p { margin: 14px 0 28px; font-size: 18px; color: var(--green-on); max-width: 560px; }
.hero-search { background: #fff; border-radius: 20px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.hero-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--bg); min-height: 52px; }
.hero-field input, .hero-field select { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.hero-field.q { flex: 2 1 240px; }
.hero-field.loc { flex: 1 1 180px; }
.hero-search .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.popular span { font-size: 14px; color: var(--green-on); font-weight: 600; }
.popular a { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--green-ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.hero-art { flex: 0 1 300px; position: relative; height: 300px; min-width: 240px; }
.hero-art .sun { position: absolute; right: 0; top: 0; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); }
.hero-art .card1 { position: absolute; left: 0; bottom: 0; width: 180px; height: 200px; border-radius: 28px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--green); }
.hero-art .card2 { position: absolute; right: 20px; bottom: 10px; width: 130px; height: 100px; border-radius: 22px; background: var(--ink); display: flex; align-items: center; justify-content: center; color: var(--yellow); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.trust { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.trust-ic { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.trust b { display: block; font-weight: 800; }
.trust span { font-size: 14px; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; text-align: center; }
.cat:hover { border-color: var(--green); color: var(--ink); }
.cat-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.cat-ic.alt { background: var(--yellow-soft); color: var(--yellow-ink); }
.cta-yellow { background: var(--yellow); border-radius: 28px; padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-yellow h2 { margin: 0 0 12px; font-size: 30px; font-weight: 800; line-height: 1.2; }
.cta-yellow p { margin: 0; font-size: 17px; color: #2B2410; max-width: 540px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tips-grid b { display: block; font-weight: 800; margin-bottom: 4px; }
.tips-grid span { font-size: 14px; color: var(--muted); }

/* ---------- Listing card (grid) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lcard > a { display: block; text-decoration: none; color: var(--ink); }
.lcard .thumb { aspect-ratio: 4/3; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--ph-ink); position: relative; overflow: hidden; }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lcard .thumb .pill { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--green-ink); }
.lcard .thumb .pill-yellow { left: 12px; top: 12px; bottom: auto; background: var(--yellow); color: var(--ink); }
.lcard .body { padding: 14px 16px 16px; }
.lcard .price { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.lcard .title { margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.lcard .place { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lcard .fav { position: absolute; right: 12px; top: 12px; }
.ph-icon { color: var(--ph-ink); }

/* ---------- Listing row (hasil pencarian) ---------- */
.results-layout { display: flex; gap: 24px; align-items: flex-start; }
.filter-col { flex: 0 0 272px; min-width: 0; position: sticky; top: 16px; }
.filter-toggle { display: none; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 20px 20px; display: flex; flex-direction: column; }
.filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.f-group-static, .f-group { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.f-title { display: block; font-weight: 800; font-size: 15px; margin: 0 0 10px; padding: 0; }
.f-group > summary.f-title { margin: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.f-group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.f-group[open] > summary { margin-bottom: 10px; }
.f-sub { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-pair > div { min-width: 0; }
.f-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.filters .check { min-height: 36px; font-size: 14px; gap: 10px; }
.filters .check input { width: 18px; height: 18px; }
.filters .input-sm, .filters .select.input-sm { min-height: 42px; font-size: 14px; border-radius: 10px; }
.f-cats { display: flex; flex-direction: column; gap: 2px; }
.f-cats a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 5px 0; }
.f-cats a:hover { color: var(--green); }
.f-cats .f-back { color: var(--green); font-weight: 700; font-size: 13px; }
.f-cats .f-current { font-size: 14px; font-weight: 700; padding: 5px 0; }
.filters > label.check.f-group-static { min-height: 0; padding: 14px 0; }
.f-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.f-actions .btn { min-height: 44px; }

.results { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lrow { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lrow:hover { border-color: #C9D4DF; }
.lrow > a { display: flex; text-decoration: none; color: var(--ink); }
.lrow .thumb { flex: 0 0 220px; aspect-ratio: 4/3; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--ph-ink); position: relative; overflow: hidden; }
.lrow .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lrow .thumb .pill-dark { position: absolute; left: 10px; bottom: 10px; }
.lrow .thumb .pill-yellow { position: absolute; left: 10px; top: 10px; }
.lrow .info { flex: 1 1 auto; min-width: 0; padding: 16px 60px 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.lrow .price { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.lrow .title { font-size: 16px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow .spec { font-size: 13px; color: var(--muted); }
.lrow .meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.lrow .meta > span { display: flex; align-items: center; gap: 6px; }
.lrow .meta .pill { padding: 3px 8px; font-size: 11px; }
.lrow .fav { position: absolute; right: 12px; top: 12px; }
.lrow .fav .icon-btn { width: 40px; height: 40px; border: 1.5px solid var(--line); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1.5px solid var(--input); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager [aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; }
.pager .disabled { opacity: .45; }

/* ---------- Forms ---------- */
.field label, .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--input); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink); }
.input-sm { min-height: 46px; font-size: 15px; padding: 0 12px; }
.textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(11, 122, 110, .15); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.error { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 600; }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.money { display: flex; align-items: center; min-height: 50px; border: 1.5px solid var(--input); border-radius: 12px; overflow: hidden; background: #fff; }
.money span { padding: 0 14px; background: var(--bg); align-self: stretch; display: flex; align-items: center; font-weight: 700; color: var(--ink-2); }
.money input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 16px; outline: none; min-height: 48px; }
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { flex: 1 1 120px; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--input); border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; }
.radio-card input { accent-color: var(--green); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border: 2px solid var(--green); background: var(--green-soft); font-weight: 700; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-head h2 { margin: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.photo-add { aspect-ratio: 1/1; border: 2px dashed var(--green); border-radius: 18px; background: var(--green-soft); color: var(--green-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px; cursor: pointer; position: relative; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot { aspect-ratio: 1/1; border-radius: 18px; border: 2px dashed var(--input); }
.photo-item { aspect-ratio: 1/1; border-radius: 18px; background: var(--ph); position: relative; overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .pill-dark { position: absolute; left: 8px; top: 8px; font-size: 11px; }
.photo-item .rm { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(15, 27, 45, .8); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-item .mv { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.photo-item .mv button { width: 30px; height: 30px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-weight: 800; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- Detail ---------- */
.detail-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; order: 1; }
.detail-side { flex: 0 0 360px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; order: 2; }

/* Detail iklan saat dua kolom tidak muat (tablet & HP): foto -> harga/judul/Chat -> spesifikasi & deskripsi -> penjual, tips, laporkan.
   display:contents membuat isi kedua kolom jadi satu urutan tanpa mengubah HTML. */
@media (max-width: 1060px) {
  .detail-listing { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .detail-listing .detail-main, .detail-listing .detail-side { display: contents; }
  .detail-listing .gallery { order: 1; }
  .detail-listing .buy-box { order: 2; }
  .detail-listing .detail-main > :not(.gallery) { order: 3; }
  .detail-listing .detail-side > :not(.buy-box) { order: 4; }
  .detail-listing .detail-side > .btn-ghost { align-self: center; }
}
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.gallery-main { aspect-ratio: 16/10; border-radius: 18px; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--ph-ink); position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0F1B2D; }
.gallery-main .counter { position: absolute; right: 14px; bottom: 14px; }
.gallery-main .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-main .prev { left: 12px; }
.gallery-main .next { right: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { flex: 0 0 96px; height: 72px; border-radius: 12px; background: var(--ph); border: 2.5px solid transparent; padding: 0; overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; }
.specs div { padding: 12px 16px; border-radius: 14px; background: var(--bg); }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.desc { color: var(--ink-2); white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.big-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.seller { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { flex-basis: 44px; width: 44px; height: 44px; font-size: 17px; }
.avatar-lg { flex-basis: 88px; width: 88px; height: 88px; font-size: 34px; }
.verified-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green-ink); font-weight: 700; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Chat ---------- */
.chat-shell { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 680px; }
.chat-list { flex: 0 0 340px; max-width: 100%; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-list-head { padding: 20px 20px 12px; }
.chat-list-head h1 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
.thread { display: flex; gap: 12px; align-items: center; padding: 14px 20px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-2); }
.thread:hover { background: var(--bg); color: var(--ink); }
.thread[aria-current="page"] { background: var(--green-soft); }
.thread .tthumb { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--ph); overflow: hidden; }
.thread .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.thread .tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread .tline { display: flex; justify-content: space-between; gap: 8px; }
.thread .tname { font-weight: 800; font-size: 15px; }
.thread .ttime { font-size: 12px; color: var(--muted); white-space: nowrap; }
.thread .titem { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .tlast { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .tlast.unread { font-weight: 800; color: var(--ink); }
.chat-pane { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; }
.chat-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.chat-item { display: flex; gap: 14px; align-items: center; padding: 12px 24px; background: var(--bg); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.chat-item .tthumb { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--ph); overflow: hidden; }
.chat-item .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-msgs { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; overflow-y: auto; max-height: 560px; min-height: 320px; }
.msg-date { align-self: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.msg { max-width: 70%; padding: 12px 16px; overflow-wrap: anywhere; white-space: pre-line; }
.msg.them { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: #F0F4F8; }
.msg.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--green); color: #fff; }
.msg img { border-radius: 12px; max-height: 260px; margin-bottom: 6px; }
.msg .mtime { display: block; font-size: 11px; opacity: .75; margin-top: 4px; text-align: right; }
.chat-quick { padding: 12px 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-form { display: flex; align-items: center; gap: 10px; padding: 16px 24px 20px; }
.chat-form .input { flex: 1; min-height: 48px; }
.attach { flex: 0 0 48px; height: 48px; border: 1.5px solid var(--input); border-radius: 14px; background: #fff; color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); padding: 40px; text-align: center; }

/* ---------- Tabel & admin ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.admin-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.admin-nav { flex: 0 0 240px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.admin-nav a:hover { background: var(--bg); }
.admin-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-ink); font-weight: 800; }
.admin-main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.account-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.account-nav { flex: 0 0 260px; max-width: 100%; }
.account-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.my-item { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-2); }
.my-item:first-child { border-top: 0; padding-top: 0; }
.my-item .tthumb { flex: 0 0 120px; height: 90px; border-radius: 14px; background: var(--ph); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ph-ink); }
.my-item .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.my-item .grow { flex: 1 1 260px; min-width: 0; }
.notif { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.notif:first-child { border-top: 0; }
.notif.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
dialog { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15, 27, 45, .25); }
dialog::backdrop { background: rgba(15, 27, 45, .5); }
dialog .dlg { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
dialog h2 { margin: 0; font-size: 20px; }
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 20px; margin: 24px 0 8px; }
.prose p { margin: 0 0 12px; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 24px; font-weight: 800; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7D2DE; }
.site-footer .inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer .about { flex: 1 1 280px; }
.site-footer .about b { color: #fff; font-weight: 800; font-size: 20px; display: block; margin-bottom: 8px; }
.site-footer .about div { font-size: 14px; max-width: 320px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .col b { color: #fff; font-weight: 700; }
.site-footer a { color: #C7D2DE; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Mobile (mockup Beranda Mobile, 390px) ---------- */
.m-only { display: none; }
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .d-only { display: none !important; }
  .m-only { display: block; }
  body { padding-bottom: 84px; }
  .main-nav .nav-text { display: none; }
  .main-nav .hide-m { display: none; }
  .site-header .bar { gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; }
  .page-title { font-size: 24px; }
  .section { padding-top: 24px; }
  .section-title { font-size: 19px; }
  .card { padding: 20px; border-radius: 20px; }
  /* Hasil pencarian mobile: filter jadi panel lipat, iklan jadi baris ringkas (foto kecil di kiri). */
  .results-layout { flex-direction: column; gap: 14px; }
  .filter-col { flex: none; width: 100%; position: static; }
  .filter-toggle { display: flex; min-height: 44px; list-style: none; }
  .filter-toggle::-webkit-details-marker { display: none; }
  .filter-panel[open] .filter-toggle { margin-bottom: 10px; }
  .results { width: 100%; gap: 10px; }
  .lrow { border-radius: 14px; }
  .lrow .thumb { flex: 0 0 118px; aspect-ratio: 1/1; }
  .lrow .thumb .pill-dark { display: none; }
  .lrow .info { padding: 10px 44px 10px 12px; gap: 2px; }
  .lrow .price { font-size: 16px; }
  .lrow .title { font-size: 14px; }
  .lrow .spec { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lrow .meta { font-size: 12px; padding-top: 4px; gap: 4px 10px; }
  .lrow .fav { right: 6px; top: 6px; }
  .lrow .fav .icon-btn { width: 36px; height: 36px; border: 0; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lcard { border-radius: 18px; }
  .lcard .thumb { aspect-ratio: 1/1; }
  .lcard .body { padding: 10px 12px 12px; }
  .lcard .price { font-size: 16px; }
  .lcard .title { font-size: 14px; line-height: 1.3; min-height: 36px; }
  .lcard .place { margin-top: 6px; font-size: 12px; }
  .lcard .place svg { display: none; }
  .lcard .fav { right: 8px; top: 8px; }
  .lcard .thumb .pill { display: none; }
  .msg { max-width: 85%; }
  .chat-list { border-right: 0; flex-basis: 100%; }
  .chat-shell { min-height: 0; border-radius: 20px; }
  .chat-shell.has-active .chat-list { display: none; }
  .chat-shell:not(.has-active) .chat-pane { display: none; }
  .chat-msgs { max-height: 60vh; }
  .cta-yellow { padding: 20px; border-radius: 22px; }
  .cta-yellow h2 { font-size: 19px; margin-bottom: 6px; }
  .cta-yellow p { font-size: 14px; }
  .site-footer { margin-bottom: 0; }

  /* Header hijau beranda mobile */
  .m-hero { background: var(--green); padding: 14px 16px 18px; border-radius: 0 0 24px 24px; }
  .m-hero .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .m-hero .brand { color: #fff; font-size: 20px; }
  .m-hero .brand-mark { width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--green); font-size: 19px; }
  .m-hero .chat-ic { width: 44px; height: 44px; border-radius: 14px; background: #0A6A60; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
  .m-hero h1, .m-hero .m-title { font-size: 22px; line-height: 1.2; font-weight: 800; color: #fff; margin: 0 0 14px; }
  .m-hero form { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 4px 4px 4px 14px; min-height: 52px; }
  .m-hero input { flex: 1; min-width: 0; border: 0; font-size: 15px; outline: none; background: transparent; }
  .m-hero .go { flex: 0 0 44px; height: 44px; border: 0; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
  .m-hero .loc { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; color: var(--green-on); font-size: 14px; font-weight: 700; }
  .m-hero .loc select { background: transparent; border: 0; color: var(--green-on); font-weight: 700; font-size: 14px; max-width: 240px; }
  .m-hero .loc select option { color: var(--ink); }
  .m-cats { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; }
  .m-cats a { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
  .m-cats .cat-ic { width: 60px; height: 60px; border-radius: 20px; }
  .is-home .site-header { display: none; }

  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 8px 8px 12px; justify-content: space-around; align-items: flex-end; }
  .bottom-nav a { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #4A586A; font-size: 12px; font-weight: 700; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--green); font-weight: 800; }
  .bottom-nav .sell { color: var(--ink); font-weight: 800; justify-content: flex-end; }
  .bottom-nav .sell span { width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; background: var(--yellow); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
  .bottom-nav .badge-dot { top: 0; right: calc(50% - 22px); }
}

/* ---------- Pilihan kanal OTP (tanpa JS) ---------- */
.otp-form:has(input[name="channel"][value="whatsapp"]:checked) .otp-email { display: none; }
.otp-form:has(input[name="channel"][value="email"]:checked) .otp-whatsapp { display: none; }
