/* =========================================================
   مِلک — سیستم طراحی (فارسی / راست‌چین)
   پالت: سفید مینیمال + زمردی، طلایی برنز، آبی، بنفش ملایم
   ========================================================= */

:root {
    --ink: #171512;
    --ink-2: #4c4a43;
    --mut: #8b887c;
    --line: #ebe9e1;
    --soft: #f9f7f2;
    --bg: #ffffff;

    --acc: #0e7a5c;
    --acc-ink: #0a5b44;
    --acc-soft: #e6f4ee;

    --blue: #2f6bd8;
    --blue-ink: #1e4fa8;
    --blue-soft: #eaf1fe;

    --gold: #b8892e;
    --gold-ink: #8f691f;
    --gold-soft: #fbf2dc;
    --gold-bright: #f0c75e;

    --violet: #7357c5;
    --violet-soft: #f1ecfc;

    --clay: #c2543a;
    --clay-soft: #fae9e3;

    --forest: #122019;
    --forest-2: #0d2a22;

    --red: #d64545;
    --red-soft: #fceded;

    --r-lg: 28px;
    --r: 22px;
    --r-sm: 14px;
    --sh-sm: 0 2px 12px rgba(23, 21, 18, .06);
    --sh: 0 30px 60px -28px rgba(23, 21, 18, .24);
    --nav-h: 78px;
    --ease: cubic-bezier(.22, .68, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }
ul { list-style: none; }

svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 1.9; flex: none; }

.container { max-width: 1220px; margin-inline: auto; padding-inline: 24px; }
.hidden { display: none !important; }
.muted { color: var(--mut); font-weight: 400; font-size: .9em; }
.ltr { direction: ltr; text-align: left; }
.w-full { width: 100%; justify-content: center; }

::selection { background: var(--acc); color: #fff; }

/* ---------------- دکمه‌ها ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1;
    border: 1px solid transparent;
    transition: all .35s var(--ease);
    white-space: nowrap;
}
.btn svg.lucide { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg.lucide:last-child { transform: translateX(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b23; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(23,21,18,.45); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light-inv { background: #fff; color: var(--ink); }
.btn-light-inv:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 13px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    transition: all .3s var(--ease); flex: none;
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; border-color: transparent; background: var(--soft); }
.icon-btn.sm:hover { background: var(--ink); color: #fff; }
.icon-btn.sm.light { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); }
.icon-btn.sm.light:hover { background: var(--ink); }
.icon-btn.danger:hover, .icon-btn.sm.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.icon-btn.btn-acc { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------------- فلش ---------------- */
.flash-note { position: relative; z-index: 60; }
.flash {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-radius: var(--r-sm);
    font-size: .95rem; font-weight: 500;
    margin: 16px 0;
}
.flash-ok { background: var(--acc-soft); color: var(--acc-ink); }
.flash-err { background: var(--red-soft); color: var(--red); }
main > .flash-note .flash { margin-top: calc(var(--nav-h) + 20px); }

/* ========================= ناوبری ========================= */
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow .35s var(--ease), border-color .35s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 40px -24px rgba(23,21,18,.2); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.35rem; letter-spacing: -.5px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px;
    background: linear-gradient(135deg, var(--acc), var(--acc-ink));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex: none;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); box-shadow: 0 10px 24px -10px rgba(14,122,92,.55); }
.brand-word small { font-size: .55em; font-weight: 500; color: var(--mut); margin-inline-start: 2px; }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-mark { background: var(--gold-bright); color: var(--forest); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 9px 16px; border-radius: 999px;
    font-size: .95rem; font-weight: 500; color: var(--ink-2);
    transition: all .3s var(--ease);
}
.nav-links a:hover { background: var(--acc-soft); color: var(--acc-ink); }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-side { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }

/* ========================= هیرو ========================= */
.hero { position: relative; z-index: 0; padding-top: calc(var(--nav-h) + 46px); padding-bottom: 20px; overflow: clip; }
.hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(760px 360px at 88% 0%, rgba(14,122,92,.10), transparent 60%),
        radial-gradient(620px 340px at 6% 14%, rgba(184,137,46,.09), transparent 55%);
    animation: heroGlow 16s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(0,-24px,0) scale(1.04); }
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-media { transition: none; will-change: transform; }

/* ورود پلکانی اجزای هیرو */
.hero-copy > .reveal:nth-child(1) { transition-delay: .05s; }
.hero-copy > .reveal:nth-child(2) { transition-delay: .14s; }
.hero-copy > .reveal:nth-child(3) { transition-delay: .23s; }
.hero-copy > .reveal:nth-child(4) { transition-delay: .32s; }
.hero-copy > .reveal:nth-child(5) { transition-delay: .41s; }
.hero-media.reveal { transition-delay: .25s; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--acc-soft); border: 1px solid #cfe8dd;
    font-size: .85rem; font-weight: 700; color: var(--acc-ink);
    margin-bottom: 22px;
}
.eyebrow svg.lucide { color: var(--acc); }

