/* Vazirmatn: local static WOFF2 files. Root-relative URLs also work when CSS is served by asset.php. */

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 1. Design tokens and base */
:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #fff;
  --soft: #f0f2f4;
  --ink: #172437;
  --muted: #677584;
  --line: #e2e6ea;
  --gold: #ffbd2e;
  --gold-hover: #efa915;
  --gold-soft: #fff2d3;
  --navy: #142238;
  --shadow: 0 12px 34px #1826380b;
  --radius: 18px;
  --max: 1230px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #11151b;
  --surface: #1a212b;
  --soft: #222c39;
  --ink: #f0f3f7;
  --muted: #aab4c1;
  --line: #34404e;
  --gold-soft: #49391d;
  --shadow: 0 12px 34px #0003;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
}
h1,h2,h3,h4,p {
  margin: 0 0 .65em;
}
h1 {
  font-size: clamp(24px,3vw,39px);
  line-height: 1.55;
  letter-spacing: -.65px;
}
h2 {
  font-size: clamp(20px,2.3vw,29px);
  line-height: 1.65;
}
h3 {
  font-size: 17px;
}
h4 {
  font-size: 15px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,select,textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .6;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 3px solid #ffbd2eaa;
  outline-offset: 2px;
}
input,textarea,select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
  min-height: 44px;
  outline: none;
}
input[type=checkbox],input[type=radio] {
  width: 17px;
  min-height: 17px;
  accent-color: #e6a20a;
}
input[type=file] {
  padding: 9px;
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
button {
  border: 0;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
video {
  width: 100%;
  border-radius: 12px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none!important;
}
.container {
  width: min(var(--max),calc(100% - 48px));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.small,small {
  font-size: 13px;
}
.danger {
  color: #dc4949!important;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 16px;
  border-radius: 11px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: background .18s,transform .18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--gold);
  color: #172437;
}
.btn.primary:hover {
  background: var(--gold-hover);
}
.btn.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover,.btn.selected {
  background: var(--gold-soft);
  border-color: #e9aa2c;
}
.full {
  width: 100%;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--soft);
}
.text-link {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.text-link:hover {
  color: #bd8100;
}
.eyebrow {
  color: #a76c00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1px;
  display: block;
  margin-bottom: 6px;
}
.dark .eyebrow,[data-theme=dark] .eyebrow {
  color: var(--gold);
}
.section {
  padding: 64px 0;
}
.section.compact {
  padding: 30px 0;
}
.soft {
  background: var(--soft);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  color: var(--muted);
  margin: 6px 0 0;
}
.page-section {
  padding-block: 30px 60px;
  min-height: 54vh;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.empty {
  padding: 45px 16px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty svg {
  margin: 0 auto 12px;
}
.empty h3 {
  color: var(--ink);
}

/* 2. Header and footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px #14223806;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.brand img {
  width: 48px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 3px;
}
.brand b {
  color: #c38915;
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav a:hover,.main-nav a.active {
  color: #b57a08;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.profile-wrap {
  position: relative;
}
.dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 14px 40px #0002;
  padding: 14px;
  display: grid;
  gap: 4px;
  z-index: 60;
}
.dropdown a,.dropdown button {
  text-align: start;
  padding: 9px;
  border-radius: 8px;
}
.dropdown a:hover,.dropdown button:hover {
  background: var(--soft);
}
.dropdown small {
  color: var(--muted);
}
.dot {
  position: absolute;
  inset-inline-end: 7px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.mobile-menu,.panel-mobile,.filter-mobile {
  display: none;
}
.footer {
  background: #142238;
  color: #f0f3f7;
  padding: 36px 0 16px;
}
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 25px;
  border-bottom: 1px solid #ffffff20;
}
.footer-cta h2 {
  font-size: 22px;
  margin-bottom: 5px;
}
.footer p {
  color: #bcc6d1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 32px 0;
}
.footer-grid>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-grid a,.footer-grid button {
  font-size: 14px;
  padding: 0;
  color: #e0e5ed;
}
.footer-grid .brand {
  font-size: 20px;
}
.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #b9c4d1;
}

/* 3. Homepage */
.hero {
  position: relative;
  background: #142238;
  color: white;
  padding: 45px 0 0;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%,#31445e,transparent 55%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  align-items: center;
}
.hero-copy {
  padding: 16px 0 45px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbe2ea;
  font-size: 14px;
}
.hero-kicker i {
  height: 9px;
  width: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ffbd2e20;
}
.hero h1 {
  font-size: clamp(35px,5vw,64px);
  line-height: 1.5;
  margin: 18px 0;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  color: #c7d0dd;
  font-size: 16px;
}
.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 310px;
  border-radius: 24px 24px 100px 24px;
  overflow: hidden;
  margin-bottom: 38px;
  box-shadow: 0 12px 40px #0003;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#142238a8,transparent 45%);
}
.hero-art-label {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: #fff;
  z-index: 1;
  background: #142238ba;
  padding: 9px 16px;
  border-radius: 10px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 25px;
}
.hero-stats>div {
  display: grid;
  gap: 1px;
}
.hero-stats b {
  font-size: 25px;
  color: var(--gold);
}
.hero-stats span {
  color: #b8c4d3;
  font-size: 13px;
}
.hero-search-wrap {
  position: relative;
  transform: translateY(25px);
  z-index: 3;
}
.hero-search {
  color: var(--ink);
  padding: 20px 25px;
  box-shadow: 0 14px 40px #14223824;
}
.hero-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}
.hero-fields .field {
  margin: 0;
}
.deal-switch {
  display: inline-flex;
  gap: 4px;
  background: var(--soft);
  padding: 4px;
  border-radius: 12px;
  max-width: 100%;
}
.deal-switch label {
  position: relative;
  cursor: pointer;
  flex: 1;
}
.deal-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.deal-switch span {
  display: block;
  padding: 8px 18px;
  border-radius: 9px;
  white-space: nowrap;
  font-weight: 700;
}
.deal-switch input:checked+span {
  background: var(--gold);
  color: #172437;
}
.deal-switch input:focus-visible+span {
  outline: 2px solid var(--gold-hover);
}
.budget-wrap {
  position: relative;
  min-width: 0;
}
.budget-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: start;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.budget-pop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(350px,85vw);
  z-index: 15;
  padding: 14px;
}
.range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 10px;
}
.range-presets button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 5px 9px;
  font-size: 13px;
}
.range-presets button.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.quick-services {
  padding-top: 70px;
  padding-bottom: 4px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 12px;
}
.service-grid a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 17px 6px;
  text-align: center;
  transition: transform .2s;
}
.service-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.service-grid a>span {
  background: var(--gold-soft);
  color: #b7800e;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}
.service-grid a>svg {
  color: var(--muted);
}
.service-grid b {
  font-size: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.chips button,.chips a,.chip span,.check-tile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}
.chips .active,.chip input:checked+span,.check-tile:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold-hover);
  color: var(--ink);
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 0;
}
.chip input:focus-visible+span {
  outline: 2px solid var(--gold);
}
.filter-tabs {
  margin-bottom: 18px;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.property-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s,box-shadow .2s;
  min-width: 0;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #14223815;
}
.property-photo {
  position: relative;
  aspect-ratio: 1.4;
  overflow: hidden;
  background: var(--soft);
}
.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.property-photo>a {
  display: block;
  height: 100%;
}
.property-card:hover img {
  transform: scale(1.035);
}
.photo-tags {
  position: absolute;
  top: 11px;
  right: 11px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.photo-tags span,.agent-tag {
  border-radius: 7px;
  background: #142238b8;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
}
.gold-tag,.photo-tags .gold-tag {
  background: var(--gold);
  color: #172437;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: bold;
}
.favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: #142238;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 9px #0002;
}
.favorite.selected {
  color: #d64a4a;
}
.favorite.selected svg {
  fill: #d64a4a;
}
.agent-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.property-body {
  padding: 13px;
}
.property-title {
  font-weight: 700;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 6px;
}
.property-spec {
  margin: 13px 0;
  padding: 9px 7px;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.property-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.property-bottom small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.property-bottom strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.rent-prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rent-prices>div+div {
  border-right: 1px solid var(--line);
  padding-right: 8px;
}
.round-link {
  width: 34px;
  height: 34px;
  background: var(--gold-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.agent-section {
  background: #142238;
  color: #fff;
}
.agent-section .section-head p {
  color: #bec8d6;
}
.agent-section .eyebrow {
  color: var(--gold);
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.agent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
}
.agent-section .agent-card {
  background: #20334c;
  border: 1px solid #ffffff17;
  border-radius: 18px;
}
.agent-section .agent-card:first-child {
  border-color: #ffbd2e88;
}
.agent-section .agent-card p {
  color: #c5ceda;
}
.agent-card .rank {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #142238;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.avatar {
  width: 47px;
  height: 47px;
  background: var(--soft);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 76px;
  height: 76px;
  border: 3px solid var(--gold);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.post-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-card img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.post-body {
  padding: 19px;
}
.post-body h3 {
  margin: 5px 0;
}
.post-body p {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 13px;
}
.neighborhood-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.neighborhood-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.neighborhood-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 14px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}
.faq {
  padding: 5px 20px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.faq details:last-child {
  border: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

/* 4. Forms, search, details */
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  min-width: 0;
}
.field>span {
  font-size: 13px;
  font-weight: 700;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.form-grid.three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.money-input,.otp-code,input[type=tel] {
  direction: ltr;
  text-align: right;
}
.form-msg {
  font-size: 14px;
  margin: 7px 0 0;
  color: #248044;
}
.form-msg.error {
  color: #d34c4c;
}
.content-card {
  padding: 20px;
  margin-bottom: 13px;
}
.content-card h3,.content-card h2 {
  margin-bottom: 14px;
}
.content-card .deal-switch {
  margin-bottom: 15px;
}
.search-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin-bottom: 17px;
}
.search-toolbar .field {
  margin: 0;
}
.search-q {
  flex: 1;
}
.search-layout {
  display: grid;
  grid-template-columns: 265px minmax(0,1fr);
  gap: 19px;
  align-items: start;
}
.search-filters {
  padding: 16px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  scrollbar-width: thin;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}
.filter-head h3 {
  margin: 0;
}
.filter-head button {
  font-size: 12px;
}
.filter-group {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:last-child {
  border: 0;
}
.filter-group .form-grid {
  gap: 6px;
}
.filter-group .field input {
  padding: 8px;
  font-size: 13px;
}
.search-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.result-head {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}
.gallery {
  margin-bottom: 22px;
}
.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #142238;
  height: clamp(250px,44vw,530px);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-prev,.gallery-next,.gallery-full,.gallery-count {
  position: absolute;
  background: #142238cf;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}
.gallery-prev,.gallery-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}
.gallery-prev {
  right: 12px;
}
.gallery-next {
  left: 12px;
}
.gallery-full {
  bottom: 12px;
  right: 12px;
}
.gallery-count {
  bottom: 12px;
  left: 12px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 8px 0;
}
.gallery-thumbs button {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 10px;
  flex: 0 0 100px;
}
.gallery-thumbs button.active {
  border-color: var(--gold);
}
.gallery-thumbs img {
  width: 100%;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.detail-heading h1 {
  font-size: clamp(22px,3vw,32px);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 15px;
  margin-bottom: 18px;
}
.facts>div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid var(--line);
}
.facts>div:last-child {
  border: 0;
}
.facts svg {
  color: #bc891c;
}
.facts small {
  display: block;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 325px;
  gap: 17px;
  align-items: start;
}
.description {
  line-height: 2.2;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 20px;
}
.spec-grid>div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.spec-grid span {
  color: var(--muted);
  font-size: 13px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 10px;
  font-size: 13px;
}
.amenity svg {
  color: #ab7913;
}
.price-card h2 {
  font-size: 23px;
  margin: 6px 0;
  color: var(--ink);
}
.contact-card .btn {
  margin-top: 10px;
}
.panel-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-user small {
  display: block;
  color: var(--muted);
}

/* 5. Login, dashboard and admin */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 35px;
  min-height: 620px;
}
.login-brand {
  background: #142238;
  color: white;
  border-radius: 25px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 35px solid #ffbd2e20;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand img {
  width: 85px;
  background: #fff;
  border-radius: 15px;
  padding: 6px;
}
.login-brand p {
  color: #c6cfdb;
}
.login-brand div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-brand svg {
  color: var(--gold);
}
.login-form {
  align-self: center;
  padding: 36px;
  max-width: 470px;
  width: 100%;
  justify-self: center;
}
.login-form h1 {
  font-size: 27px;
}
.login-form .btn {
  margin-bottom: 8px;
}
.otp-number {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.otp-code {
  font-size: 24px;
  letter-spacing: 12px;
  text-align: center;
}
.password-login {
  margin-top: 15px;
}
.password-login summary {
  cursor: pointer;
}
.demo-note {
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--ink);
  margin-top: 12px;
}
.panel-layout {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 20px;
  align-items: start;
}
.panel-nav {
  padding: 15px;
  position: sticky;
  top: 90px;
}
.panel-quick {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.panel-quick .btn {
  flex: 1;
  padding-inline: 8px;
  font-size: 12px;
}
.panel-nav nav {
  display: grid;
  gap: 4px;
}
.panel-nav nav a,.panel-nav nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: start;
  padding: 10px;
  border-radius: 9px;
  font-size: 14px;
}
.panel-nav nav .active,.panel-nav nav a:hover {
  background: var(--gold-soft);
  font-weight: 700;
}
.panel-content {
  min-width: 0;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 13px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.stat-card>span {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #b67a10;
}
.stat-card b {
  font-size: 25px;
  display: block;
}
.stat-card small {
  display: block;
  color: var(--muted);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid a,.quick-grid button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  text-align: start;
}
.quick-grid a:hover,.quick-grid button:hover {
  background: var(--soft);
}
.panel-property-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  flex-wrap: wrap;
}
.list-row img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.list-row small {
  display: block;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-inline-start: auto;
}
.table-wrap {
  overflow: auto;
  margin-top: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 500px;
}
th,td {
  text-align: start;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
th {
  background: var(--soft);
}
.profile-layout {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 13px;
  align-items: start;
}
.profile-layout .stack {
  margin-top: 0;
  gap: 0;
}
.profile-avatar {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.profile-avatar .field {
  width: 100%;
}
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  gap: 10px;
  overflow-wrap: anywhere;
}
.upload-zone {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 25px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--soft);
}
.upload-zone span {
  font-size: 12px;
  color: var(--muted);
}
.upload-zone input {
  max-width: 100%;
}
.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.media-preview img {
  width: 105px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
}
.media-existing {
  display: grid;
  font-size: 13px;
}
.upload-progress {
  width: 100%;
  accent-color: var(--gold);
}

/* 6. Blog, commission, dialogs */
.commission-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}
.commission-result {
  border-radius: 20px;
  background: #142238;
  padding: 26px;
  color: #fff;
  display: grid;
  gap: 15px;
}
.commission-result>span {
  color: var(--gold);
}
.commission-result>strong {
  font-size: clamp(24px,4vw,37px);
  overflow-wrap: anywhere;
}
.commission-share,.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.commission-share {
  background: #ffffff12;
  padding: 15px;
  border-radius: 11px;
}
.result-line {
  font-size: 13px;
  border-top: 1px solid #ffffff20;
  padding-top: 10px;
  color: #d2dbe7;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.blog-filters .chips {
  flex: 1;
}
.blog-filters input {
  width: 200px;
}
.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #142238;
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
}
.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-hero>div {
  padding: 30px;
  align-self: center;
}
.blog-hero p {
  color: #c4cfda;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 25px;
}
.article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  margin: 20px 0;
}
.article-text {
  font-size: 16px;
  line-height: 2.5;
  overflow-wrap: anywhere;
}
.article-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}
.article-mini img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
}
.callout {
  background: var(--gold-soft);
}
.modal {
  width: min(490px,calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 80px #0004;
}
.modal::backdrop {
  background: #14223885;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 17px;
}
.modal-head h2 {
  font-size: 21px;
  margin: 0;
}
.modal .deal-switch {
  margin-bottom: 15px;
}
.modal .btn.full {
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  max-width: calc(100% - 48px);
  background: #142238;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px #0003;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  background: #a93e3e;
}

/* 7. Responsive layouts */
@media(max-width:1080px) {
  .header-inner {
    gap: 14px;
  }
  .main-nav {
    gap: 13px;
  }
  .header-actions .btn {
    padding-inline: 10px;
  }
  .property-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .search-grid,.panel-property-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .neighborhood-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .search-layout {
    grid-template-columns: 235px minmax(0,1fr);
  }
  .detail-heading {
    align-items: start;
    flex-direction: column;
  }
  .service-grid {
    grid-template-columns: repeat(3,1fr);
  }
}
@media(max-width:850px) {
  .header-inner {
    min-height: 66px;
    gap: 9px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    background: var(--surface);
    padding: 15px 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-menu {
    display: grid;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .desktop-only {
    display: none!important;
  }
  .hero-grid {
    gap: 20px;
  }
  .hero-fields {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding-bottom: 15px;
  }
  .hero-art {
    min-height: 260px;
  }
  .detail-grid {
    grid-template-columns: minmax(0,1fr) 265px;
  }
  .panel-layout {
    grid-template-columns: 200px minmax(0,1fr);
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-layout aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .search-toolbar {
    flex-wrap: wrap;
  }
  .search-q {
    flex-basis: 40%;
  }
  .agent-grid {
    gap: 9px;
  }
  .agent-card {
    padding: 18px 8px;
  }
  .rent-prices>div+div {
    border: 0;
    padding: 0;
  }
}
@media(max-width:620px) {
  body {
    font-size: 14px;
  }
  .container {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 16px;
    gap: 4px;
  }
  .brand img {
    width: 36px;
    height: 40px;
  }
  .brand small {
    font-size: 9px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn {
    font-size: 12px;
    padding: 7px;
    min-height: 37px;
    gap: 3px;
  }
  .header-actions .btn svg {
    width: 15px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .mobile-menu {
    width: 34px;
    height: 36px;
  }
  .header-inner {
    gap: 5px;
    min-height: 60px;
  }
  .main-nav {
    top: 60px;
  }
  .hero {
    padding-top: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: 37px;
    margin: 8px 0;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-art {
    height: 170px;
    min-height: 170px;
    margin: 0;
    border-radius: 18px 18px 45px 18px;
  }
  .hero-stats {
    gap: 24px;
    margin: 12px 0;
  }
  .hero-stats b {
    font-size: 20px;
  }
  .hero-search {
    padding: 12px;
  }
  .hero-search-wrap {
    transform: translateY(18px);
  }
  .hero-fields {
    gap: 8px;
  }
  .hero-fields .field:first-child {
    grid-column: 1/-1;
  }
  .hero-fields .search-submit {
    grid-column: 1/-1;
  }
  .budget-pop {
    inset-inline-end: 0;
  }
  .deal-switch {
    width: 100%;
  }
  .deal-switch span {
    text-align: center;
    padding: 7px 8px;
    font-size: 13px;
  }
  .quick-services {
    padding-top: 45px;
  }
  .service-grid {
    gap: 7px;
    grid-template-columns: repeat(3,1fr);
  }
  .service-grid a {
    padding: 10px 4px;
  }
  .service-grid b {
    font-size: 12px;
  }
  .service-grid a>span {
    width: 42px;
    height: 42px;
  }
  .service-grid a>span svg {
    width: 23px;
  }
  .service-grid a>svg {
    display: none;
  }
  .section {
    padding: 34px 0;
  }
  .section-head {
    gap: 8px;
    margin-bottom: 15px;
    align-items: end;
  }
  .section-head p {
    font-size: 13px;
  }
  .section-head .text-link {
    font-size: 12px;
    white-space: nowrap;
  }
  .property-grid,.search-grid,.panel-property-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .property-body {
    padding: 9px;
  }
  .property-title {
    font-size: 13px;
  }
  .property-spec {
    font-size: 11px;
    padding: 5px 2px;
    margin: 9px 0;
    gap: 3px;
  }
  .property-spec svg {
    width: 13px;
  }
  .property-bottom {
    align-items: end;
  }
  .property-bottom strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }
  .property-bottom small {
    font-size: 9px;
  }
  .round-link {
    width: 26px;
    height: 26px;
  }
  .round-link svg {
    width: 14px;
  }
  .photo-tags {
    right: 6px;
    top: 6px;
    gap: 3px;
  }
  .photo-tags span,.agent-tag {
    font-size: 9px;
    padding: 2px 5px;
  }
  .agent-tag {
    right: 6px;
    bottom: 6px;
  }
  .favorite {
    left: 6px;
    top: 6px;
    width: 28px;
    height: 28px;
  }
  .favorite svg {
    width: 16px;
  }
  .agent-grid,.post-grid {
    grid-template-columns: 1fr;
  }
  .agent-card {
    padding: 20px;
  }
  .neighborhood-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .faq-grid,.commission-grid,.blog-hero,.detail-grid,.login-layout,.panel-layout {
    grid-template-columns: 1fr;
  }
  .footer-cta {
    align-items: start;
    flex-direction: column;
  }
  .footer-grid {
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
  .page-section {
    padding: 20px 0 35px;
  }
  .search-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .search-toolbar .deal-switch {
    flex-basis: 100%;
  }
  .search-q {
    flex-basis: 55%;
  }
  .search-toolbar>.btn {
    width: 100%;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-filters {
    position: static;
    max-height: none;
    display: none;
  }
  .search-filters.open {
    display: block;
  }
  .filter-mobile,.panel-mobile {
    display: flex;
    margin: 0 0 10px;
  }
  .panel-nav {
    position: static;
  }
  .panel-nav nav {
    display: none;
  }
  .panel-nav nav.open {
    display: grid;
  }
  .dashboard-stats {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .stat-card {
    padding: 10px 5px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .stat-card b {
    font-size: 18px;
  }
  .stat-card small {
    font-size: 11px;
  }
  .stat-card>span {
    width: 35px;
    height: 35px;
  }
  .stat-card svg {
    width: 22px;
  }
  .quick-grid {
    gap: 6px;
  }
  .quick-grid a,.quick-grid button {
    padding: 8px;
    font-size: 12px;
  }
  .gallery-main {
    height: 270px;
  }
  .gallery-thumbs button {
    flex-basis: 75px;
  }
  .gallery-thumbs img {
    height: 49px;
  }
  .facts {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    padding: 10px;
  }
  .facts>div:nth-child(2) {
    border: 0;
  }
  .facts svg {
    width: 21px;
  }
  .detail-actions {
    gap: 5px;
  }
  .detail-actions .btn {
    font-size: 12px;
    padding: 6px 8px;
  }
  .detail-actions svg {
    width: 16px;
  }
  .detail-side {
    display: grid;
    gap: 0;
  }
  .content-card {
    padding: 14px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.three {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .form-grid {
    gap: 8px;
  }
  .login-layout {
    min-height: 0;
    gap: 14px;
  }
  .login-brand {
    padding: 24px;
    gap: 3px;
  }
  .login-brand h1 {
    font-size: 25px;
  }
  .login-brand img {
    width: 55px;
  }
  .login-brand div {
    display: none;
  }
  .login-form {
    padding: 22px;
    max-width: none;
  }
  .article-layout aside {
    grid-template-columns: 1fr;
  }
  .blog-hero>div {
    padding: 20px;
  }
  .blog-filters input {
    flex: 1;
  }
  .modal {
    padding: 17px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .section.compact {
    padding: 20px 0;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}
/* Version 2: consistent type, motion and data-rich cards. */
:root { --font: "Vazirmatn", Tahoma, Arial, sans-serif; }
body { font-family: var(--font); font-size: 16px; line-height: 1.85; }
button, input, textarea, select, option, optgroup, dialog, summary { font-family: var(--font); }
button, input, textarea, select { font-size: 15px; }
small, .small, .muted.small { font-size: 13px; }
.field > span { font-size: 15px; }
select {
    appearance: none;
    padding-inline-end: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='7' fill='%23ffbd2e'/%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23142238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 9px center;
    background-size: 22px;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
}
select:hover { border-color: var(--gold); }
select:focus { box-shadow: 0 0 0 3px #ffbd2e36; }
.hero-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:16px 12px; border:1px solid #ffffff28; background:linear-gradient(135deg,#ffffff15,#ffffff08); border-radius:20px; box-shadow:0 15px 36px #0002; max-width:520px; }
.hero-stats>div { text-align:center; justify-items:center; padding:4px 8px; }
.hero-stats>div+div { border-inline-start:1px solid #ffffff24; }
.hero-stats b { font-size:clamp(23px,3vw,32px); font-weight:800; line-height:1.3; }
.hero-stats span { color:#e1e7ef; font-size:14px; }
.modal [data-close] { background:#263a50; color:#fff; border:0; border-radius:12px; width:40px; height:40px; box-shadow:0 5px 15px #14223825; }
.modal [data-close]:hover { background:#c44444; transform:rotate(5deg); }
.modal[open] { animation:dialog-enter .22s cubic-bezier(.2,.8,.2,1) both; }
.modal::backdrop { animation:fade-in .2s ease both; }
@keyframes dialog-enter { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.btn,.icon-btn,.property-card,.agent-card { transition:background .18s, color .18s, box-shadow .18s, transform .18s, border-color .18s; }
.property-card:hover,.agent-card:hover { transform:translateY(-3px); box-shadow:0 12px 35px #14223818; }
.detail-actions .btn { font-size:15px; padding:9px 13px; min-height:42px; gap:7px; }
.description,.article-text { font-size:16px; line-height:2.05; }
.property-spec { font-size:13px; }
.agent-directory { display:grid; grid-template-columns:250px minmax(0,1fr); gap:22px; align-items:start; }
.agent-filter { position:sticky; top:90px; }
.agent-directory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.directory-count { color:var(--muted); margin-bottom:14px; }
.agent-card-v2 { background:var(--surface); color:var(--ink); padding:0 15px 18px; overflow:hidden; display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; border:1px solid var(--line); }
.agent-card-top { width:calc(100% + 30px); height:82px; background:linear-gradient(135deg,var(--gold-soft),var(--soft)); display:flex; padding:12px; justify-content:flex-start; align-items:flex-start; }
.agent-score { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:700; background:var(--navy); color:white; border-radius:20px; padding:4px 10px; }
.agent-card-v2 .agent-avatar { margin-top:-46px; width:90px; height:90px; border:4px solid var(--surface); box-shadow:0 4px 12px #0002; z-index:1; }
.agent-avatar { flex:none; display:inline-grid; place-items:center; border-radius:50%; overflow:hidden; width:65px; height:65px; }
.agent-avatar img { width:100%; height:100%; object-fit:cover; }
.agent-card-v2 h3,.agent-card-v2 p { margin:0; }
.agent-card-v2 p,.agent-card-v2 small { color:var(--muted); }
.agent-code { background:var(--soft); color:var(--muted); border-radius:8px; padding:2px 9px; font-size:13px; direction:ltr; display:inline-block; }
.agent-metrics { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); border-radius:13px; background:var(--bg); padding:10px 5px; margin:8px 0; }
.agent-metrics>div { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px; padding:5px; }
.agent-metrics>div+div { border-inline-start:1px solid var(--line); }
.agent-metrics small { width:100%; text-align:center; color:var(--muted); }
.agent-section .agent-card-v2 { background:var(--surface); color:var(--ink); }
.agent-section .agent-card-v2 p { color:var(--muted); }
.agent-profile-hero { padding:22px; overflow:hidden; margin-bottom:20px; background:linear-gradient(125deg,var(--surface),var(--gold-soft)); }
.agent-profile-intro { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.agent-profile-intro .agent-avatar { width:110px;height:110px;border:4px solid var(--surface); }
.agent-profile-intro h1 { margin:0; }
.agent-contact-actions { margin-inline-start:auto; display:flex; gap:8px; flex-wrap:wrap; }
.agent-profile-hero .agent-metrics { background:var(--surface); margin-top:20px; }
.agent-mini,.agent-table-name { display:flex; gap:10px; align-items:center; padding:7px 0; }
.agent-mini .agent-avatar,.agent-table-name .agent-avatar { width:38px;height:38px; }
.agent-mini span:nth-child(2) { flex:1; }
.admin-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.agent-table { width:100%; min-width:560px; }
.agent-table th,.agent-table td { padding:12px; text-align:right; border-bottom:1px solid var(--line); }
.admin-listing { border-radius:16px; }
.admin-listing-top { display:flex; align-items:center; gap:18px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.admin-cover { width:132px; flex:none; border-radius:12px; overflow:hidden; }
.admin-cover img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.admin-listing-info { min-width:0; flex:1; }
.admin-listing-info h3,.admin-listing-info p { margin:0 0 4px; }
.admin-listing-info small { display:block; }
@media(max-width:1000px) { .agent-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .agent-directory { grid-template-columns:1fr; } .agent-filter { position:static; } .agent-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .agent-profile-intro .agent-avatar{width:82px;height:82px;} .hero-stats{gap:0;} .admin-cover{width:90px;} .admin-listing-top{gap:10px; flex-wrap:wrap;} .admin-listing-info{min-width:140px;} }
@media(max-width:460px) { .agent-directory-grid{grid-template-columns:1fr;} .hero-stats span{font-size:12px;} .hero-stats>div{padding:3px;} .admin-stats{grid-template-columns:1fr;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }

/* Consistent typography across native controls and page elements. */
html,
body {
    font-family: var(--font);
    font-weight: 400;
    font-synthesis: none;
}

button,
input,
select,
option,
optgroup,
textarea,
dialog,
summary,
label,
input::placeholder,
textarea::placeholder,
input::file-selector-button {
    font-family: var(--font);
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }
strong, b { font-weight: 700; }

/* Version 3: slightly larger typography, customer management and loading state. */
.main-nav a { font-size:15px; font-weight:600; }
.header-inner { gap:20px; }
.main-nav { gap:18px; }
.header-actions .btn { font-size:15px; min-height:44px; }
.btn { font-size:14px; min-height:42px; }
.detail-actions .btn { font-size:15px; }
.customer-toolbar,.customer-card-top,.location-heading,.location-street {
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.customer-toolbar h2,.customer-identity h3,.location-heading h3 { margin:0; }
.customer-toolbar { margin-bottom:12px; background:linear-gradient(125deg,var(--surface),var(--gold-soft)); }
.customer-search { display:flex; gap:10px; margin-bottom:16px; }
.customer-search input { flex:1; min-width:0; }
.customer-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.customer-avatar { width:50px; height:50px; display:grid; place-items:center; border-radius:16px; color:var(--ink); background:var(--gold-soft); }
.customer-identity a { display:inline-block; color:var(--muted); }
.customer-pill { display:block; background:var(--gold-soft); color:var(--ink); padding:3px 12px; border-radius:20px; font-weight:600; text-align:center; }
.customer-card-top { padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.customer-card .spec-grid { margin:12px 0; }
.customer-card .spec-grid b { overflow-wrap:anywhere; }
.customer-note { background:var(--soft); padding:12px; border-radius:12px; margin:12px 0; overflow-wrap:anywhere; }
.customer-note p { margin:4px 0 0; }
.customer-status-form { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin-top:12px; }
.customer-status-form .field { flex:1; min-width:140px; margin:0; }
.customer-status-form .form-msg { flex-basis:100%; }
.location-street { padding:10px 0; border-top:1px solid var(--line); }
.location-heading { padding-bottom:10px; }
.location-heading h3 { display:flex; align-items:center; gap:6px; }
.delete-button { border:1px solid #c94d4d55 !important; color:#c34a4a !important; }
.delete-button:hover { background:#c34a4a !important; color:white !important; }
.home-loading { padding:9px 0 13px; color:var(--muted); font-size:13px; }
.home-loading[hidden] { display:none !important; }
.home-loading progress { display:block; width:100%; height:6px; margin-top:5px; border:0; border-radius:20px; accent-color:#ffbd2e; }
[data-home-results][aria-busy="true"] { opacity:.55; transition:opacity .2s; }
@media(max-width:1080px) {
    .header-inner { gap:12px; }
    .main-nav { gap:10px; }
    .main-nav a { font-size:14px; }
    .header-actions .btn { padding-inline:9px; font-size:13px; }
}
@media(max-width:850px) {
    .main-nav a { font-size:16px; }
    .header-inner { gap:8px; }
    .header-actions .btn { min-height:40px; }
}
@media(max-width:460px) {
    .header-actions .btn { font-size:12px; padding:6px; min-height:38px; }
    .customer-search { flex-wrap:wrap; }
    .customer-search input { flex-basis:100%; }
    .customer-status-form .field { flex-basis:100%; }
}
