/* GadaiRumah - tema biru laut gradient, putih, dengan mode gelap. Semua dibatasi pada .gr-* agar aman dengan tema apa pun. */
:root{
  --gr-grad:linear-gradient(135deg,#0b4f9c 0%,#0e7fc0 55%,#06b6d4 100%);
  --gr-primary:#0b6bb8;--gr-primary-d:#084f8a;--gr-primary-l:#e6f2fb;
  --gr-bg:#ffffff;--gr-surface:#f4f8fc;--gr-card:#ffffff;--gr-border:#dbe5ef;
  --gr-text:#0f1b2d;--gr-muted:#5b6b80;--gr-danger:#c0392b;--gr-ok:#1e8e5a;
  --gr-radius:12px;--gr-shadow:0 1px 2px rgba(15,27,45,.06),0 6px 18px rgba(15,27,45,.06);
}
html[data-gr-theme="dark"]{
  --gr-primary:#38a8e8;--gr-primary-d:#7cc6f2;--gr-primary-l:#10304a;
  --gr-bg:#0a1220;--gr-surface:#0f1a2c;--gr-card:#111d31;--gr-border:#1f2f48;
  --gr-text:#e6eef9;--gr-muted:#93a4bd;--gr-danger:#ff7b6b;--gr-ok:#4fd39a;
  --gr-shadow:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.35);
  color-scheme:dark;
}
html[data-gr-theme="dark"] body{background:var(--gr-bg)!important;color:var(--gr-text)}
html[data-gr-theme="dark"] body a{color:var(--gr-primary)}

.gr-app,.gr-app *,.gr-fab,.gr-fab *{box-sizing:border-box}
.gr-app{color:var(--gr-text);font-size:16px;line-height:1.6}
.gr-app a{color:var(--gr-primary);text-decoration:none}
.gr-i{flex:none;vertical-align:-3px}
.gr-muted{color:var(--gr-muted)}
.gr-req{color:var(--gr-danger)}
.gr-h2{font-size:1.5rem;line-height:1.3;margin:0 0 .4rem;color:var(--gr-text)}
.gr-h3{font-size:1.2rem;margin:0 0 .8rem;color:var(--gr-text)}
.gr-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* Tombol */
.gr-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.7rem 1.1rem;border:1px solid transparent;border-radius:10px;background:var(--gr-grad);color:#fff!important;font:600 .95rem/1.2 inherit;cursor:pointer;text-decoration:none!important;transition:filter .15s,transform .05s}
.gr-btn:hover{filter:brightness(1.08)}.gr-btn:active{transform:translateY(1px)}
.gr-btn[disabled]{opacity:.6;cursor:not-allowed}
.gr-btn--ghost{background:transparent;color:var(--gr-primary)!important;border-color:var(--gr-border)}
.gr-btn--ghost:hover{background:var(--gr-primary-l);filter:none}
.gr-btn--sm{padding:.45rem .8rem;font-size:.85rem}
.gr-btn--lg{padding:.9rem 1.4rem;font-size:1rem}
.gr-btn--block{width:100%}
.gr-btn--light{background:#fff;color:#0b4f9c!important}
.gr-btn--outline-light{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.7)}
.gr-btn--outline-light:hover{background:rgba(255,255,255,.12)}

