/* سامانه املاک نجف‌آباد — main stylesheet */
:root {
	--bg: #F3F7F8;
	--sand: #E4EFF1;
	--surface: #FFFFFF;
	--surface-2: #F7FAFB;
	--ink: #14232A;
	--ink-2: #33444C;
	--muted: #51626A;
	--line: #D9E4E8;
	--line-2: #E7EEF1;
	--green: #1B7A8A;
	--green-2: #15697A;
	--green-dark: #0D3F4A;
	--accent: #C0561A;
	--accent-dark: #9C4412;
	--mint: #E1F1F4;
	--rose: #FCEBDD;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 0 var(--line), 0 24px 48px -30px rgba(20, 35, 42, .34);
	--font: 'Vazirmatn', Tahoma, system-ui, sans-serif;
	--display: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
	--container: 1280px;
	--gutter: clamp(16px, 4vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; direction: rtl; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.icon { flex-shrink: 0; }
.skip { position: absolute; right: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { right: 8px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }

/* Typography helpers */
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; letter-spacing: -.3px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #DDEEF1; color: var(--green); font-size: 14px; font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; line-height: 1.3; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg); color: var(--ink); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: #EAF2F4; color: var(--ink); border: 0; cursor: pointer; flex-shrink: 0; }
.icon-btn--dark { background: #155563; color: #fff; }
.icon-btn--dark:hover { background: var(--accent); color: #fff; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 10px -4px rgba(20, 35, 42, .35); background: #fff; }
.brand--light .brand__logo { box-shadow: none; }
.brand__mark { width: 40px; height: 48px; border-radius: 20px 20px 6px 6px; background: var(--green); display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; flex-shrink: 0; }
.brand__mark span { width: 13px; height: 19px; border-radius: 7px 7px 2px 2px; background: var(--accent); display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 21px; white-space: nowrap; }
.brand__tag { font-size: 12px; color: var(--muted); margin-top: 5px; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__mark { background: #fff; }
.brand--light .brand__tag { color: #9FC0C7; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 247, 248, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.nav { flex-grow: 1; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav .menu a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; white-space: nowrap; }
.nav .menu a:hover, .nav .current-menu-item > a { color: var(--accent); }
.nav .sub-menu { display: none; }
.nav__extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.hero__content { display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: flex-start; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.3; letter-spacing: -.5px; }
.hero__title em, .page-hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: #47585F; max-width: 600px; margin: 0; }
.hero__visual { position: relative; min-height: 600px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 14px; }
.chips__label { color: var(--muted); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid #CFDDE1; color: var(--ink); font-size: 14px; background: transparent; }
.chip:hover { border-color: var(--green); color: var(--green); background: #fff; }

/* Arch shapes */
.arch { position: relative; overflow: hidden; background: var(--green); color: #CBE4E9; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.arch .pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.arch--hero { position: absolute; inset: 0; border-radius: 28px; }
.arch--side { border-radius: 26px; min-height: 420px; }
.arch--small { width: 200px; height: 240px; border-radius: 20px; margin: 0 auto 24px; }
.arch__label { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; text-align: center; padding: 0 24px; }
.seal { position: absolute; top: 64px; left: -24px; z-index: 3; width: 124px; height: 124px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 14px 30px -12px rgba(150, 70, 20, .55); line-height: 1.2; }
.seal:hover { color: #fff; background: var(--accent-dark); }
.seal strong { font-family: var(--display); font-size: 24px; font-weight: 800; }
.seal span { font-size: 12px; margin-top: 4px; padding: 0 10px; }
.float-card { position: absolute; bottom: 24px; right: 24px; left: 24px; z-index: 3; background: #fff; border-radius: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; color: var(--ink); box-shadow: var(--shadow); }
.float-card:hover { color: var(--ink); }
.float-card__text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.float-card__eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); }
.float-card__title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card__price { font-size: 14px; color: var(--muted); }

/* Search */
.search { width: 100%; background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #EAF2F4; border-radius: 999px; padding: 5px; align-self: flex-start; }
.seg__item { position: relative; cursor: pointer; }
.seg__item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__item span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.seg__item input:checked + span { background: var(--green); color: #fff; font-weight: 600; }
.seg__item input:focus-visible + span { outline: 3px solid var(--accent); }
.search__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.search--bar .search__fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.search--bar .search__submit { grid-column: span 6; justify-self: start; min-width: 180px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 16px; background: var(--surface-2); color: var(--ink); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2356615B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 122, 138, .18); background-color: #fff; }
.search__submit { min-height: 52px; border-radius: var(--radius-sm); }

/* Trust */
.trust { list-style: none; margin: 0; padding: 26px 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust li { display: flex; gap: 14px; align-items: center; }
.trust li > span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.trust small { color: var(--muted); font-size: 13px; }
.trust__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust__icon--accent { background: var(--rose); color: var(--accent); }

/* Section head */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head__text { max-width: 460px; color: #47585F; margin: 0; font-size: 17px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Grids */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Listing card */
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #DCE9EC; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9FB6BC; }
.badge { position: absolute; bottom: 12px; right: 12px; padding: 5px 13px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--green); line-height: 1.6; }
.badge--accent { color: var(--accent); }
.badge--featured { right: auto; left: 12px; top: 12px; bottom: auto; background: var(--accent); color: #fff; }
.card__count { position: absolute; bottom: 12px; left: 12px; display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(20, 35, 42, .72); color: #fff; font-size: 12px; }
.card__body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card__place { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.6; font-family: var(--font); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--green); }
.card__specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.card__specs li { display: inline-flex; align-items: center; gap: 5px; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__price { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--green); line-height: 1.3; }
.card__code { font-size: 12px; color: #66777E; white-space: nowrap; }
.card--archived { opacity: .75; }

/* Area tiles */
.area-tile { position: relative; overflow: hidden; isolation: isolate; min-height: 290px; border-radius: 22px; background: var(--green); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.area-tile:nth-child(3n+2) { background: #15697A; }
.area-tile:nth-child(3n) { background: #0F5361; }
.area-tile:hover { color: #fff; background: var(--accent); }
.area-tile .pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.area-tile__name { font-family: var(--display); font-size: 27px; font-weight: 800; line-height: 1.3; }
.area-tile__meta { display: flex; flex-direction: column; font-size: 14px; color: #D3E6EA; margin-top: 8px; line-height: 1.7; }
.area-tile--all { background: transparent !important; border: 2px dashed #A9BFC5; color: var(--ink); align-items: center; justify-content: center; gap: 12px; }
.area-tile--all:hover { color: var(--accent); border-color: var(--accent); }
.area-tile--all .icon-btn { background: #fff; }

/* Split / panel / tables */
.split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split__text p { color: #47585F; font-size: 17px; margin: 0; }
.stat-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat-list strong { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--green); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--rose); color: var(--accent); font-size: 13px; font-weight: 700; }
.nm-price-guide__meta { font-size: 13px; color: var(--muted); padding: 14px 24px 0; margin: 0; }
.nm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nm-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.nm-table th, .nm-table td { padding: 14px 24px; text-align: right; border-top: 1px solid var(--line-2); white-space: nowrap; }
.nm-table thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.nm-table tbody th { font-weight: 700; }
.nm-table tbody th a { color: var(--ink); }
.nm-table tbody th a:hover { color: var(--accent); }

/* FAQ */
.faq-block { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.faq-block__intro { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.faq-block__intro p { color: #47585F; margin: 0; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 18px; font-weight: 700; font-family: var(--font); }
.faq__icon { transition: transform .2s; color: var(--green); }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--accent); }
.faq__item p { color: #47585F; margin: 0 0 20px; }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--accent); color: #fff; padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta .pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.4; }
.cta p { color: #FFF1E6; margin: 10px 0 0; font-size: 17px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Post card */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__media { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #D8E8EB; position: relative; margin-bottom: 6px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #93B3BA; }
.post-card .eyebrow { margin: 0; }
.post-card__title { font-size: 20px; font-weight: 700; line-height: 1.6; font-family: var(--font); }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--green); }
.post-card__excerpt { color: #47585F; font-size: 15px; margin: 0; }
.post-card__date { font-size: 13px; color: #66777E; }

/* Page hero */
.page-hero { padding-block: clamp(24px, 4vw, 40px) clamp(32px, 5vw, 64px); }
.page-hero--compact { padding-bottom: clamp(20px, 3vw, 32px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.page-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.35; margin-block: 8px 14px; }
.page-hero__lead { font-size: 17px; color: #47585F; max-width: 720px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fact span { font-size: 13px; color: var(--muted); }
.fact strong { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: '‹'; margin-right: 6px; color: #93A6AD; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs p { margin: 0; }
.rank-math-breadcrumb .separator { margin-inline: 4px; color: #93A6AD; }

/* Filters */
.filter-toggle { display: none; }
.filters .search { box-shadow: none; border: 1px solid var(--line); }

/* Pagination */
.pager { margin-top: 40px; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager .current { background: var(--green); color: #fff; border-color: var(--green); }
.pager a:hover { border-color: var(--green); color: var(--green); }

/* Empty */
.empty { text-align: center; max-width: 640px; margin: 0 auto; padding: 32px 0; color: var(--muted); }
.empty h1, .empty h2, .empty h3 { color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 800; margin-block: 12px; }
.empty__form { text-align: right; margin-top: 24px; }
.empty--404 .search { text-align: right; margin-top: 24px; }

/* Link cloud & prose */
.link-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-cloud strong { margin-left: 6px; }
.prose { font-size: 17px; line-height: 2; color: var(--ink-2); }
.prose h2 { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); margin: 1.2em 0 .5em; }
.prose h3 { font-size: 21px; color: var(--ink); margin: 1.3em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-right: 1.3em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: right; }
.prose th { background: var(--surface-2); }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.prose img { border-radius: 16px; }
.seo-text { color: #47585F; }

/* Single listing */
.listing-head { padding-top: clamp(20px, 3vw, 32px); }
.notice { padding: 14px 18px; border-radius: 14px; margin: 12px 0; font-size: 15px; }
.notice--warn { background: #FFF4E0; border: 1px solid #F0D9A8; color: #6B4B0E; }
.nm-notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin: 0; }
.nm-notice--ok { background: var(--mint); color: var(--green-dark); }
.nm-notice--err { background: var(--rose); color: var(--accent-dark); }
.listing-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: 8px; }
.listing-head__main { flex: 1 1 520px; min-width: 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge--solid { position: static; background: var(--green); color: #fff; }
.badge--soft { position: static; background: #DDEEF1; color: var(--ink); }
.listing-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.45; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.listing-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.listing-meta a:hover { color: var(--accent); }
.listing-price { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.listing-price strong { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; color: var(--green); }
.listing-price span { font-size: 14px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; margin-top: 28px; }
.gallery--single { grid-template-columns: 1fr; }
.arch--gallery { border-radius: 24px; aspect-ratio: 16 / 9; max-height: 620px; width: 100%; background: #DCE9EC; color: var(--muted); }
.gallery__main img { object-fit: cover; }
.gallery__empty { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 15px; padding: 0 24px; text-align: center; }
.gallery--single .arch--gallery:not(:has(img)) { background: var(--green); max-height: 360px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }
.gallery__thumb { border: 2px solid transparent; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #DCE9EC; aspect-ratio: 3 / 2; flex-shrink: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }

.listing-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 48px); align-items: start; margin-top: 40px; }
.listing-body__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.specs { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.spec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec span { font-size: 13px; color: var(--muted); }
.spec strong { font-size: 17px; overflow-wrap: anywhere; }
.listing-summary { font-weight: 500; color: var(--ink); }
.features { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.features li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.features .icon { color: var(--green); }
.area-link { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 24px; background: var(--green); color: #fff; }
.area-link:hover { background: var(--green-dark); color: #fff; }
.area-link__arch { width: 58px; height: 70px; border-radius: 14px; background: #2A8795; flex-shrink: 0; }
.area-link__text { flex-grow: 1; display: flex; flex-direction: column; }
.area-link__text span { font-size: 14px; color: #CBE4E9; }

.listing-body__side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.agent { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.agent__head { display: flex; align-items: center; gap: 12px; }
.agent__head > span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.agent__head small { color: var(--muted); }
.agent__code { margin: 0; font-size: 14px; color: var(--muted); }
.agent hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; width: 100%; }
.trust-note { display: flex; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--mint); font-size: 14px; line-height: 1.9; }
.trust-note .icon { color: var(--green); }

/* Lead form */
.lead { display: flex; flex-direction: column; gap: 12px; position: relative; }
.lead__title { font-size: 18px; }
.lead__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); align-self: start; }

/* Article */
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 14px; margin: 0; }
.article__cover img { border-radius: 24px; width: 100%; }
.article__body { padding-block: 32px; }
.article__cta { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article__cta div { display: flex; gap: 10px; flex-wrap: wrap; }

/* Contact & steps */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.contact-list .icon { color: var(--green); margin-top: 4px; }
.contact-list li > span { display: flex; flex-direction: column; line-height: 1.7; }
.contact-list small { color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 700; }
.map-links { display: flex; gap: 10px; margin-top: 16px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s, persian); font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--green-dark); color: #D3E6EA; padding-top: clamp(48px, 6vw, 72px); margin-top: clamp(40px, 6vw, 72px); }
.site-footer a { color: #D3E6EA; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { margin: 18px 0; font-size: 15px; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer address > * { display: inline-flex; gap: 8px; align-items: flex-start; }
.site-footer address .icon { margin-top: 5px; color: #8EC0C9; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.site-footer__col strong { display: block; color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #1E5D69; margin-top: 48px; padding-block: 22px; font-size: 13px; color: #9FC0C7; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav .menu { gap: 18px; }
	.header-phone span { display: none; }
	.hero__grid { grid-template-columns: minmax(0, 1fr) 400px; }
	.search--bar .search__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.search--bar .search__submit { grid-column: span 3; }
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.split { grid-template-columns: 1fr; }
	.listing-body { grid-template-columns: minmax(0, 1fr) 340px; }
	.specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
	.site-header__inner { min-height: 68px; gap: 12px; justify-content: space-between; }
	.brand__name { font-size: 24px; }
	.brand__tag { display: none; }
	.brand__mark { width: 32px; height: 40px; padding-bottom: 6px; }
	.brand__mark span { width: 10px; height: 15px; }
	.nav-toggle { display: inline-flex; }
	.header-phone, .header-cta { display: none; }
	/* A blurred header would become the containing block for the fixed drawer and clip it. */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.site-header.is-scrolled { background: #fff; }
	.nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); padding: 24px var(--gutter) 120px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
	.nav.is-open { transform: none; visibility: visible; z-index: 80; }

	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
	.nav .sub-menu { display: block; list-style: none; padding-right: 16px; }
	.nav__extra { display: grid; gap: 12px; margin-top: 24px; }
	.nav__extra .btn { width: 100%; justify-content: center; min-height: 50px; border-radius: 14px; }
	.nav__contact { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
	.nav__contact li { display: flex; align-items: flex-start; gap: 10px; }
	.nav__contact svg { flex: none; margin-top: 2px; color: var(--accent); }
	.nav__contact a { color: var(--ink); font-weight: 600; }
	body.nav-open { overflow: hidden; }
}

@media (max-width: 960px) {

	.hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
	.hero__visual { min-height: 340px; order: 2; }
	.arch--hero { border-radius: 24px; }
	.seal { width: 96px; height: 96px; top: 20px; left: 8px; }
	.seal strong { font-size: 22px; }
	.seal span { font-size: 10px; }
	.arch--side { min-height: 220px; border-radius: 22px; }
	.search__fields { grid-template-columns: 1fr 1fr; }
	.search__submit { grid-column: span 2; }
	.trust { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.area-tile { min-height: 210px; padding: 18px; }
	.area-tile__name { font-size: 28px; }
	.faq-block { grid-template-columns: 1fr; }
	.filter-toggle { display: inline-flex; margin-bottom: 12px; }
	.filters { display: none; }
	.filters.is-open { display: block; }
	.listing-body { grid-template-columns: 1fr; }
	.listing-body__side { position: static; }
	.listing-price { align-items: flex-start; }
	.gallery { grid-template-columns: 1fr; }
	.gallery__thumbs { flex-direction: row; overflow-x: auto; max-height: none; }
	.gallery__thumb { width: 108px; }
	.arch--gallery { border-radius: 20px; aspect-ratio: 4 / 3; }
	.specs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; right: 0; left: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
	.mobile-bar .btn { min-height: 48px; border-radius: 14px; }
	body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
	body { font-size: 15px; }
	.search { padding: 14px; border-radius: 20px; }
	.seg { width: 100%; justify-content: space-between; }
	.seg__item { flex: 1; }
	.seg__item span { text-align: center; padding: 8px 4px; font-size: 13px; white-space: nowrap; }
	.search__fields, .search--bar .search__fields { grid-template-columns: 1fr; }
	.search__submit, .search--bar .search__submit { grid-column: auto; width: 100%; }
	.trust { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.area-tile { min-height: 180px; border-radius: 18px; padding: 14px; }
	.area-tile__name { font-size: 24px; }
	.area-tile__meta { font-size: 12px; }
	.lead__row { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 24px; }
	.float-card { right: 12px; left: 12px; bottom: 12px; padding: 12px; }
}

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


/* ================= Map ================= */
.map-tiles { filter: saturate(.75) contrast(.96) brightness(1.02); }
.leaflet-container { direction: ltr; font-family: var(--font); background: #E6EEF0; }
.leaflet-container a { color: inherit; }
.leaflet-control-attribution { font-size: 10px; direction: ltr; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink) !important; }

.map-pin { background: transparent; border: 0; }
.map-pin span { display: inline-block; transform: translate(-50%, -100%); position: relative; white-space: nowrap; direction: rtl; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; font: 700 12px/1.2 var(--font); box-shadow: 0 6px 14px -6px rgba(20, 35, 42, .55); border: 2px solid #fff; transition: transform .15s, background .15s; }
.map-pin span::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--green); border-bottom: 0; }
.map-pin--r span { background: var(--accent); }
.map-pin--r span::after { border-top-color: var(--accent); }
.map-pin--p span { background: #5B4BA8; }
.map-pin--p span::after { border-top-color: #5B4BA8; }
.map-pin--one span { background: var(--accent); font-size: 13px; padding: 7px 12px; }
.map-pin--one span::after { border-top-color: var(--accent); }
.map-pin:hover span, .map-pin.is-hover span { transform: translate(-50%, -100%) scale(1.12); background: var(--ink); z-index: 1000; }
.map-pin.is-hover { z-index: 9999 !important; }
.map-pin:hover span::after, .map-pin.is-hover span::after { border-top-color: var(--ink); }

.map-cluster { background: transparent; }
.map-cluster span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--green); color: #fff; font: 800 14px/1 var(--font); box-shadow: 0 0 0 6px rgba(27, 122, 138, .25), 0 8px 18px -8px rgba(20, 35, 42, .6); border: 2px solid #fff; }

.map-popup .leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(20, 35, 42, .5); }
.map-popup .leaflet-popup-content { margin: 0; width: 260px !important; direction: rtl; }
.map-popup a.leaflet-popup-close-button { color: #fff; background: rgba(20, 35, 42, .55); border-radius: 50%; width: 26px; height: 26px; line-height: 24px; top: 8px; right: 8px; }
.mp { display: block; color: var(--ink) !important; }
.mp__img { display: block; width: 100%; height: 140px; object-fit: cover; background: var(--sand); }
.mp__img--empty { background: linear-gradient(135deg, var(--sand), #fff); }
.mp__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.mp__title { font-size: 14px; line-height: 1.6; }
.mp__specs { font-size: 12px; color: var(--muted); }
.mp__price { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--green); }
.mp__more { font-size: 12px; font-weight: 700; color: var(--accent); }

/* Home map hero */
.maphero { position: relative; min-height: 700px; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.maphero__map { position: absolute; inset: 0; z-index: 0; }
.maphero__map.is-error::after { content: 'نقشه بارگذاری نشد'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.maphero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to left, rgba(243, 247, 248, .96) 0%, rgba(243, 247, 248, .82) 34%, rgba(243, 247, 248, 0) 58%); }
.maphero__inner { position: relative; z-index: 2; pointer-events: none; padding-block: 48px 96px; }
.maphero__panel { pointer-events: auto; width: min(560px, 100%); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.maphero__panel .hero__title { font-size: clamp(30px, 4vw, 52px); }
.maphero__tools { position: absolute; z-index: 3; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 2 * var(--gutter)); }
.maphero__count { background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; box-shadow: var(--shadow); }
.maphero__count strong { color: var(--green); font-size: 16px; }
.maptoggle { display: inline-flex; gap: 4px; background: #fff; padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.maptoggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); min-height: 38px; }
.maptoggle button.is-active { background: var(--green); color: #fff; }

/* Mini maps */
.minimap { height: 320px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.minimap--wide { height: 440px; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Map search page */
.mapsearch { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: calc(100vh - 84px); min-height: 560px; position: relative; }
.admin-bar .mapsearch { height: calc(100vh - 116px); }
.mapsearch__side { display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); overflow: hidden; min-height: 0; }
.mapsearch__head { padding: 18px 20px 8px; }
.mapsearch__title { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.4; }
.mapsearch__meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.mapsearch__meta strong { color: var(--green); }
.mapfilters { padding: 8px 20px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.seg--full { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: stretch; }
.seg--full .seg__item span { text-align: center; padding: 7px 4px; font-size: 13px; white-space: nowrap; }
.mapfilters__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mapfilters .field input, .mapfilters .field select { min-height: 44px; font-size: 14px; padding: 6px 10px; }
.mapfilters .field select { padding-left: 34px; background-position: left 10px center; }
.mapsearch__list { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.mapsearch__note { font-size: 12px; color: var(--muted); padding: 8px 20px 12px; margin: 0; border-top: 1px solid var(--line); }
.mapsearch__map { min-height: 0; z-index: 0; }
.mapsearch__toggle { display: none; }
.mcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.mcard:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.mcard img, .mcard__ph { width: 112px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--sand); }
.mcard__ph { background: var(--mint) url('../img/logo-128.webp') center / 52px no-repeat; opacity: .9; }
.mcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcard__body strong { font-size: 14px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mcard__area, .mcard__specs { font-size: 12px; color: var(--muted); }
.mcard__price { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--green); }
.map-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 8px; }
.page-template-template-map .site-footer { margin-top: 0; }

@media (max-width: 960px) {
	.maphero { flex-direction: column; align-items: stretch; min-height: 0; }
	.maphero::before { display: none; }
	.maphero__inner { order: 1; padding-block: 24px 20px; }
	.maphero__map { position: relative; order: 2; height: 440px; inset: auto; }
	.maphero__tools { position: relative; order: 3; left: auto; bottom: auto; margin: -64px 16px 16px; justify-content: center; }
	.mapsearch { grid-template-columns: 1fr; height: calc(100vh - 68px); }
	.mapsearch__map { display: none; }
	.mapsearch.show-map .mapsearch__map { display: block; position: absolute; inset: 0; }
	.mapsearch__toggle { display: inline-flex; position: fixed; z-index: 70; bottom: 86px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow); }
	.mapsearch__side { border-left: 0; }
	.mapsearch__list { padding-bottom: 80px; }
}
@media (max-width: 600px) {
	.brand__logo { width: 44px; height: 44px; }
	.mapfilters__grid { grid-template-columns: 1fr 1fr; }
	.maphero__map { height: 380px; }
}

/* =====================================================================
   1.2 — motion, map lock, stock images, owner submissions, team, articles
   ===================================================================== */

/* ---- Motion ---- */
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
html.anim .reveal.is-in { opacity: 1; transform: none; }
html.anim .area-tile.reveal, html.anim .person.reveal { transform: translateY(28px) scale(.98); }
html.anim .area-tile.reveal.is-in, html.anim .person.reveal.is-in { transform: none; }
html.anim .maphero__panel > * { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.anim body.is-ready .maphero__panel > * { opacity: 1; transform: none; }
html.anim .maphero__panel > :nth-child(2) { transition-delay: .08s; }
html.anim .maphero__panel > :nth-child(3) { transition-delay: .16s; }
html.anim .maphero__panel > :nth-child(4) { transition-delay: .24s; }
html.anim .maphero__panel > :nth-child(n+5) { transition-delay: .32s; }
html.anim .maphero__tools { opacity: 0; transition: opacity .8s .45s; }
html.anim body.is-ready .maphero__tools { opacity: 1; }
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -22px rgba(20, 35, 42, .45); }
.card__media img, .post-card img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img, .post-card:hover img { transform: scale(1.05); }
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn--accent:hover, .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(192, 86, 26, .7); }
.btn:active { transform: translateY(0); }
.leaflet-marker-icon { transition: transform .18s; }
@keyframes samaneh-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes samaneh-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 86, 26, .45); } 50% { box-shadow: 0 0 0 12px rgba(192, 86, 26, 0); } }
@keyframes samaneh-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Map lock ---- */
.map-hint { position: absolute; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .25s; background: rgba(13, 63, 74, .28); }
.map-hint span { background: rgba(20, 35, 42, .86); color: #fff; font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.map-locked { cursor: pointer; }
.map-locked.leaflet-grab, .map-locked .leaflet-interactive { cursor: pointer; }
.map-hint-flash .map-hint { opacity: 1; }
@media (hover: hover) {
	.map-locked:hover .map-hint { opacity: 1; background: transparent; }
	.map-locked:hover .map-hint span { animation: samaneh-fade .25s both; }
	.maphero__map.map-locked:hover .map-hint { align-items: flex-end; padding-bottom: 96px; }
}
.map-lock { position: absolute; z-index: 810; top: 12px; left: 12px; display: none; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--ink); font: 600 13px/1.4 var(--font); box-shadow: 0 8px 22px -10px rgba(20, 35, 42, .5); cursor: pointer; }
.map-lock:hover { background: var(--ink); color: #fff; }
.map-active .map-lock { display: inline-flex; animation: samaneh-fade .25s both; }
.map-active { box-shadow: inset 0 0 0 3px var(--green); }
@media (hover: none) { .map-locked .map-hint { opacity: 1; background: transparent; align-items: flex-end; padding-bottom: 18px; } .map-locked .map-hint span { font-size: 13px; padding: 8px 14px; } .maphero__map.map-locked .map-hint { padding-bottom: 80px; } }

/* ---- Stock / sample image labels ---- */
.stock-label { position: absolute; z-index: 2; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.5; color: #fff; background: rgba(20, 35, 42, .62); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 999px; pointer-events: none; letter-spacing: 0; }
.stock-label--sm { top: 6px; right: 6px; font-size: 10px; padding: 1px 7px; }
.stock-label--corner { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); z-index: 3; }
.card__media .stock-label { top: auto; right: auto; bottom: 14px; left: 14px; }
.mp__media, .mcard__media { position: relative; display: block; }
.mcard__media { width: 112px; height: 88px; }
.mcard__media img { display: block; }
.gallery__stock { position: absolute; inset: auto 0 18px 0; z-index: 3; display: flex; justify-content: center; }
.gallery__stock .stock-label { position: static; font-size: 13px; padding: 6px 14px; }
.arch--photo::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(13, 63, 74, 0) 45%, rgba(13, 63, 74, .75)); }
.arch--photo .arch__label { position: relative; z-index: 3; }

/* ---- Area tiles with photos ---- */
.area-tile--photo { background: var(--green-dark) !important; }
.area-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.area-tile--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 63, 74, .05) 20%, rgba(13, 63, 74, .55) 55%, rgba(10, 40, 48, .92)); transition: background .4s; }
.area-tile--photo:hover .area-tile__img { transform: scale(1.08); }
.area-tile--photo:hover::before { background: linear-gradient(180deg, rgba(192, 86, 26, .1) 20%, rgba(156, 68, 18, .6) 55%, rgba(120, 50, 12, .92)); }
.area-tile--photo .area-tile__meta { color: #E6F1F3; }

/* ---- Owner band (home) ---- */
.owner-band { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; background: linear-gradient(120deg, var(--green-dark), #155E6C 60%, var(--green)); color: #E3F1F4; border-radius: 32px; padding: clamp(24px, 4.5vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.owner-band::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; left: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 86, 26, .45), transparent 65%); }
.owner-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.35; color: #fff; margin: 6px 0 10px; }
.owner-band p { margin: 0; line-height: 2; max-width: 60ch; }
.owner-band__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14); padding: 4px 12px; border-radius: 999px; }
.owner-band__points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: #fff; }
.owner-band__points li { display: flex; align-items: center; gap: 8px; }
.owner-band__points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #F29A5E; }
.owner-band__actions { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.owner-band__actions .btn { animation: samaneh-pulse 2.6s 1.5s infinite; margin-bottom: 18px; }
.owner-band__count { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 56px); line-height: 1.1; color: #fff; }
.owner-band__actions small { font-size: 14px; color: #BFDCE2; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ---- Owner form (/sell/) ---- */
.card-panel--owner { padding: clamp(18px, 3vw, 36px); }
.owner-form { display: flex; flex-direction: column; gap: 6px; }
.owner-form__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.owner-form__step:not(:last-of-type)::before { content: ''; position: absolute; top: 46px; bottom: 4px; right: 21px; width: 2px; background: var(--line-2); }
.owner-form__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green-dark); font-family: var(--display); font-weight: 800; font-size: 18px; transition: background .25s, color .25s; }
.owner-form__step:focus-within .owner-form__num { background: var(--green); color: #fff; }
.owner-form__fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 8px; }
.owner-form__title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.owner-form__title small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--muted); }
.seg--full { display: flex; flex-wrap: nowrap; width: 100%; border-radius: 16px; }
.seg--full .seg__item span { border-radius: 12px; white-space: nowrap; }
.seg--full .seg__item { flex: 1 1 0; text-align: center; }
.lead__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 150px; padding: 20px; border: 2px dashed #A9C3C9; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--green); background: var(--mint); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__text { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.dropzone__text small { font-size: 12px; color: var(--muted); }
.dropzone__preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dropzone__preview:empty { display: none; }
.dropzone__preview img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; animation: samaneh-pop .35s both; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.8; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.owner-form__privacy { margin: 0; font-size: 13px; color: var(--muted); }
.owner-form .btn[disabled] { opacity: .7; cursor: progress; }
.owner-done { background: var(--mint); border: 1px solid #BFDFE5; color: var(--green-dark); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; animation: samaneh-fade .5s both; }
.owner-done strong { font-family: var(--display); font-size: 20px; }
.owner-done p { margin: 6px 0 0; line-height: 1.9; }

/* ---- About / team ---- */
.about-intro { font-size: 17px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person__photo { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--mint), #CFE5EA); border-radius: 18px 18px 0 0; margin: 12px 12px 0; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 96px; color: var(--green); opacity: .5; }
.person__body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.person__role { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--rose); padding: 3px 12px; border-radius: 999px; }
.person__name { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 6px 0 4px; color: var(--ink); }
.person__bio { color: var(--ink-2); line-height: 2; font-size: 15px; }
.person__bio p { margin: 0 0 8px; }
.person__phone { align-self: flex-start; margin-top: 6px; font-weight: 700; color: var(--green); }

/* ---- Articles ---- */
.article__cover { margin: 24px 0 0; }
.article__credit { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: left; }
.article__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nm-summary { background: var(--mint); border-right: 4px solid var(--green); border-radius: 18px; padding: 18px 22px; margin: 0 0 28px; }
.nm-summary > :first-child { margin-top: 0; }
.nm-summary > :last-child { margin-bottom: 0; }
.nm-summary strong:first-child, .nm-summary h2, .nm-summary h3 { font-family: var(--display); color: var(--green-dark); }
.nm-summary ul { margin: 8px 0 0; padding-right: 20px; }
.nm-note { background: var(--rose); border-right: 4px solid var(--accent); border-radius: 16px; padding: 14px 20px; margin: 24px 0; color: #5A2A0C; }
.nm-note > :first-child { margin-top: 0; }
.nm-note > :last-child { margin-bottom: 0; }
.nm-sources { margin: 36px 0 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 4px 18px; font-size: 14px; }
.nm-sources summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--ink-2); }
.nm-sources ul { margin: 0 0 14px; padding-right: 20px; line-height: 2; }
.nm-sources a { word-break: break-word; }

@media (max-width: 960px) {
	.owner-band { grid-template-columns: 1fr; text-align: center; }
	.owner-band p { margin-inline: auto; }
	.owner-band__points { justify-content: center; }
}
@media (max-width: 600px) {
	.lead__row--3 { grid-template-columns: 1fr 1fr; }
	.owner-form__step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
	.owner-form__num { width: 34px; height: 34px; font-size: 15px; }
	.owner-form__step:not(:last-of-type)::before { right: 16px; top: 38px; }
	.seg--full .seg__item span { padding: 8px 8px; font-size: 14px; }
	.person__name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 1.2.1 fixes */
.owner-form [hidden], .lead__row[hidden] { display: none !important; }
.page-hero__grid:has(.card-panel--owner) { grid-template-columns: minmax(0, 1fr) minmax(440px, 580px); }
.owner-form .lead__row--3 { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.article__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.area-tile .stock-label { top: 16px; right: 50%; transform: translateX(50%); }
@media (max-width: 960px) { .page-hero__grid:has(.card-panel--owner) { grid-template-columns: 1fr; } }

/* ---- About page (1.3) ---- */
.about-hero .page-hero__title em { font-style: normal; color: var(--accent); }
.about-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: clamp(8px, 2vw, 20px); }
.about-nav a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.about-nav a:hover { background: var(--green); border-color: var(--green); color: #fff; }
[id="story"], [id="team"], [id="how"], [id="services"], [id="advisors"], [id="office"], [id="faq"] { scroll-margin-top: 96px; }
.about-story { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.about-story__head { align-self: start; }
.about-story__mission { margin: 14px 0 0; padding: 18px 20px; border-right: 4px solid var(--accent); background: var(--rose); border-radius: 16px; color: #5A2A0C; line-height: 2; }
.about-story__text { font-size: 17px; line-height: 2.15; }
.about-story__text p:first-child::first-letter { font-family: var(--display); }
.values { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .25s, box-shadow .25s; }
.values li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.values__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--green); margin-bottom: 6px; }
.values strong { font-family: var(--display); font-size: 21px; font-weight: 800; }
.values small { color: var(--muted); font-size: 14px; line-height: 1.9; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.process li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.process li::after { content: ''; position: absolute; left: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--mint); opacity: .6; z-index: 0; }
.process li > * { position: relative; z-index: 1; }
.process__num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--accent); }
.process strong { font-family: var(--display); font-size: 19px; font-weight: 700; }
.process small { color: var(--muted); font-size: 14px; line-height: 1.9; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { background: #fff; border-radius: 24px; padding: 26px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.service__ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--green); color: #fff; margin-bottom: 14px; }
.service h3 { font-family: var(--display); font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.service p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.team--advisors { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.person--sm .person__name { font-size: 19px; }
.person--sm .person__initial { font-size: 64px; }
.office { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 20px; }
.office__text { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.office__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.office__list li { display: flex; gap: 14px; align-items: flex-start; }
.office__list li > .icon, .office__list li > svg { flex-shrink: 0; color: var(--green); margin-top: 4px; }
.office__list span { display: flex; flex-direction: column; line-height: 1.9; }
.office__list strong { font-size: 13px; color: var(--muted); font-weight: 600; }
.office__cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--green-dark); color: #fff; padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.office__cta .pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.office__cta strong { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.6; }
@media (max-width: 960px) {
	.about-story, .office { grid-template-columns: 1fr; }
	.about-story__head { position: static; }
	.values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.process, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.values, .process, .services { grid-template-columns: 1fr; }
	.about-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.about-nav a { white-space: nowrap; }
}

.person__photo:has(.person__initial) { aspect-ratio: 16 / 7; border-radius: 22px 22px 0 0; }
.team:has(> .person:nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(280px, 460px)); justify-content: center; }
.team:has(img) .person__photo:has(.person__initial) { aspect-ratio: 4 / 4.2; border-radius: 18px 18px 0 0; }
.person__photo img { mix-blend-mode: multiply; object-position: center top; }

/* ================= املاک ویژه ================= */
.featured .card { box-shadow: 0 10px 34px rgba(27, 122, 138, .12); }
.featured .card__media::after, .feat-pop .card__media::after { content: 'ویژه'; position: absolute; bottom: 14px; right: 14px; z-index: 2; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.feat-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.feat-pop[hidden] { display: none; }
.feat-pop__backdrop { position: absolute; inset: 0; background: rgba(10, 43, 49, .55); backdrop-filter: blur(2px); animation: featFade .25s ease; }
.feat-pop__box { position: relative; z-index: 1; width: min(980px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(10, 43, 49, .35); animation: featUp .3s ease; }
.feat-pop__x { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 16px; cursor: pointer; }
.feat-pop__x:hover { background: var(--accent); color: #fff; }
.feat-pop__lead { color: var(--muted); margin: 6px 0 20px; }
.feat-pop__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@keyframes featFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes featUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
	.feat-pop__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feat-pop__box { padding: 20px; border-radius: 20px; }
}
@media (max-width: 600px) {
	.feat-pop { padding: 12px; align-items: flex-end; }
	.feat-pop__list { grid-template-columns: 1fr; }
	.feat-pop__box { max-height: 82vh; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.feat-pop__backdrop, .feat-pop__box { animation: none; }
}

/* Nothing floats over an open drawer, popup or welcome question. */
body.nav-open .mobile-bar, body.nav-open .nmc { display: none !important; }

/* ================= پرسش خوش‌آمد ================= */
.welcome { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 22px; }
.welcome[hidden] { display: none; }
.welcome__veil { position: absolute; inset: 0; background: rgba(9, 40, 46, .45); animation: wFade .45s ease both; }
.welcome.is-in .welcome__veil { backdrop-filter: blur(9px) saturate(.9); -webkit-backdrop-filter: blur(9px) saturate(.9); transition: backdrop-filter .5s ease; }
.welcome__card:focus { outline: none; }
.welcome__card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: 28px; padding: 30px 28px 24px; text-align: center; box-shadow: 0 40px 90px rgba(9, 40, 46, .4); animation: wPop .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.welcome__card::before { content: ''; position: absolute; inset: 0; border-radius: 28px; padding: 1px; background: linear-gradient(140deg, rgba(27,122,138,.5), rgba(200,100,42,.35), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.welcome__x { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.welcome__x:hover { background: var(--accent); color: #fff; }
.welcome__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--green); background: #E3F0F2; padding: 6px 14px; border-radius: 999px; }
.welcome__title { font-size: clamp(21px, 4.4vw, 27px); line-height: 1.5; margin: 14px 0 6px; }
.welcome__lead { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.welcome__options { display: grid; gap: 12px; text-align: right; }
.welcome__opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: right; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s, box-shadow .22s; animation: wUp .5s ease both; animation-delay: calc(.22s + var(--d, 0) * .1s); }
.welcome__opt:hover { color: var(--ink); border-color: var(--green); transform: translateX(-5px); box-shadow: 0 14px 34px -20px rgba(20, 35, 42, .7); }
.welcome__opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.welcome__art { flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.welcome__sticker { width: 52px; height: 52px; transition: transform .35s cubic-bezier(.2,.8,.3,1.4); }
.welcome__opt:hover .welcome__sticker { transform: rotate(-7deg) scale(1.08); }
.welcome__text { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.welcome__text strong { font-size: 16.5px; font-weight: 700; }
.welcome__text small { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.welcome__go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--green); transition: background .22s, color .22s, transform .22s; }
.welcome__opt:hover .welcome__go { background: var(--green); color: #fff; transform: translateX(-3px); }
.welcome__opt--fun:hover { border-color: #E0B93F; }
.welcome__opt--fun:hover .welcome__sticker { transform: rotate(9deg) scale(1.12); }
.welcome__skip { margin-top: 18px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.welcome__skip:hover { color: var(--green); }
.welcome.is-out .welcome__card { animation: wOut .3s ease both; }
.welcome.is-out .welcome__veil { animation: wFadeOut .3s ease both; }
@keyframes wFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wFadeOut { to { opacity: 0; } }
@keyframes wPop { 0% { opacity: 0; transform: translateY(26px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes wOut { to { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes wUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.welcome { padding: 14px; align-items: flex-end; }
	.welcome__card { border-radius: 24px 24px 18px 18px; padding: 26px 18px 20px; max-height: 88vh; }
	.welcome__art, .welcome__sticker { width: 46px; height: 46px; }
	.welcome__text strong { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.welcome__veil, .welcome__card, .welcome__opt { animation: none; }
	.welcome.is-in .welcome__veil { transition: none; }
}

/* ================= کارشناسی هوشمند ================= */
.val-cta { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 22px; border-radius: 22px; background: linear-gradient(115deg, #E8F3F4, #FBEDE2); border: 1px solid var(--line); }
.val-cta__ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 8px 20px -14px rgba(20, 35, 42, .6); }
.val-cta__text { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.val-cta__text strong { font-size: 17px; }
.val-cta__text small { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.val-cta .btn { flex: none; }
.val-cta--sm { padding: 16px 18px; }
@media (max-width: 600px) {
	.val-cta { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 18px; }
	.val-cta__ico { margin: 0 auto; }
	.val-cta .btn { width: 100%; justify-content: center; }
}

/* کلید شناور کارشناسی */
.val-fab { position: fixed; left: 20px; bottom: 20px; z-index: 9985; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(13, 63, 74, .65); transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
.val-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(13, 63, 74, .7); color: #fff; }
.val-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.val-fab__ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.val-fab__ico svg { width: 19px; height: 19px; }
.val-fab__ico::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: valPulse 2.6s ease-out 3; }
@keyframes valPulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
html.nmc-lock .val-fab, body.nav-open .val-fab { display: none; }
@media (max-width: 960px) {
	.val-fab { left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 10px 15px 10px 11px; font-size: 13.5px; }
	.val-fab__ico { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
	.val-fab__text { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
	.val-fab__ico::after { animation: none; }
}

/* ================= پورتال مشتریان ================= */
.portal-wrap { padding: 34px 0 60px; background: linear-gradient(180deg, #EDF4F5 0, var(--bg) 320px); min-height: 70vh; }
.pt { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.pt__main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.pt__side { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pt-user { display: flex; align-items: center; gap: 11px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 10px; }
.pt-user__ava { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; font-weight: 700; font-size: 19px; }
.pt-user__b { display: flex; flex-direction: column; min-width: 0; }
.pt-user__b strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-user__b small { color: var(--muted); font-size: 12.5px; }
.pt-nav { display: flex; flex-direction: column; gap: 2px; }
.pt-nav__i { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: background .18s, color .18s; }
.pt-nav__i:hover { background: var(--sand); color: var(--ink); }
.pt-nav__i.is-on { background: var(--green); color: #fff; }
.pt-nav__i svg { flex: none; }
.pt-nav__out { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 14px; color: var(--muted); }
.pt-badge { margin-inline-start: auto; background: var(--accent); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }
.pt-nav__i.is-on .pt-badge { background: #fff; color: var(--green-dark); }

.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pt-head .h2 { margin: 4px 0 0; font-size: clamp(21px, 3vw, 27px); }
.pt-h3 { font-size: 17px; margin: 6px 0 -6px; }
.pt-lead { color: var(--muted); font-size: 14.5px; line-height: 2; margin: -8px 0 0; }
.pt-more { font-weight: 700; color: var(--green); font-size: 14px; }

.pt-note { padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.pt-note--bad { background: #FDECEA; color: #9C2A20; border: 1px solid #F5C6C0; }
.pt-note--good { background: #E8F6EC; color: #16693A; border: 1px solid #BFE3CB; }

.pt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pt-tile:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 14px 30px -22px rgba(20, 35, 42, .8); color: var(--ink); }
.pt-tile__ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--sand); color: var(--green); margin-bottom: 6px; }
.pt-tile strong { font-size: 23px; font-weight: 800; }
.pt-tile small { color: var(--muted); font-size: 12.5px; }

.pt-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-quick__i { background: linear-gradient(140deg, #E9F4F5, #FBF0E7); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pt-quick__i:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 16px 32px -24px rgba(20, 35, 42, .9); }
.pt-quick__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green); margin-bottom: 6px; }
.pt-quick__i strong { font-size: 15px; }
.pt-quick__i small { color: var(--muted); font-size: 12.5px; line-height: 1.8; }

.pt-props { display: grid; gap: 14px; }
.pt-prop { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.pt-prop__img { display: block; align-self: stretch; min-height: 118px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--sand); }
.pt-prop__img img { width: 100%; height: 100%; object-fit: cover; }
.pt-prop__b { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pt-prop__t { font-weight: 700; font-size: 16px; color: var(--ink); }
.pt-prop__t:hover { color: var(--green); }
.pt-prop__m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pt-prop__p { font-weight: 800; color: var(--green-dark); font-size: 15.5px; }
.pt-prop__s { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pt-prop__a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.pt-chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pt-chip--on, .pt-chip--done { background: #E4F4EA; color: #17693B; }
.pt-chip--wait, .pt-chip--new { background: #FCF0DC; color: #8A5A11; }
.pt-chip--progress { background: #E3EFFA; color: #1B4F80; }
.pt-chip--off, .pt-chip--rejected { background: #EFF2F3; color: #5A6B73; }
.pt-chip--star { background: var(--accent); color: #fff; }

.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.pt-form { display: flex; flex-direction: column; gap: 14px; }
.pt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pt-form input[type="text"], .pt-form input[type="tel"], .pt-form input[type="email"], .pt-form input[type="password"], .pt-form input[type="number"], .pt-form select, .pt-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font: inherit; font-size: 15px; color: var(--ink); }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 122, 138, .14); }
.pt-form input:disabled { color: var(--muted); }
.pt-form textarea { resize: vertical; }
.pt-form .btn { align-self: flex-start; }
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-grid2[hidden] { display: none; }
.pt-check { flex-direction: row !important; align-items: flex-start; gap: 9px !important; font-weight: 500; font-size: 13.5px; line-height: 1.9; }
.pt-check input { margin-top: 5px; }
.pt-hint { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 0; }
.pt-danger { border-color: #F0D3CE; }

.pt-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pt-act { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 15px; color: var(--ink); transition: border-color .2s, transform .2s; }
.pt-act:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.pt-act svg { flex: none; color: var(--green); margin-top: 2px; }
.pt-act span { display: flex; flex-direction: column; gap: 2px; }
.pt-act small { color: var(--muted); font-size: 12.5px; line-height: 1.8; }

.pt-pkgs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pt-pkgs legend { font-weight: 700; font-size: 14px; padding: 0 0 8px; }
.pt-pkg { display: block; cursor: pointer; }
.pt-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pt-pkg__b { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .18s, background .18s; }
.pt-pkg__b strong { font-size: 15px; }
.pt-pkg__b small { color: var(--muted); font-size: 12.5px; }
.pt-pkg__b b { margin-inline-start: auto; color: var(--green-dark); font-size: 15px; }
.pt-pkg input:checked + .pt-pkg__b { border-color: var(--green); background: #EDF6F7; }
.pt-pkg input:focus-visible + .pt-pkg__b { outline: 3px solid var(--accent); outline-offset: 2px; }

.pt-reqs { display: grid; gap: 12px; }
.pt-req { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 15px 17px; display: flex; flex-direction: column; gap: 6px; }
.pt-req__t { font-size: 12px; font-weight: 700; color: var(--green); }
.pt-req strong { font-size: 15px; }
.pt-req p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.pt-req__f { display: flex; align-items: center; gap: 10px; }
.pt-req__f time { color: var(--muted); font-size: 12.5px; }

.pt-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 22px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-empty strong { font-size: 17px; }
.pt-empty p { color: var(--muted); margin: 0; max-width: 460px; line-height: 2; }
.pt-empty .btn { margin-top: 8px; }

/* ورود و ثبت‌نام */
.pt-auth { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -50px rgba(13, 63, 74, .8); }
.pt-auth__art { position: relative; background: linear-gradient(150deg, var(--green-dark), var(--green)); color: #fff; padding: 40px; display: flex; align-items: flex-end; min-height: 460px; }
.pt-auth__art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.pt-auth__artx { position: relative; z-index: 1; }
.pt-auth__artx strong { font-size: 24px; display: block; margin-bottom: 10px; }
.pt-auth__artx p { color: #D7EAED; line-height: 2; margin: 0 0 18px; max-width: 42ch; }
.pt-auth__artx ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pt-auth__artx li { position: relative; padding-inline-start: 22px; color: #EAF5F6; font-size: 14.5px; }
.pt-auth__artx li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: #8FD3DC; font-weight: 700; }
.pt-auth__form { padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.pt-tabs { display: flex; gap: 6px; background: var(--sand); padding: 5px; border-radius: 999px; }
.pt-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.pt-tabs a.is-on { background: var(--surface); color: var(--green-dark); box-shadow: 0 6px 16px -12px rgba(20, 35, 42, .9); }

.pt-staff { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pt-staff p { color: var(--muted); margin: 0; }
.pt-staff__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

@media (max-width: 960px) {
	.pt { grid-template-columns: 1fr; gap: 18px; }
	.pt__side { position: static; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 12px; }
	.pt-user { border: 0; padding: 0 6px 0 0; margin: 0; border-inline-end: 1px solid var(--line-2); padding-inline-end: 12px; }
	.pt-user__b small { display: none; }
	.pt-nav { flex-direction: row; gap: 4px; }
	.pt-nav__i { white-space: nowrap; padding: 9px 12px; }
	.pt-nav__out { margin: 0; border: 0; padding: 9px 12px; }
	.pt-tiles, .pt-tiles--3, .pt-quick, .pt-actions { grid-template-columns: 1fr 1fr; }
	.pt-auth { grid-template-columns: 1fr; }
	.pt-auth__art { min-height: 0; padding: 26px; }
	.pt-auth__artx ul { display: none; }
}
@media (max-width: 600px) {
	.portal-wrap { padding: 20px 0 40px; }
	.pt-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.pt-tiles--3, .pt-quick, .pt-actions, .pt-grid2 { grid-template-columns: 1fr; }
	.pt-tile strong { font-size: 20px; }
	.pt-prop { grid-template-columns: 1fr; }
	.pt-prop__img { aspect-ratio: 16 / 9; }
	.pt-card { padding: 17px; border-radius: 18px; }
	.pt-auth__form { padding: 22px 18px; }
	.pt-form .btn { align-self: stretch; justify-content: center; }
}
.pt-preview { grid-column: 1 / -1; background: #FCF0DC; border: 1px solid #EBD3A8; color: #8A5A11; padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; }

/* ورود به پورتال */
.header-portal { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.header-portal:hover { border-color: var(--green); color: var(--green-dark); background: var(--sand); }
.footer-portal { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 15px; border: 1px solid #1E5D69; border-radius: 999px; color: #D7EAED; font-size: 13.5px; font-weight: 600; }
.footer-portal:hover { background: #124A55; color: #fff; }
@media (max-width: 1180px) { .header-portal span { display: none; } .header-portal { padding: 8px 10px; } }
@media (max-width: 1100px) { .header-portal { display: none; } }

/* ------------------------------------------------------------ social links */
.socials .soc { transition: background .18s, border-color .18s, color .18s, transform .18s; }
.socials .soc:hover, .socials .soc:focus-visible { background: var(--soc); border-color: var(--soc); color: #fff; transform: translateY(-2px); }

.soc-btns { display: grid; gap: 10px; }
.soc-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.soc-btn .icon { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: #fff; background: var(--soc); }
.soc-btn span { display: grid; line-height: 1.5; }
.soc-btn strong { font-weight: 700; }
.soc-btn small { color: var(--muted); font-size: 13px; }
.soc-btn:hover, .soc-btn:focus-visible { border-color: var(--soc); box-shadow: 0 10px 26px -18px var(--soc); transform: translateY(-2px); }

.soc-band { padding-block: clamp(28px, 5vw, 56px); }
.soc-band__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--mint), var(--surface) 62%); }
.soc-band__text h2 { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(21px, 2.4vw, 30px); line-height: 1.5; }
.soc-band__text p { margin: 0; color: var(--ink-2); }
.soc-band__links .soc-btn { background: var(--surface); }

.contact-soc { margin-top: 22px; }
.contact-soc > strong { display: block; margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }

.agent__soc { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.agent__soc > span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.agent__soc .socials { margin-top: 0; }
.agent__soc .icon-btn--dark { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }

.nav__soc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.nav__soc > span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.nav__soc .socials { margin-top: 0; }
.nav__soc .icon-btn--dark { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }

.mobile-bar__soc { display: none; }

@media (max-width: 820px) {
	.soc-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
	.mobile-bar { grid-template-columns: 1fr 1fr auto auto; }
	.mobile-bar .btn { padding-inline: 10px; }
	.mobile-bar__soc { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; color: var(--soc); background: #fff; text-decoration: none; }
	.mobile-bar__soc:active { background: var(--soc); color: #fff; }
}

/* -------------------------------------------------------- landing pages */
.land-hero .arch__label { display: inline-flex; align-items: center; gap: 8px; }
.land-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--mint); color: var(--ink-2); font-size: 15px; }
.land-note .icon { flex: none; margin-top: 4px; color: var(--green); }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.land-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.land-body h2 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 27px); margin-top: 34px; }
.land-body h2:first-child { margin-top: 0; }

.nm-table td .link-arrow, .link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 14px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--accent); }

.land-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.land-link { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.land-link .icon { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--mint); color: var(--green); }
.land-link span { display: grid; line-height: 1.55; }
.land-link small { color: var(--muted); font-size: 13px; }
.land-link:hover, .land-link:focus-visible { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }

/* the keyword hub */
.hub-group { margin-top: 34px; }
.hub-group > h2 { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); margin-bottom: 14px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; text-decoration: none; transition: border-color .16s, background .16s, color .16s; }
.hub-chips a b { font-weight: 600; }
.hub-chips a small { color: var(--muted); font-size: 12.5px; }
.hub-chips a:hover, .hub-chips a:focus-visible { border-color: var(--green); background: var(--mint); color: var(--green-dark); }

/* Header: never let the menu push the action buttons off-screen on mid-size desktops. */
@media (min-width: 1101px) {
	.site-header__inner { flex-wrap: nowrap; }
	.nav { min-width: 0; }
	.nav .menu { flex-wrap: wrap; row-gap: 0; }
	.site-header__actions { flex: none; }
}
@media (min-width: 1101px) and (max-width: 1560px) {
	.site-header__inner { gap: 18px; }
	.nav .menu { gap: 16px; }
	.nav .menu a { font-size: 14.5px; }
	.header-phone { display: none; }
}

/* Iranian messengers joined the row: keep the icon strip and the button list tidy. */
.socials { flex-wrap: wrap; }
.soc-btns { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.soc-band__inner { grid-template-columns: 1fr 1fr; }
.contact-soc .soc-btns { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 960px) {
	.soc-band__inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════ Article page ═══════════════════════════════ */

/* reading progress */
.read-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: transparent; pointer-events: none; }
.read-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--accent)); transition: width .1s linear; }

/* header band */
.article__head { position: relative; padding: clamp(26px, 4vw, 46px) 0 clamp(22px, 3vw, 34px); background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); text-align: center; }
.article__head .crumbs { margin-bottom: 12px; }
.article__head .crumbs ol, .article__head .crumbs > * { justify-content: center; }
.article__head .crumbs p { text-align: center; }
.article__head .eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--rose); }
.article__title { font-family: var(--display); font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.55; margin: 0 0 14px; color: var(--ink); }
.article__lead { max-width: 60ch; margin: 0 auto 16px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.95; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14px; margin: 0; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { color: var(--green); }

/* cover — centred, framed, with a caption under it */
.article__cover { width: 100%; max-width: calc(940px + 2 * var(--gutter)); margin: clamp(-18px, -2vw, -10px) auto 0; padding-inline: var(--gutter); position: relative; z-index: 1; }
.article__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -38px rgba(20, 35, 42, .55); }
.article__credit { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.article__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* table of contents */
.article__toc { margin-top: clamp(26px, 3vw, 38px); }
.article__toc > strong { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 17px; margin-bottom: 12px; color: var(--ink); }
.article__toc > strong .icon { color: var(--green); }
.article__toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 18px 20px; display: grid; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article__toc li { counter-increment: toc; display: flex; gap: 10px; align-items: baseline; }
.article__toc li::before { content: counter(toc); flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.article__toc a { color: var(--ink-2); text-decoration: none; line-height: 1.75; }
.article__toc a:hover { color: var(--green); }

/* body typography */
.article__body { padding-block: clamp(26px, 3vw, 40px) 26px; }
.article__body h2 { position: relative; padding-right: 16px; scroll-margin-top: 90px; }
.article__body h2::before { content: ''; position: absolute; right: 0; top: .32em; width: 5px; height: .95em; border-radius: 3px; background: linear-gradient(180deg, var(--green), var(--accent)); }
.article__body h3 { color: var(--green-dark); }
.prose p { margin: 0 0 1.15em; }
.prose ul { list-style: none; padding-right: 0; }
.prose ul > li { position: relative; padding-right: 24px; margin-bottom: .55em; }
.prose ul > li::before { content: ''; position: absolute; right: 6px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.prose ol { padding-right: 1.4em; }
.prose ol > li { margin-bottom: .55em; }
.prose ol::marker, .prose li::marker { color: var(--green); font-weight: 700; }
.prose a { color: var(--green-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .16s, text-decoration-color .16s; }
.prose a:hover { color: var(--accent); text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose img { display: block; width: 100%; height: auto; margin: 1.8em auto; border-radius: 20px; box-shadow: 0 20px 44px -34px rgba(20, 35, 42, .5); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* tables get the same panel treatment as the rest of the site */
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.prose th, .prose td { border: 0; border-top: 1px solid var(--line-2); padding: 12px 16px; text-align: right; }
.prose thead tr:first-child th { border-top: 0; }
.prose tbody tr:nth-child(even) { background: #FBFDFD; }
.prose tbody td:first-child, .prose tbody th:first-child { font-weight: 600; color: var(--ink); }

.prose blockquote { margin: 1.8em 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-right: 4px solid var(--accent); border-radius: 18px; color: var(--ink-2); }

/* summary box */
.nm-summary { position: relative; background: linear-gradient(135deg, var(--mint), #F3FAFB); border: 1px solid #CFE6EA; border-right: 4px solid var(--green); border-radius: 20px; padding: 40px 22px 20px; margin: 0 0 32px; }
.nm-summary::before { content: 'خلاصه'; position: absolute; top: 14px; right: 22px; font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--green); }
.nm-summary ul > li::before { background: var(--accent); }

/* share row */
.share-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.share-row__label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.share-row__label .icon { color: var(--green); }
.share-row__links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; transition: border-color .16s, color .16s, background .16s; }
.share-btn .icon { color: var(--soc, var(--green)); }
.share-btn:hover { border-color: var(--soc, var(--green)); color: var(--soc, var(--green-dark)); background: var(--surface-2); }
.share-btn--copy.is-done { border-color: var(--green); color: var(--green-dark); background: var(--mint); }

/* closing call to action */
.article__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); border: 1px solid #CFE6EA; background: linear-gradient(130deg, var(--mint), var(--surface) 70%); }
.article__cta-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: #fff; }
.article__cta-text { flex: 1 1 260px; display: grid; gap: 3px; }
.article__cta-text strong { font-family: var(--display); font-size: 17px; color: var(--ink); line-height: 1.7; }
.article__cta-text small { color: var(--muted); font-size: 13.5px; }
.article__cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
	.article__cover img { aspect-ratio: 4 / 3; border-radius: 18px; }
	.article__cta { text-align: center; justify-content: center; }
	.article__cta-text { text-align: center; }
	.share-row { justify-content: center; }
}

/* ═══════════════════════════════ Office panel ═══════════════════════════════ */
.pn-login { max-width: 420px; margin: clamp(20px, 6vw, 60px) auto; padding: clamp(24px, 4vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.pn-login__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--mint); color: var(--green); margin-bottom: 14px; }
.pn-login h1 { font-family: var(--display); font-size: 25px; margin: 0 0 6px; }
.pn-login > p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.pn-login__err { background: var(--rose); color: var(--accent-dark); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.pn-login label { display: block; text-align: right; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.pn-login input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface-2); }
.pn-login input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.pn-login__hint { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

.pn { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 78vh; gap: 0; background: var(--bg); }
.pn__side { background: var(--green-dark); color: #CFE4E8; display: flex; flex-direction: column; padding: 20px 14px; }
.pn__brand { display: flex; align-items: center; gap: 9px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.pn__nav { display: grid; gap: 3px; padding-top: 14px; flex: 1; }
.pn__link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #CFE4E8; text-decoration: none; font-size: 15px; transition: background .16s, color .16s; }
.pn__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.pn__link.is-on { background: #fff; color: var(--green-dark); font-weight: 700; }
.pn__foot { border-top: 1px solid rgba(255,255,255,.13); padding-top: 14px; display: grid; gap: 4px; font-size: 13.5px; }
.pn__who { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.pn__role { color: #9FC3CA; font-size: 12.5px; }
.pn__out { color: #F3B48A; text-decoration: none; margin-top: 6px; }
.pn__out:hover { text-decoration: underline; }

.pn__main { min-width: 0; padding: 0 0 40px; }
.pn__top { display: flex; align-items: center; gap: 12px; padding: 18px clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.pn__title { font-family: var(--display); font-size: 21px; margin: 0; flex: 1; }
.pn__site { font-size: 14px; color: var(--green); text-decoration: none; }
.pn__burger { display: none; }
.pn__body { padding: clamp(16px, 3vw, 28px); display: grid; gap: 20px; align-content: start; }

.pn-loading, .pn-empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pn-empty--ok { border-style: solid; border-color: #CFE6EA; background: var(--mint); color: var(--green-dark); }
.pn-hint { margin: 0; padding: 12px 16px; background: var(--mint); border-radius: var(--radius-sm); color: var(--green-dark); font-size: 14px; }

.pn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.pn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: grid; gap: 4px; }
.pn-card span { color: var(--muted); font-size: 13.5px; }
.pn-card strong { font-family: var(--display); font-size: 27px; color: var(--ink); line-height: 1.2; }
.pn-card--accent { border-color: #F0C3A4; background: linear-gradient(135deg, var(--rose), var(--surface) 70%); }
.pn-card--accent strong { color: var(--accent-dark); }
.pn-card--green { border-color: #CFE6EA; background: linear-gradient(135deg, var(--mint), var(--surface) 70%); }
.pn-card--green strong { color: var(--green-dark); }
.pn-card--warn { border-color: #E9D08A; background: linear-gradient(135deg, #FDF5DE, var(--surface) 70%); }

.pn-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 22px); }
.pn-block h2 { font-family: var(--display); font-size: 17px; margin: 0 0 12px; }
.pn-rows { display: grid; gap: 9px; }
.pn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.pn-row--warn { border-color: #E9D08A; background: #FDF5DE; }
.pn-row strong { font-weight: 600; font-size: 15px; }
.pn-row small, .pn-lead small, .pn-file small, .pn-user small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pn-tag { flex: none; padding: 4px 11px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: 12.5px; font-weight: 600; }
.pn-tag--ok { background: #DDF2E5; color: #1F6B45; }
.pn-tag--bad { background: var(--rose); color: var(--accent-dark); }

.pn-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pn-search { flex: 1 1 240px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.pn-filter, .pn-st { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }

.pn-lead, .pn-req, .pn-file, .pn-user { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; }
.pn-lead__head, .pn-user__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pn-lead__meta { margin: 0; color: var(--ink-2); font-size: 14px; }
.pn-lead__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pn-note { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.pn-call { color: var(--green); font-weight: 700; text-decoration: none; font-size: 13.5px; }
.pn-file { flex-direction: row; display: flex; align-items: center; justify-content: space-between; }
.pn-file__act { display: flex; gap: 8px; flex: none; }

.pn-perms { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-perm { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; cursor: pointer; background: var(--surface-2); }
.pn-perm:has(input:checked) { border-color: var(--green); background: var(--mint); color: var(--green-dark); font-weight: 600; }
.pn-perm:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pn-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); flex: none; cursor: pointer; }
.pn-user--mgr { background: linear-gradient(135deg, var(--mint), var(--surface) 70%); border-color: #CFE6EA; }
.pn-saved { font-size: 12.5px; color: var(--green); min-height: 16px; }

.pn-spark { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.pn-spark i { flex: 1; background: linear-gradient(180deg, var(--green), #7FC0CA); border-radius: 3px 3px 0 0; min-width: 3px; }
.pn-pager { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
	.pn { grid-template-columns: 1fr; }
	.pn__side { position: fixed; inset: 0 auto 0 0; width: 252px; transform: translateX(-100%); transition: transform .25s ease; z-index: 90; }
	.pn.is-open .pn__side { transform: none; }
	.pn__burger { display: inline-flex; }
	.pn-file { flex-direction: column; align-items: stretch; }
	.pn-file__act { justify-content: flex-start; }
}

/* ------------------------------------------------------- code search (کد فایل) */
.codebox { display: grid; gap: 10px; margin: 0 0 18px; }
.codebox__title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 16px; color: var(--ink); }
.codebox__title .icon { color: var(--green); }
.codebox__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.codebox__field { flex: 1 1 220px; display: block; position: relative; }
.codebox__field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16.5px; font-weight: 700; letter-spacing: .04em; transition: border-color .18s, box-shadow .18s; }
.codebox__field input::placeholder { font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: 15px; }
.codebox__field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 122, 138, .14); }
.codebox__go { height: 52px; white-space: nowrap; }
.codebox__note { margin: 0; color: var(--muted); font-size: 13.5px; }
.codebox__result:empty { display: none; }
.codebox__result { border-radius: var(--radius-sm); }
.codebox__result.is-load p, .codebox__result.is-miss p { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 14.5px; }
.codebox__result.is-miss p { border-color: #E6C3A8; background: var(--rose); color: #7A3A12; border-style: solid; }

.codehit { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 14px 30px -26px rgba(20, 35, 42, .5); color: var(--ink); }
.codehit:hover { border-color: var(--green); color: var(--ink); }
.codehit__media { position: relative; flex: none; width: 104px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.codehit__media img { width: 100%; height: 100%; object-fit: cover; }
.codehit__media .stock-label { position: absolute; inset-inline-start: 4px; bottom: 4px; }
.codehit__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.codehit__code { font-size: 12.5px; font-weight: 700; color: var(--green); }
.codehit__title { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codehit__specs { font-size: 13px; color: var(--muted); }
.codehit__price { font-size: 14.5px; font-weight: 700; color: var(--accent-dark); }
.codehit__go { flex: none; align-self: center; padding: 8px 12px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: 13px; font-weight: 700; }
.codehit--archived { opacity: .85; }
.codehit--archived .codehit__code { color: var(--muted); }

/* hero variant sits on the map panel */
.codebox--hero { margin: 14px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.codebox--hero .codebox__field input { height: 46px; }
.codebox--hero .codebox__go { height: 46px; }
.codebox--hero .codehit__media { display: none; }

/* page variant on /kod/ */
.codebox--page { max-width: 640px; margin-top: 18px; }
.codebox--page .codebox__field input { height: 60px; font-size: 19px; text-align: center; }
.codebox--page .codebox__go { height: 60px; padding-inline: 22px; }

/* inline variant above the archive filters */
.codebox--inline { margin: 18px 0 12px; }

.header-code { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.header-code:hover { border-color: var(--green); color: var(--green-dark); background: var(--sand); }
@media (max-width: 1620px) { .header-code span { display: none; } .header-code { padding: 8px 10px; } }
@media (max-width: 1100px) { .header-code { display: none; } }

/* /kod/ page */
.code-hero .page-hero__title { max-width: 22ch; }
.code-miss { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid #E6C3A8; border-radius: var(--radius-sm); background: var(--rose); color: #7A3A12; font-size: 14.5px; }
.code-miss .icon { flex: none; margin-top: 4px; }
.code-help { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.code-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.code-guide h2 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 25px); margin: 26px 0 10px; }
.code-guide h2:first-child { margin-top: 0; }
.code-side { display: grid; gap: 18px; position: sticky; top: 92px; }
.code-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.code-card strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.code-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.code-card--cta { background: var(--surface-2); }
.code-samples { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.code-samples a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink-2); font-size: 14px; }
.code-samples a:hover { border-color: var(--green); background: var(--sand); color: var(--green-dark); }
.code-chip { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.code-samples span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) {
	.code-grid { grid-template-columns: 1fr; }
	.code-side { position: static; }
}
@media (max-width: 560px) {
	.codebox__row { flex-direction: column; }
	.codebox__field, .codebox__go { width: 100%; flex: 0 0 auto; }
	.codebox__go { justify-content: center; }
	.codebox--page .codebox__field input { font-size: 18px; }
	.codehit__go { display: none; }
	.codehit__media { width: 84px; height: 62px; }
}

/* panel: on/off switches */
.pn-switch { display: inline-flex; align-items: center; gap: 10px; flex: none; cursor: pointer; }
.pn-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pn-switch span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #C9D6DB; transition: background .18s; flex: none; }
.pn-switch span::after { content: ''; position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.pn-switch input:checked + span { background: var(--green); }
.pn-switch input:checked + span::after { transform: translateX(-20px); }
.pn-switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pn-switch input:disabled + span { opacity: .6; }
.pn-switch i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 54px; white-space: nowrap; text-align: center; }
.pn-switch input:checked ~ i { color: var(--green-dark); }

/* panel: add-staff form */
.pn-add { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.pn-add summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: var(--green-dark); background: var(--surface-2); list-style: none; }
.pn-add summary::-webkit-details-marker { display: none; }
.pn-add[open] summary { border-bottom: 1px solid var(--line-2); }
.pn-form { padding: 16px; display: grid; gap: 14px; }
.pn-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pn-form label { display: grid; gap: 5px; font-size: 14px; }
.pn-form label > span { color: var(--ink-2); font-weight: 600; }
.pn-form input[type="text"], .pn-form input:not([type]), .pn-form input[type="email"], .pn-form input[type="password"] { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pn-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,122,138,.14); }
.pn-form small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.pn-form__chk { display: flex !important; align-items: center; gap: 8px; align-self: end; }
.pn-form__chk input { width: 18px; height: 18px; }
.pn-form__perms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.pn-form__perms strong { width: 100%; font-size: 14px; }
.pn-form__foot { display: flex; align-items: center; gap: 12px; }
.pn-perm--adv { background: var(--rose); border-color: #E6C3A8; }
.pn-job { display: flex !important; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; }
.pn-job span { color: var(--muted); }
.pn-job input { flex: 1; max-width: 260px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

/* Internal linking: full file index, related link lists, prev/next file */
.nm-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 26px; counter-reset: none; }
.nm-index__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.nm-index__link { color: var(--ink); font-weight: 600; }
.nm-index__link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.nm-index__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; margin-right: auto; }
.nm-index__pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.nm-index__nums { display: flex; flex-wrap: wrap; gap: 6px; }
.nm-index__nums a, .nm-index__nums b { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.nm-index__nums a:hover { border-color: var(--green); color: var(--green); }
.nm-index__nums b { background: var(--green); border-color: var(--green); color: #fff; }

.link-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 20px; }
.link-lists__col h3 { font-size: 17px; margin: 0 0 10px; color: var(--ink); }
.link-lists__col ul { list-style: none; padding: 0; margin: 0 0 10px; }
.link-lists__col li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.link-lists__col li a { color: var(--ink-2); }
.link-lists__col li a:hover { color: var(--green); }

.link-list-wide { list-style: none; padding: 0; margin: 0 0 18px; columns: 2; column-gap: 34px; }
.link-list-wide li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.link-list-wide li a { color: var(--ink-2); }
.link-list-wide li a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.file-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.file-nav__item { display: block; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.file-nav__item:hover { border-color: var(--green); }
.file-nav__item small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.file-nav__item strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.7; }
.link-cloud--cluster { margin: 18px 0 4px; }
.chip--solid { background: var(--green); border-color: var(--green); color: #fff; }
.chip--solid:hover { background: var(--green); color: #fff; }

@media (max-width: 860px) {
	.nm-index { grid-template-columns: 1fr; }
	.link-list-wide { columns: 1; }
}

/* ---------------------------------------------- آموزشگاه املاک */
.academy-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { max-width: 560px; }

.steps--acad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--acad li { padding: 18px 20px 20px; }
.steps--acad h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 8px; }
.steps--acad h3 svg { color: var(--accent); flex: none; }
.steps--acad span { font-size: 14.5px; line-height: 1.75; }

.license { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center; }
.license__doc { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 14px; }
.license__doc img { display: block; width: 100%; height: auto; border-radius: 14px; }
.license__doc figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }
.license__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; padding: 20px; }
.license__empty svg { color: var(--accent); opacity: .5; }
.license__text .h2 { margin: 6px 0 14px; }
.license__text p { color: #47585F; line-height: 2; margin: 0 0 14px; }

.fee { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 20px; }
.fee__text { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.fee__text .h2 { margin: 6px 0 14px; }
.fee__text p { color: #47585F; line-height: 2; margin: 0 0 14px; }
.fee__hi { display: flex; gap: 10px; align-items: flex-start; background: var(--rose); border-radius: 16px; padding: 14px 16px; margin: 0 !important; color: var(--ink) !important; font-weight: 600; }
.fee__hi svg { color: var(--accent); flex: none; margin-top: 4px; }
.fee__ways { display: flex; flex-direction: column; gap: 10px; }
.fee__ways strong { font-size: 15px; color: var(--muted); font-weight: 600; }
.fee__way { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.fee__way:hover { border-color: var(--accent); transform: translateY(-2px); }
.fee__way svg { color: var(--accent); flex: none; }
.fee__way span { display: flex; flex-direction: column; line-height: 1.5; }
.fee__way b { font-size: 15px; }
.fee__way i { font-style: normal; font-size: 13px; color: var(--muted); }

.academy-form .lead { margin-top: 20px; }

@media (max-width: 900px) {
	.steps--acad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.license, .fee { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.steps--acad { grid-template-columns: 1fr; }
	.academy-hero__cta .btn { flex: 1 1 100%; justify-content: center; }
}
.license__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.license__facts li { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.license__facts span { font-size: 13px; color: var(--muted); }
.license__facts strong { font-size: 15px; line-height: 1.6; }
@media (max-width: 560px) { .license__facts { grid-template-columns: 1fr; } }

/* ------------------------------------------------ گالری دفتر */
.gal-hero { position: relative; min-height: min(84vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: var(--green-dark); }
.gal-hero__media { position: absolute; inset: 0; }
.gal-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; transform-origin: 50% 45%; animation: gal-kb 26s ease-in-out infinite alternate; }
@keyframes gal-kb { from { transform: scale(1.01); } to { transform: scale(1.07); } }
.gal-hero__veil { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(13,63,74,.24) 0%, rgba(13,63,74,.34) 40%, rgba(13,63,74,.90) 100%),
	linear-gradient(270deg, rgba(13,63,74,.62) 0%, rgba(13,63,74,.10) 55%, rgba(13,63,74,0) 100%); }
.gal-hero__in { position: relative; padding: clamp(28px, 7vw, 76px) var(--gutter); color: #fff; width: 100%; }
.gal-hero__in .breadcrumbs, .gal-hero__in .breadcrumbs a { color: rgba(255,255,255,.82); }
.eyebrow--light { color: #9BD8E2; }
.gal-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5.4vw, 60px); line-height: 1.25; margin: 10px 0 14px; max-width: 18ch; }
.gal-hero__title em { font-style: normal; color: #9BD8E2; }
.gal-hero__lead { max-width: 56ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 2; color: rgba(255,255,255,.92); margin: 0; }
.gal-hero__down { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff; animation: gal-bob 2.4s ease-in-out infinite; }
.gal-hero__down:hover { background: rgba(255,255,255,.14); }
@keyframes gal-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.gal-intro__lead { font-size: clamp(17px, 2vw, 21px); line-height: 2; color: var(--ink); margin: 0 0 16px; font-weight: 500; }
.gal-intro p { color: #47585F; line-height: 2.1; margin: 0 0 14px; }

.gal-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.gal-story--flip .gal-story__media { order: 2; }
.gal-story__media { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); will-change: transform; }
.gal-story__media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gal-story__media:hover img { transform: scale(1.04); }
.gal-story__text .h2 { margin: 6px 0 14px; }
.gal-story__text p { color: #47585F; line-height: 2.1; margin: 0 0 14px; }

.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; grid-auto-flow: dense; align-items: start; }
.gal-cell { margin: 0; }
.gal-cell--wide { grid-column: span 2; }
.gal-cell__btn { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--mint); border-radius: 20px; overflow: hidden; cursor: zoom-in; }
.gal-cell--wide .gal-cell__btn { aspect-ratio: 16 / 10; }
.gal-cell__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.gal-cell__btn:hover img { transform: scale(1.07); }
.gal-cell__zoom { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: .3s; }
.gal-cell__btn:hover .gal-cell__zoom, .gal-cell__btn:focus-visible .gal-cell__zoom { opacity: 1; transform: none; }
.gal-cell figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.8; }

.gal-box { position: fixed; inset: 0; z-index: 10000; background: rgba(10,26,31,.93); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .3s; }
/* بدون این خط، کلاس روی [hidden] مرورگر می‌چربد و جعبه‌ی بسته کل صفحه را می‌پوشاند. */
.gal-box[hidden] { display: none; }
.gal-box.is-open { opacity: 1; }
.gal-box__in { margin: 0; max-width: min(1100px, 94vw); max-height: 88vh; display: flex; flex-direction: column; gap: 10px; }
.gal-box__in img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; transform: scale(.96); transition: transform .3s; }
.gal-box.is-open .gal-box__in img { transform: none; }
.gal-box__in figcaption { color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.gal-box__x { position: absolute; top: 16px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.gal-box__x:hover { background: rgba(255,255,255,.26); }

[data-reveal] { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.gal-story { grid-template-columns: 1fr; }
	.gal-story--flip .gal-story__media { order: 0; }
	/* دو ستون روی موبایل؛ تک‌ستون کردن، صفحه را بی‌جهت دراز می‌کند. */
	.gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gal-cell--wide { grid-column: auto; }
	.gal-cell--wide .gal-cell__btn { aspect-ratio: 4 / 5; }
	.gal-cell figcaption { font-size: 12px; }
}
@media (max-width: 420px) {
	.gal-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.gal-hero__media img, .gal-hero__down { animation: none; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.gal-cell__btn img, .gal-story__media img { transition: none; }
}

/* --------------------------------------- ماشین‌حساب کمیسیون */
.comm { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.comm__tabs { display: flex; gap: 6px; padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.comm__tab { flex: 1 1 140px; padding: 13px 16px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: .2s; }
.comm__tab:hover { color: var(--ink); }
.comm__tab.is-on { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 2px 10px rgba(13,63,74,.06); }
.comm__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(20px, 4vw, 40px); align-items: start; }
.comm__field { margin-bottom: 20px; }
.comm__field label { display: block; font-weight: 600; margin-bottom: 8px; }
.comm__input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; background: var(--surface-2); transition: .2s; }
.comm__input:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(13,63,74,.08); }
.comm__input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font: inherit; font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--ink); outline: none; direction: ltr; text-align: right; }
.comm__input span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.comm__said { min-height: 22px; margin: 8px 2px 0; font-size: 13px; color: var(--green); }
.comm__hint { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0; }

.comm__out { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(18px, 3vw, 28px); min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.comm__empty { color: var(--muted); text-align: center; line-height: 2; }
.comm__lines { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comm__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: #47585F; }
.comm__lines b { color: var(--ink); font-size: 15px; white-space: nowrap; }
.comm__lines small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.comm__side, .comm__vat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.comm__side span, .comm__vat span { color: #47585F; font-size: 14px; }
.comm__side strong { font-size: 20px; font-weight: 800; }
.comm__vat strong { font-size: 22px; font-weight: 800; color: var(--green); }
.comm__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 2; }

.comm__rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 24px; }
.comm__rule { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.comm__rule h3 { margin: 0 0 8px; font-size: 16px; }
.comm__rule p { margin: 0; color: #47585F; line-height: 2; font-size: 14px; }
.comm__legal { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comm__legal li { position: relative; padding-inline-start: 22px; color: #47585F; line-height: 2.1; font-size: 14px; }
.comm__legal li::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; width: 8px; height: 2px; background: var(--green); }
.comm__sheet { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.comm__sheet img { width: 100%; height: auto; display: block; border-radius: 14px; }
.comm__sheet figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); line-height: 2; }
.comm__cta { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 48px); text-align: center; }

@media (max-width: 900px) {
	.comm__body { grid-template-columns: 1fr; }
	.comm__rules { grid-template-columns: 1fr; }
}


/* =====================================================================
   1.17 — موبایل: صفحهٔ نخست و بخش‌های پرتکرار
   صفحهٔ نخست روی گوشی ۱۸ هزار پیکسل بود؛ این بخش کوتاه و دست‌یافتنی‌اش می‌کند.
   ===================================================================== */

@media (max-width: 700px) {

	/* ---- فاصله‌ها: بخش‌ها روی گوشی نیمی از دسکتاپ نفس می‌کشند ---- */
	.section { padding-block: 40px; }
	.section--tight { padding-block: 28px; }
	.section-head { margin-bottom: 18px; gap: 10px 16px; }
	.section-head__text { font-size: 15px; }

	/* ---- قهرمان نقشه ---- */
	.maphero__inner { padding-block: 18px 14px; }
	.maphero__panel { gap: 12px; }
	.maphero__panel .hero__title { font-size: 27px; line-height: 1.42; letter-spacing: 0; }
	.hero__lead { font-size: 14.5px; line-height: 1.8; }
	.pill { font-size: 12.5px; padding: 5px 13px; }
	.search--hero { padding: 14px; border-radius: 18px; gap: 12px; }
	.search--hero .search__fields { gap: 10px; }
	/* ۱۶ پیکسل بماند وگرنه سافاری هنگام تمرکز روی فیلد، صفحه را بزرگ می‌کند. */
	.search--hero .field input, .search--hero .field select { min-height: 48px; font-size: 16px; }
	.search--hero .field__label { font-size: 12.5px; }
	.chips { font-size: 13px; gap: 6px 8px; }
	.codebox--hero { margin-top: 10px; padding: 10px; }
	.codebox--hero .codebox__title { font-size: 14.5px; }
	.codebox--hero .codebox__row { gap: 8px; }
	.codebox--hero .codebox__field input { height: 46px; }
	.codebox--hero .codebox__go { height: 46px; }
	.maphero__tools { margin: -58px 12px 14px; gap: 8px; }
	.maphero__count { font-size: 13px; }

	/* ---- تضمین‌ها: دو در دو به‌جای چهار ردیف ---- */
	.trust { grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 16px 14px; border-radius: 20px; }
	.trust li { gap: 10px; align-items: flex-start; }
	.trust li > span:last-child { min-width: 0; }
	.trust li strong { font-size: 14px; }
	.trust small { font-size: 11.5px; }
	.trust__icon { width: 38px; height: 38px; border-radius: 11px; }
	.trust__icon svg { width: 20px; height: 20px; }

	/* ---- ریل افقی: شش کارت به‌جای شش صفحهٔ گوشی ----
	   گرید سه‌ستونه روی موبایل تک‌ستونه می‌شد و هر بخش ۲٬۷۰۰ پیکسل می‌گرفت. */
	.grid--rail {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline-start: var(--gutter);
		padding-inline: var(--gutter);
		margin-inline: calc(var(--gutter) * -1);
		padding-bottom: 4px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.grid--rail::-webkit-scrollbar { display: none; }
	.grid--rail > * { scroll-snap-align: start; }
	.grid--rail .card { border-radius: 20px; }
	.grid--rail .card__title { font-size: 16.5px; }
	.grid--rail .card__price { font-size: 17px; }
	.grid--rail .post-card__title { font-size: 18px; }

	/* ---- دسته‌های پرجستجو: دو ستونه ---- */
	.land-links { grid-template-columns: 1fr 1fr; gap: 10px; }
	.land-link { padding: 12px 10px; gap: 9px; border-radius: 16px; font-size: 13.5px; align-items: flex-start; }
	.land-link .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; }
	.land-link span { line-height: 1.5; min-width: 0; }
	.land-link small { font-size: 11.5px; }

	/* ---- ابر پیوندها ---- */
	.link-cloud { gap: 6px 8px; }

	/* جعبهٔ «کد فایل دارید؟» روی گوشی جای زیادی می‌گرفت.
	   همین کار از منوی همبرگری («جستجو با کد فایل») و صفحهٔ اختصاصی‌اش انجام می‌شود. */
	.codebox--hero { display: none; }

	/* ---- پاورقی: فهرست‌ها دو ستونه ---- */
	.site-footer__grid { gap: 22px; }
	.site-footer__col strong { margin-bottom: 10px; font-size: 15px; }
	.site-footer__col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13.5px; }
	.site-footer__bottom { margin-top: 28px; }
	.site-footer address { font-size: 14px; }
}

@media (max-width: 420px) {
	.grid--rail { grid-auto-columns: 85%; }
	.land-links { grid-template-columns: 1fr; }
	.land-link { padding: 12px; }
}


/* =====================================================================
   1.18 — قهرمان صفحهٔ نخست، نسخهٔ نقشه‌محور (maphero--v2)
   نقشه اول و بزرگ، کلیدهای «فروش / رهن و اجاره» روی خودِ نقشه با رنگ
   سنجاق‌های همان دسته، و فرم جستجو مثل یک کشوی پایین که بالا کشیده می‌شود.
   ===================================================================== */

/* رنگ کلیدها همان رنگ سنجاق‌های نقشه است: فروش سبز، رهن و اجاره نارنجی.
   این بخش در همهٔ اندازه‌ها اعمال می‌شود تا نقشه خودش راهنمای خودش باشد. */
.maptoggle button { display: inline-flex; align-items: center; gap: 7px; }
.maptoggle button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.maptoggle button[data-map-deal="all"]::before { display: none; }
.maptoggle button[data-map-deal="s"] { color: var(--green); }
.maptoggle button[data-map-deal="r"] { color: var(--accent); }
.maptoggle button[data-map-deal="all"].is-active { background: var(--ink); color: #fff; }
.maptoggle button[data-map-deal="s"].is-active { background: var(--green); color: #fff; }
.maptoggle button[data-map-deal="r"].is-active { background: var(--accent); color: #fff; }
.maptoggle button.is-active::before { opacity: 1; background: #fff; }
.maptoggle button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* روی دسکتاپ، نوار ابزار همان ردیف قبلی است؛ این بسته‌بندی دیده نمی‌شود. */
/* وقتی فقط یک دسته انتخاب شده، خوشه‌های نقشه هم همان رنگ را می‌گیرند. */
.maphero.deal-r .map-cluster span { background: var(--accent); box-shadow: 0 0 0 6px rgba(192, 86, 26, .25), 0 8px 18px -8px rgba(20, 35, 42, .6); }
.maphero.deal-p .map-cluster span { background: #5B4BA8; box-shadow: 0 0 0 6px rgba(91, 75, 168, .25), 0 8px 18px -8px rgba(20, 35, 42, .6); }

.maphero__toolsbar { display: contents; }
.maphero__grab { display: none; }

@media (max-width: 700px) {

	.maphero--v2 {
		--mh: clamp(290px, 44vh, 420px);
		flex-direction: column;
		min-height: 0;
		overflow: visible;
	}

	/* نقشه، اولین چیزی که دیده می‌شود */
	.maphero--v2 .maphero__map {
		order: 1;
		position: relative;
		inset: auto;
		height: var(--mh);
		border-radius: 0 0 26px 26px;
		overflow: hidden;
	}

	/* ابزارها روی خود نقشه: کلیدها بالا، شمارش و دکمهٔ نقشهٔ کامل پایین */
	.maphero--v2 .maphero__tools {
		order: 2;
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		bottom: auto;
		height: var(--mh);
		margin: 0;
		padding: 12px 12px 26px;
		max-width: none;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		z-index: 500;
		pointer-events: none;
	}
	.maphero--v2 .maphero__tools > * { pointer-events: auto; }
	.maphero--v2 .maptoggle {
		background: rgba(255, 255, 255, .95);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		padding: 4px;
		gap: 3px;
		box-shadow: 0 12px 28px -16px rgba(20, 35, 42, .75);
		max-width: calc(100vw - 24px);
	}
	.maphero--v2 .maptoggle button { padding: 7px 11px; font-size: 13px; min-height: 36px; gap: 5px; }
	.maphero--v2 .maptoggle button::before { width: 7px; height: 7px; }

	.maphero--v2 .maphero__toolsbar {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap-reverse;
		gap: 6px;
		width: 100%;
		max-width: calc(100vw - 24px);
	}
	.maphero--v2 .maphero__count { font-size: 12px; padding: 7px 11px; white-space: nowrap; }
	.maphero--v2 .maphero__toolsbar .btn { font-size: 12.5px; padding: 8px 11px; min-height: 38px; white-space: nowrap; gap: 5px; }
	.maphero--v2 .maphero__toolsbar .btn svg { width: 16px; height: 16px; }

	/* کشوی جستجو: روی لبهٔ نقشه می‌نشیند و با دستگیره بالا می‌آید */
	.maphero--v2 .maphero__inner {
		order: 3;
		position: relative;
		z-index: 3;
		margin-top: -22px;
		padding: 0;
		max-width: none;
	}
	.maphero--v2 .maphero__panel {
		width: 100%;
		background: #fff;
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -16px 36px -22px rgba(20, 35, 42, .6);
		padding: 2px 14px 16px;
		gap: 10px;
	}
	.maphero--v2 .maphero__grab {
		display: block;
		width: 100%;
		border: 0;
		background: transparent;
		padding: 8px 0 4px;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.maphero--v2 .maphero__grab::before {
		content: '';
		display: block;
		width: 46px;
		height: 5px;
		border-radius: 999px;
		background: var(--line);
		margin: 0 auto;
	}
	.maphero--v2 .maphero__grab::after {
		content: 'فیلتر بیشتر';
		display: block;
		margin-top: 6px;
		font: 600 12.5px/1 var(--font);
		color: var(--muted);
	}
	.maphero--v2:not(.is-peek) .maphero__grab::after { content: 'بستن فیلترها'; }

	.maphero--v2 .maphero__panel .hero__title { font-size: 23px; line-height: 1.45; }
	.maphero--v2 .pill { font-size: 12px; padding: 4px 11px; }
	.maphero--v2 .search--hero { padding: 0; box-shadow: none; border-radius: 0; gap: 10px; }

	/* حالت جمع‌شده: فقط نوع ملک و دکمهٔ جستجو */
	.maphero--v2.is-peek .hero__lead,
	.maphero--v2.is-peek .chips,
	.maphero--v2.is-peek .pill,
	.maphero--v2.is-peek .search--hero .seg,
	.maphero--v2.is-peek .search__fields .field:nth-of-type(n+2) { display: none; }
	.maphero--v2.is-peek .maphero__panel { padding-bottom: 14px; gap: 8px; }
	.maphero--v2.is-peek .maphero__panel .hero__title { font-size: 19px; line-height: 1.5; }
	.maphero--v2.is-peek .search--hero .field__label { font-size: 12px; }

}

@supports (height: 100svh) {
	@media (max-width: 700px) {
		.maphero--v2 { --mh: clamp(290px, 44svh, 420px); }
	}
}