.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    font-weight: 900; line-height: 1.22; letter-spacing: -1px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--acc) 10%, var(--gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lead { font-size: 1.1rem; color: var(--ink-2); margin: 20px 0 30px; max-width: 46ch; }
.lead-sm { color: var(--ink-2); margin-top: 8px; }

.search-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--sh-sm);
}
.search-row { display: flex; gap: 10px; align-items: stretch; }
.field {
    display: flex; align-items: center; gap: 9px;
    background: var(--soft); border: 1px solid transparent; border-radius: 16px;
    padding: 0 15px; min-height: 54px;
    transition: border-color .3s, background .3s;
}
.field:focus-within { border-color: var(--acc); background: #fff; }
.field svg.lucide { color: var(--mut); width: 1.05em; height: 1.05em; }
.field.grow { flex: 1; }
.field input, .field select {
    background: transparent; border: 0; outline: 0; width: 100%;
    font-size: .95rem; min-width: 0;
}
.field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left center;
    padding-left: 20px; cursor: pointer;
}
.quick-links { display: flex; align-items: center; gap: 14px; padding: 14px 8px 4px; font-size: .85rem; color: var(--mut); }
.quick-links a { color: var(--acc-ink); font-weight: 700; border-bottom: 1px solid #cfe8dd; transition: border-color .3s; }
.quick-links a:hover { border-color: var(--acc); }

.hero-badges { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.hero-badges li:nth-child(1) svg.lucide { color: var(--blue); }
.hero-badges li:nth-child(2) svg.lucide { color: var(--acc); }
.hero-badges li:nth-child(3) svg.lucide { color: var(--gold); }

.hero-media { position: relative; }
.hero-media > img {
    width: 100%; aspect-ratio: 4/4.3; object-fit: cover;
    border-radius: var(--r-lg); box-shadow: var(--sh);
}
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 18px;
    padding: 12px 18px; box-shadow: var(--sh-sm);
    animation: floaty 5.5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.float-card span:last-child { font-size: .78rem; color: var(--mut); display: block; }
.float-ic {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--acc); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.float-ic.acc { background: var(--gold); }
.fc-1 { top: 28px; inset-inline-start: -18px; }
.fc-2 { bottom: 34px; inset-inline-end: -14px; animation-delay: 1.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ========================= نوار متحرک محله‌ها ========================= */
.ticker {
    margin-top: 48px; padding-block: 16px;
    border-block: 1px solid var(--line);
    overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
    display: flex; align-items: center; gap: 46px;
    width: max-content; padding-inline: 23px;
    animation: tickerMove 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .92rem; font-weight: 600; color: var(--mut);
    white-space: nowrap;
}
.ticker-item svg.lucide { color: var(--gold); width: .95em; height: .95em; }
@keyframes tickerMove {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

/* ========================= سکشن‌ها ========================= */
.section { padding-block: 76px; }
.section-sm { padding-block: 44px 76px; }
.section-soft { background: linear-gradient(180deg, var(--soft), #fdfaf3); border-block: 1px solid var(--line); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.6px; line-height: 1.35; }
.sec-eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--acc-ink); background: var(--acc-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding-bottom: 4px; border-bottom: 1.5px solid var(--line); transition: all .3s; white-space: nowrap; }
.link-arrow:hover { border-color: var(--acc); color: var(--acc-ink); gap: 12px; }

/* دسته‌بندی‌ها */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
    position: relative; display: block;
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 26px 22px 22px; background: #fff;
    transition: all .4s var(--ease);
}
.cat-card:hover { color: #fff; transform: translateY(-6px); box-shadow: var(--sh); }
.cat-ic {
    width: 48px; height: 48px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; margin-bottom: 16px; transition: all .4s;
}
.cat-card:nth-child(1) .cat-ic { background: var(--blue-soft); color: var(--blue); }
.cat-card:nth-child(2) .cat-ic { background: var(--acc-soft); color: var(--acc); }
.cat-card:nth-child(3) .cat-ic { background: var(--violet-soft); color: var(--violet); }
.cat-card:nth-child(4) .cat-ic { background: var(--gold-soft); color: var(--gold); }
.cat-card:nth-child(5) .cat-ic { background: var(--clay-soft); color: var(--clay); }

.cat-card:nth-child(1):hover { background: var(--blue); border-color: var(--blue); }
.cat-card:nth-child(2):hover { background: var(--acc); border-color: var(--acc); }
.cat-card:nth-child(3):hover { background: var(--violet); border-color: var(--violet); }
.cat-card:nth-child(4):hover { background: var(--gold); border-color: var(--gold); }
.cat-card:nth-child(5):hover { background: var(--clay); border-color: var(--clay); }

.cat-card:hover .cat-ic { background: rgba(255,255,255,.16); color: #fff; }
.cat-card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 4px; }
.cat-card p { font-size: .85rem; color: var(--mut); transition: color .4s; }
.cat-card:hover p { color: rgba(255,255,255,.75); }
.cat-go { position: absolute; top: 22px; inset-inline-end: 20px; opacity: 0; transform: translate(4px,-4px); transition: all .35s var(--ease); font-size: 1.1rem; }
.cat-card:hover .cat-go { opacity: 1; transform: none; }

/* ورود پلکانی گریدهای کارت */
.grid-3 > .reveal:nth-child(1), .cat-grid > .reveal:nth-child(1), .stats-grid > .reveal:nth-child(1) { transition-delay: .02s; }
.grid-3 > .reveal:nth-child(2), .cat-grid > .reveal:nth-child(2), .stats-grid > .reveal:nth-child(2) { transition-delay: .09s; }
.grid-3 > .reveal:nth-child(3), .cat-grid > .reveal:nth-child(3), .stats-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid-3 > .reveal:nth-child(4), .cat-grid > .reveal:nth-child(4), .stats-grid > .reveal:nth-child(4) { transition-delay: .23s; }
.grid-3 > .reveal:nth-child(5), .cat-grid > .reveal:nth-child(5) { transition-delay: .30s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: .37s; }

/* کارت ملک */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: 26px; }
.card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; transition: all .45s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--sh); border-color: #dfdccd; }
.card-media { position: relative; aspect-ratio: 4/2.95; overflow: hidden; background: var(--soft); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media > img { transform: scale(1.06); }
.card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%);
    transform: translateX(-130%);
    transition: transform .9s var(--ease);
}
.card:hover .card-media::after { transform: translateX(130%); }
.card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 1.6rem; background: var(--soft); }
.card-placeholder.big { aspect-ratio: 16/8; border-radius: var(--r); flex-direction: column; gap: 12px; font-size: .95rem; }
.card-chips { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 8px; }
.chip-star { position: absolute; top: 14px; inset-inline-end: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; line-height: 1.5;
}
.chip-light { background: rgba(255,255,255,.95); color: var(--ink); backdrop-filter: blur(6px); }
.chip-dark { background: rgba(18,32,25,.88); color: #fff; backdrop-filter: blur(6px); }
.chip-star { background: var(--gold-soft); color: var(--gold-ink); backdrop-filter: blur(6px); }
.chip-green { background: var(--acc-soft); color: var(--acc-ink); }
.chip-amber { background: var(--blue-soft); color: var(--blue-ink); }
.chip-gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip-soft { background: var(--soft); color: var(--ink-2); }
.chip svg.lucide { width: .95em; height: .95em; }
.card-chips .chip { backdrop-filter: blur(6px); }

.card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-cat { font-size: .8rem; font-weight: 600; color: var(--mut); }
.card-price { font-size: 1.02rem; font-weight: 800; color: var(--acc); }
.card-deposit { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); border-radius: 999px; padding: 3px 12px; width: fit-content; }
.card-deposit svg.lucide { width: .95em; height: .95em; }
.card-title { font-size: 1.08rem; font-weight: 800; line-height: 1.55; letter-spacing: -.2px; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--mut); }
.card-meta {
    display: flex; gap: 18px; margin-top: 8px;
    padding-top: 14px; border-top: 1px solid var(--line);
    font-size: .85rem; color: var(--ink-2); font-weight: 500;
}
.card-meta li { display: flex; align-items: center; gap: 7px; }
.card-meta svg.lucide { color: var(--gold); }

