/* Blackkey Homes: the public marketplace. Same lacquer and brass as the workspace, laid out for browsing. */

body[data-area='homes'] { background: var(--ground); color: var(--ink); min-height: 100dvh; display: block; overflow-x: hidden; }
#homes { min-height: 100dvh; display: flex; flex-direction: column; }
.hs-main { flex: 1; width: 100%; outline: none; }
::selection { background: rgba(212, 172, 85, .32); }

/* the brass button: the one call to action per screen */
.btn-gold { background: var(--gold); color: #140f04; border-color: var(--gold); font-weight: 750; }
.btn-gold:hover:not(:disabled) { background: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .75); }
.btn-gold .spinner { border-color: rgba(20, 15, 4, .25); border-top-color: #140f04; }

/* ---------- header: ss.ge's white bar, in lacquer for the dark theme ---------- */
.hs-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 68px; padding: 0 clamp(16px, 3vw, 40px); background: var(--panel); border-bottom: 1px solid var(--line); }
.hs-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.hs-brand .mark { width: 30px; height: 18px; }
.hs-word { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.hs-word em { font-style: normal; color: var(--brass); }
.hs-word b { margin-left: 7px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.hs-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hs-post { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 750; font-size: 14px; text-decoration: none; transition: background var(--t-fast), transform var(--t-fast); }
.hs-post:hover { background: var(--accent-hi); }
.hs-post:active { transform: scale(.97); }
.hs-post .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.hs-in { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.hs-in:hover { background: var(--panel-2); }
.hs-in .icon { width: 17px; height: 17px; }
.hs-theme { width: 40px; height: 40px; border-radius: 999px; }
.hs-lang button { min-width: 42px; }

/* ---------- results: filter bar, title, list and sidebar ---------- */
.hs-main.hb { background: var(--ground); }
.hb-filter { position: sticky; top: 68px; z-index: 25; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgba(0, 0, 0, .6); }
.hb-filter-in { max-width: 1312px; margin: 0 auto; padding: 10px 16px; }
.hb-filter .ks { min-height: 58px; padding: 4px; border-radius: 14px; box-shadow: none; background: var(--panel-2); border-color: var(--line); }
.hb-filter .ks-seg:hover, .hb-filter .ks-seg.open, .hb-filter .ks-more:hover { background: var(--panel); }
.hb-filter .ks-go { padding: 0 24px; }
.hb-page { max-width: 1312px; margin: 0 auto; padding: 24px 16px 64px; }
.hb-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hb-titlebar h1 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
html[lang='ka'] .hb-titlebar h1 { letter-spacing: 0; }
.hb-view { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.hb-view button { width: 38px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; background: none; color: var(--ink-3); cursor: pointer; }
.hb-view button .icon { width: 19px; height: 19px; }
.hb-view button.on { background: var(--ink); color: var(--ground); }
.hb-view button:not(.on):hover { color: var(--ink); background: var(--panel-2); }
.hb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.hb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.hb-tools > b { font-size: 14.5px; }
.hb-sort { display: inline-flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line-2); color: var(--ink-3); }
.hb-sort .icon { width: 17px; height: 17px; }
.hb-sort select { width: auto; height: 36px; border: 0; background-color: transparent; color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 26px 0 2px; background-position: right 2px center; box-shadow: none; }
.hb-cur { margin-left: auto; }
.hb-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-chips:empty { display: none; }
.hb-chips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font-weight: 650; font-size: 13px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.hb-chips button .icon { width: 15px; height: 15px; color: var(--ink-3); }
.hb-chips button:hover { border-color: var(--ink-3); }
.hb-chips button:hover .icon { color: var(--terra-text); }
.hb-chips .hb-clear { padding: 0 12px; background: none; border-color: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.hb-list { display: grid; gap: 12px; transition: opacity var(--t-fast); }
.hb-list.is-loading, .hb-grid-cards.is-loading { opacity: .45; pointer-events: none; }
.hb-list .hs-skel { height: 224px; }
.hb-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; transition: opacity var(--t-fast); }
.hb-pages { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; color: var(--ink-3); }
.hb-pages:empty { display: none; }
.hb-pages button { min-width: 42px; height: 42px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.hb-pages button .icon { width: 18px; height: 18px; }
.hb-pages button:hover:not(:disabled) { border-color: var(--line-2); background: var(--panel-2); }
.hb-pages button.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.hb-pages button:disabled { opacity: .4; cursor: default; }
.hb-side { position: sticky; top: 160px; display: grid; gap: 14px; }
.hb-side-card { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.hb-side-card[hidden] { display: none; }
.hb-side-card h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.hb-side-card h2 .icon { width: 18px; height: 18px; color: var(--gold-text); }
.hb-fresh { display: grid; gap: 4px; }
.hb-fresh-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 10px; color: inherit; text-decoration: none; }
.hb-fresh-i:hover { background: var(--panel-2); }
.hb-fresh-img { width: 64px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.hb-fresh-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-fresh-img .mark { width: 30px; height: 18px; opacity: .5; }
.hb-fresh-i > span:last-child { display: grid; min-width: 0; }
.hb-fresh-i b { font-size: 15px; font-weight: 800; }
.hb-fresh-i small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-side-post { display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: radial-gradient(120% 120% at 100% 0%, rgba(212, 172, 85, .22), transparent 60%), #0b0b0c; border: 1px solid color-mix(in srgb, var(--gold) 35%, #222); color: #ece8df; text-decoration: none; }
.hb-side-mark .mark { width: 40px; height: 24px; margin-bottom: 6px; }
.hb-side-post b { font-size: 17px; }
.hb-side-post > span:not(.btn):not(.hb-side-mark) { color: #aeaba4; font-size: 13.5px; line-height: 1.5; }
.hb-side-post .btn { justify-self: start; margin-top: 8px; border-radius: 999px; }
@media (max-width: 1100px) {
  .hb-cols { grid-template-columns: minmax(0, 1fr); }
  .hb-side { display: none; }
}
@media (max-width: 760px) {
  .hb-filter { position: static; }
  .hb-filter-in { padding: 8px; }
  .hb-cur { margin-left: auto; }
  .hb-sort { border-left: 0; padding-left: 0; }
  .hb-tools > b { flex-basis: 100%; }
  .hb-filter .ks { padding: 6px; }
  .hs-post span, .hs-in span, .hs-word b { display: none; }
  .hs-post, .hs-in { width: 40px; padding: 0; justify-content: center; }
  .hs-top { gap: 10px; }
  .hs-right { gap: 6px; }
}

/* a listing card */
.hc { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t-fast), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.hc:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .75); }
.hc.is-gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.hc.is-black { border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: -1px; }
.hc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; }
.hc-track, .hc-track img, .hc-noimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc-track img { object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.hc:hover .hc-track img { transform: scale(1.03); }
.hc-noimg { display: grid; place-items: center; }
.hc-noimg .mark { width: 60px; height: 34px; opacity: .45; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.hc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hc-dots i.on { background: #fff; }
.hc-nav { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 10, 10, .55); color: #fff; opacity: 0; cursor: pointer; transition: opacity var(--t-fast); }
.hc-nav .icon { width: 18px; height: 18px; }
.hc-nav.prev { left: 8px; } .hc-nav.next { right: 8px; }
.hc:hover .hc-nav, .hc-nav:focus-visible { opacity: 1; }
.hc-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.hc-deal { height: 24px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; background: rgba(10, 10, 10, .72); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.vip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.vip .mark { width: 16px; height: 9px; gap: 1px; }
.vip-silver { background: #c9ccd3; color: #15171b; }
.vip-gold { background: var(--gold); color: #140f04; }
.vip-black { background: #070707; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.hc-fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 10, 10, .55); color: #fff; cursor: pointer; transition: transform var(--t-fast) var(--ease), color var(--t-fast); backdrop-filter: blur(6px); }
.hc-fav .icon { width: 19px; height: 19px; }
.hc-fav:active { transform: scale(.88); }
.hc-fav.on { color: var(--gold-hi); }
.hc-fav.on .icon, .hc-fav-l.on .icon { fill: currentColor; }
.hc-body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; color: inherit; text-decoration: none; min-width: 0; }
.hc-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.hc-price small { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.hc-title { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; min-height: 2.7em; }
.hc-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.hc-specs span { display: inline-flex; align-items: center; gap: 5px; }
.hc-specs .icon { width: 15px; height: 15px; color: var(--ink-3); }
.hc-foot { display: grid; gap: 4px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.hc-place { display: flex; align-items: center; gap: 5px; min-width: 0; }
.hc-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-place .icon { width: 14px; height: 14px; flex: none; }
.hc-when b { color: var(--gold-text); font-weight: 700; }

/* ---------- one listing ---------- */
.hl { max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 72px; display: grid; gap: 22px; }
.hl-back { justify-self: start; }
.hl-gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; height: clamp(300px, 46vw, 540px); border-radius: var(--r-lg); overflow: hidden; }
.hl-gal button { position: relative; border: 0; padding: 0; background: var(--panel-2); cursor: zoom-in; overflow: hidden; }
.hl-gal button:first-child { grid-row: span 2; }
.hl-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.hl-gal button:hover img { transform: scale(1.03); }
.hl-gal.few-1 { grid-template-columns: 1fr; } .hl-gal.few-1 button { grid-row: span 2; }
.hl-gal.few-2 { grid-template-columns: 2fr 1fr; } .hl-gal.few-2 button:nth-child(2) { grid-row: span 2; }
.hl-gal.few-3 { grid-template-columns: 2fr 1fr; } .hl-gal.few-4 { grid-template-columns: 2fr 1fr 1fr; } .hl-gal.few-4 button:nth-child(4) { grid-column: span 2; }
.hl-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .52); color: #fff; font-size: 22px; font-weight: 800; }
.hl-noimg { display: grid; place-items: center; background: var(--panel); grid-column: 1 / -1; grid-row: 1 / -1; }
.hl-noimg .mark { width: 90px; height: 52px; opacity: .4; }
.hl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.hl-main { display: grid; gap: 18px; min-width: 0; }
.hl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-main h1 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.hl-addr { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 15px; }
.hl-addr .icon { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.hl-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.hl-price .money { gap: 12px; }
.hl-price small { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.hl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.hl-facts > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 14px 16px; border-right: 1px solid var(--line); align-items: center; }
.hl-facts > div:last-child { border-right: 0; }
.hl-facts .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--gold-text); }
.hl-facts b { font-size: 20px; font-weight: 800; }
.hl-facts small { font-size: 12px; color: var(--ink-3); }
.hl-sec { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.hl-sec h2 { font-size: 18px; }
.hl-desc { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; max-width: 72ch; overflow-wrap: anywhere; }
.hl-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; margin: 0; }
.hl-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.hl-dl dt { color: var(--ink-3); }
.hl-dl dd { margin: 0; font-weight: 650; text-align: right; }
.hl-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; }
.hl-feats li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.hl-feats .icon { width: 16px; height: 16px; color: var(--teal-text); }
.hl-map { height: 320px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.hl-map.is-dark .leaflet-tile-pane, .hp-map.is-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.5); }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--line); }
.hl-report { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font: inherit; }
.hl-report:hover { color: var(--terra-text); }
.hl-report .icon { width: 14px; height: 14px; }
.hl-side { position: sticky; top: 88px; }
.hl-seller { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .8); }
.hl-seller-top { display: flex; align-items: center; gap: 14px; }
.hl-seller-top b { display: block; font-size: 16px; }
.hl-seller-top small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hl-phone { display: grid; gap: 10px; }
.hl-show { width: 100%; height: 50px; font-size: 16px; }
.hl-num { display: block; color: var(--ink); font-family: var(--font); margin: 4px auto 2px; }
.hl-call { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-call .btn { height: 46px; }
.hl-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hl-hint .icon { width: 14px; height: 14px; flex: none; }
.hl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hc-fav-l.on { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 50%, var(--line-2)); }
.hl-similar { display: grid; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.hl-similar h2 { font-size: 22px; letter-spacing: -.02em; }
.hl-load { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px); }

/* dialogs and the photo viewer */
dialog.hd { width: min(440px, calc(100vw - 32px)); padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); box-shadow: var(--shadow-pop); animation: rise var(--t) var(--ease) both; }
dialog.hd::backdrop, dialog.hlb::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.hd-x { position: absolute; top: 12px; right: 12px; }
.hd-gate { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 6px; }
.hd-gate .mark { width: 54px; height: 31px; }
.hd-gate h2 { font-size: 21px; letter-spacing: -.02em; text-wrap: balance; }
.hd-gate p { color: var(--ink-2); font-size: 14.5px; }
.hd-gate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.hd-report { display: grid; gap: 14px; }
.hd-report h2 { font-size: 19px; }
.hd-reasons { display: grid; gap: 10px; }
.hd-report textarea { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: inherit; resize: vertical; }
.check input[type=radio] { border-radius: 50%; }
dialog.hlb { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(4, 4, 4, .94); display: grid; place-items: center; }
dialog.hlb img { max-width: 92vw; max-height: 86dvh; object-fit: contain; border-radius: 6px; }
.hlb-n { position: absolute; top: 20px; left: 24px; color: #ddd; font-weight: 650; }
.hlb-x { position: absolute; top: 14px; right: 14px; color: #fff; }
.hlb-b { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.hlb-b:hover { background: rgba(255, 255, 255, .22); }
.hlb-b.prev { left: 18px; } .hlb-b.next { right: 18px; }

/* ---------- sign in / sign up ---------- */
.hs-auth-main { display: grid; place-items: center; padding: 48px 16px; background: radial-gradient(700px 360px at 50% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%); }
.ha { width: 100%; display: grid; place-items: center; }
.ha-card { width: min(440px, 100%); display: grid; gap: 4px; padding: 32px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85); animation: rise var(--t-slow) var(--ease) both; }
.ha-card .hs-brand { justify-self: start; margin-bottom: 18px; }
.ha-card h1 { font-size: 28px; letter-spacing: -.025em; }
.ha-card > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.ha-card .field + .field { margin-top: 14px; }
.ha-card .hint { display: block; margin-top: 2px; font-size: 12.5px; }
.ha-go { width: 100%; height: 50px; margin-top: 18px; font-size: 16px; }
.ha-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.ha-switch a { color: var(--gold-text); font-weight: 700; text-decoration: none; }
/* phones: the form starts right under the bar, flat on the page, so the keyboard never sits over the field being typed in */
@media (max-width: 760px) {
  body:has(.hs-auth-main) .bh-sub { display: none; }
  .hs-auth-main { place-items: start center; padding: 20px 16px 32px; background: none; }
  .ha-card { padding: 4px 4px 8px; border: 0; background: none; box-shadow: none; animation: none; }
  .ha-card .hs-brand { display: none; }
  .ha-card h1 { font-size: 26px; }
}
.ha-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- post a listing ---------- */
.hp { max-width: 860px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 32px) 80px; display: grid; gap: 22px; }
.hp-head h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; }
.hp-head p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.hp-form { display: grid; gap: 16px; }
.hp-sec { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.hp-sec h2 { font-size: 17px; display: flex; align-items: baseline; gap: 6px; }
.hp-sec h2 small { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.hp-sec .field { margin: 0; align-content: start; }
.hp-chips button { height: 40px; padding: 0 16px; font-size: 14.5px; }
.hp-combo { position: relative; }
.hp-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px); max-height: 300px; overflow-y: auto; list-style: none; margin: 0; padding: 4px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.hp-sugg[hidden] { display: none; }
.hp-sugg li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.hp-sugg li b { font-size: 14px; }
.hp-sugg li small { font-size: 12px; color: var(--ink-3); }
.hp-sugg li.hi, .hp-sugg li:hover { background: var(--panel-2); }
.hp-street { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.hp-map { height: 280px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.hp-map .leaflet-bar, .hl-map .leaflet-bar { border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.hp-map .leaflet-bar a, .hl-map .leaflet-bar a { background: var(--raised); color: var(--ink); border-bottom-color: var(--line-2); }
.hp-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.hp-hint .icon { width: 14px; height: 14px; }
.hp-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.hp-sels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hp-cad { max-width: 320px; }
.hp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hp-amount { width: 220px; }
.hp-amount input { font-size: 19px; font-weight: 800; }
.hp-conv { font-size: 13.5px; color: var(--ink-3); }
.hp-conv:empty { display: none; }
.hp-feats { gap: 6px; }
.hp-sec textarea { width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; min-height: 90px; }
.hp-sec textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.hp-drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); background: var(--panel-2); text-align: center; cursor: pointer; transition: border-color var(--t-fast); }
.hp-drop:hover, .hp-drop.over, .hp-drop:focus-visible { border-color: var(--gold); outline: none; }
.hp-drop.busy { opacity: .7; pointer-events: none; }
.hp-drop > .icon { width: 28px; height: 28px; color: var(--gold-text); }
.hp-drop small { color: var(--ink-3); font-size: 12.5px; }
.hp-photos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hp-photos:empty { display: none; }
.hp-photos li { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--panel-2); cursor: grab; }
.hp-photos img { width: 100%; height: 100%; object-fit: cover; }
.hp-photos .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 7px; background: rgba(0, 0, 0, .6); color: #fff; }
.hp-cover { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 5px; background: var(--gold); color: #140f04; font-size: 11px; font-weight: 800; }
.hp-private { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.hp-private .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold-text); }
.hp-vips { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hp-vip { position: relative; cursor: pointer; }
.hp-vip input { position: absolute; opacity: 0; }
.hp-vip-in { display: grid; align-content: start; gap: 8px; height: 100%; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel-2); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.hp-vip-in b { font-size: 15px; }
.hp-vip-in small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.hp-vip-in .vip { justify-self: start; }
.hp-vip-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: auto; font-size: 13px; color: var(--ink-3); }
.hp-vip-p s { color: var(--ink-3); }
.hp-vip-in em { font-style: normal; font-weight: 750; color: var(--teal-text); font-size: 13px; }
.hp-vip:hover .hp-vip-in { border-color: var(--ink-3); }
.hp-vip input:checked + .hp-vip-in { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-ring); }
.hp-vip input:focus-visible + .hp-vip-in { box-shadow: 0 0 0 4px var(--accent-ring); }
.hp-vip.v-black .hp-vip-in { background: linear-gradient(160deg, #0b0b0c, #151413); }
.hp-foot { display: grid; justify-items: end; gap: 10px; position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(transparent, var(--ground) 40%); }
.hp-go { height: 52px; padding: 0 30px; font-size: 16px; }

/* ---------- my listings, account ---------- */
.hm, .hacc { max-width: 1040px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 72px; display: grid; gap: 20px; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-head .tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; color: var(--ink-3); font-weight: 650; font-size: 14px; text-decoration: none; }
.hm-head .tabs a.on { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.hm-head .tabs .icon { width: 16px; height: 16px; }
.hm-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hm-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.hm-thumb { grid-row: span 2; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hm-txt { display: grid; gap: 6px; min-width: 0; }
.hm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-top small { font-size: 12px; color: var(--ink-3); }
.hm-st.st-active { color: var(--teal-text); }
.hm-st.st-hidden, .hm-st.st-closed { color: var(--ink-3); }
.hm-st.st-blocked { color: var(--terra-text); }
.hm-title { font-weight: 650; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-title:hover { color: var(--gold-text); }
.hm-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-3); }
.hm-stats span { display: inline-flex; align-items: center; gap: 5px; }
.hm-stats span:first-child { color: var(--ink); font-weight: 750; }
.hm-stats .icon { width: 14px; height: 14px; }
.hm-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hm-acts select { width: auto; height: 34px; font-size: 13px; }
.hacc h1 { font-size: 30px; letter-spacing: -.025em; }
.hacc-card { display: grid; gap: 12px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); max-width: 520px; }
.hacc-card h2 { font-size: 17px; }
.hacc-card .field { margin: 0; }
.hacc-card .btn { justify-self: start; }

/* ---------- shared bits ---------- */
.hs-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; text-align: center; color: var(--ink-2); }
.hs-empty.wide { grid-column: 1 / -1; }
.hs-empty .mark { width: 60px; height: 35px; opacity: .55; }
.hs-empty > .icon { width: 30px; height: 30px; color: var(--gold-text); }
.hs-empty h2 { font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.hs-empty p { max-width: 46ch; }
.hs-skel { height: 300px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: hs-shimmer 1.4s linear infinite; }
.hs-skel.tall { height: 480px; }
@keyframes hs-shimmer { to { background-position: -300% 0; } }

/* ---------- footer ---------- */
.hs-foot { border-top: 1px solid var(--line); background: var(--panel); }
.hs-foot-in { width: calc(100% - 2 * clamp(16px, 4vw, 48px)); max-width: 1240px; margin: 0 auto; padding: 28px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hs-foot p { color: var(--ink-3); font-size: 13.5px; }
.hs-foot nav { margin-left: auto; display: flex; gap: 20px; }
.hs-foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.hs-foot nav a:hover { color: var(--gold-text); }
.hs-foot .hs-legal { flex-basis: 100%; order: 9; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px 20px; }
.hs-foot .hs-legal a { color: var(--ink-3); font-size: 13px; font-weight: 500; }

/* light theme keeps the photo overlays dark, everything else follows the tokens */
:root[data-theme='light'] .hp-vip.v-black .hp-vip-in { background: #111; color: #eee; }
:root[data-theme='light'] .hp-vip.v-black .hp-vip-in small { color: #bbb; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hl-cols { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .hl-cols { grid-template-columns: minmax(0, 1fr); }
  .hl-side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .hs-top { gap: 10px; height: 60px; }
  .hs-word b { display: none; }
  .hs-post span { display: none; }
  .hs-post { width: 42px; padding: 0; justify-content: center; }
  .hs-acc .btn-sm { padding: 0 10px; }
  .hl-gal { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; }
  .hl-gal button:not(:first-child) { display: none; }
  .hl-gal button:first-child::after { content: attr(aria-label); position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 650; }
  .hm-row { grid-template-columns: 96px minmax(0, 1fr); }
  .hm-acts { grid-column: 1 / -1; }
  .hp-street { grid-template-columns: minmax(0, 1fr) 84px; }
  .hp-sec { padding: 18px 16px; }
  .ha-card { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .hb-grid-cards { grid-template-columns: minmax(0, 1fr); }
  .hs-acc .hs-up { padding: 0 12px; }
}


.hs-foot-lang { display: none; }
@media (max-width: 760px) { .hs-foot-lang { display: inline-flex; } .hs-foot nav { margin-left: 0; } }

@media (max-width: 420px) {
  .hs-top { padding: 0 12px; gap: 8px; }
  .hs-word { display: none; }
  .hs-acc { gap: 6px; }
  .hs-acc .btn-sm { padding: 0 9px; font-size: 13px; }
}

/* ---------- a person's page ---------- */
.hu { max-width: 1312px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 22px; }
.hu-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.hu-ava { width: 72px; height: 72px; font-size: 28px; }
.hu-who h1 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
html[lang='ka'] .hu-who h1 { letter-spacing: 0; }
.hu-who p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; color: var(--ink-3); font-size: 13.5px; }
.hu-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 650; }
.hu-badge .icon { width: 14px; height: 14px; color: var(--gold-text); }
.hu-count { display: grid; justify-items: end; padding: 0 8px; }
.hu-count b { font-size: 30px; font-weight: 800; line-height: 1; }
.hu-count small { color: var(--ink-3); font-size: 13px; }
.hu-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hu-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.hu-tabs button i { font-style: normal; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.hu-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.hu-tabs button.on i { color: inherit; opacity: .7; }
.hl-seller-top.is-link { color: inherit; text-decoration: none; border-radius: 12px; margin: -8px; padding: 8px; transition: background var(--t-fast); }
.hl-seller-top.is-link:hover { background: var(--panel-2); }
.hl-seller-top.is-link > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }
@media (max-width: 760px) {
  .hu-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; }
  .hu-ava { width: 56px; height: 56px; font-size: 22px; }
  .hu-count { justify-items: start; grid-column: 1; padding: 0; }
  .hu-head .btn { justify-self: end; }
}

/* ---------- nearby places ---------- */
.hp-near { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-near h3, .hl-near-t { font-size: 15px; }
.hp-near-empty { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 13.5px; }
.hp-near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hp-near-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.hp-near-row:hover { border-color: var(--ink-3); }
.hp-near-row.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.hp-near-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.hp-near-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); color: var(--gold-text); flex: none; }
.hp-near-ic .icon { width: 17px; height: 17px; }
.hp-near-row b, .hl-near b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-near-row small, .hl-near small { display: block; font-size: 12px; color: var(--ink-3); }
.hp-near .btn { justify-self: start; margin-top: 4px; }
.hl-near-t { margin: 18px 0 10px; }
.hl-near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hl-near button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-fast); }
.hl-near button:hover { border-color: var(--line-2); }
.hl-near em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* header contents in the same 1280px column as the results, so the logo lines up with the filters below */
.hs-top { padding-inline: max(16px, calc((100% - 1280px) / 2)); }

/* ---------- the /homes top bar matches the main page's bar exactly, so nothing jumps when you go from one to the other ---------- */
.hs-top { height: 72px; gap: 16px; }
.hb-filter { top: 72px; }
.hs-word { font-size: 19px; }
.hs-right { gap: 10px; }
.hs-post { height: 34px; padding: 0 16px; font-size: 13.5px; }
.hs-theme { width: 34px; height: 34px; }
.hs-in { height: 34px; padding: 0 12px; gap: 6px; font-size: 13.5px; font-weight: 650; background: transparent; color: var(--ink-2); }
.hs-in:hover { background: var(--raised); color: var(--ink); }
.hs-in .icon { width: 16px; height: 16px; }
/* same side room as the main page's bar at every width */
@media (max-width: 1100px) { .hs-top { padding-inline: clamp(16px, 5vw, 72px); } }
@media (max-width: 760px) {
  .hs-top { height: 64px; gap: 10px; }
  .hs-word, .hs-lang { display: none; }
  .hs-right { gap: 10px; }
  .hs-post { width: auto; padding: 0 11px; }
  .hs-in { width: auto; padding: 0 10px; }
}
.hs-post { border: 1px solid var(--ink); }
.hs-post:hover { border-color: var(--accent-hi); }
@media (max-width: 1100px) { .hs-post span { display: none; } .hs-post { padding: 0 10px; } }
/* while the phone keyboard is up, the floating "Publish" bar stops covering the field being typed in */
html.kb-up .hp-foot { position: static; background: none; }
