/* Nate Real Estate — public site.
   Placeholder look. The brand colours live in the variables below:
   when the logo and palette are ready, changing these few lines restyles the whole site. */
:root {
  --brand: #1f3a5f;
  --brand-dark: #152a46;
  --accent: #b8893b;
  --ink: #1b2330;
  --muted: #5d6776;
  --line: #e2e6ec;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 10px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Armenian", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.block { padding-top: 44px; padding-bottom: 44px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.text { max-width: 760px; }
.text h2 { margin-top: 1.4em; font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.light { background: #fff; color: var(--brand); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .92rem; }
.btn.wide { width: 100%; margin-bottom: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; flex-direction: column; flex-shrink: 0; white-space: nowrap; text-decoration: none; color: var(--brand); line-height: 1; }
.logo b { font-size: 1.5rem; letter-spacing: .14em; }
.logo span { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.logo.light, .logo.light b { color: #fff; }
.menu { display: flex; align-items: center; gap: 4px 12px; margin-left: auto; flex-wrap: nowrap; }
.menu > a:not(.btn):not(.favlink) { color: var(--ink); text-decoration: none; padding: 8px 2px; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.menu > a:not(.btn):not(.favlink):hover, .menu > a.on { border-bottom-color: var(--accent); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); background: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.lang[open] summary { border-color: var(--brand); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px rgba(20, 30, 50, .14); padding: 6px; z-index: 30; }
.lang-list a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.lang-list a:hover { background: var(--soft); }
.lang-list a.on { font-weight: 700; color: var(--brand); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 11px 10px; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 0 0 6px; }
.burger i:last-child { margin: 0; }

/* Hero and search */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .3em; }
.hero .lead { color: #d6deea; margin-bottom: 28px; }
.search { background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
.seg { display: inline-flex; background: var(--soft); border-radius: 8px; padding: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.search-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }

/* Form controls */
label > span, .form label > span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c9d0da; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid rgba(31, 58, 95, .22); }
label > span.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; font-size: inherit; font-weight: 400; color: inherit; }
.pair input { margin: 0; }
.field > .flabel { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; min-height: 1.24rem; }
.field > .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair input { padding-left: 9px; padding-right: 9px; min-width: 0; }
.curtog { display: inline-flex; border: 1px solid #c9d0da; border-radius: 6px; overflow: hidden; background: #fff; line-height: 1; }
.curtog a, .curtog b { padding: 3px 9px; font-size: .8rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.curtog b { background: var(--brand); color: #fff; }
.curtog a:hover { background: var(--soft); color: var(--brand); }
.curlinks { display: block; margin-top: 4px; font-size: .88rem; }
.curlinks a, .curlinks b { margin-left: 10px; }
.curlinks b { color: var(--ink); }
label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; }
label.check input { width: 18px; height: 18px; }

/* Catalog filters */
.filters { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(166px, 1fr)); gap: 12px 14px; align-items: end; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 6px 0; width: max-content; }
.more .filter-grid { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.filter-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-foot label { min-width: 170px; }
.grow { flex: 1; }
.count { color: var(--muted); margin-bottom: 14px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 26px rgba(20, 30, 50, .12); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 10px; left: 10px; right: 58px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #fff; color: var(--brand); font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.sample { position: absolute; left: 10px; bottom: 10px; background: var(--accent); color: #fff; }
.fav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; }
.fav:hover { color: var(--brand); border-color: var(--brand); }
.fav.on { color: #c62f3b; border-color: #efc2c6; }
.fav.on svg path { fill: currentColor; }
.card > .fav { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(20, 30, 50, .18); border-color: transparent; }
.fav.with-text { width: auto; height: 32px; padding: 0 12px 0 9px; font-size: .86rem; font-weight: 600; }
.fav.with-text svg { width: 17px; height: 17px; }
.favlink { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.favlink:hover, .favlink.on { border-color: var(--brand); color: var(--brand); }
.favlink-text { display: none; }
.favcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
[hidden] { display: none !important; }
.tag.static { position: static; display: inline-block; border: 1px solid var(--line); }
.tags { align-items: center; }
.tag.static.dark, .tag.static.sample { border-color: transparent; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--brand); }
.card h3 { margin: 0; font-weight: 600; }
.where { color: var(--muted); font-size: .9rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Sections */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.block-head a { text-decoration: none; font-weight: 600; }
.band { background: var(--soft); }
.tiles { display: grid; gap: 18px; margin: 18px 0; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--brand); }
.tile h3 { color: var(--brand); }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tiles.plain .tile { border-left: 3px solid var(--accent); }
.cta { background: var(--brand); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: #d6deea; }

/* Property page */
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.p-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.p-head h1 { margin-bottom: .35em; }
.p-price { text-align: right; }
.p-price strong { display: block; font-size: 1.7rem; color: var(--brand); line-height: 1.2; }
.p-price span { color: var(--muted); font-size: .92rem; }
.g-main { aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.g-thumbs button { flex: 0 0 104px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--soft); }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; margin-top: 30px; align-items: start; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0 0 18px; }
.spec.one { grid-template-columns: 1fr; max-width: 460px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .9rem; }
.desc { max-width: 70ch; }
.side { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 88px; }
.side h2 { font-size: 1.15rem; }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .note { font-size: .8rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { padding-left: 1.2em; max-width: 56ch; }
.steps li { margin-bottom: .6em; }

/* Messages, pager, empty state */
.alert { margin: 18px 0; padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.alert.ok { background: #eaf6ef; border-color: #b8dec9; color: var(--ok); }
.alert.err { background: #fbecea; border-color: #f0c4bf; color: var(--err); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
.pager a { text-decoration: none; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.empty { text-align: center; padding: 50px 20px; background: var(--soft); border-radius: var(--radius); }

/* Footer */
.foot { background: var(--ink); color: #c5ccd8; margin-top: 30px; font-size: .94rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 26px; }
.foot h4 { color: #fff; font-size: .95rem; margin-bottom: .8em; }
.foot a, .foot-in > div > span { display: block; color: #c5ccd8; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot a.logo { display: inline-flex; padding: 0; }
.foot p { margin-top: 14px; max-width: 34ch; }
.copy { border-top: 1px solid #2f3948; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; color: #8f99a8; }

/* Smaller screens */
@media (max-width: 900px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; flex-direction: column; align-items: stretch; gap: 2px; }
  .menu.open { display: flex; }
  .menu > a:not(.btn):not(.favlink) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin: 12px 0; }
  .lang summary { width: max-content; }
  .favlink { width: max-content; margin: 4px 0 10px; }
  .favlink-text { display: inline; }
  .lang-list { position: static; box-shadow: none; margin-top: 6px; }
  .top-in { position: relative; }
}
@media (max-width: 1040px) {
  .p-cols { grid-template-columns: 1fr; }
  .side { position: static; }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .search-row { grid-template-columns: 1fr; }
  .tiles.three, .tiles.two, .tiles.four { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .p-price { text-align: left; }
  .form .two { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .block { padding-top: 30px; padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
