/* Beranda publik bsd-web — gaya link-in-bio, tata letak grid (HP: 1 kolom, layar lebar: sidebar profil + konten) */
:root{
  --bg:#f4f1ec; --card:#ffffff; --ink:#14202e; --muted:#6b7480; --line:#e8e3da;
  --navy:#0d2440; --gold:#b8955a; --gold-soft:#f3ead9; --wa:#1faa59;
  --r:18px; --shadow:0 1px 2px rgba(20,32,46,.04),0 6px 20px rgba(20,32,46,.06);
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0e141b; --card:#171f29; --ink:#eef1f4; --muted:#9aa4b0; --line:#26303c;
  --navy:#e9edf2; --gold:#d4b37a; --gold-soft:#2a2419; --shadow:0 1px 2px rgba(0,0,0,.3);
}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none} img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
.i{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.page{max-width:480px;margin:0 auto;padding:16px 16px 96px}

/* profil */
.profile{text-align:center}
.cover{height:150px;border-radius:var(--r);overflow:hidden;background:var(--line)}
.cover img{width:100%;height:100%;object-fit:cover}
.avatar{width:92px;height:92px;margin:-46px auto 12px;border-radius:50%;border:4px solid var(--bg);background:var(--navy);color:var(--gold);
  display:grid;place-items:center;overflow:hidden;position:relative}
.avatar img{width:100%;height:100%;object-fit:cover} .avatar .i{width:40px;height:40px}
h1{font-size:1.45rem;font-weight:800;letter-spacing:-.02em;margin:0;display:inline-flex;align-items:center;gap:6px}
.verified{color:var(--gold);display:inline-flex} .verified .i{width:20px;height:20px}
.tagline{margin:2px 0 10px;color:var(--gold);font-weight:600;font-size:.92rem}
.bio{margin:0 auto 12px;color:var(--muted);max-width:40ch}
.meta{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;font-size:.82rem;color:var(--muted)}
.meta li{display:inline-flex;align-items:center;gap:5px} .meta .i{width:15px;height:15px}
.socials{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:6px}
.socials a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px 8px 10px;border-radius:999px;background:var(--card);box-shadow:var(--shadow);font-weight:700;font-size:.82rem;transition:transform .15s}
.socials a .i{width:20px;height:20px;color:var(--gold)}
.socials a:hover{transform:translateY(-2px)}

/* tombol utama */
.actions{display:grid;gap:10px;margin:20px 0}
.act{display:flex;align-items:center;gap:14px;padding:15px 18px;background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);
  font-weight:700;transition:transform .15s,box-shadow .15s}
.act:hover{transform:translateY(-1px)} .act:active{transform:scale(.99)}
.act>span{flex:1;display:flex;flex-direction:column;line-height:1.3}
.act small{font-weight:500;font-size:.78rem;color:var(--muted);margin-top:2px}
.act>.i:first-child{width:22px;height:22px;color:var(--gold)}
.act>.i:last-child{width:18px;height:18px;color:var(--muted)}
.act.primary{background:var(--wa);color:#fff}
.act.primary small,.act.primary .i{color:rgba(255,255,255,.85)!important}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tile{display:flex;flex-direction:column;gap:10px;padding:14px;background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);font-weight:700;font-size:.9rem;line-height:1.3;transition:transform .15s}
.tile:hover{transform:translateY(-1px)} .tile:active{transform:scale(.98)}
.tile>.i{width:34px;height:34px;padding:8px;border-radius:10px;background:var(--gold-soft);color:var(--gold)}
.tile small{display:block;font-weight:500;font-size:.74rem;color:var(--muted);margin-top:2px}
.tiles>.tile:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;align-items:center}