/* باند تور ۳۶۰ */
.pano-band {
    color: #fff;
    border-radius: 34px; padding: 60px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
    overflow: hidden; position: relative;
    background: linear-gradient(135deg, #15402f 0%, var(--forest-2) 55%, var(--forest) 100%);
}
.pano-band::before {
    content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(14,122,92,.55), transparent 70%);
    top: -180px; inset-inline-start: -140px; filter: blur(10px);
}
.pano-band::after {
    content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,199,94,.16), transparent 70%);
    bottom: -170px; inset-inline-end: -110px; filter: blur(10px);
}
.pano-band > * { position: relative; z-index: 1; }
.tag-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240,199,94,.12); border: 1px solid rgba(240,199,94,.4);
    color: var(--gold-bright);
    padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
    margin-bottom: 20px;
}
.pano-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; letter-spacing: -.8px; margin-bottom: 16px; }
.dot-acc { color: var(--gold-bright); }
.pano-band p { color: rgba(255,255,255,.72); max-width: 48ch; margin-bottom: 22px; }
.check-list { display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.85); }
.check-list svg.lucide { color: var(--gold-bright); }
.pano-band-media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10.5; border: 1px solid rgba(255,255,255,.12); }
.pano-band-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pano-band-media:hover img { transform: scale(1.05); }
.pano-play {
    position: absolute; inset: 0; margin: auto;
    width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,.96); color: var(--forest);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.5);
    transition: transform .4s var(--ease);
}
.pano-band-media:hover .pano-play { transform: scale(1.12) rotate(-12deg); }