/* Hero */
.gr-hero{background:var(--gr-grad);color:#fff;border-radius:0 0 var(--gr-radius) var(--gr-radius);padding:clamp(2rem,6vw,4rem) 1rem}
.gr-hero__inner{max-width:1100px;margin:0 auto}
.gr-hero__title{color:#fff;font-size:clamp(1.6rem,4.5vw,2.6rem);line-height:1.2;margin:0 0 .6rem}
.gr-hero__sub{max-width:640px;margin:0 0 1.4rem;color:rgba(255,255,255,.92)}
.gr-hero__cta{display:flex;flex-wrap:wrap;gap:.6rem}

/* Panel & form */
.gr-gadai,.gr-posting,.gr-kontak{max-width:1100px;margin:1.5rem auto;padding:0 1rem}
.gr-posting,.gr-kontak{max-width:860px}
.gr-panel{background:var(--gr-card);border:1px solid var(--gr-border);border-radius:var(--gr-radius);padding:clamp(1rem,3vw,1.75rem);box-shadow:var(--gr-shadow)}
.gr-form{display:flex;flex-direction:column;gap:1rem}
.gr-field{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem;min-width:0}
.gr-field>span{font-weight:600;color:var(--gr-text)}
.gr-field small{font-weight:400;color:var(--gr-muted)}
.gr-app input[type=text],.gr-app input[type=tel],.gr-app input[type=email],.gr-app input[type=url],.gr-app input[type=number],.gr-app input[type=search],.gr-app select,.gr-app textarea{
  width:100%;padding:.65rem .8rem;border:1px solid var(--gr-border);border-radius:10px;background:var(--gr-bg);color:var(--gr-text);font:inherit;font-size:.95rem;line-height:1.4;box-shadow:none}
.gr-app textarea{resize:vertical}
.gr-app input:focus,.gr-app select:focus,.gr-app textarea:focus{outline:2px solid var(--gr-primary);outline-offset:1px;border-color:transparent}
.gr-app select:disabled{opacity:.55}
.gr-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.gr-cols--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gr-region{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.gr-fieldset{border:1px solid var(--gr-border);border-radius:var(--gr-radius);padding:1rem;display:flex;flex-direction:column;gap:1rem;margin:0;min-width:0}
.gr-fieldset legend{padding:0 .4rem;font-weight:700;color:var(--gr-primary)}
.gr-radios{display:flex;gap:1.2rem;flex-wrap:wrap}
.gr-radios label,.gr-check{display:flex;gap:.5rem;align-items:flex-start;font-size:.92rem}
.gr-app input[type=checkbox],.gr-app input[type=radio]{margin-top:.25rem;accent-color:var(--gr-primary)}
.gr-upload{display:flex;align-items:center;gap:.7rem;padding:1.1rem;border:2px dashed var(--gr-border);border-radius:var(--gr-radius);cursor:pointer;color:var(--gr-muted)}
.gr-upload:hover{border-color:var(--gr-primary);color:var(--gr-primary)}
.gr-upload input{position:absolute;opacity:0;width:1px;height:1px}
.gr-msg{padding:.75rem 1rem;border-radius:10px;font-size:.92rem}
.gr-msg.is-ok{background:rgba(30,142,90,.12);color:var(--gr-ok);border:1px solid rgba(30,142,90,.35)}
.gr-msg.is-err{background:rgba(192,57,43,.1);color:var(--gr-danger);border:1px solid rgba(192,57,43,.35)}
.gr-form.is-done>*:not([data-gr-msg]){display:none}
.gr-field.has-err input,.gr-field.has-err select,.gr-field.has-err textarea{border-color:var(--gr-danger)}

/* Daftar + filter */
.gr-list{max-width:1200px;margin:1.5rem auto;padding:0 1rem}
.gr-list__layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:1.5rem;align-items:start}
.gr-filter{position:sticky;top:1rem;background:var(--gr-card);border:1px solid var(--gr-border);border-radius:var(--gr-radius);padding:1rem;box-shadow:var(--gr-shadow)}
.gr-filter__form{display:flex;flex-direction:column;gap:.9rem}
.gr-filter .gr-region{grid-template-columns:1fr;gap:.9rem}
.gr-filter__toggle{display:none;width:100%}
.gr-filter__actions{display:flex;gap:.5rem}.gr-filter__actions .gr-btn{flex:1}
.gr-range{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.gr-input-icon{position:relative;display:block}
.gr-input-icon .gr-i{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:var(--gr-muted)}
.gr-input-icon input{padding-left:2.1rem!important}
.gr-list__bar{color:var(--gr-muted);font-size:.9rem;margin-bottom:.8rem}
.gr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.1rem;transition:opacity .15s}
.gr-grid.is-loading{opacity:.5}
.gr-more{text-align:center;margin:1.5rem 0}
.gr-empty{grid-column:1/-1;text-align:center;padding:2.5rem 1rem;color:var(--gr-muted)}

/* Kartu */
.gr-card{background:var(--gr-card);border:1px solid var(--gr-border);border-radius:var(--gr-radius);box-shadow:var(--gr-shadow);display:flex;flex-direction:column;position:relative}
.gr-card__media{position:relative;display:block;aspect-ratio:4/3;background:var(--gr-surface);border-radius:var(--gr-radius) var(--gr-radius) 0 0;overflow:hidden}
.gr-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.gr-card__noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gr-muted)}
.gr-badge{position:absolute;top:.6rem;left:.6rem;padding:.2rem .6rem;border-radius:999px;font-size:.75rem;font-weight:700;color:#fff;background:var(--gr-primary)}
.gr-badge--gadai{background:#0891b2}
.gr-card__body{padding:.9rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.gr-card__price{font-weight:800;font-size:1.15rem;color:var(--gr-primary)}
.gr-card__title{font-size:.98rem;line-height:1.35;margin:0;font-weight:600}
.gr-card__title a{color:var(--gr-text)!important}
.gr-card__loc{margin:0;color:var(--gr-muted);font-size:.85rem}
.gr-card__specs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem .8rem;font-size:.8rem;color:var(--gr-muted)}
.gr-card__specs .gr-i{margin-right:2px}
.gr-card__foot{margin-top:auto;padding-top:.6rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem}

/* Bagikan */
.gr-share{position:relative;display:inline-block}
.gr-share__menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;min-width:180px;background:var(--gr-card);border:1px solid var(--gr-border);border-radius:10px;box-shadow:var(--gr-shadow);padding:.35rem;display:flex;flex-direction:column}
.gr-share__menu[hidden]{display:none}
.gr-share__menu a,.gr-share__menu button{display:flex;gap:.55rem;align-items:center;padding:.5rem .6rem;border:0;background:none;border-radius:8px;color:var(--gr-text)!important;font:inherit;font-size:.9rem;cursor:pointer;text-align:left}
.gr-share__menu a:hover,.gr-share__menu button:hover{background:var(--gr-primary-l)}
.gr-single .gr-share__menu{bottom:auto;top:calc(100% + 6px)}

/* Detail */
.gr-single{max-width:1100px;margin:0 auto}
.gr-single__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.gr-gallery__main{position:relative;aspect-ratio:4/3;border-radius:var(--gr-radius);overflow:hidden;background:var(--gr-surface)}
.gr-gallery__main img{width:100%;height:100%;object-fit:cover;display:block}
.gr-gallery__thumbs{display:flex;gap:.5rem;margin-top:.6rem;overflow-x:auto;padding-bottom:.2rem}
.gr-gallery__thumbs button{flex:none;width:72px;height:56px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:none;cursor:pointer;opacity:.7}
.gr-gallery__thumbs button.is-active{border-color:var(--gr-primary);opacity:1}
.gr-gallery__thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.gr-pricebox{background:var(--gr-card);border:1px solid var(--gr-border);border-radius:var(--gr-radius);padding:1.1rem;box-shadow:var(--gr-shadow);position:sticky;top:1rem}
.gr-pricebox__label{font-size:.8rem;color:var(--gr-muted)}
.gr-pricebox__price{font-size:1.9rem;font-weight:800;color:var(--gr-primary);line-height:1.2}
.gr-pricebox__nego{margin:.3rem 0 0;font-size:.85rem}
.gr-loc{display:flex;gap:.4rem;align-items:flex-start;margin:.8rem 0;font-size:.92rem}
.gr-pricebox__actions{display:flex;flex-direction:column;gap:.55rem;margin-top:.8rem}
.gr-pricebox__actions .gr-share{align-self:stretch}.gr-pricebox__actions .gr-share>button{width:100%}
.gr-note{display:flex;gap:.4rem;font-size:.8rem;color:var(--gr-muted);margin:.9rem 0 0}
.gr-section{margin-top:1.8rem}
.gr-specs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.7rem;margin:0}
.gr-specs>div{background:var(--gr-surface);border-radius:10px;padding:.65rem .8rem}
.gr-specs dt{font-size:.78rem;color:var(--gr-muted)}.gr-specs dd{margin:0;font-weight:600}
.gr-desc p{margin:0 0 1em}