.stats{list-style:none;margin:0 0 8px;padding:14px 8px;display:flex;justify-content:space-around;text-align:center;font-size:.76rem;color:var(--muted);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats b{display:block;font-size:1.25rem;color:var(--ink);font-weight:800;letter-spacing:-.02em}

/* blok */
.block{margin-top:30px;scroll-margin-top:16px}
.block-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
h2{font-size:1.1rem;font-weight:800;letter-spacing:-.01em;margin:0}
.count{font-size:.72rem;font-weight:700;background:var(--gold-soft);color:var(--gold);padding:2px 9px;border-radius:99px}

.chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 14px;padding:0 16px 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:8px 15px;border-radius:99px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);font-size:.84rem;font-weight:600;color:var(--muted);transition:.15s}
.chip.on{background:var(--ink);color:var(--bg);box-shadow:none}

/* kartu properti */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{position:relative;background:var(--card);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s}
.card:hover{transform:translateY(-2px)} .card[hidden]{display:none}
.card-hit{position:absolute;inset:0;z-index:1;border-radius:var(--r)}
.card-img{position:relative;aspect-ratio:4/3;background:var(--line)}
.card-img img{width:100%;height:100%;object-fit:cover}
.badge{display:inline-block;font-size:.66rem;font-weight:700;padding:3px 9px;border-radius:99px;background:rgba(255,255,255,.92);color:#14202e;backdrop-filter:blur(6px)}
.card-img .badge{position:absolute;top:8px;left:8px} .card-img .badge.soon{top:auto;bottom:8px}
.badge.soon{background:var(--gold);color:#fff}
.card-body{padding:10px 12px 12px}
.card h3{margin:0 0 2px;font-size:.92rem;font-weight:800;letter-spacing:-.01em;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.loc{margin:0;display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.84rem} .loc .i{width:15px;height:15px}
.card .loc{font-size:.74rem;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.card .loc .i{display:inline-block;vertical-align:-2px;margin-right:3px} .card .loc .i{width:13px;height:13px}
.card-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;margin-top:8px}
.price{font-weight:800;font-size:.95rem;line-height:1.2;min-width:0} .price small{display:block;font-size:.7rem;font-weight:600;color:var(--muted);line-height:1}
.wa-btn{position:relative;z-index:2;flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--wa);color:#fff}
.empty{grid-column:1/-1;color:var(--muted);text-align:center;padding:24px 0}

/* terjual & daftar */
details summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;font-weight:700}
details summary::-webkit-details-marker{display:none}
details summary .i{margin-left:auto;width:18px;height:18px;color:var(--muted);transition:transform .2s;transform:rotate(90deg)}
details[open] summary .i{transform:rotate(-90deg)}
.sold{margin-top:14px;padding:14px 16px;background:var(--card);border-radius:var(--r);font-size:.9rem}
.sold ul{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.sold li{display:flex;align-items:center;gap:12px;opacity:.75}
.sold img{width:52px;height:40px;border-radius:8px;object-fit:cover;filter:grayscale(.6)}
.sold li span{flex:1;display:flex;flex-direction:column;line-height:1.3} .sold small{color:var(--muted)}
.sold em{font-style:normal;font-size:.72rem;font-weight:700;color:var(--muted)}

.news{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.post{display:flex;flex-direction:column;text-align:left;background:var(--card);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s}
.post:hover{transform:translateY(-2px)}
.post img{width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--line)}
.post span{display:flex;flex-direction:column;gap:3px;padding:10px 12px 12px;font-size:.86rem;line-height:1.35}
.post b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post small{color:var(--muted);font-size:.72rem}
.news>.post:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;align-items:center}
.news>.post:last-child:nth-child(odd) img{width:42%;aspect-ratio:4/3}

/* form */
.form{display:grid;gap:12px;padding:18px;background:var(--card);border-radius:var(--r);box-shadow:var(--shadow)}
.form label{display:grid;gap:5px;font-size:.8rem;font-weight:700}
.form label small{font-weight:500;color:var(--muted)}
.form input,.form select,.form textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.hp{position:absolute;left:-9999px}
.submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px;border-radius:14px;background:var(--wa);color:#fff;font-weight:700;font-size:.95rem}
.ghost{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);font-weight:700;font-size:.92rem}
.fine{margin:0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.74rem;color:var(--muted)} .fine .i{width:14px;height:14px}
.note{margin:0 0 10px;padding:10px 14px;border-radius:12px;font-size:.86rem;background:var(--gold-soft)}
.note.error{background:#fde8e8;color:#9b1c1c}

.form{grid-template-columns:1fr}
.about{margin-top:30px;padding:16px;background:var(--card);border-radius:var(--r)}
.about p{margin:10px 0 0;color:var(--muted);font-size:.9rem}
.foot{margin-top:28px;text-align:center;font-size:.76rem;color:var(--muted)} .foot a{text-decoration:underline}

/* WA melayang */
.float-wa{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));z-index:5;display:flex;align-items:center;gap:8px;
  padding:13px 22px;border-radius:99px;background:var(--wa);color:#fff;font-weight:700;box-shadow:0 8px 24px rgba(31,170,89,.35);
  transform:translate(-50%,140%);transition:transform .25s ease}