/* ========================= آمار — نسخه ۲ ========================= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat2 {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 24px 24px;
    transition: all .45s var(--ease);
}
.stat2:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.stat2-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stat2-ic {
    width: 52px; height: 52px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: transform .45s var(--ease);
}
.stat2:hover .stat2-ic { transform: rotate(-8deg) scale(1.08); }
.s-acc .stat2-ic { background: var(--acc-soft); color: var(--acc); }
.s-blue .stat2-ic { background: var(--blue-soft); color: var(--blue); }
.s-gold .stat2-ic { background: var(--gold-soft); color: var(--gold); }
.s-violet .stat2-ic { background: var(--violet-soft); color: var(--violet); }
.stat2-badge {
    font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
    background: var(--soft); color: var(--mut);
}
.stat2-num { display: block; font-size: 2.6rem; font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.stat2-num em { font-style: normal; font-size: .62em; }
.s-acc .stat2-num { color: var(--acc); }
.s-blue .stat2-num { color: var(--blue); }
.s-gold .stat2-num { color: var(--gold); }
.s-violet .stat2-num { color: var(--violet); }
.stat2-label { display: block; font-size: 1rem; font-weight: 800; margin-top: 2px; }
.stat2-sub { display: block; font-size: .8rem; color: var(--mut); margin-top: 4px; }
.stat2-bar {
    position: absolute; bottom: 0; inset-inline: 0; height: 4px;
    transform: scaleX(0); transform-origin: right;
    transition: transform .6s var(--ease);
}
.stat2:hover .stat2-bar { transform: scaleX(1); }
.s-acc .stat2-bar { background: linear-gradient(90deg, var(--acc), transparent); }
.s-blue .stat2-bar { background: linear-gradient(90deg, var(--blue), transparent); }
.s-gold .stat2-bar { background: linear-gradient(90deg, var(--gold), transparent); }
.s-violet .stat2-bar { background: linear-gradient(90deg, var(--violet), transparent); }

/* مراحل */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
    position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 36px 30px 30px; background: #fff; overflow: hidden;
    transition: all .4s var(--ease);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.step-num {
    position: absolute; top: 14px; inset-inline-end: 22px;
    font-size: 4.2rem; font-weight: 900; color: var(--soft); line-height: 1;
    -webkit-text-stroke: 1px var(--line);
}
.step-ic {
    width: 54px; height: 54px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px;
}
.step-card:nth-child(1) .step-ic { background: var(--acc-soft); color: var(--acc); }
.step-card:nth-child(2) .step-ic { background: var(--blue-soft); color: var(--blue); }
.step-card:nth-child(3) .step-ic { background: var(--gold-soft); color: var(--gold); }
.step-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: .93rem; color: var(--ink-2); }

/* CTA */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    border: 1px solid #efe4c8; border-radius: var(--r-lg);
    padding: 46px 50px;
    background: linear-gradient(120deg, #ffffff, var(--gold-soft));
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.6px; margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); }
.cta-band .btn-dark { background: var(--forest); }
.cta-band .btn-dark:hover { background: var(--acc-ink); }

/* فوتر */
.footer { background: var(--forest); color: #fff; padding: 70px 0 0; margin-top: 40px; position: relative; overflow: hidden; }
.footer::before {
    content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(14,122,92,.35), transparent 70%);
    top: -220px; inset-inline-end: -160px; pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; position: relative; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 16px; color: var(--gold-bright); }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: .92rem; padding-block: 6px; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-base {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem; color: rgba(255,255,255,.5); position: relative;
}

/* ظاهر شدن هنگام اسکرول */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ========================= صفحه املاک (لیست) ========================= */
.page-head { padding-top: calc(var(--nav-h) + 50px); padding-bottom: 30px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -.7px; margin: 10px 0 4px; }
.page-head .lead-sm strong { color: var(--acc); }

