:root {
    color-scheme: light;
    --paper: #f7f7f0;
    --white: #fff;
    --ink: #172c23;
    --muted: #54645b;
    --green: #194634;
    --green-hover: #285944;
    --lime: #e8efc8;
    --mint: #edf1e7;
    --line: #e1e6db;
    --gold: #dbe5a8;
    --shadow: 0 12px 32px #18312510;
    --wrap: min(100% - 64px, 1224px);
    font-family: var(--local-persian-family, IRANSans), IRANSansX, IRANSansWeb, "Iran Sans", Vazirmatn, "SF Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
    font-synthesis: weight;
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-padding-block-start: 16px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; font-size: 1rem; }
main { flex: 1 0 auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.035em; }
p { line-height: 1.85; }
.wrap { width: var(--wrap); margin-inline: auto; }
.icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #66854e; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 1rem 1rem auto auto; z-index: 99; padding: .65rem 1rem; border-radius: .5rem; background: var(--white); }
.site-header { position: relative; z-index: 2; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 84px; gap: 2rem; align-items: center; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .7rem; font-size: 1.31rem; font-weight: 850; line-height: 1.15; white-space: nowrap; width: fit-content; }
.brand small { display: block; margin-block-start: .35rem; color: var(--muted); font-size: .69rem; letter-spacing: .01em; font-weight: 550; }
.brand-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: var(--lime); background: var(--green); }
.brand-icon .icon { width: 33px; height: 33px; }
.desktop-nav { display: flex; align-items: stretch; gap: 2.25rem; height: 100%; }
.desktop-nav a { position: relative; display: grid; align-items: center; padding-inline: .15rem; color: var(--muted); font-size: .93rem; font-weight: 650; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.current { color: var(--green); }
.desktop-nav a.current::after { content: ""; position: absolute; bottom: 17px; inset-inline: 10%; border-bottom: 2px solid #739059; border-radius: 5px; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: .55rem; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; background: transparent; min-height: 44px; border-radius: 12px; font-weight: 750; transition: background .18s, color .18s, border-color .18s; }
.button { padding: .6rem 1rem; white-space: nowrap; }
.button-primary { color: var(--white); background: var(--green); }
.button-primary:hover { background: var(--green-hover); }
.button-header, .button-outline { color: var(--green); border-color: #cfd9c8; }
.button-header { font-size: .9rem; }
.button-header:hover, .button-outline:hover { background: var(--mint); }
.button-light { color: var(--green); background: #edf1df; }
.button-light:hover { background: var(--lime); }
.icon-button { width: 44px; padding: 0; color: var(--green); }
.header-save:hover { background: var(--mint); }
.bottom-nav { display: none; }
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: clamp(390px, 35vw, 500px); display: flex; align-items: center; border-radius: 28px; background: #214034; }
.hero-picture, .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg,#102d23 0%,#102d23e9 16%,#102d239e 38%,#102d2325 66%,transparent 86%); }
.hero-content { padding: 38px clamp(32px, 6.3vw, 94px) 70px; color: #fbfbf3; }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .87rem; font-weight: 650; color: #f0f3e2; border: 1px solid #e6edc64a; background: #142e259c; border-radius: 30px; padding: .4rem .75rem; }
.hero-kicker span, .section-kicker span { display: block; width: .48rem; height: .48rem; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(3rem, 5.25vw, 4.9rem); margin-block: .24em .2em; line-height: 1.19; font-weight: 900; }
.hero h1 em { font-style: normal; color: #e4edb1; }
.hero p { color: #edf3e9; font-size: clamp(.94rem, 1.34vw, 1.12rem); }
.quick-search { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 12px; align-items: center; width: calc(100% - 120px); max-width: 1050px; margin: -38px auto 0; padding: 13px; background: var(--white); border: 1px solid #e7ebe1; border-radius: 19px; box-shadow: 0 12px 32px #18312515; }
.quick-field { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .65rem; align-items: center; padding: .22rem .5rem; min-height: 53px; border-inline-end: 1px solid var(--line); cursor: pointer; }
.quick-field:nth-of-type(3) { border-inline-end: 0; }
.quick-icon { width: 42px; height: 42px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--mint); color: var(--green); flex: 0 0 auto; }
.quick-label { min-width: 0; display: grid; color: var(--ink); font-size: .83rem; font-weight: 790; line-height: 1.55; }
.quick-label select { appearance: none; background: transparent; border: 0; border-radius: 3px; padding: 0; width: 100%; min-height: 24px; color: var(--muted); font-size: .87rem; font-weight: 500; cursor: pointer; }
.quick-field > .icon { width: .95rem; color: var(--muted); pointer-events: none; margin-inline-end: 3px; }
.quick-search .button { min-height: 53px; padding-inline: 1.2rem; }
.home-wrap { padding-block-end: 64px; }
.home-section { margin-block-start: clamp(38px, 5.1vw, 66px); }
.regions-section { margin-block-start: clamp(34px, 4.2vw, 54px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .65rem 1.5rem; margin-block-end: 17px; }
.section-heading h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 860; }
.section-kicker { display: inline-flex; align-items: center; gap: .52rem; color: #435e47; font-weight: 750; margin-block-end: .22rem; font-size: .83rem; }
.section-kicker span { background: #7a9860; width: .4rem; height: .4rem; }
.section-link { display: inline-flex; align-items: center; gap: .24rem; flex: 0 0 auto; color: var(--green); font-weight: 750; font-size: .9rem; min-height: 36px; width: fit-content; }
.section-link .icon { width: 1rem; height: 1rem; }
.section-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.province-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.province-card { isolation: isolate; position: relative; min-width: 0; overflow: hidden; border-radius: 17px; min-height: clamp(135px, 16vw, 190px); display: flex; justify-content: space-between; align-items: end; background: #234a36; padding: clamp(.65rem, 1.8vw, 1.2rem); color: var(--white); }
.province-card::after, .city-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#112c24ec,#112c2440 66%,transparent), linear-gradient(270deg,#16392c80,transparent 57%); }
.province-card img, .city-card img, .location-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .28s; }
.province-card:hover img, .city-card:hover img { transform: scale(1.05); }
.province-copy { display: flex; align-items: center; gap: .65rem; }
.province-copy b { display: block; font-size: clamp(1.2rem,2.4vw,1.6rem); font-weight: 850; line-height: 1.25; }
.province-copy small { font-size: .85rem; color: #edf5ec; display: block; margin-block-start: .3rem; }
.province-icon, .province-link { display: grid; place-items: center; background: #15382eb8; border: 1px solid #f2f9e56e; border-radius: 10px; width: 39px; height: 39px; color: #f0f6dc; }
.province-link { border-radius: 50%; width: 35px; height: 35px; }
.province-link .icon { width: 1rem; height: 1rem; }
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.property-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid #e4e8de; border-radius: 17px; box-shadow: 0 5px 15px #18312508; }
.property-card:hover { box-shadow: var(--shadow); }
.property-visual { position: relative; aspect-ratio: 1.76; overflow: hidden; background: #d1dccf; }
.property-image { display: block; width: 100%; height: 100%; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.property-image:hover img { transform: scale(1.045); }
.property-tag { position: absolute; inset: 12px 12px auto auto; border-radius: 40px; background: #f9faf1; color: #243f2d; padding: .25rem .65rem; font-size: .78rem; font-weight: 800; pointer-events: none; }
.save-button { background: #fcfcf5; color: var(--green); border-color: #e1e7db; border-radius: 50%; }
.property-visual .save-button { position: absolute; top: 10px; inset-inline-end: 10px; }
.save-button:hover, .save-button.is-saved { background: #f0e7e6; color: #a43949; border-color: #edced1; }
.save-button.is-saved .icon { fill: currentColor; }
.property-body { padding: 14px 15px 10px; display: flex; flex-direction: column; flex: 1; }
.property-location { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .82rem; width: fit-content; }
.property-location .icon { width: 1rem; height: 1rem; color: #54725d; }
.property-body h3 { font-size: clamp(1.025rem, 1.45vw, 1.2rem); font-weight: 850; margin-block: .36rem .6rem; }
.property-body h3 a:hover { color: #426444; }
.property-meta { min-height: 27px; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .82rem; color: var(--muted); font-size: .8rem; margin-block-end: .55rem; }
.property-meta > span { display: inline-flex; align-items: center; gap: .26rem; }
.property-meta .icon { width: 1rem; height: 1rem; color: var(--green); }
.sample { font-size: .75rem; color: #6c5945; }
.property-bottom { display: flex; align-items: center; justify-content: space-between; border-block-start: 1px solid var(--line); padding-block-start: .47rem; margin-block-start: auto; gap: .2rem; }
.property-price { color: var(--green); font-size: .82rem; }
.property-price b { font-size: clamp(.98rem,1.4vw,1.26rem); font-weight: 870; }
.property-link { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--mint); color: var(--green); flex: 0 0 auto; }
.property-link:hover { background: var(--lime); }
.property-link .icon { width: 1.02rem; }
.kind-grid, .budget-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.kind-tile, .budget-tile { display: flex; align-items: center; justify-content: center; gap: .58rem; font-size: .95rem; font-weight: 760; border: 1px solid var(--line); background: var(--white); border-radius: 14px; color: var(--green); min-height: 66px; padding: .55rem .45rem; }
.kind-tile span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mint); }
.kind-tile:hover, .budget-tile:hover, .kind-tile.active { background: var(--lime); border-color: #a5b995; }
.budget-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.budget-tile .icon { width: 1.12rem; }
.footer { border-block-start: 1px solid var(--line); background: #edf0e6; padding-block: 28px; color: var(--green); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; }
.footer nav a:hover { text-decoration: underline; }

.page-wrap { padding-block: 24px 70px; }
.crumb { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-block-end: 17px; }
.crumb a { color: var(--green); }
.crumb a:hover { text-decoration: underline; }
.crumb .icon { width: .85rem; height: .85rem; }
.page-intro { margin-block-end: 24px; }
.page-intro h1, .location-hero h1 { margin-block: .14rem .5rem; font-size: clamp(2rem,4.4vw,3.6rem); font-weight: 900; }
.page-intro p { color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 5px 14px #18312507; }
.location-hero { position: relative; min-height: clamp(245px,32vw,400px); isolation: isolate; overflow: hidden; display: flex; align-items: center; border-radius: 22px; padding: clamp(24px,5vw,65px); background: #18392d; color: var(--white); }
.location-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg,#102c24ec,#102c246d,transparent); }
.location-hero p { margin-block-end: .8rem; }
.city-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.city-card { min-height: clamp(150px,16vw,215px); border-radius: 15px; display: flex; align-items: end; padding: .95rem; position: relative; isolation: isolate; overflow: hidden; background: #315743; color: var(--white); }
.city-card-label { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.city-card-label b, .city-card-label small { display: block; }
.city-card-label b { font-weight: 850; font-size: 1.25rem; }
.city-card-label small { font-size: .77rem; color: #eff3ea; }
.city-card-label .icon { width: 1.05rem; }
.results-heading { display: flex; justify-content: space-between; align-items: center; min-height: 65px; gap: 1rem; }
.results-heading h2 { font-size: 1.14rem; }
.filter-form { display: grid; grid-template-columns: 1.25fr repeat(5,1fr) auto; gap: .7rem; padding: 15px; align-items: end; }
.filter-form label, .admin-form label { min-width: 0; display: grid; gap: .35rem; font-size: .87rem; font-weight: 700; }
.filter-form input, .filter-form select, .admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { min-width: 0; width: 100%; border: 1px solid #d5ded1; background: #fafbf8; border-radius: 10px; min-height: 44px; padding: .53rem .62rem; font-size: .95rem; }
.filter-form select, .admin-form select { appearance: none; padding-inline-end: 1.7rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23355342' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .5rem center; }
.empty { display: flex; align-items: center; flex-direction: column; text-align: center; justify-content: center; gap: 12px; padding: 42px 18px; border: 1px dashed #ced9c8; border-radius: 18px; color: var(--green); background: #f0f3ea; }
.empty > .icon { width: 2.25rem; height: 2.25rem; }
.empty h1,.empty h2 { font-size: clamp(1.15rem, 3vw, 1.65rem); }
.empty p { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; align-items: stretch; }
.detail-image { position: relative; min-height: 390px; overflow: hidden; border-radius: 20px; background: var(--mint); }
.detail-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.image-label { position: absolute; bottom: 12px; inset-inline-end: 12px; background: #142f25df; color: #f9faef; border-radius: 8px; padding: .25rem .5rem; font-size: .77rem; }
.detail-card { display: flex; flex-direction: column; align-items: start; padding: clamp(16px, 3vw, 33px); gap: .65rem; }
.detail-top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.detail-card h1 { font-size: clamp(1.75rem,3.1vw,2.65rem); font-weight: 870; }
.pill { width: fit-content; font-weight: 740; font-size: .82rem; color: var(--green); background: var(--mint); border-radius: 40px; padding: .28rem .63rem; }
.detail-specs { padding-block: .65rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .9rem; }
.detail-specs span { display: flex; align-items: center; gap: .35rem; }
.detail-price { width: 100%; border-block-start: 1px solid var(--line); padding-block-start: .75rem; color: var(--green); }
.detail-price small, .detail-price strong { display: block; }
.detail-price strong { font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 900; }
.sample-notice { background: #f7f0e3; padding: .48rem .7rem; border-radius: .55rem; font-size: .88rem; color: #665237; }
.description { margin-block-start: 20px; padding: clamp(16px,3vw,32px); }
.description h2 { font-size: 1.27rem; margin-block-end: .35rem; }
.description p { white-space: pre-wrap; color: var(--muted); overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-card { display: flex; gap: .75rem; align-items: center; padding: 20px; }
.contact-card:hover { border-color: #abc0ab; }
.contact-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }

.admin-body .wrap { max-width: 980px; }
.admin-body .header-inner { grid-template-columns: auto 1fr; border-block-end: 1px solid var(--line); }
.admin-nav { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: .2rem .95rem; color: var(--green); font-size: .9rem; font-weight: 700; }
.admin-nav a:hover { text-decoration: underline; }
.plain-button { border: 0; background: transparent; padding: .45rem; color: var(--green); font-weight: 740; border-radius: 8px; }
.plain-button:hover { background: var(--mint); }
.danger { color: #952f36; }
.danger:hover { background: #fcecef; }
.admin-body .section-heading { align-items: center; }
.admin-body .section-heading .page-intro { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-block-end: 14px; }
.admin-stats > div { display: grid; padding: .8rem 1rem; }
.admin-stats b { font-size: 1.65rem; color: var(--green); }
.admin-stats span { font-size: .85rem; color: var(--muted); }
.admin-list { display: grid; gap: 9px; }
.admin-row { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: .7rem; }
.admin-row > img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: .55rem; }
.admin-row h2 { font-size: 1.08rem; }
.admin-row p { color: var(--muted); font-size: .84rem; }
.admin-row-actions, .admin-labels { display: flex; align-items: center; gap: .4rem; }
.admin-labels { margin-block-start: .29rem; flex-wrap: wrap; }
.admin-row-actions .button { min-height: 35px; font-size: .85rem; }
.admin-form { display: grid; gap: 14px; }
.admin-edit { grid-template-columns: repeat(2,minmax(0,1fr)); padding: clamp(15px,4vw,29px); }
.form-wide { grid-column: 1/-1; }
.photo-field { display: flex; gap: 15px; align-items: center; }
.photo-field img { width: 95px; height: 72px; object-fit: cover; border-radius: 8px; }
.photo-field label { flex: 1; }
.photo-field small { color: var(--muted); font-size: .78rem; }
.check-group, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.check-group label { display: flex; align-items: center; }
input[type=checkbox] { accent-color: var(--green); width: 1.08rem; height: 1.08rem; }
.form-status, .validation-summary-errors { border-radius: 10px; background: var(--mint); padding: .6rem .8rem; margin-block-end: .65rem; font-size: .9rem; }
.validation-summary-errors { background: #fcecef; color: #7d3235; }
.validation-summary-errors ul { margin-block: 0; padding-inline-start: 1.2rem; }
.validation-summary-valid { display: none; }
.login-box { max-width: 425px; margin: 20px auto 0; padding: clamp(19px,5vw,35px); display: grid; gap: 10px; }
.login-box h1 { font-size: 2rem; }
.login-box p { color: var(--muted); }
.login-box form { margin-block: 8px; }
.login-box .button { width: 100%; }

@media (max-width: 1000px) {
    .filter-form { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .filter-term { grid-column: span 2; }
    .quick-search { width: calc(100% - 48px); }
    .kind-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    :root { --wrap: calc(100% - 32px); }
    .header-inner { min-height: 68px; grid-template-columns: 1fr auto; gap: .6rem; }
    .desktop-nav { display: none; }
    .brand { font-size: 1.19rem; }
    .brand-icon { width: 41px; height: 41px; border-radius: 12px; }
    .brand-icon .icon { width: 29px; height: 29px; }
    .button-header { min-height: 39px; padding-inline: .65rem; font-size: .8rem; }
    .button-header .icon { width: 1.05rem; height: 1.05rem; }
    .header-save { display: none; }
    body:not(.admin-body) { padding-block-end: calc(66px + env(safe-area-inset-bottom)); }
    .bottom-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: start; position: fixed; z-index: 10; inset: auto 0 0; padding: 5px max(7px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); min-height: 65px; background: #fbfcf7; border-block-start: 1px solid #e0e6db; box-shadow: 0 -5px 21px #17362910; }
    .bottom-nav a { min-width: 0; min-height: 53px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .14rem; position: relative; color: #4a5c51; font-size: .71rem; font-weight: 650; text-align: center; }
    .bottom-nav a .icon { position: relative; width: 1.28rem; height: 1.28rem; }
    .bottom-nav a.current { color: var(--green); font-weight: 850; }
    .bottom-nav a.current::before { content: ""; position: absolute; top: 1px; width: 40px; height: 29px; background: #e7edde; border-radius: 12px; }
    .bottom-nav a span { position: relative; }
    .hero { border-radius: 20px; min-height: 390px; }
    .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .city-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
    .detail-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .detail-image { min-height: 0; aspect-ratio: 1.48; }
    .budget-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .hero { min-height: 350px; align-items: end; }
    .hero-picture, .hero-image { object-position: center 45%; }
    .hero::before { background: linear-gradient(0deg,#0b261deb 1%,#102d23b0 37%,#112c2330 72%,#112c2315),linear-gradient(270deg,#102d233b,transparent 88%); }
    .hero-content { padding: 38px 20px 43px; }
    .hero-kicker { font-size: .76rem; }
    .hero h1 { font-size: clamp(2.45rem,10.5vw,3.4rem); margin-block: .28em .22em; }
    .hero p { font-size: .9rem; }
    .desktop-break { display: none; }
    .quick-search { width: calc(100% - 18px); margin-block-start: -24px; border-radius: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 8px; }
    .quick-field { gap: .4rem; padding: .14rem .2rem; min-height: 46px; border-inline-end: 0; }
    .quick-field:nth-of-type(1) { border-inline-end: 1px solid var(--line); }
    .quick-field > .icon { margin: 0; width: .75rem; }
    .quick-icon { width: 31px; height: 31px; border-radius: 8px; }
    .quick-icon .icon { width: 1.1rem; height: 1.1rem; }
    .quick-label { font-size: .75rem; }
    .quick-label select { font-size: .77rem; }
    .quick-search .button { font-size: .82rem; min-height: 43px; padding-inline: .25rem; }
    .quick-search .button .icon { width: 1.1rem; }
    .section-heading { margin-block-end: 12px; }
    .section-heading h2 { font-size: clamp(1.35rem,6vw,1.65rem); }
    .section-kicker { font-size: .76rem; }
    .section-link { font-size: .78rem; }
    .province-grid { gap: 8px; }
    .province-card { min-height: 109px; border-radius: 13px; }
    .province-copy { gap: .3rem; }
    .province-copy b { font-size: 1.09rem; }
    .province-copy small { font-size: .7rem; }
    .province-icon { display: none; }
    .province-link { width: 24px; height: 24px; }
    .province-link .icon { width: .9rem; }
    .property-card { border-radius: 12px; }
    .property-visual { aspect-ratio: 1.33; }
    .property-visual .save-button { top: 6px; inset-inline-end: 6px; width: 36px; min-height: 36px; }
    .save-button .icon { width: 1.13rem; }
    .property-tag { top: 8px; right: 7px; font-size: .72rem; padding-inline: .42rem; }
    .property-body { padding: .55rem .52rem .45rem; }
    .property-location { font-size: .73rem; gap: .16rem; }
    .property-location .icon { width: .87rem; }
    .property-body h3 { margin-block: .3rem .45rem; font-size: .95rem; line-height: 1.4; }
    .property-meta { gap: .13rem .32rem; font-size: .72rem; min-height: 23px; }
    .property-meta .icon { width: .8rem; }
    .sample { font-size: .68rem; }
    .property-price { font-size: .72rem; }
    .property-price b { font-size: .92rem; }
    .property-link { width: 25px; height: 25px; }
    .property-link .icon { width: .85rem; }
    .home-wrap, .page-wrap { padding-block-end: 38px; }
    .page-wrap { padding-block-start: 14px; }
    .kind-grid, .budget-grid { gap: 8px; }
    .kind-tile, .budget-tile { min-height: 55px; font-size: .79rem; gap: .27rem; }
    .kind-tile span { width: 26px; height: 26px; }
    .kind-tile .icon { width: 1.05rem; }
    .budget-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .city-card { min-height: 130px; padding: .65rem; }
    .city-card-label b { font-size: 1.05rem; }
    .filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: .7rem; }
    .filter-form input, .filter-form select { font-size: 1rem; }
    .filter-form .button { grid-column: 1/-1; }
    .footer-inner { align-items: start; flex-direction: column; gap: 18px; }
    .footer nav { gap: 12px 17px; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-nav { gap: .18rem .46rem; font-size: .76rem; }
    .admin-row { grid-template-columns: 62px minmax(0,1fr); gap: .45rem .7rem; }
    .admin-row-actions { grid-column: 2; }
    .admin-row h2 { font-size: .95rem; }
    .admin-edit { grid-template-columns: 1fr; }
    .admin-body .section-heading .button { font-size: .78rem; padding-inline: .55rem; }
}
@media (max-width: 350px) {
    :root { --wrap: calc(100% - 22px); }
    .quick-search { width: 100%; }
    .quick-field > .icon { display: none; }
    .quick-field { grid-template-columns: auto minmax(0,1fr); }
    .province-copy small { font-size: .65rem; }
    .bottom-nav a { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (min-width: 641px) and (max-width: 850px) {
    .quick-search { gap: 7px; padding: 10px; }
    .quick-field { gap: .4rem; padding-inline: .25rem; }
    .quick-search .quick-icon { width: 34px; height: 34px; }
    .quick-search .button { padding-inline: .7rem; font-size: .86rem; }
    .quick-label select { font-size: .8rem; }
}


.property-price b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.property-price > span { white-space: nowrap; }
.admin-form [data-group-number] { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .property-price b { font-size: .88rem; }
    .property-bottom .property-link { display: none; }
}

.admin-section { margin-block-start: 30px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; }
.settings-row h3 { font-size: 1.05rem; }
.settings-row p { font-size: .86rem; color: var(--muted); margin-block: .17rem; }
.settings-row .pill { display: inline-block; }
.settings-row .admin-row-actions { flex-wrap: wrap; justify-content: end; }
.admin-form small { color: var(--muted); font-weight: 520; }
.access-fields { display: grid; align-content: start; gap: .75rem; margin: 0; padding: .65rem 1rem 1rem; min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.access-fields legend { padding-inline: .35rem; font-weight: 750; }
.access-fields > label { display: flex; align-items: center; }
.coordinate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.coordinate-tools { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.coordinate-map { height: 300px; border-radius: 12px; background: #dee8dd; }

.magazine-lead { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 1rem; overflow: hidden; border-radius: 23px; color: var(--white); background: #1b4636; }
.magazine-lead-image { min-height: 285px; position: relative; overflow: hidden; }
.magazine-lead-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.magazine-lead-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: .82rem; padding: clamp(16px, 4vw, 54px); }
.magazine-lead-copy h2 { font-size: clamp(1.65rem, 3.55vw, 3.2rem); line-height: 1.38; font-weight: 850; }
.magazine-lead-copy p { color: #e3e9df; font-size: .95rem; }
.magazine-lead-copy .button { color: var(--green); background: var(--lime); }
.magazine-lead-copy .button:hover { background: #f4f7d9; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-block-start: 22px; }
.article-card { overflow: hidden; min-width: 0; }
.article-card-cover { display: block; aspect-ratio: 1.72; overflow: hidden; }
.article-card img { height: 100%; width: 100%; object-fit: cover; }
.article-card-copy { display: grid; justify-items: start; gap: .42rem; padding: .9rem 1rem; }
.article-card-copy h2 { font-size: 1.22rem; }
.article-card-copy p { font-size: .9rem; color: var(--muted); }
.article-page { max-width: 860px; margin-inline: auto; }
.article-heading { display: grid; justify-items: start; gap: .55rem; padding-block: .65rem 1.1rem; }
.article-heading h1 { font-size: clamp(1.9rem, 5vw, 3.5rem); font-weight: 900; }
.article-heading p { font-size: 1.08rem; color: var(--muted); }
.article-byline { color: var(--muted); font-size: .82rem; }
.article-cover { width: 100%; max-height: 460px; aspect-ratio: 1.72; object-fit: cover; border-radius: 21px; }
.article-text { display: grid; gap: 1.05rem; padding: clamp(12px, 3vw, 32px) 0; overflow-wrap: anywhere; }
.article-text p { white-space: pre-wrap; line-height: 2.05; }

.map-intro { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.map-totals { flex: 0 0 auto; display: flex; gap: .6rem; margin-block-end: 24px; }
.map-totals span { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 14px; padding: .49rem .7rem; font-size: .85rem; }
.map-totals b { color: var(--green); font-size: 1.1rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.map-stage, .map-sidebar { overflow: hidden; }
.map-toolbar { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .7rem .8rem; }
.map-toolbar form, .map-legend { display: flex; align-items: center; gap: .37rem; }
.map-toolbar .button { min-height: 38px; padding-block: .35rem; }
.map-toolbar select { min-height: 38px; min-width: 138px; border: 1px solid #d5ded1; border-radius: 10px; background: #fafbf8; padding-inline: .42rem; font-size: .9rem; }
.map-legend { font-size: .78rem; color: var(--muted); }
.map-legend span, .map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.map-legend i { background: #ca7335; margin-inline-start: .2rem; }
.property-map { position: relative; isolation: isolate; height: clamp(365px, 49vw, 590px); background: #dbe6df; }
.map-loading { position: absolute; inset: 12px auto auto 50%; transform: translateX(-50%); z-index: 500; max-width: 80%; padding: .5rem .7rem; border-radius: 10px; box-shadow: var(--shadow); text-align: center; background: #f8fbf7; color: var(--green); }
.map-city-marker { display: grid; place-items: center; border: 3px solid #f4f7eb; border-radius: 50%; background: #1b4737; color: #fff; box-shadow: 0 4px 10px #062f3466; font: 800 .83rem/1 var(--local-persian-family, IRANSans), IRANSansX, IRANSansWeb, "Iran Sans", Vazirmatn, "SF Arabic", Arial, sans-serif; cursor: pointer; }
.map-city-marker:is(.selected-pin, :hover, :focus-visible) { background: #e7efbc; color: #1b4737; border-color: #284f33; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; padding: .55rem .8rem; font-size: .78rem; color: var(--muted); }
.map-caption a { text-decoration: underline; }
.map-notice { margin: .45rem; padding: .45rem .6rem; border-radius: .55rem; color: var(--muted); background: var(--mint); font-size: .83rem; }
.map-side-header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: .58rem .8rem; border-block-end: 1px solid var(--line); }
.map-side-header h2 { font-size: 1.12rem; }
.map-city-list, .map-selection { padding: .6rem; max-height: 580px; overflow: auto; }
.map-city-row, .map-result { display: grid; align-items: center; gap: .45rem; border-radius: 10px; padding: .4rem; min-width: 0; }
.map-city-row { grid-template-columns: 47px minmax(0, 1fr) auto; }
.map-city-row img, .map-result img { object-fit: cover; height: 42px; width: 100%; border-radius: 8px; }
.map-city-row:hover, .map-result:hover { background: var(--mint); }
.map-city-row b, .map-city-row small, .map-result b, .map-result small { display: block; }
.map-city-row small, .map-result small { font-size: .77rem; color: var(--muted); }
.map-result { grid-template-columns: 54px minmax(0, 1fr); }
.map-result b { font-size: .88rem; }
.map-selection > img { width: 100%; height: 145px; object-fit: cover; border-radius: 10px; }
.map-popup { min-width: min(210px, 65vw); }
.property-map.leaflet-container, .coordinate-map.leaflet-container { font-family: inherit; }

@media (max-width: 900px) {
    .desktop-nav { gap: 1.3rem; }
    .map-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .bottom-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .bottom-nav a { font-size: .66rem; }
    .admin-nav { gap: .15rem .65rem; }
    .map-layout { grid-template-columns: minmax(0, 1fr); }
    .map-intro { align-items: start; flex-direction: column; gap: 0; }
    .map-intro .page-intro { margin-block-end: 10px; }
    .map-totals { margin-block-end: 12px; }
    .map-city-list, .map-selection { max-height: 370px; }
    .map-city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-city-row .pill { display: none; }
    .magazine-lead { grid-template-columns: minmax(0, 1fr); }
    .magazine-lead-image { min-height: max(190px, 37vw); }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
    .bottom-nav a { font-size: .62rem; }
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .settings-row { padding: .55rem .63rem; }
    .settings-row .button { padding-inline: .44rem; }
    .admin-nav { gap: .15rem .4rem; }
}
