/* Public website. Builds on the tokens and elements in app.css. */
.site{background:var(--page)}
/* Safety net: if something is ever too wide, clip it instead of letting the whole page slide sideways.
   (clip, unlike hidden, keeps the sticky header working.) The real fixes are the minmax(0,1fr) grids. */
html,body.site{overflow-x:clip}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.wrap.narrow{max-width:720px}
.section{padding-top:28px;display:flex;flex-direction:column;gap:14px}
body.site{min-height:100vh;display:flex;flex-direction:column}
body.site>main{flex:1 0 auto}
main{padding-bottom:48px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.sh{position:sticky;top:0;z-index:30;background:var(--surf);border-bottom:1px solid var(--bd)}
.sh-in{max-width:1200px;margin:0 auto;height:56px;padding:0 8px 0 16px;display:flex;align-items:center;gap:24px}
.sh-nav,.sh-phone{display:none}
.sh-nav{gap:24px;font:500 14px var(--font)}
.sh-nav a:hover,.sh-phone:hover{color:var(--pr)}
.sh-phone{align-items:center;gap:6px;font:500 14px var(--font)}
@media (min-width:900px){.sh-in{height:72px;padding:0 16px}.sh-nav,.sh-phone{display:flex}.sh-menu{display:none}}

/* drawer */
.drawer{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end}
.drawer-bg{position:absolute;inset:0;background:rgba(14,26,47,.55)}
.drawer-panel{position:relative;width:min(326px,88vw);height:100%;background:var(--surf);display:flex;flex-direction:column}
.drawer-links{padding:8px 16px;flex:1;overflow:auto;display:flex;flex-direction:column}
.drawer-links a{display:flex;align-items:center;gap:12px;min-height:52px;font:16px var(--font)}
.drawer-links a .ic:last-child{margin-left:auto;color:var(--t3)}
.drawer-links hr{border:0;border-top:1px solid var(--bd);margin:8px 0}
.drawer-h{padding:12px 0 4px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.drawer-phone{display:flex;gap:8px;align-items:center;padding:16px;border-top:1px solid var(--bd);font:700 15px var(--font);color:var(--pr)}
.drawer-mail{display:flex;gap:8px;align-items:center;padding:0 16px 16px;margin-top:-4px;font:500 14px var(--font);color:var(--t2);overflow-wrap:anywhere}
.about{display:flex;flex-direction:column;gap:12px;margin-bottom:8px}

/* hero search */
.hero{background:var(--surf);border-bottom:1px solid var(--bd);padding:20px 0}
.hero h1{font-size:24px;line-height:32px}
@media (min-width:900px){.hero{padding:40px 0}.hero h1{font-size:32px;line-height:40px}}
.search-panel{margin-top:16px;display:flex;flex-direction:column;gap:12px}
@media (min-width:900px){.search-panel{padding:20px;border:1px solid var(--bd);border-radius:16px;box-shadow:0 6px 16px rgba(14,26,47,.08)}}
.seg{display:flex;background:var(--sub);border-radius:12px;padding:4px;height:48px}
.seg label{flex:1;display:flex;position:relative}
.seg input{position:absolute;opacity:0;pointer-events:none;top:0;left:0;width:1px;height:1px}
.seg span{flex:1;display:flex;align-items:center;justify-content:center;border-radius:8px;font:500 14px var(--font);color:var(--t2);cursor:pointer}
.seg input:checked+span{background:var(--surf);color:var(--t1);box-shadow:0 1px 3px rgba(14,26,47,.12)}
.seg input:focus-visible+span{outline:2px solid var(--t1)}
.seg.mini{height:40px;width:112px}
.cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cats label{display:flex;position:relative}
.cats input{position:absolute;opacity:0;top:0;left:0;width:1px;height:1px}
.cats span{flex:1;min-width:0;overflow-wrap:anywhere;height:72px;border-radius:12px;border:1px solid var(--bds);background:var(--surf);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  font:700 12px var(--font);cursor:pointer;text-align:center;padding:0 2px}
.cats input:checked+span{background:var(--prs);border:2px solid var(--pr);color:var(--pr)}
.cats input:focus-visible+span{outline:2px solid var(--t1);outline-offset:2px}
/* Phones: two rows of two, icon beside the name, so long names such as «Հողատարածք» stay on one line. */
@media (max-width:599px){
  .cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cats span{flex-direction:row;justify-content:flex-start;height:52px;gap:8px;padding:0 8px 0 12px;font-size:13px;overflow-wrap:normal;text-align:left}
  .cats span .ic{flex:none;width:18px;height:18px}
}
@media (max-width:349px){.cats span{flex-direction:column;justify-content:center;height:64px;gap:4px;padding:0 4px;text-align:center}}
.sp-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
.sp-row .grow{grid-column:1/-1}
.sp-go{grid-column:1/-1}
.sp-row .seg.mini{align-self:end;height:48px;width:auto}
@media (min-width:900px){.search-panel .seg{max-width:340px}.sp-row{grid-template-columns:2fr 1fr 1fr 112px auto}.sp-row .grow,.sp-go{grid-column:auto}}

/* cards */
.grid{display:grid;gap:16px;grid-template-columns:1fr}
@media (min-width:640px){.grid{grid-template-columns:1fr 1fr}}
@media (min-width:1024px){.grid{grid-template-columns:repeat(3,1fr)}}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:min(300px,82%);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.rail .pc{scroll-snap-align:start}
@media (min-width:1024px){.rail{grid-auto-flow:row;grid-template-columns:repeat(3,1fr);overflow:visible}}
.pc{background:var(--surf);border:1px solid var(--bd);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(14,26,47,.06);transition:box-shadow .15s}
.pc:hover{box-shadow:0 6px 16px rgba(14,26,47,.12)}
.pc-img{position:relative;aspect-ratio:16/10;background:var(--sub);display:block}
.pc-img img{width:100%;height:100%;object-fit:cover;display:block}
.pc-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--t3)}
.pc-ex{position:absolute;top:12px;left:12px}
.pc-cnt{position:absolute;top:12px;right:12px;display:inline-flex;gap:4px;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:rgba(14,26,47,.7);color:#fff;font:700 12px var(--font)}
.pc-id{position:absolute;left:12px;bottom:12px;background:rgba(14,26,47,.8);color:#fff;font:700 20px/26px var(--font);padding:3px 10px;border-radius:10px;font-variant-numeric:tabular-nums}
.pc-b{padding:16px;display:flex;flex-direction:column;gap:8px}
.pc-price,.det-amts{display:flex;flex-direction:column;gap:2px;min-width:0}
.amt{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.amt b{font:700 20px/28px var(--font);font-variant-numeric:tabular-nums;color:var(--t1)}
.amt2 b{font-size:17px;line-height:24px}
.amt small{font:500 13px/18px var(--font);color:var(--t3)}
.pc-t{font:500 15px/22px var(--font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-loc{display:flex;gap:4px;align-items:center;font:13px/18px var(--font);color:var(--t2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-f{display:flex;gap:16px;flex-wrap:wrap;font:13px/18px var(--font);color:var(--t2)}
.pc-f span{display:inline-flex;gap:4px;align-items:center}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:900px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Phones: icon above the name, so long type names (they come from the back office) get the full width. */
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px;border-radius:16px;background:var(--surf);
  border:1px solid var(--bd);min-width:0}
.tile b{overflow-wrap:anywhere;font-size:14px;line-height:20px}
@media (max-width:899px){.tile{padding:14px}}
@media (min-width:900px){.tile{flex-direction:row;align-items:center;gap:12px}.tile b{font-size:15px;line-height:22px}}
.tile>i{width:44px;height:44px;border-radius:12px;background:var(--prs);color:var(--pr);display:inline-flex;align-items:center;justify-content:center;flex:none}
.tile span{flex:1;min-width:0;display:flex;flex-direction:column}
.tile>.ic{color:var(--t3);display:none}
@media (min-width:900px){.tile>.ic{display:block}}

/* results */
.res-head{padding-top:20px}
.res{display:flex;gap:32px;align-items:flex-start;padding-top:12px}
.res-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:14px}
.res-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.res-count{flex:1;min-width:0}
.res-sort{display:flex;align-items:center;gap:6px}
.res-sort select{border:1px solid var(--bds);border-radius:10px;background:var(--surf);height:40px;padding:0 10px;font:500 14px var(--font);color:var(--t1)}
.chip.rm{gap:6px;padding-right:10px}
.more{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:8px}
@media (min-width:640px){.more .btn{width:auto}}
.res-grid{grid-template-columns:1fr}
@media (min-width:640px){.res-grid{grid-template-columns:1fr 1fr}}
@media (min-width:1200px){.res-grid{grid-template-columns:repeat(3,1fr)}}

/* filters: bottom sheet on phones, sticky sidebar on desktop */
.res-side{position:fixed;inset:0;z-index:60;background:rgba(14,26,47,.55);display:none;align-items:flex-end}
.res-side.open{display:flex}
.filters{background:var(--surf);width:100%;max-height:92vh;border-radius:24px 24px 0 0;display:flex;flex-direction:column}
.f-head{display:flex;align-items:center;gap:8px;padding:12px 8px 8px 16px;border-bottom:1px solid var(--bd)}
.f-head h2{flex:1}
.f-body{overflow:auto;padding:16px;display:flex;flex-direction:column;gap:22px;position:relative}
.f-foot{padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--bd);box-shadow:0 -4px 24px rgba(14,26,47,.08)}
.grp{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.grp legend{font:700 15px/22px var(--font);padding:0;margin-bottom:10px}
.wrap-chips{flex-wrap:wrap;overflow:visible}
/* Hidden inputs stay inside their own label (position:relative): otherwise they escape the scrolling
   filter panel and add invisible height under the footer. */
.chk{display:inline-flex;position:relative}
.chk input{position:absolute;opacity:0;top:0;left:0;width:1px;height:1px}
.chk span{height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--bds);background:var(--surf);font:500 14px var(--font);display:inline-flex;align-items:center;cursor:pointer;white-space:nowrap}
.chk input:checked+span{background:var(--prs);border-color:var(--pr);color:var(--pr);box-shadow:inset 0 0 0 1px var(--pr)}
.chk input:focus-visible+span{outline:2px solid var(--t1);outline-offset:2px}
.sublist{display:flex;flex-direction:column;gap:8px}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:1024px){
  .res-filter-btn{display:none}
  .res-side{position:sticky;top:96px;inset:auto;display:block;background:none;width:300px;flex:none;z-index:1}
  .filters{border:1px solid var(--bd);border-radius:16px;max-height:calc(100vh - 120px)}
  .f-close{display:none}
  .f-foot{box-shadow:none}
}

/* property page */
.banner{background:var(--infs);color:var(--inf);display:flex;gap:10px;align-items:center;padding:12px 16px;font:500 14px var(--font);justify-content:center}
.det{display:flex;flex-direction:column;gap:20px;padding-top:12px}
.crumbs a:hover{color:var(--pr)}
.gal{position:relative;margin:0 -16px}
@media (min-width:900px){.gal{margin:0;border-radius:16px;overflow:hidden}}
.gal-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:4/3;background:var(--sub)}
@media (min-width:900px){.gal-track{aspect-ratio:21/9}}
.gal-track::-webkit-scrollbar{display:none}
.gal-slide{flex:0 0 100%;scroll-snap-align:start;border:0;padding:0;background:none;cursor:zoom-in;display:flex;align-items:center;justify-content:center;color:var(--t3)}
.gal-slide img{width:100%;height:100%;object-fit:cover;display:block}
.gal-ex{position:absolute;top:16px;left:16px}
.gal-id{position:absolute;left:16px;bottom:16px;background:rgba(14,26,47,.8);color:#fff;font:700 28px/36px var(--font);padding:4px 14px;border-radius:12px;font-variant-numeric:tabular-nums;pointer-events:none}
.gal-cnt{position:absolute;right:16px;bottom:22px;display:inline-flex;gap:4px;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:rgba(14,26,47,.7);color:#fff;font:700 12px var(--font);pointer-events:none}
.gal-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(14,26,47,.2);display:none}
.gal-nav.prev{left:12px}.gal-nav.next{right:12px}
@media (hover:hover){.gal-nav{display:inline-flex}}
.det-cols{display:flex;flex-direction:column;gap:24px}
@media (min-width:900px){.det-cols{flex-direction:row;align-items:flex-start;gap:40px}.det-main{flex:1;min-width:0}.det-side{width:380px;flex:none;position:sticky;top:96px}}
.det-main{display:flex;flex-direction:column;gap:28px}
.det-sum{display:flex;flex-direction:column;gap:8px}
.det-price{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.det-price .amt b{font-size:26px;line-height:34px}
.det-price .amt2 b{font-size:20px;line-height:28px}
.det-price .tag{flex:none;margin-top:5px}
.kf{display:grid;grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:8px;margin-top:8px}
.kf span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:12px;background:var(--surf);border:1px solid var(--bd);font:500 14px var(--font);text-align:center}
.kf .ic{color:var(--pr)}
.det-sec{display:flex;flex-direction:column;gap:12px}
.desc{color:var(--t2);font-size:16px;line-height:26px;max-width:68ch}
.kv{margin:0;display:grid;grid-template-columns:1fr;column-gap:40px}
@media (min-width:900px){.kv{grid-template-columns:1fr 1fr}}
.kv div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--bd);font-size:14px}
.kv dt{color:var(--t2);min-width:0}.kv dd{margin:0;font-weight:500;text-align:right}
.kv dd a{white-space:nowrap}
.contact{background:var(--surf);border:1px solid var(--bd);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 6px 16px rgba(14,26,47,.08)}
.contact small{display:block}
.logo-i{width:44px;height:44px;border-radius:12px;background:var(--pr);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none}
.logo-i img{width:30px;height:auto;display:block}
.logo.light{color:#fff}.logo.light i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}  /* the header lockup, on the navy footer */
.callid{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--prs);font:13px/18px var(--font);color:var(--t2)}
.callid span{flex:1}.callid b{font:700 22px/28px var(--font);color:var(--pr);white-space:nowrap;font-variant-numeric:tabular-nums}
.big-phone{height:56px;font-size:18px;font-weight:700}
.callbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surf);
  border-top:1px solid var(--bd);box-shadow:0 -4px 24px rgba(14,26,47,.1)}
