@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #0f5c52;
  --primary-dark: #0a3f38;
  --primary-light: #e6f3f1;
  --accent: #d99b3f;
  --text: #1e2b28;
  --text-muted: #5a6b67;
  --bg: #f7faf9;
  --card-bg: #ffffff;
  --border: #e2e8e6;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(15, 92, 82, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 92, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.brand .brand-icon {
  font-size: 1.6rem;
}

.brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- هیرو ---------- */
.hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary) 70%);
  color: #fff;
  padding: 60px 0 90px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.hero p {
  color: #d7ece8;
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}

.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  color: var(--text);
}

.search-box select,
.search-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.92rem;
  background: #fafcfc;
}

.search-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #c1852c;
}

/* ---------- استت‌ها ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -55px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.stat-card .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- بخش‌ها ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.section-head p {
  color: var(--text-muted);
  margin: 6px 0 0;
}

.section-head .see-all {
  color: var(--primary);
  font-weight: 700;
}

.bg-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- گرید آگهی‌ها ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.listing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cfe8e3, #8fc6bc);
}

.card-thumb.type-apartment { background: linear-gradient(135deg, #cfe8e3, #79b7ab); }
.card-thumb.type-villa { background: linear-gradient(135deg, #f3e3c8, #d9ab6a); }
.card-thumb.type-land { background: linear-gradient(135deg, #dcecc7, #9dc177); }
.card-thumb.type-shop { background: linear-gradient(135deg, #f6d9d0, #e08a6f); }
.card-thumb.type-office { background: linear-gradient(135deg, #d6e0f5, #7f9cd4); }
.card-thumb.type-old { background: linear-gradient(135deg, #e6dcd0, #b39c82); }
.card-thumb.type-garden { background: linear-gradient(135deg, #d3ecd6, #6fb384); }

.thumb-icon {
  font-size: 3rem;
  opacity: 0.85;
}

.thumb-icon.big {
  font-size: 5rem;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.badge-deal {
  position: absolute;
  top: 10px;
  right: 10px;
}

.badge-sale {
  background: var(--primary-dark);
}

.badge-rent {
  background: var(--accent);
}

.badge-stack {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.badge-featured {
  background: #c0392b;
}

.badge-urgent {
  background: #e67e22;
}

.badge-new {
  background: #2d9d68;
}

.badge-drop {
  background: #8e44ad;
}

/* ---------- دکمه علاقه‌مندی ---------- */
.fav-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn.active {
  color: #e0435c;
}

.fav-btn-lg {
  position: static;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: -4px 0 10px;
}

.nav-fav-link {
  position: relative;
}

.fav-count {
  position: absolute;
  top: -8px;
  left: -14px;
  background: #e0435c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.fav-count:empty,
.fav-count[data-zero="true"] {
  display: none;
}

/* ---------- مسیر دسته‌بندی (Breadcrumb) ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ---------- گالری تصاویر ---------- */
.detail-gallery {
  position: relative;
  margin-bottom: 26px;
}

.gallery-main {
  height: 320px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe8e3, #8fc6bc);
}

.gallery-main.type-apartment { background: linear-gradient(135deg, #cfe8e3, #79b7ab); }
.gallery-main.type-villa { background: linear-gradient(135deg, #f3e3c8, #d9ab6a); }
.gallery-main.type-land { background: linear-gradient(135deg, #dcecc7, #9dc177); }
.gallery-main.type-shop { background: linear-gradient(135deg, #f6d9d0, #e08a6f); }
.gallery-main.type-office { background: linear-gradient(135deg, #d6e0f5, #7f9cd4); }
.gallery-main.type-old { background: linear-gradient(135deg, #e6dcd0, #b39c82); }
.gallery-main.type-garden { background: linear-gradient(135deg, #d3ecd6, #6fb384); }

.gallery-caption {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev { right: 14px; }
.gallery-next { left: 14px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.gallery-dots button.active {
  background: var(--primary);
}

/* ---------- اشتراک‌گذاری ---------- */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- چک‌باکس‌های فیلتر ---------- */
.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.filter-checks input {
  width: auto;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.card-loc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.card-specs {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ---------- ویژگی‌ها ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- CTA ---------- */
.cta-banner {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.cta-banner p {
  margin: 0;
  color: #d7ece8;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #c1852c;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1eb857;
}

/* ---------- صفحه لیست ---------- */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.filters-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.filters-panel h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fafcfc;
}

.filter-row {
  display: flex;
  gap: 8px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-head select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
}

/* ---------- صفحه جزئیات ---------- */
.detail-body h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.detail-loc {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.detail-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table tr:nth-child(even) {
  background: #fafcfc;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 40%;
}

.detail-desc {
  color: var(--text);
  margin-bottom: 26px;
}

.detail-contact {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

/* ---------- صفحه ثبت آگهی / درباره ما ---------- */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fafcfc;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.success-box {
  background: #e7f7ee;
  border: 1px solid #b7e4c7;
  color: #1e6b3c;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ---------- پشتوانه و مجوزات ---------- */
.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.license-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.license-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.license-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.license-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.value-list li {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  margin-top: 0;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* ---------- فوتر ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #cfe6e1;
  padding: 50px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-grid ul a:hover {
  color: #fff;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #aecdc7;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: #aecdc7;
}

/* ---------- واکنش‌گرا ---------- */
/* ---------- ورود/حساب کاربری در هدر ---------- */
.auth-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.auth-slot a:hover {
  color: var(--primary);
}

.notif-bell {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px;
  position: relative;
  font-family: inherit;
}

.notif-panel {
  position: absolute;
  top: 130%;
  left: 0;
  width: 280px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
}

.notif-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-item:hover {
  background: var(--primary-light);
}

.notif-item.unread {
  background: #fff7ea;
  font-weight: 600;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- پنل حساب کاربری (چت، ویژه‌سازی، پیام ورود) ---------- */
.account-panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.account-panel h3 {
  margin-top: 0;
}

.account-panel .btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-inline-end: 8px;
}

.account-panel .btn-outline:hover {
  background: var(--primary-light);
}

/* ---------- چت آگهی ---------- */
.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 12px;
}

.chat-msg {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.chat-msg.theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
}

.chat-msg.mine {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}

.chat-loading {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
}

/* ---------- ویژه‌سازی آگهی ---------- */
.boost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.boost-pkg {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.boost-pkg-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.boost-pkg-price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.boost-active-note {
  background: #fff7ea;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* ---------- پیام وضعیت (نتیجه پرداخت و...) ---------- */
.banner {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.banner-success {
  background: #e5f7ee;
  color: #1f7a4d;
}

.banner-error {
  background: #fdeaea;
  color: #c0392b;
}

.auth-error {
  background: #fdeaea;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

/* ---------- صفحه حساب کاربری ---------- */
.account-section {
  margin-bottom: 32px;
}

.my-listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.my-listing-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .search-box {
    grid-template-columns: 1fr 1fr;
  }
  .search-box button {
    grid-column: 1 / -1;
    padding: 12px;
  }
  .stats,
  .features-grid,
  .listings-grid,
  .license-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-layout {
    grid-template-columns: 1fr;
  }
  .filters-panel {
    position: static;
  }
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .search-box {
    grid-template-columns: 1fr;
  }
  .stats,
  .features-grid,
  .listings-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .detail-contact {
    flex-direction: column;
  }
  .gallery-main {
    height: 220px;
  }
  .gallery-nav {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .boost-grid {
    grid-template-columns: 1fr;
  }
  .notif-panel {
    width: 240px;
    left: auto;
    right: -60px;
  }
}
