/* Quiet-luxury theme: deep ink, champagne gold, ivory, serif display type, hairline borders.
   Still easy to read: clear labels, strong contrast, comfortable targets. */
:root {
  --ink: #0f1d1a;
  --ink-2: #16302a;
  --emerald: #1d4a3c;
  --emerald-dark: #143a2f;
  --gold: #b8925a;
  --gold-light: #d8bd8a;
  --gold-soft: #f4ecdf;
  --text: #1c2321;
  --muted: #6a716d;
  --line: #e7e1d6;
  --bg: #faf8f4;
  --white: #ffffff;
  --wa: #1fa855;
  --viber: #7360f2;
  --focus: #b8925a;
  --serif: "Cormorant Garamond", "Noto Serif Armenian", Georgia, serif;
  --sans: "Inter", "Noto Sans Armenian", system-ui, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 29, 26, .05);
  --shadow-md: 0 18px 40px -18px rgba(15, 29, 26, .28);
  --shadow-lg: 0 40px 80px -30px rgba(15, 29, 26, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-size: 16px;
}
html.large { font-size: 19px; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* Latin/Cyrillic look great in small caps-style tracking; Armenian stays in normal case for readability. */
html:not([lang="hy"]) .eyebrow,
html:not([lang="hy"]) .field label,
html:not([lang="hy"]) .badge,
html:not([lang="hy"]) .deal { text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .5em 1.2em;
  border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--ink); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,29,26,.7); }
