/* Kalash Listings - public site */
:root {
  --bg: #f6f7fb; --card: #fff; --text: #0f172a; --muted: #64748b; --line: #e6e8ef; --soft: #f1f5f9;
  --brand: #1270ad; --brand-2: #0e4174; --brand-soft: #eaf3fa; --ring: rgba(18, 112, 173, .2);
  --ok: #059669; --wa: #16a34a; --danger: #dc2626;
  --r: 16px; --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07); --sh2: 0 16px 40px rgba(15, 23, 42, .14);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0e17; --card: #121826; --text: #e5e7eb; --muted: #94a3b8; --line: #1f2937; --soft: #0f1522;
    --brand: #4fa3c2; --brand-2: #1a7fc1; --brand-soft: rgba(79, 163, 194, .12); --sh: 0 1px 2px rgba(0, 0, 0, .3); --sh2: 0 16px 40px rgba(0, 0, 0, .5); }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.in { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr .in { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 17px; letter-spacing: -.02em; }
.lk { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #4fa3c2, #1270ad 55%, #0e4174); box-shadow: 0 6px 16px rgba(18, 112, 173, .3); }
.nv { display: flex; gap: 4px; flex: 1; }
.nv a { color: var(--text); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 9px; }
.nv a:hover { background: var(--soft); }
.hcta { display: flex; gap: 8px; }
@media (max-width: 760px) { .hide-sm { display: none; } .nv a { padding: 8px 8px; font-size: 13.5px; } .hdr .in { gap: 10px; } .logo span:last-child { display: none; } }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1a7fc1, #1270ad); color: #fff; font: 600 15px "Inter", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(18, 112, 173, .25); transition: filter .15s, transform .05s; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.wa { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 2px 8px rgba(22, 163, 74, .25); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.full { width: 100%; }
input, select, textarea { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--text); font: inherit; }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
label.f { display: block; margin-bottom: 12px; }
label.f span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 120px;
  background: radial-gradient(circle at 15% 20%, rgba(79, 163, 194, .55), transparent 40%), radial-gradient(circle at 85% 70%, rgba(79, 163, 194, .35), transparent 45%), linear-gradient(140deg, #0b2545, #0e4174 55%, #0b2545); }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 14px; max-width: 760px; font-weight: 800; }
.hero p { font-size: 17px; color: rgba(255, 255, 255, .8); margin: 0; max-width: 620px; }
.hero .stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero .stats b { display: block; font-size: 26px; }
.hero .stats span { color: rgba(255, 255, 255, .7); font-size: 13px; }
.search { position: relative; margin: -70px auto 0; z-index: 5; }
.search form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh2); padding: 14px;
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 10px; }
.search .q { position: relative; }
.search .q .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .q input { padding-left: 42px; }
@media (max-width: 860px) { .search form { grid-template-columns: 1fr 1fr; } .search .q { grid-column: 1 / -1; } .search button { grid-column: 1 / -1; } }

/* sections */
.sec { padding: 56px 0 8px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-h h2 { font-size: 26px; margin: 0; }
.sec-h p { margin: 4px 0 0; color: var(--muted); }
.sec-h a { font-weight: 600; display: flex; align-items: center; gap: 6px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--text);
  box-shadow: var(--sh); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.cat .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cat .ci .i { width: 24px; height: 24px; }
.cat b { display: block; font-size: 15px; }
.cat span { color: var(--muted); font-size: 13px; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--text);
  box-shadow: var(--sh); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.04); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand);
  background: radial-gradient(circle at 30% 30%, var(--brand-soft), transparent 60%), linear-gradient(135deg, var(--soft), var(--brand-soft)); }
