:root {
  color-scheme: dark;
}

/* The landing page has its own warmer, editorial visual language. */
.landing-header {
  height: 76px;
  border-bottom: 1px solid rgba(34, 43, 35, .09);
  background: rgba(248, 247, 242, .94);
  backdrop-filter: blur(14px);
}
.landing-header > div { height: 100%; padding-block: 0; }
.landing-header nav a { color: #62685f; }
.landing-header nav a:hover { color: #9a7047; }
.landing-mark {
  display: grid; width: 40px; height: 40px; place-items: center;
  border-radius: 12px; background: #F3F4F5; color: #001A57;
  font-size: 0; font-weight: 900; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 26, 87, 0.12);
}
.landing-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.landing-login {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #30483b; border-radius: 999px; padding: 10px 19px;
  background: #30483b; color: #fff; font-size: 13px; font-weight: 750;
  transition: background .2s ease, transform .2s ease;
}
.landing-login:hover { background: #24392e; transform: translateY(-1px); }
.landing-hero {
  overflow: hidden; padding: 130px max(24px, calc((100vw - 1240px) / 2)) 24px;
  background: #f8f7f2; color: #26352d;
}
.landing-hero__inner {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center;
  gap: clamp(36px, 7vw, 100px); max-width: 1240px; min-height: 520px; margin: 0 auto;
}
.landing-hero__copy { padding: 20px 0 48px; }
.landing-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #687568; font-size: 13px; font-weight: 700; }
.landing-eyebrow span { width: 26px; height: 1px; background: #ad8052; }
.landing-hero h1 { margin: 0; color: #26352d; font-size: clamp(46px, 6vw, 76px); font-weight: 850; line-height: 1.35; letter-spacing: -.055em; }
.landing-hero h1 em { color: #9b744f; font-style: normal; }
.landing-lead { max-width: 470px; margin: 22px 0 0; color: #62685f; font-size: 16px; line-height: 2.1; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.landing-primary { display: inline-flex; align-items: center; gap: 22px; border-radius: 999px; padding: 14px 22px; background: #30483b; color: white; font-weight: 750; transition: background .2s ease; }
.landing-primary:hover { background: #24392e; }
.landing-primary span { font-size: 20px; }
.landing-secondary { color: #526052; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #c5b9a5; text-underline-offset: 5px; }
.landing-note { margin: 24px 0 0; color: #85877e; font-size: 12px; }
.landing-hero__visual { position: relative; min-height: 440px; }
.landing-hero__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 220px 220px 18px 18px; object-fit: cover; object-position: center; }
.landing-photo-caption { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(248,247,242,.9); color: #39483c; font-size: 12px; font-weight: 700; backdrop-filter: blur(10px); }
.landing-photo-caption a { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #30483b; color: white; font-size: 18px; }
.landing-stamp { position: absolute; top: 48px; inset-inline-start: -34px; display: grid; width: 104px; height: 104px; align-content: center; border: 1px solid rgba(48,72,59,.2); border-radius: 50%; background: #f8f7f2; color: #687568; text-align: center; font-size: 11px; line-height: 1.6; transform: rotate(-8deg); }
.landing-stamp b { color: #9b744f; }
.landing-hero__foot { display: flex; justify-content: space-between; max-width: 1240px; margin: 32px auto 0; border-top: 1px solid rgba(34,43,35,.12); padding-top: 15px; color: #85877e; font-size: 11px; }
.landing-hero__foot b { padding: 0 7px; color: #ad8052; }
.landing-listings {
  padding: 104px max(24px, calc((100vw - 1240px) / 2)) 112px;
  background: #fffefa; color: #26352d;
}
.landing-section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 1240px; margin: 0 auto 38px; }
.landing-kicker { margin: 0 0 12px; color: #a0784e; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.landing-section-head h2 { margin: 0; color: #26352d; font-size: clamp(27px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.landing-section-head p:not(.landing-kicker) { margin: 12px 0 0; color: #74766e; font-size: 14px; line-height: 1.9; }
.landing-text-link, .landing-services__link { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; color: #30483b; font-size: 13px; font-weight: 800; }
.landing-text-link span, .landing-services__link span { font-size: 19px; transition: transform .2s ease; }
.landing-text-link:hover span, .landing-services__link:hover span { transform: translateX(-4px); }
.landing-listings__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1240px; margin: 0 auto; }
.landing-property-card { overflow: hidden; border: 1px solid #e9e6dc; border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow .25s ease, transform .25s ease; }
.landing-property-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(43,55,44,.1); }
.landing-property-card__image { position: relative; overflow: hidden; aspect-ratio: 1.42; background: #edece5; }
.landing-property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.landing-property-card__tag { position: absolute; top: 14px; inset-inline-start: 14px; border-radius: 999px; padding: 6px 11px; background: rgba(255,254,250,.94); color: #30483b; font-size: 11px; font-weight: 800; }
.landing-property-card__body { padding: 19px 20px 17px; }
.landing-property-card__body h3 { overflow: hidden; margin: 0; color: #26352d; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.landing-property-card__location { margin: 8px 0 0; color: #7a7b73; font-size: 12px; }
.landing-property-card__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 17px; border-top: 1px solid #eeece5; padding-top: 13px; }
.landing-property-card__bottom p { margin: 0; color: #8c6746; font-size: 15px; font-weight: 850; }
.landing-property-card__bottom span { color: #777a70; font-size: 11px; }
.landing-empty-listings { display: grid; justify-items: center; gap: 12px; max-width: 1240px; margin: 0 auto; border: 1px dashed #d8d4c8; border-radius: 12px; padding: 44px 20px; color: #71756b; text-align: center; }
.landing-empty-listings > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #f0efe8; color: #30483b; font-size: 24px; }
.landing-empty-listings p { margin: 0; font-size: 14px; }
.landing-empty-listings a { color: #30483b; font-size: 13px; font-weight: 800; }
.landing-services { padding: 100px max(24px, calc((100vw - 1240px) / 2)) 108px; background: #30483b; color: #f7f4eb; }
.landing-services__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 110px); max-width: 1240px; margin: 0 auto; }
.landing-services .landing-kicker { color: #d2b28a; }
.landing-services__intro h2 { max-width: 420px; margin: 0; color: #fffefa; font-size: clamp(30px, 3.5vw, 44px); font-weight: 800; line-height: 1.55; letter-spacing: -.035em; }
.landing-services__intro > p:not(.landing-kicker) { max-width: 400px; margin: 18px 0 26px; color: #d0d7ce; font-size: 14px; line-height: 2; }
.landing-services__link { color: #ead7b8; }
.landing-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.landing-service { display: flex; gap: 16px; border-top: 1px solid rgba(255,255,255,.18); padding: 22px 0 25px; }
.landing-service__icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgba(234,215,184,.45); border-radius: 50%; color: #ead7b8; }
.landing-service__copy { min-width: 0; }
.landing-service__index { display: block; margin-bottom: 8px; color: #d2b28a; font-size: 10px; }
.landing-service h3 { margin: 0; color: #fffefa; font-size: 16px; font-weight: 750; }
.landing-service p { margin: 9px 0 0; color: #d0d7ce; font-size: 12px; line-height: 1.9; }
.landing-cta { position: relative; overflow: hidden; background: #1d3027; }
.landing-cta > div:first-child { position: absolute; inset: 0; }
.landing-cta__image { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.landing-cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,42,33,.94), rgba(24,42,33,.74) 55%, rgba(24,42,33,.42)); }
.landing-cta__content { position: relative; max-width: 1240px; margin: 0 auto; padding: 88px 24px 96px; }
.landing-cta .landing-kicker { color: #ddc39e; }
.landing-cta__content h2 { margin: 0; color: white; font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.55; letter-spacing: -.035em; }
.landing-cta__content > p:not(.landing-kicker) { max-width: 520px; margin: 15px 0 26px; color: #e0e2dc; font-size: 14px; line-height: 2; }
.landing-cta__button { display: inline-flex; align-items: center; gap: 18px; border-radius: 999px; padding: 13px 20px; background: #e6d5b8; color: #26352d; font-size: 13px; font-weight: 850; }
.landing-cta__button span { font-size: 18px; }
.landing-footer { background: #f8f7f2; color: #72766d; }
.landing-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px; font-size: 11px; }
.landing-footer__brand { display: flex; align-items: center; gap: 10px; color: #30483b; font-size: 14px; font-weight: 850; }
.landing-footer__brand .landing-mark { width: 32px; height: 32px; font-size: 14px; }
.landing-footer__inner > p { margin: 0; }
.landing-footer__inner > div { display: flex; flex-wrap: wrap; gap: 18px; }
.landing-footer__inner > div a { color: #62685f; }
@media (max-width: 900px) {
  .landing-services__inner { grid-template-columns: 1fr; gap: 42px; }
  .landing-services__intro h2, .landing-services__intro > p:not(.landing-kicker) { max-width: 620px; }
}
@media (max-width: 767px) {
  .landing-header { height: 66px; }
  .landing-header > div { padding-inline: 16px; }
  .landing-header > div > a:last-child { padding: 9px 13px; font-size: 11px; }
  .landing-hero { padding: 100px 20px 20px; }
  .landing-hero__inner { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .landing-hero__copy { padding: 12px 0 0; }
  .landing-hero h1 { font-size: clamp(43px, 12vw, 60px); }
  .landing-lead { font-size: 14px; }
  .landing-hero__visual { min-height: 340px; }
  .landing-hero__visual > img { border-radius: 170px 170px 14px 14px; }
  .landing-stamp { top: 32px; inset-inline-start: -8px; width: 84px; height: 84px; font-size: 10px; }
  .landing-hero__foot { margin-top: 22px; font-size: 10px; }
  .landing-listings { padding: 68px 20px 74px; }
  .landing-section-head { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 26px; }
  .landing-section-head h2 { font-size: 28px; }
  .landing-listings__grid { grid-template-columns: 1fr; gap: 16px; }
  .landing-property-card__image { aspect-ratio: 1.55; }
  .landing-services { padding: 70px 20px; }
  .landing-services__inner { gap: 34px; }
  .landing-services__grid { grid-template-columns: 1fr; }
  .landing-service { padding: 18px 0; }
  .landing-cta__content { padding: 70px 20px 76px; }
  .landing-footer__inner { align-items: flex-start; flex-direction: column; padding: 25px 20px; }
  .landing-footer__inner > div { gap: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kenburns img, .hero-rise, .cta-pulse { animation: none !important; opacity: 1; transform: none; }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.hero-kenburns img {
  animation: kenburns 18s ease-out forwards;
  transform-origin: center center;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-rise-delay-1 { animation-delay: 0.12s; }
.hero-rise-delay-2 { animation-delay: 0.24s; }
.hero-rise-delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-pulse {
  animation: pulse-soft 2.8s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 165, 116, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(196, 165, 116, 0); }
}

body.modal-open {
  overflow: hidden;
}

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.property-modal[hidden] {
  display: none !important;
}

.property-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.property-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 100dvh;
  margin: auto;
  overflow: auto;
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .property-modal {
    padding: 1.5rem;
  }
  .property-modal__dialog {
    max-height: calc(100dvh - 3rem);
    border-radius: 1.5rem;
  }
}

.property-modal__close {
  position: sticky;
  top: 0.75rem;
  float: left;
  margin: 0.75rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 16, 23, 0.85);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 16, 23, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.property-modal .detail-sticky-bar {
  position: sticky;
  bottom: 0;
}

.sticky-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #141b26;
  color: #e6d5b8;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sticky-call-btn {
  flex: 1;
  display: grid;
  place-items: center;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #c4a574;
  color: #0b1017;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Search map (Divar-like split) */
.search-map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141b26;
  min-height: 420px;
  height: min(70vh, 720px);
}

#search-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #1a2230;
}

.map-pin-wrap {
  background: transparent !important;
  border: none !important;
}

.map-price-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 140px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  background: #0b1017;
  color: #e6d5b8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.15s ease, background 0.15s ease;
}

.map-price-pin--urgent {
  border-color: #ef4444;
  color: #fecaca;
}

.map-pin-wrap.is-hot .map-price-pin,
.map-price-pin.is-hot,
.map-price-pin:hover {
  background: #c4a574;
  color: #0b1017;
  transform: translateY(-3px) scale(1.04);
}

.ring-map-active {
  outline: 2px solid rgba(196, 165, 116, 0.7);
  outline-offset: 2px;
}

.search-mobile-tabs {
  display: none;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-mobile-tabs button {
  flex: 1;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141b26;
  color: #8b93a3;
  padding: 0.7rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.search-mobile-tabs button.is-active {
  background: #c4a574;
  color: #0b1017;
  border-color: transparent;
}

@media (max-width: 1023px) {
  .search-mobile-tabs {
    display: flex;
  }

  .search-split [data-search-pane].is-hidden-mobile {
    display: none !important;
  }

  .search-map-shell {
    height: 65vh;
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .search-split [data-search-pane].is-hidden-mobile {
    display: block !important;
  }
}

@media (min-width: 1280px) {
  .search-split [data-search-pane="map"] {
    display: block !important;
  }
}

/* Leaflet / MapLibre dark tweaks */
.leaflet-container,
.maplibregl-map {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: #1a2230;
}

.leaflet-control-attribution,
.maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(11, 16, 23, 0.75) !important;
  color: #8b93a3 !important;
}

.maplibregl-ctrl-attrib a {
  color: #c4a574 !important;
}

.maplibregl-ctrl-group {
  background: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.maplibregl-ctrl-group button {
  filter: invert(1);
}

.property-map-frame {
  position: relative;
}

.property-fa-map {
  width: 100%;
  height: 14rem;
  background: #e8eaed;
}

.property-area-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(15rem, 68%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid #a62626;
  border-radius: 50%;
  background: rgba(166, 38, 38, 0.22);
  pointer-events: none;
}

@media (min-width: 768px) {
  .property-fa-map {
    height: 18rem;
  }
}

/* Lightweight property marketplace landing page */
body:has(.market-header) {
  color-scheme: light;
  background: #fff;
  color: #292d32;
  font-family: "iransansdn", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.font-sans { font-family: "iransansdn", Tahoma, Arial, sans-serif; }
body:has(.market-header) a { text-decoration: none; }
.market-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #eceef0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.market-header__inner { display: flex; align-items: center; gap: 36px; width: min(1180px, calc(100% - 48px)); min-height: 68px; margin: 0 auto; }
.market-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #292d32; font-size: 17px; font-weight: 800; }
.market-brand__mark {
  display: grid; width: 36px; height: 36px; place-items: center;
  border-radius: 11px; background: #F3F4F5; color: #001A57; font-size: 0; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 26, 87, 0.12);
}
.market-brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.market-nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.market-nav a, .market-account { color: #59616a; font-size: 13px; font-weight: 600; transition: color .18s ease; }
.market-nav a:hover, .market-account:hover { color: #a62626; }
.market-header__actions { display: flex; align-items: center; gap: 18px; }
.market-post { display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 10px 15px; background: #a62626; color: white; font-size: 13px; font-weight: 750; transition: background .18s ease; }
.market-post:hover { background: #8e1f1f; }
.market-post span { font-size: 17px; line-height: 1; }
.market-main { overflow: hidden; }
.market-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 88px); width: min(1180px, calc(100% - 48px)); min-height: 430px; margin: 0 auto; padding: 52px 0 40px; }
.market-hero__inner { min-width: 0; }
.market-eyebrow, .market-kicker { margin: 0 0 13px; color: #a62626; font-size: 12px; font-weight: 750; }
.market-eyebrow { display: flex; align-items: center; gap: 8px; }
.market-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #a62626; }
.market-hero h1 { margin: 0; color: #252a30; font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.market-hero h1 span { color: #a62626; }
.market-hero__lead { margin: 12px 0 25px; color: #6c747d; font-size: 15px; line-height: 1.9; }
.market-search { display: flex; align-items: center; gap: 10px; min-height: 62px; border: 1px solid #e1e4e8; border-radius: 12px; padding: 7px 8px 7px 9px; background: #fff; box-shadow: 0 8px 24px rgba(35,43,52,.07); }
.market-search:focus-within { border-color: #c97a7a; box-shadow: 0 0 0 3px rgba(166,38,38,.08); }
.market-search__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #929aa3; }
.market-search__icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.market-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #292d32; font: inherit; font-size: 13px; }
.market-search input::placeholder { color: #a0a6ad; }
.market-search button { min-height: 44px; flex: 0 0 auto; border: 0; border-radius: 8px; padding: 0 19px; background: #a62626; color: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.market-search button:hover { background: #8e1f1f; }
.market-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; color: #929aa3; font-size: 11px; }
.market-quick-links a { border: 1px solid #e8eaed; border-radius: 999px; padding: 5px 10px; color: #59616a; transition: border-color .18s ease, color .18s ease; }
.market-quick-links a:hover { border-color: #d7aaaa; color: #a62626; }
.market-hero__art { position: relative; height: 310px; overflow: hidden; border-radius: 18px; background: #f0eee9; }
.market-hero__art::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,rgba(17,25,24,.48),transparent); content: ""; }
.market-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.market-hero__art-label { position: absolute; z-index: 1; right: 16px; bottom: 15px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 700; }
.market-hero__art-label span { width: 7px; height: 7px; border-radius: 50%; background: #f2c66d; }
.market-categories { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; width: min(1180px, calc(100% - 48px)); margin: 2px auto 66px; }
.market-categories > a { display: flex; align-items: center; gap: 12px; min-height: 68px; border: 1px solid #eceef0; border-radius: 11px; padding: 11px 14px; color: #444c55; font-size: 12px; font-weight: 700; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.market-categories > a:hover { transform: translateY(-2px); border-color: #e1c4c4; background: #fffafa; }
.market-category__icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; font-size: 25px; line-height: 1; }
.market-category__icon--home { background: #f9eeee; color: #aa4848; }
.market-category__icon--villa { background: #f1f4ea; color: #71874c; }
.market-category__icon--land { background: #f9f2e8; color: #b28349; }
.market-category__icon--office { background: #eef2f7; color: #557797; }
.market-category__icon--all { background: #f2eff8; color: #8062a4; }
.market-listings { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 4px 0 76px; }
.market-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.market-section-head .market-kicker { margin-bottom: 7px; }
.market-section-head h2, .market-agency h2 { margin: 0; color: #292d32; font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.market-section-head > div > p:last-child { margin: 7px 0 0; color: #818991; font-size: 12px; line-height: 1.8; }
.market-all-link { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #a62626; font-size: 12px; font-weight: 750; }
.market-all-link span { font-size: 17px; transition: transform .18s ease; }
.market-all-link:hover span { transform: translateX(-3px); }
.market-listings__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.market-property-card { overflow: hidden; border: 1px solid #e8eaed; border-radius: 12px; background: #fff; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
a.market-property-card { display: block; color: inherit; text-decoration: none; }
.market-property-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,45,53,.09); }
.market-property-card:focus-visible, .market-categories a:focus-visible, .market-header a:focus-visible { outline: 3px solid rgba(166,38,38,.32); outline-offset: 3px; }
.market-property-card__image { position: relative; overflow: hidden; aspect-ratio: 1.55; background: #f1f2f3; }
.market-property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.market-property-card:hover .market-property-card__image img { transform: scale(1.035); }
.market-property-card__tag { position: absolute; top: 12px; right: 12px; border-radius: 6px; padding: 5px 9px; background: rgba(255,255,255,.94); color: #4c555e; font-size: 10px; font-weight: 700; }
.photo-decorative { position: absolute; z-index: 2; right: 10px; bottom: 10px; border-radius: 8px; padding: 4px 8px; background: rgba(120, 53, 15, .92); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.4; }
.photo-decorative--thumb { right: 2px; bottom: 2px; padding: 1px 4px; font-size: 8px; border-radius: 4px; }
.market-property-card__body { padding: 14px 15px 13px; }
.market-property-card__body h3 { overflow: hidden; margin: 0; color: #30363c; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.market-property-card__location { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; color: #8a929a; font-size: 11px; }
.market-property-card__location span { color: #a62626; font-size: 15px; }
.market-property-card__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 13px; border-top: 1px solid #eff0f2; padding-top: 11px; }
.market-property-card__bottom p { margin: 0; color: #383f46; font-size: 13px; font-weight: 800; }
.market-property-card__bottom span { color: #89919a; font-size: 10px; }
.market-empty-listings { display: grid; justify-items: center; gap: 10px; border: 1px dashed #d9dde1; border-radius: 12px; padding: 36px 18px; color: #7f8790; text-align: center; }
.market-empty-listings > span { color: #a62626; font-size: 25px; }
.market-empty-listings p { margin: 0; font-size: 13px; }
.market-empty-listings a { color: #a62626; font-size: 12px; font-weight: 700; }
.market-agency { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 50px; border-top: 1px solid #eff0f2; background: #fafafa; padding: 50px max(24px,calc((100% - 1180px)/2)) 54px; }
.market-agency__intro > p:not(.market-kicker) { max-width: 460px; margin: 10px 0 18px; color: #747d86; font-size: 13px; line-height: 1.9; }
.market-agency__link { display: inline-flex; align-items: center; gap: 8px; color: #a62626; font-size: 12px; font-weight: 750; }
.market-agency__features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 24px; }
.market-agency__feature { display: flex; align-items: flex-start; gap: 10px; }
.market-agency__feature > span { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #f8eaea; color: #a62626; font-size: 12px; font-weight: 800; }
.market-agency__feature h3 { margin: 1px 0 4px; color: #3d444b; font-size: 12px; font-weight: 750; }
.market-agency__feature p { margin: 0; color: #828a92; font-size: 10px; line-height: 1.8; }
.market-seo { border-top: 1px solid #eff0f2; background: #fff; padding: 48px max(24px, calc((100% - 1180px) / 2)) 52px; }
.market-seo__inner { max-width: 760px; }
.market-seo__prose { margin-top: 14px; color: #5c656e; font-size: 14px; line-height: 2; }
.market-seo__prose p { margin: 0 0 16px; }
.market-seo__prose h3 { margin: 22px 0 8px; color: #292d32; font-size: 17px; font-weight: 800; }
.market-seo__prose a { color: #a62626; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.market-seo__prose strong { color: #3d444b; font-weight: 800; }
.market-seo__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.market-seo__btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 11px 18px; background: #a62626; color: #fff;
  font-size: 13px; font-weight: 750;
}
.market-seo__btn:hover { background: #8d1f1f; color: #fff; }
.market-seo__btn--ghost { background: transparent; border: 1px solid #d7d8dc; color: #3d444b; }
.market-seo__btn--ghost:hover { border-color: #a62626; color: #a62626; background: #fff; }
.market-seo__cta > a:not(.market-seo__btn) { color: #69727b; font-size: 12px; font-weight: 700; }
.market-seo__cta > a:not(.market-seo__btn):hover { color: #a62626; }
.market-faq { border-top: 1px solid #eff0f2; background: #fafafa; padding: 48px max(24px, calc((100% - 1180px) / 2)) 56px; }
.market-faq__inner { max-width: 760px; }
.market-faq__lead { margin: 8px 0 0; color: #747d86; font-size: 13px; line-height: 1.8; }
.market-faq__list { display: grid; gap: 10px; margin-top: 22px; }
.market-faq__item {
  border: 1px solid #e8eaed; border-radius: 14px; background: #fff;
  padding: 0 16px; overflow: hidden;
}
.market-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none; padding: 14px 0; color: #292d32;
}
.market-faq__item summary::-webkit-details-marker { display: none; }
.market-faq__item summary h3 { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.7; }
.market-faq__item summary::after {
  content: "+"; flex: 0 0 auto; color: #a62626; font-size: 18px; font-weight: 700; line-height: 1;
}
.market-faq__item[open] summary::after { content: "−"; }
.market-faq__item > p {
  margin: 0; padding: 0 0 16px; color: #5c656e; font-size: 13px; line-height: 2;
  border-top: 1px solid #f0f1f3; padding-top: 12px;
}
.market-footer { border-top: 1px solid #eceef0; background: #fff; }
.market-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 48px)); min-height: 78px; margin: 0 auto; }
.market-footer__inner .market-brand { font-size: 13px; }
.market-footer__inner .market-brand__mark { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
.market-footer__inner > p { margin: 0; color: #8b929a; font-size: 10px; }
.market-footer__inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.market-footer__inner nav a { color: #69727b; font-size: 10px; }
.market-footer__inner nav a:hover { color: #a62626; }
.market-footer__inner nav img { display: block; width: auto; height: 44px; object-fit: contain; }
@media (max-width: 980px) {
  .market-nav { gap: 15px; }
  .market-header__inner { gap: 22px; }
  .market-categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-agency { gap: 30px; }
}
@media (max-width: 760px) {
  .market-header__inner { width: calc(100% - 32px); min-height: 60px; justify-content: space-between; gap: 10px; }
  .market-brand { gap: 7px; font-size: 15px; }
  .market-brand__mark { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
  .market-nav { display: none; }
  .market-header__actions { gap: 11px; }
  .market-account { font-size: 12px; }
  .market-post { gap: 5px; border-radius: 8px; padding: 9px 11px; font-size: 11px; }
  .market-hero { grid-template-columns: 1fr; gap: 20px; width: calc(100% - 32px); min-height: 0; padding: 34px 0 22px; }
  .market-hero h1 { font-size: clamp(32px,8vw,43px); }
  .market-hero__lead { margin: 9px 0 18px; font-size: 13px; }
  .market-search { min-height: 56px; gap: 5px; padding: 6px; }
  .market-search input { font-size: 12px; }
  .market-search button { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .market-hero__art { grid-row: 2; height: clamp(175px,48vw,260px); border-radius: 12px; }
  .market-quick-links { margin-top: 12px; }
  .market-categories { display: flex; overflow-x: auto; gap: 9px; width: calc(100% - 32px); margin: 0 auto 46px; padding: 0 0 6px; scrollbar-width: thin; }
  .market-categories > a { flex: 0 0 142px; min-height: 62px; gap: 9px; padding: 9px; font-size: 11px; }
  .market-category__icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 22px; }
  .market-listings { width: calc(100% - 32px); padding-bottom: 48px; }
  .market-section-head { align-items: flex-start; margin-bottom: 17px; }
  .market-section-head h2 { font-size: 22px; }
  .market-section-head > div > p:last-child { max-width: 255px; font-size: 11px; }
  .market-all-link { gap: 4px; margin-top: 22px; font-size: 10px; }
  .market-listings__grid { grid-template-columns: 1fr; gap: 12px; }
  .market-property-card { display: grid; grid-template-columns: 38% minmax(0,1fr); min-height: 130px; }
  .market-property-card__image { height: 100%; min-height: 130px; aspect-ratio: auto; }
  .market-property-card__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 11px 12px; }
  .market-property-card__body h3 { font-size: 12px; }
  .market-property-card__location { overflow: hidden; font-size: 10px; white-space: nowrap; }
  .market-property-card__bottom { align-items: flex-start; flex-direction: column; gap: 5px; margin-top: 9px; padding-top: 8px; }
  .market-property-card__bottom p { font-size: 11px; }
  .market-property-card__bottom span { font-size: 9px; }
  .market-property-card__tag { top: 8px; right: 8px; padding: 4px 7px; font-size: 9px; }
  .market-seo { padding: 34px 16px; }
  .market-seo__prose { font-size: 13px; }
  .market-seo__prose h3 { font-size: 15px; }
  .market-faq { padding: 34px 16px 40px; }
  .market-faq__item summary h3 { font-size: 13px; }
  .market-agency { grid-template-columns: 1fr; gap: 22px; padding: 34px 16px; }
  .market-agency__features { grid-template-columns: 1fr; }
  .market-agency h2 { font-size: 22px; }
  .market-agency__features { gap: 14px; }
  .market-footer__inner { align-items: flex-start; flex-direction: column; gap: 13px; width: calc(100% - 32px); padding: 20px 0; }
  .market-footer__inner nav { gap: 10px 14px; }
}
@media (max-width: 380px) {
  .market-account { display: none; }
  .market-agency__features { grid-template-columns: 1fr; }
  .market-section-head { flex-direction: column; gap: 9px; }
  .market-all-link { margin-top: 0; }
}

/* Carry the marketplace palette through search, account, agency, and pricing pages. */
body:not(:has(.market-header)) {
  color-scheme: light;
  background: #f7f8f9;
  color: #30363c;
}
body:not(:has(.market-header)) .bg-ink { background-color: #f7f8f9 !important; }
body:not(:has(.market-header)) .bg-ink-soft { background-color: #fff !important; }
body:not(:has(.market-header)) [class~="bg-ink/85"] { background-color: rgba(255,255,255,.96) !important; }
body:not(:has(.market-header)) [class~="bg-ink/40"] { background-color: #f5f6f7 !important; }
body:not(:has(.market-header)) [class~="bg-ink/80"] { background-color: rgba(255,255,255,.93) !important; }
body:not(:has(.market-header)) [class*="from-ink"] {
  background-image: linear-gradient(to left,#fff 0%,rgba(255,255,255,.88) 58%,rgba(255,255,255,.68) 100%) !important;
}
body:not(:has(.market-header)) [class~="bg-white/5"],
body:not(:has(.market-header)) [class~="bg-white/10"] { background-color: #f3f4f5 !important; }
body:not(:has(.market-header)) [class*="border-white/"] { border-color: #e5e7eb !important; }
body:not(:has(.market-header)) [class*="text-white/"] { color: #77818a !important; }
body:not(:has(.market-header)) .text-white { color: #292f35 !important; }
body:not(:has(.market-header)) .text-stone,
body:not(:has(.market-header)) [class*="text-stone/"] { color: #59636d !important; }
body:not(:has(.market-header)) .text-ink-muted { color: #7b858e !important; }
body:not(:has(.market-header)) .text-brass,
body:not(:has(.market-header)) .text-brass-soft { color: #a62626 !important; }
body:not(:has(.market-header)) .text-red-200,
body:not(:has(.market-header)) .text-red-300 { color: #a62626 !important; }
body:not(:has(.market-header)) [class~="bg-red-600"] { background-color: #fae9e9 !important; }
body:not(:has(.market-header)) [class~="bg-brass/10"] { background-color: #fbf0f0 !important; }
body:not(:has(.market-header)) [class~="bg-brass"] { background-color: #a62626 !important; }
body:not(:has(.market-header)) [class~="bg-brass-deep"] { background-color: #8e1f1f !important; }
body:not(:has(.market-header)) [class*="from-brass"] {
  background-image: linear-gradient(135deg,#b43636,#8e1f1f) !important;
  color: #fff !important;
}
body:not(:has(.market-header)) [class~="bg-brass"][class~="text-ink"],
body:not(:has(.market-header)) [class~="bg-brass-soft"][class~="text-ink"] { color: #fff !important; }
body:not(:has(.market-header)) [class*="border-brass"] { border-color: #e8bebe !important; }
body:not(:has(.market-header)) [class*="ring-brass"] { --tw-ring-color: rgba(166,38,38,.32) !important; }
body:not(:has(.market-header)) input,
body:not(:has(.market-header)) select,
body:not(:has(.market-header)) textarea { accent-color: #a62626; }
body:not(:has(.market-header)) [class*="hover:bg-brass-soft"]:hover { background-color: #8e1f1f !important; }
body:not(:has(.market-header)) [class*="hover:text-brass-soft"]:hover { color: #8e1f1f !important; }
body:not(:has(.market-header)) [class*="hover:border-brass"]:hover { border-color: #c97a7a !important; }
body:not(:has(.market-header)) [class*="shadow-glow"] { box-shadow: 0 8px 24px rgba(45,52,59,.10) !important; }
body:not(:has(.market-header)) .property-modal__dialog {
  border-color: #e5e7eb;
  background: #fff;
  color: #30363c;
  box-shadow: 0 24px 70px rgba(30,38,46,.2);
}
body:not(:has(.market-header)) .property-modal__close {
  border-color: #e2e5e8;
  background: rgba(255,255,255,.94);
  color: #30363c;
}
body:not(:has(.market-header)) .detail-sticky-bar {
  border-color: #e5e7eb;
  background: rgba(255,255,255,.96);
}
body:not(:has(.market-header)) .sticky-icon-btn {
  border-color: #e2e5e8;
  background: #fff;
  color: #a62626;
}

/* Property preview modal for the light marketplace theme. */
#property-modal {
  align-items: center;
  padding: clamp(14px, 3vh, 30px);
}

#property-modal .property-modal__backdrop {
  background: rgba(26, 32, 39, .58);
  backdrop-filter: blur(7px);
}

#property-modal .property-modal__dialog {
  width: min(1080px, 100%);
  max-height: min(820px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid #e6e8eb;
  border-radius: 20px;
  background: #fff;
  color: #30363c;
  box-shadow: 0 28px 90px rgba(15, 23, 32, .28);
  animation: property-modal-enter .22s cubic-bezier(.2,.75,.25,1) both;
}

#property-modal .property-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  float: none;
  margin: 0;
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.96);
  color: #343b42;
  box-shadow: 0 3px 14px rgba(20,28,36,.16);
  backdrop-filter: blur(8px);
}

#property-modal .property-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: start;
  padding-bottom: 0;
}

#property-modal .property-detail > .gallery {
  position: sticky;
  top: 0;
  min-width: 0;
  background: #f1f2f3;
}

#property-modal .property-detail > .gallery > .relative {
  aspect-ratio: 4 / 3;
  background: #f1f2f3;
}

#property-modal .property-detail > .gallery .gallery-nav {
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(27,34,41,.58);
  color: #fff;
}

#property-modal .property-detail > .gallery .gallery-thumb {
  border-color: transparent;
}

#property-modal .property-detail > .gallery .gallery-thumb.border-brass {
  border-color: #a62626;
}

#property-modal .property-detail > .space-y-6 {
  min-width: 0;
  padding: 30px 28px 26px;
}

#property-modal .property-detail > .space-y-6 h2,
#property-modal .property-detail > .space-y-6 h3,
#property-modal .property-detail > .space-y-6 .text-white {
  color: #292f35 !important;
}

#property-modal .property-detail > .space-y-6 .text-stone,
#property-modal .property-detail > .space-y-6 [class*="text-stone/"] {
  color: #59636d !important;
}

#property-modal .property-detail > .space-y-6 .text-ink-muted {
  color: #7b858e !important;
}

#property-modal .property-detail > .space-y-6 .text-brass,
#property-modal .property-detail > .space-y-6 .text-brass-soft {
  color: #a62626 !important;
}

#property-modal .property-detail > .space-y-6 .bg-ink {
  background: #f7f8f9 !important;
}

#property-modal .property-detail > .space-y-6 .bg-ink-soft {
  background: #fafafa !important;
}

#property-modal .property-detail > .space-y-6 [class*="border-white/"],
#property-modal .property-detail > .space-y-6 [class*="divide-white/"] {
  border-color: #e8eaed !important;
}

#property-modal .property-detail > .space-y-6 .sticky-icon-btn {
  border-color: #e2e5e8;
  background: #fff;
  color: #a62626;
}

#property-modal .property-detail > .space-y-6 .sticky-call-btn {
  background: #a62626;
  color: #fff;
}

@keyframes property-modal-enter {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  #property-modal {
    align-items: flex-end;
    padding: 0;
  }

  #property-modal .property-modal__dialog {
    width: 100%;
    max-height: 94dvh;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  #property-modal .property-detail {
    display: block;
  }

  #property-modal .property-detail > .gallery {
    position: relative;
  }

  #property-modal .property-detail > .gallery > .relative {
    aspect-ratio: 1.35 / 1;
  }

  #property-modal .property-detail > .space-y-6 {
    padding: 22px 18px calc(78px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  #property-modal .property-modal__dialog { animation: none; }
}

/* Dedicated, crawlable "Why Maskan Pro" landing page. */
.why-page { padding-bottom: 72px; }
.why-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  align-items: center;
  gap: 40px;
  margin: 28px auto 34px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #061b4b, #123d76 68%, #a62626);
  color: #fff;
}
.why-hero .market-kicker { color: #f2c7c7; }
.why-hero h1 { max-width: 780px; margin: 12px 0 18px; color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.5; }
.why-hero__lead { max-width: 760px; color: rgba(255,255,255,.86); font-size: 1.08rem; line-height: 2.1; }
.why-hero__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.why-hero__note { margin-top:20px; color:rgba(255,255,255,.7); font-size:.9rem; }
.why-hero__visual { display:grid; place-content:center; gap:12px; min-height:245px; padding:28px; border:1px solid rgba(255,255,255,.25); border-radius:24px; background:rgba(255,255,255,.09); text-align:center; }
.why-hero__visual span { color:rgba(255,255,255,.76); }
.why-hero__visual b { color:#fff; font-size:1.55rem; }
.why-toc { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0 auto 58px; }
.why-toc a { padding:10px 16px; border:1px solid #e0e4e9; border-radius:999px; background:#fff; color:#23354b; text-decoration:none; }
.why-toc a:hover { border-color:#a62626; color:#a62626; }
.why-intro,.why-feature,.why-publish,.why-coverage,.why-steps,.why-final-cta { max-width:980px; margin:0 auto 58px; }
.why-intro h2,.why-feature h2,.why-publish h2,.why-coverage h2,.why-steps h2,.why-final-cta h2 { margin:8px 0 16px; color:#172a43; font-size:clamp(1.5rem,2.7vw,2.2rem); line-height:1.65; }
.why-intro p:not(.market-kicker),.why-feature p:not(.market-kicker),.why-publish p:not(.market-kicker),.why-coverage p,.why-final-cta p { color:#526174; line-height:2.15; }
.why-feature { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr); gap:30px; align-items:center; padding:30px; border:1px solid #e7eaf0; border-radius:22px; background:#fff; }
.why-feature--alt { background:#f7f8fb; }
.why-feature ul { margin:0; padding:22px 42px 22px 18px; border-radius:16px; background:#f4f6f9; color:#33445b; line-height:2.25; }
.why-publish { padding:clamp(26px,5vw,48px); border-radius:22px; background:#f3f5f9; }
.why-publish .market-seo__btn { display:inline-flex; margin-top:12px; }
.why-coverage { padding:26px 30px; border-right:4px solid #a62626; }
.why-coverage>a { display:inline-block; margin-top:10px; color:#9e2626; font-weight:700; }
.why-steps ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; padding:0; list-style:none; counter-reset:why-step; }
.why-steps li { display:grid; gap:5px; padding:20px; border:1px solid #e7eaf0; border-radius:16px; background:#fff; counter-increment:why-step; }
.why-steps li::before { content:counter(why-step); color:#a62626; font-size:1.2rem; font-weight:800; }
.why-steps li b { color:#1e3048; }
.why-steps li span { color:#667386; line-height:1.9; }
.why-final-cta { padding:36px; border-radius:22px; background:#071b49; text-align:center; }
.why-final-cta h2,.why-final-cta p { color:#fff; }
.why-final-cta p { margin-bottom:22px; color:rgba(255,255,255,.78); }
.why-final-cta .market-seo__btn { display:inline-flex; margin:5px; }
@media(max-width:760px) {
  .why-hero { grid-template-columns:1fr; gap:24px; border-radius:20px; }
  .why-hero__visual { min-height:150px; }
  .why-toc { justify-content:flex-start; margin-bottom:38px; }
  .why-feature { grid-template-columns:1fr; padding:22px; }
  .why-steps ol { grid-template-columns:1fr; }
  .why-final-cta { padding:26px 18px; }
}
.why-hero__visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.why-hero__video-wrapper {
    width: 100%;
    max-width: 500px; /* یا مقدار دلخواه متناسب با گرید شما */
    border-radius: 12px;
    overflow: hidden;
}

.story-rail { margin: 28px auto 8px; max-width: 1120px; padding: 0 16px; }
.story-rail--property { margin: 0 0 16px; padding: 0; max-width: none; }
.story-rail__head { margin-bottom: 12px; }
.story-rail__head h2 { margin: 0; font-size: 1.15rem; font-weight: 900; color: #0f1f3d; }
.story-rail__head p { margin: 4px 0 0; font-size: .82rem; color: #667386; }
.story-rail__track { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.story-ring { flex: 0 0 auto; width: 78px; border: 0; background: transparent; cursor: pointer; text-align: center; padding: 0; }
.story-ring__avatar {
  display: block; width: 68px; height: 68px; margin: 0 auto; border-radius: 999px; padding: 3px;
  background: linear-gradient(135deg, #f59e0b, #ef4444 45%, #7c3aed);
  overflow: hidden;
}
.story-ring__avatar img,
.story-ring__avatar video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 999px; border: 2px solid #fff; background: #e5e7eb;
}
.story-ring__label {
  display: block; margin-top: 6px; font-size: .68rem; font-weight: 700; color: #334155;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.story-viewer {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(2, 8, 23, .86); padding: 16px;
}
.story-viewer[hidden] { display: none !important; }
.story-viewer__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(420px, 100%); max-height: min(900px, 94vh);
  background: #0b1220; border-radius: 22px; overflow: hidden; color: #fff;
}
.story-viewer__media {
  flex: 1 1 auto; min-height: 0; aspect-ratio: auto;
  background: #000; display: grid; place-items: center;
}
.story-viewer__media img,
.story-viewer__media video { width: 100%; height: 100%; max-height: min(68vh, 640px); object-fit: contain; background: #000; }
.story-viewer__meta {
  flex: 0 0 auto; padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(11,18,32,.92), #0b1220);
  border-top: 1px solid rgba(255,255,255,.08);
}
.story-viewer__title { margin: 0; font-size: .95rem; font-weight: 900; }
.story-viewer__caption {
  margin: 6px 0 12px; font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.84);
  white-space: pre-wrap; word-break: break-word;
}
.story-viewer__caption:empty { display: none; margin: 0; }
.story-viewer__link {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  border-radius: 12px; background: #fff; color: #0f1f3d; font-size: .82rem; font-weight: 800;
  padding: 11px 14px; text-decoration: none;
}
.story-viewer__link[hidden] { display: none !important; }
.story-viewer__close {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; cursor: pointer;
}
.story-viewer__nav {
  position: absolute; top: 42%; transform: translateY(-50%); width: 36px; height: 56px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer;
}
.story-viewer__nav--prev { right: 8px; }
.story-viewer__nav--next { left: 8px; }
body.story-viewer-open { overflow: hidden; }

@media (min-width: 900px) {
  .story-viewer__panel { width: min(460px, 92vw); }
  .story-viewer__media img,
  .story-viewer__media video { max-height: min(62vh, 560px); }
  .story-viewer__meta { padding: 16px 18px 20px; }
  .story-viewer__caption { font-size: .88rem; }
  .story-viewer__link { font-size: .86rem; padding: 12px 16px; }
}

/* Divar-style multi city / neighborhood picker */
.area-switcher {
  display: inline-flex; align-items: center; gap: 6px; max-width: 200px;
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 11px;
  background: #fff; color: #292f35; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .18s ease, color .18s ease;
}
.area-switcher:hover { border-color: #c97a7a; color: #a62626; }
.area-switcher__icon { display: grid; place-items: center; flex: 0 0 auto; color: #a62626; }
.area-switcher__label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start;
}
body:not(:has(.market-header)) .area-switcher {
  border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #f3f4f5;
}
body:not(:has(.market-header)) .area-switcher:hover { border-color: rgba(166,38,38,.55); color: #fff; }
body:not(:has(.market-header)) .area-switcher__icon { color: #f0b4b4; }

.area-modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: end center; padding: 0; }
.area-modal.is-open,
.area-modal:not([hidden]) { display: grid; }
.area-modal[hidden] { display: none !important; }
.area-modal__backdrop { position: absolute; inset: 0; background: rgba(20,24,28,.52); }
.area-modal__dialog {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(460px, 100%); max-height: min(88vh, 720px);
  border-radius: 18px 18px 0 0; background: #fff; color: #292f35;
  box-shadow: 0 -12px 48px rgba(20,24,28,.28); padding: 16px 16px 14px;
}
.area-modal__head { display: flex; align-items: start; gap: 10px; }
.area-modal__titles { flex: 1; min-width: 0; }
.area-modal__head h2 { margin: 0; font-size: 1.05rem; font-weight: 850; }
.area-modal__head p { margin: 5px 0 0; color: #6b7280; font-size: 12px; line-height: 1.7; }
.area-modal__back, .area-modal__close {
  border: 0; background: #f3f4f5; color: #4b5563; width: 34px; height: 34px;
  border-radius: 10px; font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.area-modal__search { margin-top: 12px; }
.area-modal__search input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; padding: 11px 12px;
  background: #f8f9fa; color: #292f35; font-size: 14px; outline: none;
}
.area-modal__search input:focus { border-color: #a62626; background: #fff; box-shadow: 0 0 0 3px rgba(166,38,38,.14); }
.area-selected {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 72px; overflow: auto;
}
.area-chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 5px 10px; background: #fbf0f0; color: #8e1f1f; font-size: 12px; font-weight: 700;
}
.area-chip button {
  border: 0; background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.area-list {
  flex: 1; min-height: 220px; margin-top: 10px; overflow: auto;
  border: 1px solid #eceef0; border-radius: 14px; background: #fff;
}
.area-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; border-bottom: 1px solid #f1f3f5; background: #fff; color: #292f35;
  padding: 13px 14px; text-align: start; font-size: 14px; font-weight: 650; cursor: pointer;
}
.area-row:last-child { border-bottom: 0; }
.area-row:hover { background: #fafafa; }
.area-row.is-active { background: #fbf0f0; color: #a62626; }
.area-row__check {
  display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto;
  border: 1.5px solid #cfd4da; border-radius: 6px; font-size: 12px; color: transparent;
}
.area-row.is-active .area-row__check { border-color: #a62626; background: #a62626; color: #fff; }
.area-row__meta { margin-right: auto; color: #9aa3ad; font-size: 12px; font-weight: 600; }
.area-row--nav .area-row__meta { color: #a62626; }
.area-group {
  padding: 8px 14px 4px; color: #8b949e; font-size: 11px; font-weight: 800; background: #f8f9fa;
  position: sticky; top: 0;
}
.area-empty { padding: 28px 16px; color: #8b949e; text-align: center; font-size: 13px; }
.area-modal__error { margin: 10px 0 0; color: #a62626; font-size: 12px; font-weight: 700; }
.area-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.area-modal__actions .area-btn {
  border: 0; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.area-btn--primary { background: #a62626; color: #fff; flex: 1 1 auto; }
.area-btn--primary:hover { background: #8e1f1f; }
.area-btn--ghost { background: #f3f4f5; color: #4b5563; }
.area-btn--ghost:hover { background: #e5e7eb; }
body.area-modal-open { overflow: hidden; }

@media (min-width: 760px) {
  .area-modal { place-items: center; padding: 16px; }
  .area-modal__dialog { border-radius: 18px; max-height: min(80vh, 680px); }
}
@media (max-width: 760px) {
  .area-switcher { max-width: 148px; padding: 7px 9px; font-size: 12px; }
}


