/* Casikey prototype styles. Tokens first, then layout, then components, then pages. */
:root {
  --bg: #f5efe4;
  --surface: #ffffff;
  --surface-2: #ece3d2;
  --ink: #0d1b2a;
  --ink-2: #2c3e52;
  --muted: #5a6676;
  --line: #ddd1bc;
  --deep: #0f2a44;
  --deep-2: #163a5c;
  --deep-ink: #f5efe4;
  --deep-muted: #b9c6d6;
  --accent: #1d4e89;
  --accent-ink: #ffffff;
  --accent-soft: #e3ecf7;
  --accent-hover: #163d6d;
  --sand: #e3c79a;
  --sand-hover: #ecd6b1;
  --danger: #b4232a;
  --vip: #2563eb;
  --vip-soft: #e6eefe;
  --vipplus: #7c3aed;
  --vipplus-soft: #f0e9fe;
  --svip: #b7791f;
  --svip-soft: #fbf1dd;
  --svip-ink: #3a2706;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 6px 20px rgba(13, 27, 42, .06);
  --shadow-lg: 0 10px 40px rgba(13, 27, 42, .14);
  --radius: 6px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Manrope', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Playfair Display', 'Noto Serif Georgian', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn { transition: background .2s var(--ease), border-color .2s, transform .15s var(--ease), color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn .ic { width: 18px; height: 18px; }
.wide { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap; }
.link .ic { width: 18px; height: 18px; transition: transform .15s; }
.link:hover .ic { transform: translateX(3px); }

/* demo bar + header */
.demo-bar { background: var(--svip-soft); color: var(--ink); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: background .2s; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; transition: transform .4s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.logo svg rect { fill: var(--accent); }
.logo svg path { fill: var(--accent-ink); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { position: relative; padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.count[hidden] { display: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.lang button { border: 0; background: none; padding: 6px 10px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button { transition: color .15s, background .15s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; }
.lang a { padding: 6px 10px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
main.seo-main { max-width: 860px; padding: 40px 16px 64px; }
@media (min-width: 720px) { main.seo-main { padding: 56px 28px 72px; } }
.seo-main h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 12px 0 14px; }
.seo-main h2 { margin: 36px 0 12px; font-size: 20px; }
.seo-intro { font-size: 18px; color: var(--muted); max-width: 62ch; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.seo-cta .btn:not(.btn-primary) { background: var(--surface); border-color: var(--line); color: var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.seo-cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 18px; }
.seo-cities a { color: var(--accent); font-weight: 600; text-decoration: none; }
.seo-cities a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 12px; font-size: 16px; }
  .btn-post { display: none; }
  .header-inner { gap: 10px; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
  .lang button { padding: 6px 8px; }
}

/* hero: one large photograph of a house with its pool and garden; the headline sits on a scrim, the search docks over its lower edge */
.hero { position: relative; }
.hero-photo { position: relative; isolation: isolate; min-height: clamp(540px, 74vh, 820px); display: flex; align-items: flex-end; color: #fff; background: #2a3a4e; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 74%; z-index: -2; }
.hero-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 20, 36, .86) 0%, rgba(8, 20, 36, .72) 32%, rgba(8, 20, 36, .38) 56%, rgba(8, 20, 36, .08) 78%), linear-gradient(180deg, rgba(8, 20, 36, .35) 0%, rgba(8, 20, 36, 0) 28%, rgba(8, 20, 36, 0) 52%, rgba(8, 20, 36, .62) 100%); }
@media (max-width: 960px) { .hero-photo::after { background: linear-gradient(180deg, rgba(8, 20, 36, .4) 0%, rgba(8, 20, 36, .3) 25%, rgba(8, 20, 36, .78) 62%, rgba(8, 20, 36, .9) 100%); } }
.hero-copy { padding-top: 96px; padding-bottom: 136px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; }
:lang(ka) .hero h1 { font-size: clamp(32px, 4vw, 64px); line-height: 1.14; letter-spacing: 0; max-width: 20ch; }
:lang(ru) .hero h1 { font-size: clamp(38px, 5vw, 84px); max-width: 21ch; }
:lang(es) .hero h1 { font-size: clamp(38px, 4.6vw, 80px); max-width: 24ch; }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 44ch; margin-top: 28px; color: rgba(255, 255, 255, .92); }
.hero-dock { position: relative; z-index: 2; margin-top: -88px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-note .ic { width: 18px; height: 18px; color: var(--accent); }
.search-panel { position: relative; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 14px; box-shadow: 0 24px 60px rgba(13, 27, 42, .18); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-2); margin: 2px 2px 12px; }
.seg button { border: 0; background: none; padding: 8px 22px; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: color .15s, background .2s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); }
.search-fields .field { background: transparent; border-right: 1px solid var(--line); padding: 12px 18px 8px; margin: 0; transition: background .15s; }
.search-fields .field:hover { background: var(--bg); }
.search-fields .field span { font-size: 13px; }
.search-fields select { border: 0; background-color: transparent; padding: 2px 24px 4px 0; min-height: 34px; font-weight: 700; font-size: 16px; }
.search-fields select:focus { box-shadow: none; }
.btn-search { min-height: 66px; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 34px; font-size: 17px; margin: -1px -1px -1px 0; }
.btn-search .ic { transition: transform .2s var(--ease); }
.btn-search:hover .ic { transform: translateX(4px); }
@media (max-width: 960px) {
  .hero-photo { min-height: clamp(500px, 72vh, 680px); }
  .hero-img { object-position: 58% 88%; }
  .hero-copy { padding-top: 96px; padding-bottom: 116px; }
  .hero h1, :lang(ru) .hero h1, :lang(es) .hero h1 { font-size: clamp(40px, 10.5vw, 68px); max-width: 14ch; }
  :lang(ka) .hero h1 { font-size: clamp(30px, 7.8vw, 52px); }
  .hero-sub { margin-top: 18px; }
  .hero-dock { margin-top: -64px; }
}
@media (max-width: 820px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-fields .field:first-child { grid-column: 1 / -1; }
  .search-fields .field:nth-child(2) { border-right: 1px solid var(--line); }
  .btn-search { grid-column: 1 / -1; min-height: 54px; margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
}

/* form fields */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6676' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.invalid, select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }

/* sections */
.section { padding: 104px 0 8px; }
@media (max-width: 720px) { .section { padding-top: 64px; } }
/* .section must not remove the side gutter of .wrap */
.wrap.section { padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap.section { padding-left: 28px; padding-right: 28px; } }
.inbox { padding-bottom: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h1 { font-size: clamp(26px, 3vw, 34px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.035em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
:lang(ka) .sec-head h2 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: 0; }
.sec-sub { color: var(--ink-2); margin-top: 10px; font-size: 17px; }
.svip-band { margin-top: 104px; padding: 88px 0 72px; background: var(--svip-soft); }
@media (max-width: 720px) { .svip-band { margin-top: 64px; padding: 56px 0 48px; } }

/* cities */
.cities { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 12px; }
.city:nth-child(1), .city:nth-child(6) { grid-column: span 2; }
.cities-few { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cities-few .city { grid-column: auto !important; }
.city { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface-2); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.city::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(8, 20, 36, .72)); }
.city:hover img { transform: scale(1.07); }
.city-name { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.1; }
.city-name small { display: block; font-weight: 600; font-size: 14px; letter-spacing: 0; opacity: .88; margin-top: 4px; }
@media (max-width: 960px) { .cities { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } .city:nth-child(6) { grid-column: span 1; } }
@media (max-width: 520px) { .cities { grid-auto-rows: 170px; gap: 8px; } .city-name { left: 14px; bottom: 12px; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px 20px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; margin: 0 -2px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 520px) { .rail { grid-auto-columns: 84%; } .grid { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:active { transform: translateY(-1px); }
.card-svip { box-shadow: inset 0 -4px 0 var(--svip); }
.card-vipplus { box-shadow: inset 0 -4px 0 var(--vipplus); }
.card-vip { box-shadow: inset 0 -4px 0 var(--vip); }
.card-link { display: block; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; left: 12px; top: 12px; }
.photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; }
.photo-count .ic { width: 14px; height: 14px; }
.card-body { padding: 18px 18px 20px; }
.price { font-weight: 800; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.price.big { font-size: clamp(28px, 3.4vw, 38px); }
.card-title { font-size: 15px; font-weight: 700; margin: 4px 0 4px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; min-width: 0; }
.loc .ic { width: 16px; height: 16px; }
.card .loc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.card .loc .ic { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.card .specs li { background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.specs li { display: inline-flex; align-items: center; gap: 5px; }
.specs .ic { width: 17px; height: 17px; color: var(--muted); }
.posted { color: var(--muted); font-size: 12px; margin-top: 10px; }
.fav { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: #fff; color: #1b2a25; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), color .15s; }
.fav:hover { transform: scale(1.1); color: #e0384a; }
.fav:active { transform: scale(.92); }
.fav.on { color: #e0384a; }
.fav.on .ic, .fav-wide.on .ic { fill: currentColor; }
.fav-wide.on { color: #e0384a; border-color: #e0384a; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: #fff; line-height: 1.3; white-space: nowrap; }
.badge-vip { background: var(--vip); }
.badge-vipplus { background: var(--vipplus); }
.badge-svip { background: #e7b452; color: var(--svip-ink); }

/* CTAs */
.ctas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding-bottom: 104px; }
.cta { border-radius: var(--radius); padding: 56px 48px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; }
.cta h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.03em; max-width: 16ch; }
:lang(ka) .cta h2 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0; }
.cta p { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin-bottom: 8px; }
.cta-sell { background: var(--deep); color: var(--deep-ink); }
.cta-sell p { color: var(--deep-muted); }
.cta-sell .btn-primary { background: var(--sand); color: var(--deep); }
.cta-sell .btn-primary:hover { background: var(--sand-hover); }
.cta-agent { background: var(--surface-2); }
@media (max-width: 720px) { .ctas { grid-template-columns: 1fr; padding-bottom: 64px; } .cta { padding: 32px 24px; min-height: 0; } }

/* search results */
.results-page { padding-top: 28px; padding-bottom: 64px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.results-head h1 { font-size: clamp(24px, 3vw, 32px); }
.results-tools { display: flex; gap: 10px; align-items: center; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.sort span { white-space: nowrap; }
.sort select { width: auto; min-width: 170px; font-weight: 700; color: var(--ink); }
.pill { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.results { min-width: 0; }
.filters { position: sticky; top: 88px; background: var(--surface); border-radius: var(--radius); padding: 22px; max-height: calc(100vh - 104px); overflow: auto; }
.filters-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.filters-top h2 { font-size: 18px; }
.filters-top .icon-btn, .filters-toggle, .only-mobile { display: none; }
.fgroup { padding: 12px 0 16px; }
.fgroup h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; min-height: 36px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checks { display: grid; gap: 8px; }
.checks.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; min-height: 30px; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters-foot { display: flex; gap: 8px; padding-top: 14px; }
.filters-foot .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 420px; }
.empty-ic { width: 44px; height: 44px; color: var(--muted); }
@media (max-width: 960px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters-toggle, .only-mobile, .filters-top .icon-btn { display: inline-flex; }
  .filters { position: fixed; inset: 0; top: auto; z-index: 60; max-height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); padding-bottom: 0; }
  .filters.open { transform: none; }
  .filters-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 16px; box-shadow: 0 -12px 16px -12px rgba(0,0,0,.12); }
  .results-tools { width: 100%; }
  .sort { flex: 1; min-width: 0; }
  .sort span { display: none; }
  .sort select { min-width: 0; width: 100%; }
}

/* detail */
.detail { padding-top: 20px; padding-bottom: 64px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.back:hover { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .badge { position: absolute; left: 14px; top: 14px; font-size: 13px; padding: 6px 12px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #13201b; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .7; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); opacity: 1; }
.detail-head { padding: 24px 0 8px; }
.detail-head h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 8px; }
.detail-head .specs { font-size: 16px; gap: 22px; }
.block { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-top: 12px; }
.block h2 { font-size: 22px; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.feat-list li { display: flex; align-items: center; gap: 8px; }
.feat-list .ic { color: var(--accent); }
.prose { color: var(--ink-2); line-height: 1.7; max-width: 70ch; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 4px 0 12px; }
.m-out span { font-weight: 700; color: var(--ink-2); }
.m-out strong { font-size: 28px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.m-out small { font-size: 14px; font-weight: 600; color: var(--muted); }
.partner { margin-top: 12px; }
.detail-side { position: sticky; top: 88px; }
.seller { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.seller-top { display: flex; gap: 12px; align-items: center; }
.seller-top > div { display: flex; flex-direction: column; min-width: 0; }
.seller-top strong { font-size: 17px; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
#show-phone { justify-content: space-between; border-radius: 12px; }
#show-phone span { font-variant-numeric: tabular-nums; font-weight: 800; }
#show-phone em { font-style: normal; color: var(--accent); font-size: 14px; }
#show-phone.revealed { justify-content: center; color: var(--accent); border-color: var(--accent); }
.selectable { user-select: all; }
.contact { border-top: 1px solid var(--line); padding-top: 14px; }
.contact h3 { font-size: 16px; margin-bottom: 12px; }
.form-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); background: var(--svip-soft); padding: 10px 12px; border-radius: 10px; }
.form-note[hidden] { display: none; }
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 560px) {
  .gallery-main { aspect-ratio: 4 / 3; margin: 0 -16px; border-radius: 0; }
  .g-nav { width: 40px; height: 40px; }
  .thumb { width: 76px; }
  .m-grid { grid-template-columns: 1fr 1fr; }
  .m-grid .field:last-child { grid-column: 1 / -1; }
  .block { padding: 18px; }
}

/* post */
.post { padding-top: 36px; padding-bottom: 64px; }
.post h1, .pricing h1 { font-size: clamp(28px, 3.6vw, 40px); }
.lead { color: var(--ink-2); font-size: 17px; margin: 10px 0 8px; max-width: 640px; }
fieldset.block { margin-inline: 0; min-width: 0; }
legend { font-weight: 800; font-size: 19px; padding: 0 6px; margin-left: -6px; }
.seg-light { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 14px; }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid.four { grid-template-columns: 1fr 1fr; } }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--accent); font-weight: 700; text-align: center; }
.upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { border-color: var(--accent); }
.upload .ic { width: 30px; height: 30px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .pkgs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .pkgs { grid-template-columns: 1fr; } }
.pkg { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.pkg input { position: absolute; opacity: 0; }
.pkg:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.pkg.on { border-color: var(--accent); background: var(--accent-soft); }
.pkg-svip.on { border-color: var(--svip); background: var(--svip-soft); }
.pkg-vipplus.on { border-color: var(--vipplus); background: var(--vipplus-soft); }
.pkg-vip.on { border-color: var(--vip); background: var(--vip-soft); }
.pkg-name { font-weight: 800; min-height: 26px; display: flex; align-items: center; }
.pkg-price { font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.pkg-price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.pkg-desc { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.pkg-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.field.inline { margin: 0; min-width: 180px; }
.total { text-align: right; }
.total span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.total strong { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.form-error { color: var(--danger); font-weight: 700; margin: 16px 0 0; }
.form-error[hidden] { display: none; }
#post-form > .btn-lg { margin-top: 22px; }
@media (max-width: 560px) { #post-form > .btn-lg { width: 100%; } }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 80px; }
.done-mark { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.done-mark .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.done p { color: var(--ink-2); max-width: 480px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* pricing */
.pricing { padding-bottom: 64px; }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.center-head .lead { margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 36px 32px; }
.plan.hot { background: var(--deep); color: var(--deep-ink); }
.plan.hot li { color: var(--deep-muted); }
.plan.hot li .ic { color: var(--sand); }
.plan.hot .plan-price small { color: var(--deep-muted); }
.plan.hot .btn-primary { background: var(--sand); color: var(--deep); }
.plan-tag { position: absolute; top: 16px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h2 { font-size: 22px; }
.plan-price { font-size: 52px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li .ic { color: var(--accent); margin-top: 2px; }
.ads { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 26px 28px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.ads h2 { font-size: 20px; margin-bottom: 6px; }
.ads p { color: var(--ink-2); max-width: 620px; }

/* footer */
.site-footer { margin-top: 64px; background: var(--deep); color: var(--deep-ink); padding: 80px 0 28px; }
.site-footer .logo { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; }
.site-footer .logo svg { width: 1em; height: 1em; }
.site-footer .logo span { display: inline; }
.site-footer .logo svg rect { fill: var(--sand); }
.site-footer .logo svg path { fill: var(--deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--deep-muted); margin-top: 14px; max-width: 30ch; font-size: 17px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 40px; }
.footer-cols h4 { font-size: 15px; color: var(--deep-ink); margin-bottom: 12px; }
.footer-cols a { display: block; padding: 5px 0; color: var(--deep-muted); font-size: 15px; }
.footer-cols a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; color: var(--deep-muted); font-size: 13px; }
.fair { display: inline-flex; align-items: center; gap: 6px; }
.fair .ic { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .site-footer { padding-top: 56px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* report link, legal and contact pages */
.report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.report-link:hover { color: var(--ink); text-decoration: underline; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p { line-height: 1.65; margin: 0 0 10px; max-width: 70ch; }
.legal a { color: var(--accent); }
.field small.muted { display: block; margin-top: 4px; font-size: 12px; }

/* ---------- messages ---------- */
.conv-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.conv { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.conv:hover { border-color: var(--accent); }
.conv img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line); }
.conv-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-last { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread { border-color: var(--accent); }
.conv.unread .conv-last { color: var(--ink); font-weight: 700; }
.conv .count { padding: 0 8px; }
.thread-head { margin: 12px 0 8px; display: grid; gap: 4px; }
.thread-head a { overflow-wrap: anywhere; }
.msgs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 80%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.msg.mine { align-self: flex-end; background: var(--svip-soft); border-radius: 14px 14px 4px 14px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 4px; }
.msg time { display: block; text-align: right; }
.reply .btn { margin-top: 10px; }
@media (max-width: 560px) { .conv img { width: 56px; height: 44px; } .msg { max-width: 92%; } }

/* entrance: content rises into place once, then the classes are removed by app.js */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* premium light pass (v10): serif display headings, photo CTA, split sign-in gate */
.sec-head h2, .cta h2, .done h1, .gate h1, .post h1, .pricing h1, .seo-main h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; }
:lang(ka) .sec-head h2, :lang(ka) .cta h2, :lang(ka) .done h1, :lang(ka) .gate h1, :lang(ka) .post h1, :lang(ka) .pricing h1 { letter-spacing: 0; }
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta-sell { background: #1c2c40; color: #fff; min-height: 440px; }
.cta-sell .cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cta-sell::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 20, 36, .7) 0%, rgba(8, 20, 36, .35) 55%, rgba(8, 20, 36, .1) 100%), linear-gradient(180deg, rgba(8, 20, 36, 0) 35%, rgba(8, 20, 36, .55) 100%); }
.cta-sell:hover .cta-img { transform: scale(1.04); }
.cta-sell p { color: rgba(255, 255, 255, .9); }
.cta-sell .btn-primary { background: var(--sand); color: var(--deep); }
.cta-sell .btn-primary:hover { background: var(--sand-hover); }
.cta-agent { background: var(--surface); border: 1px solid var(--line); }
.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-bottom: 104px; }
.gate h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; max-width: 14ch; }
.gate p { font-size: 18px; color: var(--ink-2); max-width: 42ch; margin: 20px 0 32px; }
.gate-photo { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gate-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; } .gate-photo { order: -1; aspect-ratio: 16 / 10; } }
.gate .row { justify-content: flex-start; }

/* v19 blue+sand: extra legibility for hero text over photo */
.hero-photo h1, .hero-photo .hero-sub { text-shadow: 0 2px 18px rgba(8, 20, 36, .45); }