.noimg .i { width: 54px; height: 54px; stroke-width: 1.4; opacity: .8; }
.pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff; backdrop-filter: blur(4px); }
.pill .i { width: 13px; height: 13px; }
.pill.feat, .pill.sold { left: auto; right: 12px; }
.pill.feat { background: #f59e0b; color: #451a03; }
.pill.sold { background: var(--danger); }
.pill.p-rent { background: rgba(37, 99, 235, .9); }
.card .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .pr { font-size: 19px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.card .pr small { font-size: 12px; font-weight: 500; color: var(--muted); }
.card h3 { font-size: 15.5px; margin: 0; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .lc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.card .lc .i { width: 15px; height: 15px; }
.card .fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.card .fx span { font-size: 12px; font-weight: 600; background: var(--soft); border-radius: 8px; padding: 3px 9px; color: var(--muted); }

/* browse */
.page-h { padding: 34px 0 6px; }
.page-h h1 { font-size: 30px; margin: 0 0 4px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.browse { display: grid; grid-template-columns: 290px 1fr; gap: 26px; padding: 18px 0 40px; align-items: start; }
.filt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); position: sticky; top: 84px; }
.filt h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.filt .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filt input, .filt select { height: 42px; border-radius: 10px; font-size: 14px; }
.filt .clear { display: block; text-align: center; margin-top: 10px; font-size: 13px; }
.res-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.res-h select { width: auto; height: 40px; }
details.mf { display: none; }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filt { position: static; }
  .filt-wrap { display: none; }
  details.mf { display: block; margin-bottom: 14px; }
  details.mf summary { list-style: none; cursor: pointer; }
  details.mf summary::-webkit-details-marker { display: none; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 60px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty .i { width: 42px; height: 42px; color: var(--brand); margin: 0 auto 10px; stroke-width: 1.5; }

/* detail */
.det { display: grid; grid-template-columns: 1fr 370px; gap: 28px; padding: 10px 0 50px; align-items: start; }
@media (max-width: 960px) { .det { grid-template-columns: 1fr; } }
.gal .main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--soft); box-shadow: var(--sh); }
.gal .main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gal .main .noimg .i { width: 80px; height: 80px; }
.gal .thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gal .thumbs button { flex: none; width: 92px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.gal .thumbs button.on { border-color: var(--brand); }
.gal .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); margin-bottom: 20px; }
.box h2 { font-size: 18px; margin: 0 0 14px; }
.title-row h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.title-row .lc { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.badge.o { background: var(--brand-soft); color: var(--brand-2); }
.badge.s { background: rgba(220, 38, 38, .1); color: var(--danger); }
.badge .i { width: 14px; height: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fact { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.fact span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.fact b { font-size: 15px; }
.desc { white-space: pre-line; color: var(--text); }
.docs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.docs a:hover { border-color: var(--brand); }
.docs .di { width: 40px; height: 40px; border-radius: 10px; background: rgba(220, 38, 38, .1); color: var(--danger); display: grid; place-items: center; }
.side-box { position: sticky; top: 84px; }
.price-big { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.price-big small { font-size: 14px; color: var(--muted); font-weight: 500; }
.cta { display: grid; gap: 10px; margin: 16px 0 6px; }
.note { font-size: 12.5px; color: var(--muted); }
.ok-msg { background: rgba(5, 150, 105, .1); color: var(--ok); padding: 12px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; }
.err-msg { background: rgba(220, 38, 38, .1); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.share { display: flex; gap: 8px; margin-top: 12px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lb button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; cursor: pointer; }

/* contact strip + footer */
.strip { margin: 60px 0 0; border-radius: 22px; padding: 34px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0a2f55, #1270ad 55%, #4fa3c2); box-shadow: var(--sh2); }
.strip h2 { margin: 0 0 6px; font-size: 24px; }
.strip p { margin: 0; color: rgba(255, 255, 255, .85); }
.strip .btn { background: #fff; color: #0a2f55; box-shadow: none; }
.strip .btn.wa { background: #16a34a; color: #fff; }
.ftr { margin-top: 70px; background: #0f172a; color: #cbd5e1; padding: 48px 0 0; }
.ftr .in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .ftr .in { grid-template-columns: 1fr; } }
.ftr .logo { color: #fff; }
.ftr p { color: #94a3b8; max-width: 380px; }
.ftr h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.ftr a, .ftr span { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 14px; margin-bottom: 8px; }
.ftr a:hover { color: #fff; }
.ftr .copy { text-align: center; color: #64748b; font-size: 13px; padding: 20px; margin-top: 30px; border-top: 1px solid #1e293b; }

/* ---------- Kalash Group brand ---------- */
.lk { background: #fff !important; padding: 5px; box-shadow: 0 4px 14px rgba(14, 65, 116, .22) !important; overflow: hidden; }
.lk img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo .nm { display: flex; flex-direction: column; line-height: 1.1; }
.logo .nm small { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.pill.feat { background: #fbbf24; color: #422006; }
.ftr .lk { box-shadow: none !important; }
.staff { font-size: 12.5px; color: #64748b !important; }