/* Modal */
.gr-modal{position:fixed;inset:0;z-index:99999;background:rgba(5,12,24,.6);display:flex;align-items:center;justify-content:center;padding:1rem;overflow-y:auto}
.gr-modal[hidden]{display:none}
.gr-modal__box{position:relative;width:100%;max-width:460px;max-height:92vh;overflow-y:auto;background:var(--gr-card);color:var(--gr-text);border-radius:var(--gr-radius);padding:1.4rem;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.gr-modal__close{position:absolute;right:.6rem;top:.6rem;border:0;background:none;color:var(--gr-muted);cursor:pointer;padding:.3rem}
.gr-hint{font-size:.82rem;margin:-.4rem 0 0}

/* Tombol mengambang */
.gr-fab{position:fixed;right:14px;bottom:14px;z-index:9999;display:flex;flex-direction:column;gap:.5rem}
.gr-fab__btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--gr-border);background:var(--gr-card);color:var(--gr-primary);box-shadow:var(--gr-shadow);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.gr-fab__btn[hidden]{display:none}
.gr-ico-sun{display:none}
html[data-gr-theme="dark"] .gr-ico-sun{display:inline-flex}
html[data-gr-theme="dark"] .gr-ico-moon{display:none}

/* FAQ (halaman bawaan) */
.gr-faq details{border:1px solid var(--gr-border);border-radius:10px;padding:.75rem 1rem;margin-bottom:.6rem;background:var(--gr-card)}
.gr-faq summary{cursor:pointer;font-weight:600}
.gr-faq p{margin:.6rem 0 0;color:var(--gr-muted)}

@media (max-width:900px){
  .gr-list__layout{grid-template-columns:1fr}
  .gr-filter{position:static}
  .gr-filter__toggle{display:inline-flex}
  .gr-filter__form{display:none;margin-top:.8rem}
  .gr-filter.is-open .gr-filter__form{display:flex}
  .gr-single__grid{grid-template-columns:1fr}
  .gr-pricebox{position:static}
}
@media (max-width:600px){
  .gr-cols,.gr-region{grid-template-columns:1fr}
  .gr-cols--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}