.btn-primary svg { color: var(--gold-light); }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { filter: brightness(.95); color: #fff; border-color: var(--wa); }
.btn-viber { background: var(--viber); color: #fff; border-color: var(--viber); }
.btn-viber:hover { filter: brightness(.95); color: #fff; border-color: var(--viber); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-tg { background: #229ed9; color: #fff; border-color: #229ed9; }
.btn-tg:hover { filter: brightness(.95); color: #fff; border-color: #229ed9; }
.btn-soft-tg { color: #1b7fb0; border-color: #cde6f3; background: #f4fafd; }
.btn-soft-tg:hover { border-color: #1b7fb0; color: #1b7fb0; }
.btn-soft-wa { color: #178a45; border-color: #cfe9d8; background: #f5fbf7; }
.btn-soft-wa:hover { border-color: #178a45; color: #178a45; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; box-shadow: none; }

/* ---------- Header ---------- */
.site-header { background: rgba(250,248,244,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 76px; flex-wrap: wrap; padding: 8px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo > span:last-child { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 30% 30%, #fff, var(--gold-soft)); }
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .66rem; font-weight: 500; color: var(--gold); letter-spacing: .22em; text-transform: uppercase; }
html[lang="hy"] .logo small { text-transform: none; letter-spacing: .06em; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { font: inherit; font-size: .82rem; font-weight: 500; padding: 0 .75em; min-height: 36px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.text-size { min-height: 38px; padding: 0 .8em; font-size: .8rem; border-radius: 999px; }
.call-top { white-space: nowrap; border-radius: 999px; min-height: 44px; padding: 0 1.3em; }

/* ---------- Hero + search ---------- */
.hero {
  position: relative; color: #fff; padding: 88px 0 150px; overflow: hidden; text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(216,189,138,.22), transparent 65%),
    radial-gradient(700px 500px at 100% 100%, rgba(29,74,60,.85), transparent 60%),
    linear-gradient(160deg, #0b1614 0%, #0f1d1a 45%, #16302a 100%);
}
.hero::before { /* fine architectural grid */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero::after { /* Ararat silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150 L260 95 L420 20 L520 70 L600 55 L700 90 L860 40 L1000 100 L1200 80 V150Z' fill='%23d8bd8a'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-light); font-size: .78rem; font-weight: 500; margin-bottom: 18px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: .8; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.01em; margin: 0 auto 16px; max-width: 820px; }
.hero p { margin: 0 auto; font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.75); max-width: 600px; }

.search-card {
  position: relative; z-index: 2; margin-top: -96px; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 26px 28px 28px;
}
.search-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.purpose-tabs { display: inline-flex; gap: 28px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.purpose-tabs button {
  position: relative; min-height: 42px; padding: 0 2px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s;
}
.purpose-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.purpose-tabs button:hover { color: var(--ink); }
.purpose-tabs button[aria-pressed="true"] { color: var(--ink); }
.purpose-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.field label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
html[lang="hy"] .field label { font-size: .8rem; }
select, input, textarea {
  width: 100%; min-height: 46px; font: inherit; font-size: .93rem; padding: .45em .8em;
  border: 1px solid #dcd5c8; border-radius: 4px; background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.2em; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8925a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .85em center / 11px; }
select:hover, input:hover, textarea:hover { border-color: var(--gold-light); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,90,.18); }
textarea { min-height: 96px; resize: vertical; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { min-height: 46px; }
.filter-actions .btn-primary { padding: 0 1.8em; }

/* ---------- Results ---------- */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 52px 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-head h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.15; margin: 0; }
.sort-field { display: flex; align-items: center; gap: 10px; }
.sort-field label { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.sort-field select { width: auto; }

.card {
  display: grid; grid-template-columns: 380px 1fr; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #ddd3c1; }
.card-img { position: relative; display: block; background: #ebe6dc; min-height: 250px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15,29,26,.35)); pointer-events: none; }
.card:hover .card-img img { transform: scale(1.06); }
.badge { position: absolute; z-index: 1; left: 14px; top: 14px; background: rgba(15,29,26,.82); backdrop-filter: blur(6px); color: var(--gold-light); border: 1px solid rgba(216,189,138,.5); font-weight: 500; font-size: .68rem; padding: 5px 12px; border-radius: 2px; }
html[lang="hy"] .badge { font-size: .78rem; }
.photo-count { position: absolute; z-index: 1; right: 14px; bottom: 14px; color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .03em; }
.card-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.price small { font-family: var(--sans); font-size: .78rem; font-weight: 400; color: var(--muted); }
.price-amd { color: var(--gold); font-size: .85rem; font-weight: 500; letter-spacing: .02em; }
.card-title { font-size: 1.05rem; font-weight: 600; margin: 8px 0 0; }
.card-title a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.place { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; }
.place svg { width: .95em; height: .95em; flex: none; color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts span { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 500; padding: 0 16px; border-left: 1px solid var(--line); }
.facts span:first-child { padding-left: 0; border-left: 0; }
.facts svg { width: 1em; height: 1em; color: var(--gold); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.card-actions .details-link { margin-left: auto; }

.empty { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 56px 20px; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 36px 0 60px; flex-wrap: wrap; }
.pager span { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }

/* ---------- Listing page ---------- */
.back-row { margin: 26px 0 18px; }
.back-row .btn { border: 0; background: transparent; padding-left: 0; color: var(--muted); }
.back-row .btn:hover { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; margin-bottom: 60px; }
.detail-grid > *, .card > * { min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; margin-bottom: 20px; }
.panel h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.panel h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gallery-main { position: relative; background: #ebe6dc; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: rgba(15,29,26,.45); backdrop-filter: blur(6px);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: #fff; transition: background .25s;
}
.gallery-nav:hover { background: rgba(15,29,26,.75); }
.gallery-nav.prev { left: 18px; } .gallery-nav.next { right: 18px; }
.gallery-counter { position: absolute; bottom: 16px; right: 18px; background: rgba(15,29,26,.6); backdrop-filter: blur(6px); color: #fff; padding: 3px 12px; border-radius: 2px; font-size: .8rem; letter-spacing: .08em; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 104px; height: 68px; padding: 0; border: 1px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .25s, border-color .25s; }
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 2px var(--gold-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.1; margin: 28px 0 10px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact .k { color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.fact .v { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; }
.feature-list li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); flex: none; }
.description { white-space: pre-line; margin: 0; color: #3a423f; font-size: 1.02rem; line-height: 1.75; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: 4px; filter: grayscale(.35) contrast(1.05); }
.contact-box { position: sticky; top: 100px; border-top: 2px solid var(--gold); box-shadow: var(--shadow-md); }
.contact-box .price { font-size: 2.4rem; }
.contact-box .btn { width: 100%; margin-top: 10px; }
.contact-box .deal { display: inline-block; margin: 12px 0 8px; font-size: .7rem; font-weight: 600; color: var(--gold); border: 1px solid var(--gold-light); padding: 3px 12px; border-radius: 2px; }
html[lang="hy"] .contact-box .deal { font-size: .8rem; }
.contact-box form { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.contact-box form h2 { font-size: 1.35rem; }
.contact-box form .field { margin-bottom: 12px; }
.ref-no { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.msg-ok { background: var(--gold-soft); border: 1px solid var(--gold-light); color: var(--ink); padding: 16px; border-radius: 4px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.msg-err { background: #fbf1f0; border: 1px solid #ecc9c5; color: #8c1d18; padding: 12px; border-radius: 4px; font-weight: 500; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.65); padding: 64px 0 44px; margin-top: 40px; font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: #fff; }
.site-footer p { margin: 5px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { grid-template-columns: 320px 1fr; }
}
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; }
  .card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-box { position: static; }
  .hero { padding: 56px 0 128px; }
}
@media (max-width: 600px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child, .filter-actions { grid-column: 1 / -1; }
  .filter-actions .btn { flex: 1; }
  .purpose-tabs { display: flex; gap: 0; width: 100%; }
  .purpose-tabs button { flex: 1; }
  .search-card { padding: 20px 18px; }
  .header-row { gap: 8px; min-height: 0; }
  .header-tools { display: contents; }
  .logo { order: 1; margin-right: auto; }
  .logo > span:last-child { font-size: 1.3rem; }
  .call-top { order: 2; padding: 0 1em; }
  .lang-switch { order: 3; flex: 1; }
  .lang-switch button { flex: 1; padding: 0 .3em; }
  .text-size { order: 4; }
  .text-size .label { display: none; }
  .card-body { padding: 20px; }
  .facts { row-gap: 8px; }
  .card-actions .btn { flex: 1; }
  .card-actions .details-link { margin-left: 0; flex-basis: 100%; }
  .results-head h1 { font-size: 1.55rem; }
  .panel { padding: 22px 18px; }
}

/* Even-height digits in serif prices and numbers: easier to read */
.price, .fact .v, .results-head h1, .detail-title, .hero h1 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.fact .v { overflow-wrap: anywhere; }
@media (max-width: 600px) { .facts span { border-left: 0; padding: 0 16px 0 0; } }

/* ---------- Property code ---------- */
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.code-tag { flex: none; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px; white-space: nowrap; }
.code-tag b { color: var(--ink); font-weight: 600; letter-spacing: .08em; margin-left: 4px; }
.code-box { margin: 6px 0 4px; padding: 14px 16px; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 4px; text-align: center; }
.code-box span { display: block; font-size: .8rem; color: var(--muted); }
.code-box strong { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; letter-spacing: .18em; color: var(--ink); line-height: 1.2; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.code-search { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.code-search label { font-size: .88rem; color: var(--muted); }
.code-search input { width: 150px; min-height: 40px; letter-spacing: .1em; }
.code-search .btn { min-height: 40px; }
.code-msg { flex-basis: 100%; text-align: right; color: #8c1d18; font-size: .85rem; min-height: 0; }
.code-msg:empty { display: none; }
@media (max-width: 600px) {
  .code-search { justify-content: flex-start; }
  .code-search label { flex-basis: 100%; }
  .code-search input { flex: 1; width: auto; }
  .code-msg { text-align: left; }
}

/* "Add property" button in the header (opens the owner panel) */
.add-top { min-height: 40px; border-radius: 999px; border-color: var(--gold); color: #8a6a37; background: var(--gold-soft); font-size: .85rem; white-space: nowrap; }
.add-top:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (max-width: 600px) { .add-top { order: 5; flex-basis: 100%; } }

/* ---------- Property form (Add property + admin) ---------- */
.page-hero { position: relative; color: #fff; text-align: center; padding: 64px 0 110px; overflow: hidden;
  background: radial-gradient(900px 380px at 50% -10%, rgba(216,189,138,.22), transparent 65%), linear-gradient(160deg, #0b1614 0%, #0f1d1a 50%, #16302a 100%); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.page-hero p { margin: 0 auto; max-width: 620px; color: rgba(255,255,255,.75); font-weight: 300; }
.form-wrap { max-width: 980px; }
.property-form { margin-top: -70px; position: relative; z-index: 2; padding: 10px 34px 34px; box-shadow: var(--shadow-lg); border-top: 2px solid var(--gold); }
.form-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.form-section h2 .num { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.form-section .field { margin-bottom: 14px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.field-check { display: flex; align-items: flex-end; }
.req { color: #b3261e; }
.opt { font-weight: 400; color: var(--muted); }
.note { color: var(--muted); font-size: .88rem; margin: 2px 0 12px; }
.field.invalid input, .field.invalid select { border-color: #c4413a; box-shadow: 0 0 0 3px rgba(196,65,58,.12); }
.field.invalid label { color: #b3261e; }

.segs { display: flex; flex-wrap: wrap; gap: 10px; }
.seg, .chip { position: relative; }
.seg input, .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid #dcd5c8; border-radius: 4px; background: var(--white); cursor: pointer; font-weight: 500; transition: all .2s; }
.seg span:hover { border-color: var(--gold); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 1px solid #dcd5c8; border-radius: 999px; background: var(--white); cursor: pointer; font-size: .9rem; transition: all .2s; user-select: none; }
.chip span::before { content: ""; width: 16px; height: 16px; border: 1px solid #c9c0b0; border-radius: 3px; flex: none; transition: all .2s; }
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.chip input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23d8bd8a' stroke-width='2'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--ink); }
.chip-lg span { min-height: 46px; border-radius: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo-grid:empty { display: none; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #ebe6dc; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--gold-light); font-size: .72rem; padding: 2px 9px; border-radius: 2px; }
.photo button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15,29,26,.75); color: #fff; cursor: pointer; }
.photo-add { cursor: pointer; }
.upload-msg { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.upload-msg:empty { display: none; }
.form-submit { display: flex; justify-content: flex-end; padding-top: 8px; }

/* Personal data consent checkbox */
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 16px; padding: 14px 16px; border: 1px solid #e6dfd2; border-radius: 4px; background: var(--white); font-size: .9rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.invalid { border-color: #c0392b; background: #fbf1f0; }

/* Privacy page: only the text in the chosen language is shown */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: var(--text, inherit); }
.legal ul { padding-left: 1.2em; margin: 8px 0; }
html[lang="hy"] .legal [data-text]:not([data-text="hy"]),
html[lang="ru"] .legal [data-text]:not([data-text="ru"]),
html[lang="en"] .legal [data-text]:not([data-text="en"]) { display: none; }
.btn-lg { min-height: 52px; padding: 0 2.4em; font-size: 1rem; }

.done-box { margin-top: -70px; position: relative; z-index: 2; text-align: center; padding: 48px 28px; box-shadow: var(--shadow-lg); border-top: 2px solid var(--gold); }
.done-box h2 { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin: 10px 0 8px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 1.8rem; }
.code-box.big { max-width: 340px; margin: 26px auto 10px; padding: 20px; }
.code-box.big strong { font-size: 3rem; }
.done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.negotiable { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 600; color: var(--emerald); border: 1px solid #bcd3c7; background: #eef6f1; padding: 1px 8px; border-radius: 2px; vertical-align: middle; }

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .property-form { padding: 6px 18px 24px; }
  .seg { flex: 1 1 45%; } .seg span { width: 100%; justify-content: center; padding: 0 10px; }
  .form-submit .btn { width: 100%; }
}