.filter-bar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 16px; box-shadow: var(--sh-sm);
    display: grid; gap: 10px; margin-bottom: 34px;
    position: sticky; top: calc(var(--nav-h) + 10px); z-index: 50;
}
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-row .field { flex: 1; min-width: 170px; }
.filter-row .field.f-q { flex: 2.2; min-width: 220px; }
.filter-actions { display: flex; gap: 10px; margin-inline-start: auto; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.page-btn {
    min-width: 44px; height: 44px; padding-inline: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    font-weight: 600; font-size: .95rem; transition: all .3s;
}
.page-btn:hover { border-color: var(--acc); color: var(--acc-ink); }
.page-btn.active { background: var(--acc); color: #fff; border-color: var(--acc); }

/* حالت خالی */
.empty-card {
    text-align: center; padding: 70px 24px;
    border: 1px dashed var(--line); border-radius: var(--r-lg); background: #fff;
}
.empty-card.sm { padding: 44px 20px; }
.empty-icon {
    width: 68px; height: 68px; margin: 0 auto 18px;
    background: var(--acc-soft); border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--acc); font-size: 1.5rem;
    animation: floaty 4s ease-in-out infinite;
}
.empty-card h1 { font-size: 3rem; font-weight: 900; }
.empty-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.empty-card p { color: var(--ink-2); max-width: 42ch; margin: 8px auto 22px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.empty-page { padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; }

/* ========================= صفحه ملک ========================= */
.crumbs {
    display: flex; align-items: center; gap: 8px;
    padding-top: calc(var(--nav-h) + 26px);
    font-size: .85rem; color: var(--mut);
}
.crumbs a:hover { color: var(--acc-ink); }
.crumbs span { color: var(--ink-2); font-weight: 500; }

.pd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 18px 24px; flex-wrap: wrap; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-head h1 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.6px; line-height: 1.4; }
.pd-loc { display: flex; align-items: center; gap: 7px; color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
.pd-loc svg.lucide { color: var(--acc); }

/* باکس قیمت — حالت‌های فروش / اجاره+ودیعه / رهن */
.pd-price { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 16px 26px; text-align: end; min-width: 240px; }
.deal-box { display: grid; gap: 6px; }
.deal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.deal-row span { font-size: .82rem; color: var(--mut); white-space: nowrap; }
.deal-row strong { font-size: 1.05rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.deal-row.primary strong { font-size: 1.45rem; font-weight: 900; color: var(--acc); letter-spacing: -.5px; }
.deal-row + .deal-row { padding-top: 6px; border-top: 1px dashed var(--line); }

.pd-tabs {
    display: inline-flex; gap: 4px;
    background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px;
    margin-bottom: 22px;
}
.pd-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    font-size: .92rem; font-weight: 700; color: var(--ink-2);
    transition: all .3s var(--ease);
}
.pd-tab.active { background: var(--forest); color: #fff; box-shadow: var(--sh-sm); }

.panel-in { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.gallery { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.g-main { position: relative; display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); text-align: start; }
.g-main img { width: 100%; aspect-ratio: 16/9.6; object-fit: cover; transition: transform .7s var(--ease), opacity .25s var(--ease); }
.g-main img.fading { opacity: .15; }
.g-main:hover img { transform: scale(1.02); }
.g-zoom {
    position: absolute; bottom: 16px; inset-inline-end: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(18,32,25,.85); color: #fff; backdrop-filter: blur(6px);
    padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.g-thumbs { display: grid; grid-template-columns: 1fr; gap: 12px; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.g-thumb { border-radius: 16px; overflow: hidden; border: 2px solid transparent; transition: all .3s var(--ease); background: var(--soft); padding: 0; }
.g-thumb img { width: 100%; aspect-ratio: 4/2.7; object-fit: cover; }
.g-thumb:hover { border-color: #cfcdc4; }
.g-thumb.active { border-color: var(--acc); }

/* استیج تور — تصویر + ویدیو */
.pano-wrap { margin-bottom: 8px; }
.pano-stage { position: relative; }
.pano { width: 100%; height: 540px; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); }
.pano .pnlm-container { border-radius: inherit; }
.pano-video {
    position: relative; width: 100%; height: 540px;
    border-radius: var(--r-lg); overflow: hidden; background: var(--forest);
    touch-action: none; user-select: none;
}
.pano-video canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pano-video canvas:active { cursor: grabbing; }
.pv-loading {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: var(--forest); color: rgba(255,255,255,.75); font-size: .9rem;
    transition: opacity .5s var(--ease), visibility .5s;
}
.pv-loading.ok { opacity: 0; visibility: hidden; }
.pv-loader {
    width: 46px; height: 46px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.18); border-top-color: var(--gold-bright);
    animation: pvSpin .9s linear infinite;
}
@keyframes pvSpin { to { transform: rotate(360deg); } }
.pv-error {
    position: absolute; inset-inline: 20px; bottom: 84px; z-index: 4;
    display: flex; align-items: center; gap: 10px;
    background: rgba(214,69,69,.92); color: #fff;
    padding: 12px 18px; border-radius: 14px; font-size: .88rem;
}
.pv-controls {
    position: absolute; z-index: 3; bottom: 16px; inset-inline: 16px;
    display: flex; align-items: center; gap: 10px;
}
.pv-btn {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: rgba(255,255,255,.14); color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .3s var(--ease);
}
.pv-btn:hover { background: var(--gold-bright); color: var(--forest); border-color: var(--gold-bright); }
.pv-tip {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.75); font-size: .8rem;
    background: rgba(18,32,25,.5); backdrop-filter: blur(8px);
    padding: 9px 16px; border-radius: 999px;
}
.pv-end { margin-inline-start: auto; }
.pano-scenes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pano-scene {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: .88rem; font-weight: 600; transition: all .3s;
}
.pano-scene svg.lucide { width: .95em; height: .95em; color: var(--mut); transition: color .3s; }
.pano-scene:hover { border-color: var(--acc); }
.pano-scene.active { background: var(--acc); color: #fff; border-color: var(--acc); }
.pano-scene.active svg.lucide { color: #fff; }
.pano-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--mut); }
.pano-hint svg.lucide { color: var(--blue); }

.pd-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; padding-block: 44px 30px; align-items: start; }
.pd-box { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin-bottom: 22px; background: #fff; }
.pd-box h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pd-desc { color: var(--ink-2); line-height: 2.1; font-size: .98rem; }
.amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.amen li { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: var(--ink-2); }
.amen svg.lucide { color: var(--acc); background: var(--acc-soft); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; }
.map { width: 100%; height: 320px; border: 0; border-radius: 16px; filter: grayscale(.3); }

.pd-side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; box-shadow: var(--sh-sm); }
.side-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.spec > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 11px; border-bottom: 1px dashed var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--mut); }
.spec dt svg.lucide { color: var(--gold); }
.spec dd { font-size: .92rem; font-weight: 700; }

.agent-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--acc), var(--acc-ink)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.avatar.sm { width: 40px; height: 40px; }
.avatar.dim { background: var(--soft); color: var(--mut); }
.agent-id { flex: 1; min-width: 0; }
.agent-id strong { display: block; font-size: .98rem; }
.agent-id span { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--mut); }
.agent-id span svg.lucide { color: var(--blue); }
.agent-form { display: grid; gap: 10px; }