.ib.out{width:48px;height:48px;border-radius:12px;border:1px solid var(--bds);background:var(--surf)}
body:has(.callbar) main{padding-bottom:96px}
body:has(.callbar) .sf{padding-bottom:96px}
@media (min-width:900px){.callbar{display:none}body:has(.callbar) main,body:has(.callbar) .sf{padding-bottom:48px}}

/* lightbox */
.lightbox{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:#0B1526;color:#fff}
.lightbox::backdrop{background:#0B1526}
.lightbox[open]{display:flex;flex-direction:column}
.lb-top{display:flex;align-items:center;gap:12px;height:56px;padding:0 8px}
.lb-top b{flex:1;text-align:center}.lb-top .ib{color:#fff}
.lb-id{font:700 15px var(--font);padding-right:12px}
.lb-track{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.lb-track img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:center}
.lb-nav{position:absolute;top:50%;color:#fff;background:rgba(255,255,255,.12)}
.lb-nav.prev{left:12px}.lb-nav.next{right:12px}

/* contact page */
.crow{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--bd)}
.crow:last-child{border-bottom:0}
.crow i{width:40px;height:40px;border-radius:50%;background:var(--prs);color:var(--pr);display:inline-flex;align-items:center;justify-content:center;flex:none}
.crow span{display:flex;flex-direction:column}

/* footer */
.sf{background:var(--inv);color:#fff;padding:32px 0 24px;margin-top:24px}
.sf-in{max-width:1200px;margin:0 auto;padding:0 16px;display:grid;gap:24px;grid-template-columns:1fr 1fr}
.sf-brand{grid-column:1/-1;display:flex;flex-direction:column;gap:12px;max-width:320px}
.sf-brand p{color:var(--bds);font-size:13px;line-height:18px}
.sf-col{display:flex;flex-direction:column;gap:10px;font-size:14px}
.sf-col small{color:var(--bds);text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.sf-col a,.sf-col span{display:inline-flex;gap:8px;align-items:center}
.sf-col a .ic,.sf-col span .ic{flex:none;align-self:flex-start;margin-top:2px}  /* icon beside the first line of a long address */
.sf-col a:hover{color:var(--ap)}
.sf-bottom{display:block;margin-top:24px;padding-top:16px;border-top:1px solid #23324B}
.sf-bottom small{color:var(--bds)}
@media (min-width:900px){.sf-in{grid-template-columns:2fr 1fr 1fr 1.2fr}.sf-brand{grid-column:auto}}

/* share menu: bottom sheet on phones, centred dialog on larger screens */
.share{border:0;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));width:100%;max-width:100%;margin:auto 0 0;
  border-radius:24px 24px 0 0;background:var(--surf);color:var(--t1)}
.share::backdrop{background:rgba(14,26,47,.55)}
.share[open]{display:flex;flex-direction:column;gap:14px}
@media (min-width:640px){.share{max-width:440px;margin:auto;border-radius:20px;padding:20px}}
.share-head{display:flex;align-items:center;justify-content:space-between}
.share-what{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.share-grid a,.share-grid button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:12px;border:0;background:none;
  font:500 13px var(--font);color:var(--t1);cursor:pointer;text-align:center}
.share-grid a:hover,.share-grid button:hover{background:var(--page)}
.share-grid i{width:48px;height:48px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-style:normal}
.share-grid i b{font:700 22px var(--font)}
.wa-c{background:#25D366}.tg-c{background:#229ED9}.vb-c{background:#7360F2}.fb-c{background:#1877F2}.ml-c{background:var(--t2)}.mo-c{background:var(--sub);color:var(--t1)!important}
.share .url{display:flex;align-items:center;gap:8px;background:var(--page);border:1px solid var(--bd);border-radius:12px;padding:6px 6px 6px 14px}
.share .url span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;user-select:all}

/* home search: full filters */
.hs-grid{display:flex;flex-direction:column;gap:18px}
@media (min-width:900px){.hs-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px 32px;align-items:start}}
.hs-price{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 96px;gap:8px}
.hs-price .seg.mini{width:auto;height:48px}
.hs-more{border-top:1px solid var(--bd);padding-top:12px}
.hs-more summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;font:500 15px var(--font);color:var(--pr);cursor:pointer}
.hs-more summary::-webkit-details-marker{display:none}
.hs-more summary .ic:last-child{margin-left:auto;transition:transform .15s}
.hs-more[open] summary .ic:last-child{transform:rotate(180deg)}
.hs-more[open] summary{margin-bottom:12px}
@media (min-width:900px){.hs-more .hs-grid{grid-template-columns:1fr 1fr}.sp-go{width:auto;align-self:flex-end;min-width:320px}}

/* social media links (from Site settings in the back office) */
.social{display:flex;flex-wrap:wrap;gap:8px}
.social a{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #33435E;color:#fff}
.social a:hover{background:var(--ap);border-color:var(--ap)}
.drawer-social{padding:12px 16px 0;border-top:1px solid var(--bd)}
.drawer-social a{border-color:var(--bds);color:var(--t1)}
.drawer-social a:hover{color:#fff}
.crow-url{overflow-wrap:anywhere;font-weight:500}