.float-wa.show{transform:translate(-50%,0)}

/* bottom sheet */
.sheet{padding:0;border:0;margin:auto auto 0;width:100%;max-width:520px;max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;background:var(--card);color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
.sheet[open]{animation:up .28s cubic-bezier(.2,.8,.2,1)}
.sheet::backdrop{background:rgba(10,16,24,.5);backdrop-filter:blur(2px)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.sheet-in{position:relative}
.sheet-x{position:sticky;top:12px;float:right;margin:12px 12px -54px 0;z-index:2;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:#14202e;box-shadow:var(--shadow)}
.sh-img{width:100%;aspect-ratio:16/10;object-fit:cover}
.sh-pad{padding:18px 20px calc(24px + env(safe-area-inset-bottom))}
.sh-tags{display:flex;gap:6px;margin-bottom:10px} .sh-tags .badge{background:var(--gold-soft);color:var(--gold)} .sh-tags .badge.soon{background:var(--gold);color:#fff}
.sh-pad h2{font-size:1.35rem;letter-spacing:-.02em;margin-bottom:4px}
.sh-price{margin:12px 0 0;font-size:1.3rem;font-weight:800} .sh-price small{display:block;font-size:.72rem;color:var(--muted);font-weight:600}
.lead{margin:12px 0 0;font-weight:600}
.date{margin:0 0 4px;font-size:.78rem;color:var(--muted)}
.specs{list-style:none;margin:16px 0 0;padding:14px;display:grid;gap:8px;background:var(--bg);border-radius:14px;font-size:.88rem}
.specs li{display:flex;align-items:center;gap:8px} .specs .i{color:var(--gold);width:17px;height:17px}
.prose{margin-top:14px;color:var(--muted);font-size:.92rem} .prose p{margin:0 0 .8em}
.sh-actions{display:grid;gap:10px;margin-top:20px}

@media (min-width:600px){
  .page{max-width:760px;padding-top:32px} .cover{height:200px}
  .tiles{grid-template-columns:repeat(4,1fr)} .tiles>.tile:last-child:nth-child(odd){grid-column:auto;flex-direction:column;align-items:stretch}
  .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .news{grid-template-columns:repeat(3,minmax(0,1fr))} .news>.post:last-child:nth-child(odd){grid-column:auto;flex-direction:column;align-items:stretch} .news>.post:last-child:nth-child(odd) img{width:100%;aspect-ratio:16/10}
  .form{grid-template-columns:1fr 1fr} .form label:nth-of-type(n+3),.form .submit,.form .fine{grid-column:1/-1}
  .sheet{margin:auto;border-radius:24px} .sh-pad{padding-bottom:24px}
}
/* layar lebar: profil jadi sidebar menempel di kiri, konten grid di kanan */
@media (min-width:1000px){
  .page{max-width:1180px;padding:32px 24px 64px;display:grid;grid-template-columns:340px minmax(0,1fr);gap:40px;align-items:start}
  .side{position:sticky;top:24px;max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:none}
  .side::-webkit-scrollbar{display:none}
  .cover{height:150px}
  .tiles{grid-template-columns:repeat(2,1fr)} .tiles>.tile:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;align-items:center}
  .actions{margin-bottom:16px}
  .main>.block:first-child{margin-top:0}
  .chips{margin:0 0 16px;padding:0}
  .float-wa{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