/* لایت‌باکس */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(13, 26, 21, .94);
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lb-btn {
    position: absolute; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    transition: background .3s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 26px; inset-inline-start: 26px; }
.lb-prev { inset-inline-start: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 26px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 26px; inset-inline: 0; margin: auto; text-align: center; color: rgba(255,255,255,.65); font-size: .9rem; }

/* ========================= پنل ادمین ========================= */
.admin-body { background: #f7f5f0; }
.admin-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.admin-side {
    background: linear-gradient(180deg, var(--forest-2), var(--forest));
    color: #d9d8d2;
    padding: 24px 16px;
    display: flex; flex-direction: column; gap: 26px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { padding-inline: 8px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: 13px;
    font-size: .93rem; font-weight: 500; color: #b7c2bb;
    transition: all .3s;
}
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: #fff; color: var(--forest); font-weight: 700; }
.admin-nav .badge {
    margin-inline-start: auto;
    background: var(--red); color: #fff;
    min-width: 22px; height: 22px; padding-inline: 6px;
    border-radius: 999px; font-size: .72rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.admin-side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-side-foot a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: .9rem; color: #b7c2bb; transition: all .3s; }
.admin-side-foot a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side-foot a.danger:hover { background: rgba(214,69,69,.18); color: #ff9d9d; }

.admin-main { padding: 26px 34px 60px; min-width: 0; }
.admin-burger { display: none; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.admin-top h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.4px; }
.admin-user { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); padding: 8px 16px 8px 20px; border-radius: 999px; }
.admin-user strong { display: block; font-size: .9rem; }
.admin-user span { font-size: .78rem; color: var(--mut); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
    display: flex; align-items: center; gap: 15px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 22px; transition: all .35s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.stat-ic {
    width: 50px; height: 50px; border-radius: 15px; flex: none;
    background: var(--forest); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.stat-cards .stat-card:nth-child(1) .stat-ic { background: var(--blue); }
.stat-cards .stat-card:nth-child(2) .stat-ic { background: var(--violet); }
.stat-cards .stat-card:nth-child(3) .stat-ic { background: var(--acc); }
.stat-cards .stat-card:nth-child(4) .stat-ic { background: var(--gold); }
.stat-ic.acc { background: var(--acc); }
.stat-ic.warn { background: var(--gold); }
.stat-card strong { display: block; font-size: 1.65rem; font-weight: 900; line-height: 1.3; letter-spacing: -.5px; }
.stat-card span { font-size: .84rem; color: var(--mut); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head.wrap { flex-wrap: wrap; }
.panel-head h2 { font-size: 1.12rem; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; }

.mini-list { display: grid; }
.mini-list li { display: flex; align-items: center; gap: 13px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-thumb { width: 58px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--soft); flex: none; display: flex; align-items: center; justify-content: center; color: var(--mut); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { flex: 1; min-width: 0; }
.mini-info a { display: block; font-weight: 700; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info a:hover { color: var(--acc); }
.mini-info span { font-size: .8rem; color: var(--mut); }
.mini-time { font-size: .76rem; color: var(--mut); white-space: nowrap; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); vertical-align: middle; }
.muted-center { text-align: center; color: var(--mut); padding: 30px 0; font-size: .92rem; }

.chip-sm {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px;
    font-size: .74rem; font-weight: 700;
}
.chip-sm.ok { background: var(--acc-soft); color: var(--acc-ink); }
.chip-sm.warn { background: var(--gold-soft); color: var(--gold-ink); }
.chip-sm.info { background: var(--blue-soft); color: var(--blue-ink); }
.chip-sm.gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip-sm.muted { background: var(--soft); color: var(--mut); }
.chip-sm.btn-like { border: 0; transition: filter .3s; }
.chip-sm.btn-like:hover { filter: brightness(.95); }

.table-wrap { overflow-x: auto; margin-inline: -8px; padding-inline: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; font-size: .78rem; font-weight: 700; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .25s; }
.table tbody tr:hover { background: #faf9f5; }
.ta-left { text-align: left !important; }

.t-prop { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.t-thumb {
    width: 60px; height: 46px; border-radius: 10px; overflow: hidden; flex: none;
    background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--mut);
}
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-title { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.t-title:hover { color: var(--acc); }
.t-sub { font-size: .78rem; color: var(--mut); display: block; }
.star-on { color: var(--gold); fill: var(--gold); width: .95em; height: .95em; }
.t-price { font-weight: 700; white-space: nowrap; }
.t-media { white-space: nowrap; }
.t-media span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); margin-inline-end: 12px; font-size: .84rem; }
.t-media span svg.lucide { color: var(--blue); }
.t-date { color: var(--mut); font-size: .82rem; white-space: nowrap; }
.t-msg { max-width: 220px; font-size: .84rem; color: var(--ink-2); }
.t-phone { font-weight: 600; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.inline-form { display: inline; }
.row-unread td { background: #f4faf7; font-weight: 500; }
.row-read td { color: var(--ink-2); }

.edit-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.edit-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: .9rem; font-weight: 600; transition: all .3s;
}
.edit-tab:hover { border-color: var(--acc); }
.edit-tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.edit-tab.ghost { color: var(--mut); margin-inline-start: auto; }
.edit-tab .count {
    background: var(--soft); border-radius: 999px; min-width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; padding-inline: 6px;
}
.edit-tab.active .count { background: rgba(255,255,255,.18); }
.crumb-line { font-size: .88rem; color: var(--mut); margin: -6px 0 18px; }
.crumb-line strong { color: var(--ink); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; max-width: 920px; }
.form-sec { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-sec:last-of-type { border-bottom: 0; }
.form-sec > h3 { display: flex; align-items: center; gap: 9px; font-size: 1.02rem; font-weight: 800; margin-bottom: 18px; }
.form-sec > h3 svg.lucide { color: var(--acc); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
.lbl { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; }
.hint { font-size: .76rem; color: var(--mut); font-weight: 400; }
.inp {
    width: 100%; padding: 12px 15px;
    border: 1px solid var(--line); border-radius: 13px; background: #fff;
    font-size: .93rem; outline: 0; transition: border-color .3s, box-shadow .3s;
}
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(14,122,92,.1); }
.inp.sm { padding: 9px 13px; font-size: .88rem; width: auto; }
textarea.inp { resize: vertical; min-height: 90px; line-height: 1.9; }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); cursor: pointer; }
.amen-picker { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span {
    display: inline-flex; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 500;
    transition: all .25s;
}
.chip-check input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.form-foot { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.stack-form { display: grid; gap: 15px; }
.tip-box {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--acc-soft); border-radius: var(--r-sm);
    padding: 15px 18px; margin-bottom: 18px; font-size: .88rem; color: var(--acc-ink);
}
.tip-box svg.lucide { margin-top: 3px; }
.tip-box code { background: rgba(10,91,68,.1); padding: 2px 8px; border-radius: 6px; font-size: .85em; }

/* فیلدهای وابسته به نوع معامله */
.deal-fields-wrap { display: grid; gap: 0; }
.deal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deal-fields:has(> :only-child) { grid-template-columns: 1fr 1fr; }
#dealRent { grid-template-columns: 1fr 1fr; }
#dealSale .lbl, #dealMortgage .lbl { max-width: 420px; }

.dropzone {
    display: grid; place-items: center; gap: 8px; text-align: center;
    border: 2px dashed var(--line); border-radius: var(--r);
    padding: 40px 20px; cursor: pointer;
    color: var(--ink-2); transition: all .3s;
}
.dropzone:hover { border-color: var(--acc); background: #fafcfb; }
.dropzone svg.lucide { font-size: 1.7rem; color: var(--acc); }
.dropzone strong { font-size: .98rem; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.preview-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.pv-file {
    aspect-ratio: 4/3; border-radius: 12px; border: 1px solid var(--line);
    background: var(--forest); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    font-size: .68rem; padding: 8px; text-align: center; overflow: hidden;
}
.pv-file svg.lucide { color: var(--gold-bright); font-size: 1.3rem; }
.pv-file span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; direction: ltr; }

.manage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.manage-item { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.manage-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.manage-item.tall img { aspect-ratio: 4/2.6; }
.manage-item.is-cover { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cover-badge {
    position: absolute; top: 10px; inset-inline-start: 10px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold); color: #fff;
    padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.cover-badge.dark { background: rgba(18,32,25,.85); }
.cover-badge.video { background: var(--blue); }
.video-thumb {
    width: 100%; aspect-ratio: 4/2.6;
    background: linear-gradient(135deg, var(--forest-2), var(--forest));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: #fff; font-size: .82rem; font-weight: 600;
}
.video-thumb svg.lucide { font-size: 1.8rem; color: var(--gold-bright); }
.manage-actions {
    position: absolute; inset-inline: 0; bottom: 0;
    display: flex; gap: 6px; justify-content: flex-end;
    padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.manage-body { display: flex; gap: 8px; padding: 10px; background: #fff; }
.rename-form { display: flex; gap: 6px; flex: 1; }
.rename-form .inp { flex: 1; }

/* ورود */
.login-body {
    min-height: 100vh; display: grid; place-items: center;
    background:
        radial-gradient(800px 500px at 80% -10%, var(--acc-soft), transparent 60%),
        radial-gradient(620px 440px at 0% 110%, var(--gold-soft), transparent 55%),
        var(--soft);
    padding: 24px;
}
.login-card {
    width: 100%; max-width: 430px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 40px 36px; box-shadow: var(--sh-sm);
}
.login-brand { justify-content: center; margin-bottom: 26px; }
.login-card h1 { font-size: 1.4rem; font-weight: 800; text-align: center; }
.login-sub { text-align: center; font-size: .9rem; color: var(--mut); margin: 8px 0 22px; }
.login-form { display: grid; gap: 15px; }
.login-back { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; font-size: .86rem; color: var(--mut); transition: color .3s; }
.login-back:hover { color: var(--ink); }

/* ========================= ریسپانسیو ========================= */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-media { max-width: 640px; }
    .fc-1 { inset-inline-start: 10px; }
    .fc-2 { inset-inline-end: 10px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .pano-band { grid-template-columns: 1fr; padding: 44px 34px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .pd-grid { grid-template-columns: 1fr; }
    .pd-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .gallery { grid-template-columns: 1fr; }
    .g-thumbs { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .manage-grid { grid-template-columns: repeat(3, 1fr); }
    .preview-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side {
        position: fixed; inset-inline: 0; top: 0; bottom: 0; z-index: 200;
        width: min(300px, 84vw); inset-inline-start: 0;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        height: 100dvh;
    }
    [dir="rtl"] .admin-side { transform: translateX(100%); }
    .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
    .admin-burger { display: inline-flex; }
    .admin-top h1 { font-size: 1.2rem; }
    .admin-main { padding: 18px 18px 50px; }
    .admin-user div { display: none; }

    .nav-links {
        position: fixed; top: var(--nav-h); inset-inline: 16px; z-index: 99;
        flex-direction: column; align-items: stretch;
        background: #fff; border: 1px solid var(--line); border-radius: 20px;
        padding: 12px; box-shadow: var(--sh);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 13px 18px; }
    .nav-burger { display: inline-flex; }
    .nav-phone span { display: none; }
    .nav-phone { padding: 12px; }
    .filter-bar { position: static; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
}

@media (max-width: 640px) {
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-card { padding: 20px 16px 16px; }
    .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .grid-3 { grid-template-columns: 1fr; }
    .pano, .pano-video { height: 400px; }
    .pv-tip { display: none; }
    .pd-side { grid-template-columns: 1fr; }
    .pd-price { min-width: 0; width: 100%; }
    .hero-badges { gap: 16px; }
    .search-row { flex-direction: column; }
    .search-row .field { min-height: 52px; }
    .search-row .btn { justify-content: center; min-height: 52px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat2 { padding: 20px 18px 18px; }
    .stat2-num { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-base { flex-direction: column; gap: 6px; text-align: center; }
    .manage-grid, .preview-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
    .deal-fields, #dealRent { grid-template-columns: 1fr; }
    .amen { grid-template-columns: 1fr; }
    .lb-btn { width: 44px; height: 44px; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; justify-content: center; }
}
