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

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

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

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

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

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

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

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

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

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

:root {
  --primary: #0d6b66;
  --primary-dark: #084d4a;
  --ink: #18312f;
  --muted: #6c7f7c;
  --line: #dfeae7;
  --surface: #f5f8f7;
  --warm: #e7784f;
  --cream: #fffaf6;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  height: 100%;
}

.plan-card-current {
  border-color: #b8d6d1;
  background: #f5fbfa;
}

.plan-audience {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 8px;
}

.plan-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.plan-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.plan-price-yearly {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.plan-original {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.plan-discount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.badge-discount {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea,
optgroup,
table,
th,
td,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
label,
a {
  font-family: 'Vazir', 'Vazirmatn', Tahoma, sans-serif !important;
}

body,
button,
input,
select,
textarea,
optgroup {
  margin: 0;
  font-family: 'Vazir', 'Vazirmatn', Tahoma, sans-serif !important;
  color: var(--ink);
}

body {
  background: #fff;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  padding: 9px 15px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.w-100 {
  width: 100%;
}

html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
}

.brand span {
  color: var(--warm);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

.topbar nav a {
  color: #53615f;
  font-weight: 500;
  transition: color .2s;
}

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

.agent-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #b8d6d1;
  border-radius: 7px;
  padding: 8px 11px;
  background: #f5fbfa;
}

.agent-nav-cta:hover {
  background: #e9f5f2;
  color: var(--primary-dark);
}

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

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

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-home {
  background: #103f3c;
  color: #fff;
  padding: 70px 0 29px;
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  left: -120px;
  bottom: -220px;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7eee9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1px;
}

.eyebrow i {
  color: #f1a37f;
}

.hero-home h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.35;
  margin: 18px 0 13px;
  letter-spacing: 0;
}

.hero-home h1 span {
  color: #f5b08f;
}

.hero-lead {
  color: #c5dcda;
  font-size: 16px;
  line-height: 2;
  max-width: 640px;
  margin: 0;
}

.search-shell {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  margin-top: 35px;
  padding: 10px;
  box-shadow: 0 18px 38px #062d2b52;
  max-width: 1000px;
}

.search-main-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 5px 4px 4px;
}

.search-leading-icon {
  font-size: 20px;
  color: var(--primary);
  padding: 0 7px;
}

.search-input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  height: 43px;
}

.search-input::placeholder {
  color: #9daaa8;
}

.search-submit {
  border-radius: 8px;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 21px;
  font-weight: 700;
}

.search-submit i {
  font-size: 16px;
}

.search-filters {
  border-top: 1px solid #edf2f1;
  padding: 11px 5px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  padding: 0 10px;
  border-left: 1px solid var(--line);
}

.filter-control:first-child {
  border-left: 0;
}

.filter-control i {
  color: var(--primary);
  font-size: 15px;
}

.filter-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  width: 100%;
  outline: 0;
  cursor: pointer;
}

.filter-reset {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  padding: 7px;
}

.filter-reset:hover {
  color: var(--primary);
}

.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-label {
  font-size: 12px;
  color: #a9c4c0;
}

.quick-link {
  border: 1px solid #ffffff30;
  border-radius: 6px;
  padding: 7px 11px;
  background: #ffffff0d;
  color: #e4f1ef;
  font: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-link:hover {
  background: #ffffff1c;
  color: #fff;
}

.quick-link i {
  color: #f1a37f;
}

.trust-note {
  font-size: 12px;
  color: #a9c4c0;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.trust-note i {
  font-size: 16px;
  color: #8fd0bf;
}

.section {
  padding: 52px 0;
}

.section-featured {
  background: var(--cream);
  border-bottom: 1px solid #f0e7e1;
}

.section-latest {
  background: #fff;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 25px;
  font-weight: 800;
  margin: 8px 0 0;
}

.section-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0 0;
}

.eyebrow-light {
  color: var(--primary);
  font-size: 12px;
}

.section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding-bottom: 5px;
}

.section-link i {
  margin-right: 5px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.property-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: block;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 27px #153b3815;
}

.property-image {
  height: 185px;
  background: #e8efed;
  object-fit: cover;
  width: 100%;
  display: block;
}

.property-body {
  padding: 14px;
}

.property-type {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 7px;
}

.property-type span {
  color: #b5c4c1;
  margin: 0 3px;
}

.property-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta i {
  font-size: 12px;
}

.badge-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--warm);
  color: #fff;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

.badge-featured i {
  font-size: 10px;
  margin-left: 3px;
}

.favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
}

.empty {
  padding: 46px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.empty i {
  font-size: 28px;
  color: #9ab5b0;
}

.empty strong {
  color: var(--ink);
  font-size: 15px;
}

.agent-band {
  background: #f0f6f4;
  border-top: 1px solid #dcebe7;
  padding: 39px 0;
}

.agent-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.agent-band h2 {
  font-size: 24px;
  margin: 10px 0 6px;
  font-weight: 800;
}

.agent-band p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.btn-agent {
  background: var(--warm);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-agent:hover {
  background: #d36640;
  color: #fff;
}

.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 24px #153b3810;
}

.agent-form-panel {
  padding: 24px;
}

.agent-form-panel .form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.footer {
  background: #17302e;
  color: #d8e5e2;
  padding: 34px 0;
  margin-top: 40px;
}

.footer a {
  color: #d8e5e2;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.muted {
  color: var(--muted);
}

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  position: relative;
  max-height: 94vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.detail-section {
  padding: 32px 0;
}

@media (min-width: 992px) {
  .detail-media {
    position: sticky;
    top: 98px;
    align-self: flex-start;
  }
}

.form-control,
.form-select {
  border-color: #d6e2df;
  padding: 11px 13px;
}

.section .form-control,
.section .form-select {
  border-radius: 7px;
}

.table {
  vertical-align: middle;
}

@media (max-width: 767px) {
  .topbar {
    height: 64px;
  }

  .brand-logo {
    height: 40px;
  }

  .agent-nav-cta {
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero-home {
    padding: 47px 0 24px;
  }

  .hero-home h1 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .search-shell {
    margin-top: 27px;
  }

  .search-main-row {
    gap: 5px;
  }

  .search-submit {
    padding: 0 12px;
  }

  .search-submit span {
    display: none;
  }

  .search-filters {
    flex-wrap: wrap;
    padding-top: 9px;
  }

  .filter-control {
    flex: 1 1 calc(50% - 8px);
    border-left: 0;
    border-bottom: 1px solid #edf2f1;
    padding: 5px 7px;
  }

  .filter-reset {
    margin-right: auto;
  }

  .hero-bottom-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .trust-note {
    white-space: normal;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 17px;
  }

  .section-link {
    padding: 0;
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .property-image {
    height: 135px;
  }

  .property-body {
    padding: 10px;
  }

  .property-title {
    font-size: 13px;
  }

  .property-type {
    font-size: 10px;
  }

  .price {
    font-size: 13px;
  }

  .meta {
    font-size: 10px;
    gap: 6px;
  }

  .meta span:nth-child(2) {
    display: none;
  }

  .agent-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-band h2 {
    font-size: 20px;
  }

  .btn-agent {
    width: 100%;
    text-align: center;
  }

  .section-subtitle {
    font-size: 12px;
  }
}

/* Home page: modern real-estate search experience */
.hero-modern {
  position: relative;
  background: #123c39;
  color: #fff;
  padding: 46px 0 0;
}

.hero-modern-grid {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.hero-modern-copy {
  padding: 26px 0 90px;
}

.hero-modern-copy h1 {
  margin: 18px 0 16px;
  font-size: 48px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-modern-copy h1 span {
  color: #f2a07d;
}

.hero-modern .hero-lead {
  max-width: 590px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  color: #d5e6e3;
  font-size: 12px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof i {
  color: #72c1ae;
  font-size: 16px;
}

.hero-visual {
  align-self: stretch;
  min-height: 440px;
  position: relative;
  background-color: #2d615b;
  background-image: linear-gradient(135deg, #1a5c58 0%, #2d8275 40%, #3a9688 65%, #1a4f4c 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px 0 0 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #081f1d33;
}

.hero-visual-caption {
  position: absolute;
  right: 24px;
  bottom: 66px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-visual-caption strong {
  font-size: 18px;
}

.hero-visual-caption span {
  color: #d5e6e3;
  font-size: 12px;
}

.search-wrap {
  position: relative;
  margin-top: -62px;
  transform: translateY(62px);
  z-index: 3;
}

.search-card {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 19px 42px #082c292e;
}

.search-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 4px 13px;
}

.search-card-head>div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.search-card-head strong {
  font-size: 15px;
}

.search-card-head span {
  color: var(--muted);
  font-size: 11px;
}

.advanced-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.search-card .search-main-row {
  border: 1px solid #d5e2df;
  background: #fbfdfc;
  border-radius: 7px;
}

.search-card .search-input {
  background: transparent;
}

.search-card .search-filters {
  margin-top: 10px;
}

.search-card .search-submit {
  min-width: 124px;
  justify-content: center;
}

/* Hero Professionals Quick Access Banner */
.hero-pros-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 18px;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(8, 44, 41, 0.08);
}

.pros-strip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.pros-strip-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pros-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pros-pill i.bi-arrow-left {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.pros-pill:hover i.bi-arrow-left {
  transform: translateX(-3px);
}

.pros-pill-agent {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pros-pill-agent:hover {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.15);
}

.pros-pill-biz {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pros-pill-biz:hover {
  background: #dcfce7;
  color: #166534;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.15);
}

.section-categories {
  padding-top: 118px;
  padding-bottom: 44px;
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  min-height: 132px;
  padding: 15px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: border-color .2s, transform .2s, background .2s;
}

.category-tile:hover {
  border-color: #91bab2;
  background: #f6fbfa;
  transform: translateY(-2px);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f4f1;
  color: var(--primary);
  font-size: 20px;
}

.category-tile strong {
  font-size: 13px;
}

.category-tile small {
  color: var(--muted);
  font-size: 9px;
}

.category-tile-loan {
  border-color: #f0c6b5;
  background: #fff9f6;
}

.category-tile-loan .category-icon {
  background: #fbe8df;
  color: #c75e39;
}

.section-featured {
  background: #f7faf9;
  border-top: 1px solid #e4eeeb;
  border-bottom: 1px solid #e4eeeb;
}

.property-card {
  border-radius: 8px;
}

.property-card:hover {
  border-color: #b8d1cc;
}

.property-image {
  height: 205px;
}

.tools-section {
  background: #fff;
  padding-top: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
}

.loan-tool,
.agent-promo {
  min-height: 320px;
  padding: 34px;
  border-radius: 8px;
}

.loan-tool {
  background: #eef5f3;
  border: 1px solid #d9e8e4;
}

.agent-promo {
  background: #213331;
  color: #fff;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.loan-tool h2,
.agent-promo h2 {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
  margin: 8px 0;
}

.loan-tool>p,
.agent-promo p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.loan-tool>p {
  color: var(--muted);
}

.agent-promo p {
  color: #c9d8d5;
  max-width: 500px;
}

.tool-kicker,
.promo-label {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-label {
  color: #f3a17e;
}

.loan-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 17px 0 14px;
}

.loan-fields label {
  color: #536b67;
  font-size: 11px;
  font-weight: 700;
}

.loan-fields input,
.loan-fields select {
  width: 100%;
  height: 43px;
  margin-top: 6px;
  padding: 0 11px;
  border: 1px solid #cddeda;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.loan-result {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.loan-result strong {
  display: block;
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
}

.agent-promo .btn-agent {
  margin-top: 4px;
}

@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .hero-modern-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    min-height: 430px;
  }

  .hero-modern-copy h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-modern {
    padding: 0 0 20px;
  }

  .hero-modern-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-height: auto;
  }

  .hero-modern-copy {
    width: 100%;
    padding: 20px 4px 14px;
  }

  .hero-modern-copy h1 {
    font-size: 24px;
    margin: 8px 0 8px;
    line-height: 1.38;
  }

  .hero-modern .hero-lead {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .hero-proof {
    margin-top: 8px;
    gap: 14px;
    font-size: 11px;
  }

  .hero-visual {
    display: none !important;
  }

  .search-wrap {
    margin-top: 0;
    transform: translateY(0);
    padding: 0;
  }

  .search-card {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(8, 44, 41, 0.12);
    padding: 12px;
  }

  .search-card-head {
    padding: 0 2px 10px;
  }

  .search-card-head strong {
    font-size: 14px;
  }

  .search-card-head span,
  .advanced-link {
    display: none;
  }

  .search-card .search-main-row {
    align-items: stretch;
  }

  .search-card .search-input {
    height: 48px;
    font-size: 13px;
  }

  .search-card .search-submit {
    min-width: 48px;
    height: 48px;
    padding: 0;
  }

  .hero-pros-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .pros-strip-label {
    font-size: 12px;
    justify-content: center;
  }

  .pros-strip-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pros-pill {
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    min-height: 44px;
  }

  .section-categories {
    padding-top: 36px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-tile {
    min-height: 115px;
  }

  .category-tile small {
    display: none;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .property-image {
    height: 140px;
  }

  .loan-tool,
  .agent-promo {
    min-height: auto;
    padding: 24px 18px;
  }

  .loan-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   xanooo 2026 — advisor panel, admin review & dynamic property form layer
   Appended on top of the original public-site stylesheet.
   ========================================================================= */

/* ------------------------------- page head ------------------------------ */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash {
  background: #f7faf9;
  border-bottom: 1px solid #e8f0ee;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.back-link:hover {
  color: var(--primary);
}

/* ---------------------------------- kpi --------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.kpi:hover {
  border-color: #a7c9c3;
  box-shadow: 0 10px 22px #103f3c14;
  transform: translateY(-2px);
  color: var(--ink);
}

.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: #eef5f3;
  color: var(--primary);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
}

.tone-ok .kpi-icon {
  background: #e6f6ef;
  color: #197a54;
}

.tone-wait .kpi-icon {
  background: #fdf3e2;
  color: #a2711b;
}

.tone-warn .kpi-icon {
  background: #fdeee7;
  color: #b8562f;
}

.tone-bad .kpi-icon {
  background: #fdeaec;
  color: #b32b3c;
}

.tone-muted .kpi-icon {
  background: #eef1f1;
  color: #63736f;
}

.mini-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.mini-stat>i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef5f3;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.mini-stat strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.mini-stat span {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------- panel -------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}

.panel:only-child {
  height: 100%;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f1;
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.panel-body {
  padding: 14px 16px;
}

.panel-foot {
  padding: 12px 16px;
  border-top: 1px solid #edf2f1;
  background: #fbfdfc;
  margin-top: auto;
}

.panel+.panel {
  margin-top: 16px;
}

/* ----------------------------- notifications ---------------------------- */
.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f4;
}

.notif-item:last-child {
  border-bottom: 0;
}

.notif-item>i {
  color: #b9c9c6;
  font-size: 22px;
  line-height: 1;
}

.notif-item.unread>i {
  color: var(--primary);
}

.notif-item strong {
  display: block;
  font-size: 13px;
}

.notif-item p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.notif-item time {
  font-size: 11px;
  color: #9aa8a5;
}

/* ----------------------------- status badges ---------------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.st-draft {
  background: #eef1f1;
  color: #5c6b68;
  border-color: #dde4e3;
}

.st-pending {
  background: #fdf3e2;
  color: #96661a;
  border-color: #f2e0bf;
}

.st-approved {
  background: #e6f6ef;
  color: #197a54;
  border-color: #c9ead9;
}

.st-fix {
  background: #fdeee7;
  color: #b8562f;
  border-color: #f6d8c9;
}

.st-rejected {
  background: #fdeaec;
  color: #b32b3c;
  border-color: #f5cdd3;
}

.st-sold {
  background: #eaf1fd;
  color: #2c5aa8;
  border-color: #d3e0f7;
}

.st-rented {
  background: #eceafd;
  color: #4b3fa8;
  border-color: #dbd7f7;
}

.st-inactive {
  background: #f4f4f5;
  color: #7a7f7e;
  border-color: #e6e7e8;
}

/* ---------------------------- loading / states -------------------------- */
.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 16px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d6e5e2;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, #eef2f1 25%, #f7faf9 50%, #eef2f1 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 6px;
}

@keyframes sk {
  to {
    background-position: -200% 0;
  }
}

/* ------------------------------- toolbar -------------------------------- */
.toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  margin-bottom: 16px;
}

.toolbar-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 150px;
}

.tool-field.grow {
  flex: 1 1 240px;
}

.tool-field>i {
  position: absolute;
  right: 11px;
  color: #93a5a2;
  font-size: 14px;
  pointer-events: none;
}

.tool-field .form-control,
.tool-field .form-select {
  height: 42px;
  font-size: 13px;
}

.tool-field>i+.form-control {
  padding-right: 33px;
}

.tool-actions {
  display: flex;
  gap: 6px;
}

.tool-toggle {
  display: none;
}

/* ------------------------------ results bar ----------------------------- */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.results-bar i {
  color: var(--primary);
}

/* -------------------------------- pager --------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------------------------- property list ----------------------------- */
.prop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-row {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  align-items: stretch;
}

.prop-row:hover {
  border-color: #b9d2cd;
}

.prop-thumb {
  width: 128px;
  min-width: 128px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f1;
  display: block;
}

.prop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prop-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prop-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.prop-name:hover {
  color: var(--primary);
}

.prop-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.reason-box {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  background: #fff6f2;
  border: 1px solid #f6dccf;
  color: #8c4527;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.8;
}

.reason-box i {
  margin-top: 2px;
}

/* ------------------------------- stepper -------------------------------- */
.stepper {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: none;
  font-family: inherit;
}

.step:hover:not(:disabled) {
  background: #f4f8f7;
}

.step:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.step.active {
  background: #eef5f3;
  color: var(--primary);
  font-weight: 800;
}

.step.done {
  color: #197a54;
}

.step-num {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: #eef1f1;
  color: #63736f;
}

.step.active .step-num {
  background: var(--primary);
  color: #fff;
}

.step.done .step-num {
  background: #d8f0e4;
  color: #197a54;
}

/* ------------------------- dynamic form sections ------------------------ */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.form-section+.form-section {
  margin-top: 16px;
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.pform-sec-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.form-section-help {
  font-size: 12.5px;
  color: var(--muted);
  margin: -4px 0 12px;
  line-height: 1.8;
}

.form-section {
  padding: 18px;
  background-color: #f8fbfa;
  border: 1px solid #e3efec;
  border-radius: 12px;
}

.pform-section-invalid {
  border-color: #f1a7a7;
  background-color: #fffafa;
}

.pform-empty-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f9f7;
  border: 1px dashed #9dd0c8;
}

.pform-switch {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
}

.pform-multiselect-wrap .choice {
  flex: 1 1 165px;
  padding: 8px 12px;
  min-height: 40px;
}

.pform-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pform-upload-drop {
  position: relative;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.pform-upload-drop:hover {
  border-color: var(--primary);
  background: #f2f9f7;
}

.pform-upload-drop.pointer-none {
  pointer-events: none;
}

.pform-preview-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pform-prev-thumb {
  position: relative;
  width: 92px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #dbe7e4;
  flex-shrink: 0;
}

.pform-prev-thumb.is-cover {
  border-color: var(--primary);
}

.pform-prev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pform-prev-cover {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field>label {
  font-size: 12px;
  font-weight: 700;
  color: #43524f;
}

.field .req {
  color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.is-invalid {
  border-color: #e08b8b !important;
  background: #fffafa;
}

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

.choice {
  flex: 1 1 150px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  background: #fff;
  text-align: right;
  font-family: inherit;
}

.choice:hover {
  border-color: #a7c9c3;
  background: #fbfdfc;
}

.choice.on {
  border-color: var(--primary);
  background: #eef5f3;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 0 2px #0d6b661a;
}

.choice i {
  font-size: 15px;
}

/* 4-category property type picker & quick chips */
.prop-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prop-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d7e3e0;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.prop-cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5fbf9;
}

.prop-cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(13, 107, 102, 0.2);
}

.prop-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.prop-type-card-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dce6e4;
  background: #ffffff;
  text-align: right;
  cursor: pointer;
  transition: all 0.16s ease;
}

.prop-type-card-btn:hover {
  border-color: #93c4bd;
  background: #fafdfc;
}

.prop-type-card-btn.on {
  border-color: var(--primary);
  background: #eef6f4;
  box-shadow: 0 0 0 2px rgba(13, 107, 102, 0.12);
}

.prop-type-card-btn .ptc-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f1f7f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.prop-type-card-btn.on .ptc-icon {
  background: var(--primary);
  color: #ffffff;
}

.prop-type-card-btn .ptc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.prop-type-card-btn .ptc-title {
  font-size: 13px;
  color: #0f172a;
}

.prop-type-card-btn.on .ptc-title {
  color: var(--primary);
}

.prop-type-card-btn .ptc-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 2px;
}

.quick-chips-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.quick-chip-btn {
  border: 1px solid #d5e0de;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.quick-chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
}

.switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.switch.on {
  border-color: var(--primary);
  background: #eef5f3;
}

/* --------------------------------- gallery ------------------------------ */
.upload-drop {
  border: 2px dashed #cfe0dc;
  border-radius: 11px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  background: #fbfdfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upload-drop i {
  font-size: 26px;
  color: var(--primary);
}

.upload-drop.drag {
  border-color: var(--primary);
  background: #eef5f3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* دکمه شناور و درشت حذف در گوشه تصویر */
.gallery-del-float {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff !important;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.gallery-del-float:hover {
  background: #dc2626;
  transform: scale(1.1);
  color: #ffffff !important;
}

.gallery-del-float:active {
  transform: scale(0.92);
}

.cover-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.gallery-actions {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fff;
  align-items: center;
}

.gallery-actions button {
  flex: 1;
  min-width: 0 !important;
  height: 34px;
  min-height: 34px;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 !important;
}

.gallery-actions button:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.gallery-actions button.danger {
  color: #dc2626;
  background: #fef2f2;
  font-weight: 700;
}

.gallery-actions button.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.gallery-actions button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ------------------------------- detail --------------------------------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 9px;
}

.fact {
  background: #fbfdfc;
  border: 1px solid #edf2f1;
  border-radius: 9px;
  padding: 10px 12px;
}

.fact small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.fact strong {
  font-size: 13.5px;
  font-weight: 700;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dbe7e4;
  background: #f7fbfa;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  color: #40514e;
}

.chip i {
  color: var(--primary);
  font-size: 12px;
}

.chip.on {
  border-color: #bfe0d4;
  background: #ecf8f2;
  color: #16533c;
}

/* ------------------------------- timeline ------------------------------- */
.timeline {
  position: relative;
  padding-right: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e6eeec;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  right: -17px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
}

.timeline-item:first-child .timeline-dot {
  background: var(--primary);
}

.timeline-body strong {
  font-size: 12.5px;
}

.timeline-body p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.timeline-body time {
  font-size: 11px;
  color: #9aa8a5;
}

/* ------------------------------ public advisor --------------------------- */
.advisor-hero {
  background: #103f3c;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.advisor-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff3d;
  background: #1d5651;
  flex: none;
}

.advisor-hero h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
}

.advisor-hero .muted {
  color: #bcd6d2;
}

.contact-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff17;
  border: 1px solid #ffffff2e;
  color: #eaf6f4;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
}

.contact-chips a:hover {
  background: #ffffff2b;
  color: #fff;
}

/* ------------------------------- review ui ------------------------------ */
.review-drawer {
  position: fixed;
  inset: 0;
  background: #14232199;
  z-index: 6000;
  display: flex;
  justify-content: flex-start;
  direction: rtl;
}

.review-sheet {
  background: #fff;
  width: min(560px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  direction: rtl;
  text-align: right;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
}

.review-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.review-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #edf2f1;
  padding: 12px 0 0;
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.status-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  color: #4c5c59;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-tabs button.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

.status-tabs button span {
  background: #00000012;
  border-radius: 20px;
  padding: 1px 6px;
  font-size: 11px;
}

.status-tabs button.on span {
  background: #ffffff30;
}

.review-sheet-wide {
  width: min(780px, 100%) !important;
}

.admin-tabs-nav {
  display: flex;
  gap: 3px;
  border-bottom: 2px solid #dce8e5;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0;
  background: #f7fbfa;
  border-radius: 8px 8px 0 0;
  overflow-y: hidden;

}

.admin-tabs-nav a,
.admin-tabs-nav button {
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font-weight: 600;
  color: #4b615d;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
  transition: all .15s ease;
}

.admin-tabs-nav a:hover,
.admin-tabs-nav button:hover {
  color: var(--primary);
  background: rgba(16, 149, 140, 0.08);
}

.admin-tabs-nav a.active,
.admin-tabs-nav button.active {
  color: #0b5e58;
  border-bottom-color: #0b5e58;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7efed;
}

.admin-title {
  font-size: 19px;
  font-weight: 800;
  color: #172b28;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-kpi-dense {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-kpi-card {
  background: #fff;
  border: 1px solid #dbe6e4;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
}

.admin-kpi-card:hover {
  border-color: #0b5e58;
  box-shadow: 0 2px 8px rgba(11, 94, 88, 0.08);
  transform: translateY(-1px);
}

.admin-kpi-card .val {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-kpi-card .lbl {
  font-size: 11px;
  color: #617774;
}

.admin-kpi-card .ico {
  font-size: 20px;
  opacity: 0.85;
}

/* High-Density Admin Layout & Spacing */
.section:has(.admin-tabs-nav),
.section:has(.admin-page-header),
.admin-section {
  padding: 16px 0 32px !important;
}

.admin-tabs-nav~.kpi-grid,
.admin-page-header~.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tabs-nav~.kpi-grid .kpi,
.admin-page-header~.kpi-grid .kpi {
  padding: 8px 12px;
  border-radius: 8px;
  gap: 3px;
}

.admin-tabs-nav~.kpi-grid .kpi .kpi-value,
.admin-page-header~.kpi-grid .kpi .kpi-value {
  font-size: 20px;
}

.admin-tabs-nav~.kpi-grid .kpi .kpi-icon,
.admin-page-header~.kpi-grid .kpi .kpi-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 6px;
}

.admin-tabs-nav~.toolbar,
.admin-tabs-nav~form.toolbar,
.admin-page-header~.toolbar,
.admin-page-header~form.toolbar {
  padding: 8px 12px;
  margin-bottom: 12px;
}

.admin-tabs-nav~.status-tabs,
.admin-page-header~.status-tabs {
  margin-bottom: 10px;
}

.admin-tabs-nav~.panel,
.admin-page-header~.panel {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.admin-tabs-nav~.panel .panel-head,
.admin-page-header~.panel .panel-head {
  padding: 9px 14px;
}

.admin-tabs-nav~.panel .panel-body,
.admin-page-header~.panel .panel-body {
  padding: 12px 14px;
}

.admin-media-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fafdfc;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-media-card .admin-media-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-media-card .badge-kind {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-media-card .btn-del-img {
  border: 0;
  background: #e53e3e;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.admin-media-card .btn-del-img:hover {
  transform: scale(1.1);
  background: #c53030;
}

.admin-thumb-sm {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* -------------------------------- nav menu ------------------------------ */
.user-menu {
  position: relative;
}

.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 18px 40px #103f3c26;
  min-width: 232px;
  max-width: min(320px, 92vw);
  padding: 8px;
  z-index: 40;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c3d5d1 transparent;
}

.menu-pop a,
.menu-pop button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: #35433f;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}

.menu-pop a:hover,
.menu-pop button:hover {
  background: #f3f8f7;
  color: var(--primary);
}

.menu-pop .sep {
  height: 1px;
  background: #edf2f1;
  margin: 6px 4px;
}

.menu-pop .head {
  padding: 8px 11px 4px;
}

.menu-pop .head strong {
  display: block;
  font-size: 13px;
}

.menu-pop .head small {
  color: var(--muted);
  font-size: 11px;
}

.notify-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 18px 40px #103f3c26;
  z-index: 40;
  overflow: hidden;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.notify-pop .notif-list {
  max-height: 60vh;
  overflow-y: auto;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid #edf2f1;
}

.notify-head strong {
  font-size: 13px;
}

.notify-head button {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 575px) {

  /* Header popovers are anchored to a right-aligned control; on phones they would
     render partly outside the viewport, so pin them to the screen instead. */
  .notify-pop,
  .menu-pop {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

.bell-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background: var(--warm);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #14232199;
  z-index: 55;
}

.mobile-nav-panel {
  background: #fff;
  width: min(300px, 84vw);
  height: 100%;
  padding: 16px;
  overflow-y: auto;
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #35433f;
}

.mobile-nav-panel a:hover {
  background: #f3f8f7;
  color: var(--primary);
}

.mobile-nav-panel .group {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  margin: 14px 10px 4px;
}

.only-mobile {
  display: none;
}

.sticky-actions {
  display: none;
}

/* ---------------------------- responsive layers ------------------------- */
@media (max-width: 991px) {
  .prop-thumb {
    width: 104px;
    min-width: 104px;
  }
}

@media (max-width: 767px) {
  .only-mobile {
    display: inline-flex;
  }

  .hide-mobile {
    display: none !important;
  }

  .section {
    padding: 26px 0;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head-actions {
    width: 100%;
  }

  .page-head-actions .btn {
    flex: 1;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
  }

  .kpi {
    padding: 12px;
  }

  .kpi-value {
    font-size: 21px;
  }

  .form-card {
    padding: 12px;
  }

  .form-section {
    padding: 14px 12px;
  }

  .pform-page {
    padding-bottom: 84px;
  }

  .pform-stepper {
    padding: 6px;
    gap: 4px;
  }

  .pform-stepper .step {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 11px;
    gap: 5px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .pform-stepper .step-label {
    display: inline;
  }

  .stepper:not(.pform-stepper) {
    padding: 6px;
  }

  .stepper:not(.pform-stepper) .step-label {
    display: none;
  }

  .stepper:not(.pform-stepper) .step {
    padding: 8px;
  }

  /* tables collapse into readable cards — avoids horizontal scrolling */
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 9px;
    padding: 6px 10px;
    background: #fff;
  }

  .data-table td {
    border: 0;
    padding: 5px 0;
    text-align: right !important;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
  }

  .data-table td:empty {
    display: none;
  }

  .prop-row {
    flex-direction: column;
  }

  .prop-thumb {
    width: 100%;
    min-width: 0;
    height: 168px;
  }

  .prop-actions {
    flex-direction: row;
  }

  .prop-actions .btn {
    flex: 1;
  }

  .review-sheet {
    width: 100%;
    border-radius: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  }

  .pform-actions-bar {
    flex-direction: column-reverse;
    align-items: stretch !important;
  }

  .pform-actions-bar > button,
  .pform-actions-primary {
    width: 100%;
    justify-content: space-between;
  }

  .pform-actions-primary .btn {
    flex: 1;
  }

  .advisor-hero {
    padding: 18px;
  }

  .advisor-avatar {
    width: 82px;
    height: 82px;
  }

  /* keep the primary action of a page reachable with the thumb */
  .sticky-actions {
    display: flex;
    position: sticky;
    bottom: 0;
    gap: 8px;
    background: #fffffff2;
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
    margin: 16px -15px -26px;
    padding: 10px 15px;
    z-index: 30;
  }

  .sticky-actions .btn {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .tool-field {
    min-width: 100%;
  }

  .tool-field.grow {
    flex-basis: 100%;
  }

  .contact-chips a {
    flex: 1;
    justify-content: center;
  }

  .review-actions .btn {
    flex: 1 1 46%;
  }
}

/* Featured properties — premium treatment on the homepage */
.property-grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.property-grid-featured .property-card {
  border-color: #ead9c6;
  box-shadow: 0 10px 26px #123b3420;
}

.property-grid-featured .property-card:hover {
  box-shadow: 0 16px 36px #123b3430;
  border-color: var(--warm);
}

.property-grid-featured .property-title {
  font-size: 15.5px;
}

.featured-empty {
  background: #fffdf9;
  border: 1px dashed #e9dcc6;
}

@media (max-width: 575px) {
  .property-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* --- search tabs (homepage) --- */
.search-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.search-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- agent reputation --- */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.rating-summary .bi-star-fill {
  color: #f59e0b;
}

.rating-row {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.rating-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.rating-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  color: #f59e0b;
  font-size: 12px;
}

/* --- instagram embed --- */
/* Instagram's embed script positions its iframe absolutely, which overflows the RTL
   column and forces a horizontal scroll on mobile. Anchor the wrapper and keep the
   iframe in flow so the embed can never widen the page. */
.ig-embed-wrap {
  position: relative;
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
}

.ig-embed-wrap iframe {
  position: static !important;
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.spec-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px;
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row:nth-child(odd) {
  background: var(--surface);
}

.spec-label {
  flex: 0 0 42%;
  color: var(--muted);
}

.spec-value {
  flex: 1;
  font-weight: 600;
  text-align: left;
}

.ig-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.ig-divider::before,
.ig-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- terms --- */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.terms-check input {
  margin-top: 3px;
}

.min-w-0 {
  min-width: 0;
}

/* webkit scrollbar for the (tall) admin user menu */
.menu-pop::-webkit-scrollbar {
  width: 8px;
}

.menu-pop::-webkit-scrollbar-thumb {
  background: #c3d5d1;
  border-radius: 8px;
}

.menu-pop::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 767px) {
  .menu-pop {
    max-height: calc(100vh - 84px);
    min-width: 210px;
  }
}

/* --- notifications: each row links to the screen it belongs to --- */
.notif-item {
  text-decoration: none;
  color: inherit;
}

a.notif-item {
  cursor: pointer;
}

a.notif-item:hover {
  background: #f5faf9;
}

.notif-item .notif-go {
  color: #c2d1ce;
  font-size: 13px;
  margin-inline-start: auto;
}

a.notif-item:hover .notif-go {
  color: var(--primary);
}

/* --- small secondary action inside modals and panels --- */
.ghost-link {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 4px 0;
  cursor: pointer;
}

.ghost-link:hover {
  text-decoration: underline;
}

/* --- removable chips (admin cities & neighborhoods) --- */
.chip-x {
  border: 0;
  background: none;
  padding: 0 0 0 1px;
  line-height: 1;
  color: #7d8f8c;
  cursor: pointer;
  font-size: 12px;
}

.chip-x:hover {
  color: #c0392b;
}

/* --- legal documents (terms privacy content loans cookies) --- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 84px;
}

.legal-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.legal-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.legal-nav-list a:hover {
  background: var(--surface);
}

.legal-nav-list a.active {
  background: #e9f4f1;
  color: var(--primary);
}

.legal-nav-list a>i {
  color: var(--primary);
  font-size: 15px;
  flex: 0 0 auto;
}

.legal-nav-title {
  flex: 1;
  min-width: 0;
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.legal-content {
  line-height: 2.1;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--primary);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 12px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
}

.legal-content strong {
  color: var(--ink);
}

.legal-foot {
  margin: 0;
}

@media (max-width: 767px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

/* --- PWA install banner --- */
.install-banner {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 34px #103f3c26;
}

.install-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.install-text strong {
  font-size: 13.5px;
}

.install-text span {
  font-size: 11.5px;
  color: var(--muted);
}

.install-go {
  flex: 0 0 auto;
  white-space: nowrap;
}

.install-close {
  border: 0;
  background: none;
  color: #8fa19e;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
  align-self: flex-start;
}

.install-close:hover {
  color: var(--ink);
}

.ios-steps {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  line-height: 2;
  font-size: 13.5px;
}

/* ==========================================================================
 * xanooo Enhancements: Video Badges, Leaflet Maps, Consignment & Calculator
 * ======================================================================== */

/* --- Instagram Video Badge on Cards --- */
.badge-video {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover .badge-video {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.5);
}

.badge-video i {
  font-size: 13px;
}

/* --- Consignment CTA (سپردن ملک به مشاور) --- */
.consign-nav-btn {
  border-color: #27ae60 !important;
  color: #27ae60 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.consign-nav-btn:hover {
  background: #27ae60 !important;
  color: #fff !important;
}

.consign-hero-banner {
  background: linear-gradient(135deg, #094d49 0%, #0d6b66 100%);
  border-radius: 20px;
  padding: 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  box-shadow: 0 16px 36px rgba(13, 107, 102, 0.2);
}

.consign-hero-banner h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}

.consign-hero-banner p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
  max-width: 620px;
  line-height: 1.8;
}

.consign-hero-banner .btn-consign {
  background: #ffc107;
  color: #1a202c;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.consign-hero-banner .btn-consign:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

/* --- Interactive Advisor Picker & Consign Modal (مودال سپردن ملک به مشاور) --- */
.consign-modal-backdrop {
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  padding: 20px;
}

.consign-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: consignFadeIn 0.25s ease-out;
}

.consign-sheet-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 10px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.consign-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
}

.consign-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.consign-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.consign-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.consign-modal-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.consign-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 15px;
}

.consign-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.consign-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}

.consign-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.consign-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.consign-submit-btn {
  flex: 1 1 auto;
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10b981 !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.consign-submit-btn:hover {
  background: #059669 !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.consign-cancel-btn {
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  background: #fff !important;
  transition: all 0.2s;
}

.consign-cancel-btn:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
}

.consign-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.consign-input {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  font-size: 13.5px !important;
  padding: 8px 12px !important;
  min-height: 42px !important;
  background: #f8fafc !important;
  transition: all 0.2s ease;
}

.consign-input:focus {
  background: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* Advisor Picker Box */
.advisor-picker-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-top: 4px;
}

.advisor-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.advisor-search-wrap i.bi-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.advisor-search-input {
  padding-right: 36px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  background: #ffffff !important;
  min-height: 40px !important;
}

.advisor-search-clear {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #94a3b8;
  padding: 0;
  cursor: pointer;
}

.advisor-picker-list {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px;
}

.advisor-picker-list::-webkit-scrollbar {
  width: 5px;
}

.advisor-picker-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.advisor-pick-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: right;
}

.advisor-pick-card:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.advisor-pick-card.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px #10b981;
}

.advisor-pick-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.advisor-pick-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  display: block;
}

.advisor-pick-card.selected .advisor-pick-avatar {
  border-color: #10b981;
}

.advisor-pick-check {
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 2px solid #ffffff;
}

.advisor-pick-info {
  flex: 1 1 auto;
  min-width: 0;
}

.advisor-pick-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.advisor-pick-agency {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-select-indicator {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.advisor-select-indicator.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.advisor-pick-agent-name {
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
}

.advisor-pick-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.advisor-pick-meta .rating-pill {
  color: #d97706;
  font-weight: 700;
}

.advisor-pick-profile-link {
  margin-right: auto;
  color: #0d6b66;
  font-weight: 600;
  text-decoration: none;
  font-size: 11px;
}

.advisor-pick-profile-link:hover {
  text-decoration: underline;
}

.advisor-pick-address {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.consign-selected-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  background: #f0fdf4;
}

.consign-selected-note {
  font-size: 11.5px;
  margin-top: 2px;
  line-height: 1.6;
}

/* Consign Transaction Type Pills & Bedroom Chips */
.consign-type-nav {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 2px;
}

.consign-type-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.consign-type-btn:hover {
  color: #0d6b66;
}

.consign-type-btn.active {
  background: #ffffff;
  color: #0d6b66;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bedroom-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bedroom-chip-btn {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bedroom-chip-btn:hover {
  border-color: #10b981;
  color: #0d6b66;
}

.bedroom-chip-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.consign-convertible-wrap {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 8px 12px;
}

@keyframes consignFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes consignSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Mobile responsive rules for Consign modal */
@media (max-width: 767px) {
  .modal-backdrop-custom.consign-modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .consign-modal-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 22px 22px 0 0 !important;
    margin: 0 !important;
    animation: consignSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .consign-modal-header {
    padding: 14px 16px 12px 16px;
  }

  .consign-modal-title {
    font-size: 15.5px;
  }

  .consign-modal-sub {
    font-size: 11px;
  }

  .consign-modal-body {
    padding: 14px 16px;
  }

  .consign-modal-footer {
    padding: 10px 16px;
    gap: 8px;
  }

  .consign-submit-btn {
    font-size: 13px;
    height: 44px;
  }

  .consign-cancel-btn {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .advisor-picker-list {
    max-height: 190px;
  }

  .advisor-pick-card {
    padding: 8px 10px;
    gap: 10px;
  }

  .advisor-pick-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .advisor-pick-agency {
    font-size: 13px;
  }
}

/* --- Leaflet Map Container & Picker --- */
.property-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.property-map-canvas {
  height: 280px;
  width: 100%;
  z-index: 1;
}

.map-picker-canvas {
  height: 300px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 8px;
  z-index: 1;
}

.map-picker-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* --- Commission Calculator Card --- */
.calc-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.calc-nav-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.calc-nav-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.calc-nav-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.calc-result-box {
  background: #f0f7f6;
  border: 1px solid #cce5e2;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
}

.calc-result-row:not(:last-child) {
  border-bottom: 1px dashed #d5e9e6;
}

.calc-result-row.total {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  padding-top: 12px;
}

/* --- Enhanced Instagram Showcase in Detail --- */
.ig-reel-card {
  background: #fff;
  border: 1px solid rgba(220, 39, 67, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.08);
}

.ig-reel-header {
  background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(220, 39, 67, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-reel-header .ig-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.ig-reel-header h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: #1a202c;
}

.ig-reel-header p {
  font-size: 12px;
  margin: 2px 0 0;
  color: var(--muted);
}

/* --- Interactive Map Pins & Leaflet Customization --- */
.custom-map-div-icon {
  background: transparent;
  border: none;
}

.custom-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(23, 48, 46, 0.35);
  border: 2px solid #fff;
  white-space: nowrap;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.custom-map-pin:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(23, 48, 46, 0.5);
  z-index: 1000;
}

.custom-map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
}

.custom-map-pin.featured-pin {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  border-color: #ffd8a8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 84, 0, 0.45);
}

.custom-map-pin.featured-pin::after {
  border-top-color: #d35400;
}

/* Map Popups */
.property-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.property-leaflet-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
}

.property-leaflet-popup .leaflet-popup-tip {
  background: #fff;
}

.map-popup-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.map-popup-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.map-popup-details {
  padding: 10px 12px;
}

.map-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-popup-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.map-popup-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Mobile Floating Map/List Switcher */
.floating-map-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: #17302e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.floating-map-btn:hover {
  background: #0d1e1c;
  color: #fff;
  transform: translateX(-50%) scale(1.04);
}

@media (max-width: 991px) {
  .floating-map-btn {
    display: inline-flex;
  }
}

/* --- Login Modal Overhaul --- */
.login-modal-card {
  max-width: 440px;
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 25, 23, 0.25);
  animation: modalFadeIn 0.22s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-tabs {
  display: flex;
  background: #f1f6f5;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #556c68;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.login-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 12.5px;
  line-height: 1.6;
}

.ltr-input {
  direction: ltr !important;
  text-align: left;
}

.letter-spacing-lg {
  letter-spacing: 6px;
  font-family: monospace, inherit;
}

.phone-verify-bar {
  border: 1px solid #e2edeb;
  background: #f8faf9;
  font-size: 12.5px;
}

.dev-code-hint {
  border-radius: 8px;
  background: #e9f6fb;
  border: 1px solid #b8e2f2;
  color: #105979;
}

/* --- Photo Lightbox Modal --- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lbFade 0.2s ease-out;
}

@keyframes lbFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-dialog {
  max-width: 1050px;
  width: 100%;
  height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 6px 12px;
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  color: #cbdad7;
  direction: ltr;
}

.lightbox-title {
  font-size: 14px;
  font-weight: 700;
  color: #eef5f4;
  margin: 0;
  max-width: 65%;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.18s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  right: 8px;
}

.lightbox-next {
  left: 8px;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px 4px;
  justify-content: center;
  scrollbar-width: thin;
}

.lightbox-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
 * Global Site Loader / Splash Screen
 * ========================================================================== */
.app-global-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f8f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s ease;
  pointer-events: auto;
  user-select: none;
}

.app-global-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 340px;
  padding: 24px;
}

.loader-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.loader-logo {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(13, 107, 102, 0.15));
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-glow-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px solid rgba(13, 107, 102, 0.12);
  border-top-color: #0d6b66;
  border-right-color: #e5a93b;
  animation: loaderSpin 1.4s linear infinite;
  z-index: 1;
}

.loader-brand-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0d6b66;
  margin-bottom: 4px;
  font-family: inherit;
}

.loader-subtitle {
  font-size: 0.88rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 24px;
}

.loader-bar-wrap {
  width: 180px;
  height: 4px;
  background: rgba(13, 107, 102, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0d6b66 0%, #e5a93b 100%);
  border-radius: 99px;
  animation: loaderIndeterminate 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes loaderIndeterminate {
  0% {
    left: -40%;
    width: 40%;
  }

  50% {
    left: 20%;
    width: 70%;
  }

  100% {
    left: 100%;
    width: 40%;
  }
}

/* Commission Calculator buttons and inputs */
.btn-xs {
  font-size: 0.76rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

/* -------------------------------------------------------------
   Xanooo Agent Verification Badges (نشان‌های تیک اختصاصی مشاوران)
   ------------------------------------------------------------- */
.agent-badge-icon {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

.agent-badge-icon:hover {
  transform: scale(1.18) rotate(3deg);
}

.agent-badge-icon svg {
  display: block;
  overflow: visible;
}

.agent-badge-silver {
  filter: drop-shadow(0 0 4px rgba(226, 232, 240, 0.75));
}

.agent-badge-gold {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.75));
  animation: badgeGoldPulse 2.8s infinite ease-in-out;
}

@keyframes badgeGoldPulse {
  0% {
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.85));
  }

  100% {
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
  }
}

/* ==========================================================================
 * Support Ticket System & Legal Page Enhancements
 * ======================================================================= */

/* Status & Priority Badges */
.badge-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.pri-urgent {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 800;
}

.pri-high {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.pri-medium {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.pri-low {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.st-open {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.st-awaiting_admin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.st-awaiting_user {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.st-resolved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.st-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ticket-num {
  font-family: monospace, ui-monospace, SFMono-Regular;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
}

.ticket-subject-link {
  color: var(--ink);
  text-decoration: none;
}

.ticket-subject-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.ticket-unread-row {
  background-color: #f0fdfa !important;
}

.ticket-unread-admin {
  background-color: #fefce8 !important;
}

/* Conversation Thread */
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ticket-msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.ticket-msg-wrapper.msg-user {
  align-self: flex-start;
  width: 100%;
}

.ticket-msg-wrapper.msg-admin {
  align-self: flex-end;
  width: 100%;
}

.ticket-msg-bubble {
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.msg-user .ticket-msg-bubble {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top-right-radius: 4px;
}

.msg-admin .ticket-msg-bubble {
  background: #f0fdf9;
  border: 1px solid #99f6e4;
  border-top-left-radius: 4px;
}

.msg-internal .ticket-msg-bubble {
  background: #fffbeb !important;
  border: 2px dashed #f59e0b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.ticket-msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.ticket-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #e2e8f0;
  color: #475569;
}

.avatar-support {
  background: var(--primary);
  color: #fff;
}

.avatar-internal {
  background: #d97706;
  color: #fff;
}

.text-pre-wrap {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

/* Attachment Chip */
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.attachment-chip:hover {
  background: #e2e8f0;
  color: var(--primary-dark);
}

.attachment-size {
  color: var(--muted);
  font-size: 11px;
}

/* Modals & Drawers */
.ticket-backdrop,
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Bootstrap Modal Z-Index Safety */
.modal {
  z-index: 1070 !important;
}

.modal-backdrop {
  z-index: 1065 !important;
}

/* --- Property Lead Request Modal --- */
.lead-modal-backdrop {
  z-index: 1080 !important;
}

.lead-modal-card {
  max-width: 520px;
  width: 100%;
  border-radius: 20px;
  padding: 24px;
  animation: modalFadeIn 0.22s ease-out;
  position: relative;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.lead-header-icon {
  width: 44px;
  height: 44px;
  background: rgba(13, 107, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.lead-property-preview {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.lead-intent-chips .btn {
  font-size: 12px;
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}

.lead-sheet-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: -8px auto 12px;
}

@media (max-width: 576px) {
  .lead-modal-card {
    padding: 20px 16px;
    border-radius: 20px 20px 12px 12px;
    max-height: 92vh;
  }
}

.modal-dialog-custom {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 12px;
}

.admin-ticket-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: 100%;
  max-width: 760px;
  background: #fff;
  z-index: 1070;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
}

.btn-close-custom {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close-custom:hover {
  color: var(--ink);
  background: #f1f5f9;
}



/* =========================================================================
   [C3] Mobile Navigation Drawer
   ========================================================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 201;
  overflow-y: auto;
  transition: right 0.28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -4px 0 24px #0003;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 2px;
  flex: 1;
}

.mobile-nav-links a,
.mobile-nav-links button:not(.btn) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: #354340;
  font-weight: 500;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
}

.mobile-nav-links a:hover,
.mobile-nav-links button:not(.btn):hover {
  background: #f3f8f7;
  color: var(--primary);
}

.mobile-nav-links a i,
.mobile-nav-links button i {
  font-size: 18px;
  width: 22px;
}

.mobile-nav-sep {
  height: 1px;
  background: #edf2f1;
  margin: 8px 4px;
}

.mobile-nav-logout {
  color: #c0392b !important;
}

.mobile-nav-logout:hover {
  background: #fff5f5 !important;
}

@media (min-width: 768px) {

  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* =========================================================================
   [M1] Touch targets — حداقل 44px برای موبایل + font-size 16px
   ========================================================================= */
@media (max-width: 767px) {
  .icon-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .close-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-actions button {
    min-height: 36px;
    padding: 6px 8px;
  }

  .filter-reset {
    min-height: 44px;
    padding: 10px 12px;
  }

  .pager .btn {
    min-width: 44px;
    min-height: 44px;
  }

  .step {
    min-height: 44px;
  }

  /* جلوگیری از zoom ناخواسته iOS */
  .form-control,
  .form-select,
  .search-input,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* =========================================================================
   [M4] Skeleton Loading
   ========================================================================= */
.skeleton-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.skeleton-image-block {
  height: 185px;
}

.skeleton-body-block {
  padding: 14px;
}

.skeleton-line {
  border-radius: 4px;
  margin-bottom: 8px;
  height: 14px;
}

.skeleton-line.w-80 {
  width: 80%;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.h-18 {
  height: 18px;
}

.skeleton-line.h-12 {
  height: 12px;
}

@media (max-width: 767px) {
  .skeleton-image-block {
    height: 135px;
  }
}

/* =========================================================================
   [M8] Safe-area برای iPhone X+
   ========================================================================= */
.topbar {
  padding-top: env(safe-area-inset-top, 0px);
}

.modal-backdrop-custom {
  padding-top: max(16px, env(safe-area-inset-top, 16px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
}

footer.footer {
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}

/* =========================================================================
   [L5] Category-grid — horizontal scroll on mobile
   ========================================================================= */
@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: unset;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .category-tile {
    flex: 0 0 108px;
    scroll-snap-align: start;
    min-height: 108px;
  }

  .category-tile small {
    display: none;
  }
}



/* =========================================================================
   xanooo 2026 — Next-Gen Homepage Redesign Stylesheet
   Luxury Teal & Warm Gold Aesthetic, High-Conversion UX & Responsive Polish
   ========================================================================= */

/* --- Hero Redesign with Ambient Glow --- */
.hero-redesign {
  position: relative;
  background: radial-gradient(circle at 85% 15%, #0f4842 0%, #082b27 45%, #051c19 100%);
  color: #fff;
  padding: 56px 0 110px;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.6;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, rgba(13, 107, 102, 0.1) 70%, transparent 100%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: 0px;
  left: -80px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.05) 70%, transparent 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: #d1fae5;
  margin-bottom: 20px;
}

.hero-eyebrow-badge .badge-sparkle {
  color: #fbbf24;
  font-size: 15px;
}

.hero-main-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: #ffffff;
}

.hero-main-title img {
  width: 100px;
  display: block;
  margin: auto;
  margin-bottom: 25px;
  background-image: linear-gradient(0deg, #ffffff, transparent);
  border-radius: 50%;
  box-shadow: 0px 1px 20px 7px #fffcf3;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #fbb086 0%, #fed7aa 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 16px;
  line-height: 2;
  color: #d6e8e5;
  max-width: 580px;
  margin: 0 0 28px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 600;
}

.trust-badge-item i {
  color: #34d399;
  font-size: 16px;
}

/* --- Hero Showcase Glass Card (Desktop) --- */
.hero-floating-glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.3s ease;
}

.hero-floating-glass-card:hover {
  transform: translateY(-4px);
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vip-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.verified-tag {
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.glass-property-preview {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #184e49 0%, #287a71 50%, #153c38 100%);
}

.preview-img-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/placeholder.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.preview-video-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(8, 30, 27, 0.95) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: #e6f3f0;
}

.preview-type {
  font-weight: 700;
}

.preview-loc {
  color: #a7f3d0;
}

.glass-card-details {
  padding-top: 16px;
}

.glass-card-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #ffffff;
  line-height: 1.45;
}

.glass-specs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.glass-specs-row .spec-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1fae5;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.glass-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-price-box {
  display: flex;
  flex-direction: column;
}

.glass-price-box .price-label {
  font-size: 11px;
  color: #94a3b8;
}

.glass-price-box .price-val {
  font-size: 19px;
  font-weight: 800;
  color: #fbbf24;
}

.glass-price-box .price-val small {
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
}

.glass-view-btn {
  background: #ffffff;
  color: #0d6b66 !important;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.glass-view-btn:hover {
  background: #d1fae5;
  transform: translateX(-3px);
}

/* --- Search Box Redesign --- */
.search-box-wrapper {
  position: relative;
  z-index: 15;
}

.search-card-redesign {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px -10px rgba(8, 44, 41, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.search-nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f7f5;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 16px;
  max-width: 100%;
}

.search-tab-pill {
  border: 0;
  background: transparent;
  color: #4a6662;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-tab-pill:hover {
  color: #0d6b66;
}

.search-tab-pill.active {
  background: #0d6b66;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 107, 102, 0.28);
}

.search-tab-pill i {
  font-size: 15px;
}

.search-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfdfc;
  border: 1.5px solid #cde1dc;
  border-radius: 14px;
  padding: 5px 6px 5px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-bar:focus-within {
  border-color: #0d6b66;
  box-shadow: 0 0 0 4px rgba(13, 107, 102, 0.12);
  background: #ffffff;
}

.search-input-icon {
  font-size: 19px;
  color: #0d6b66;
  padding: 0 6px 0 2px;
  display: flex;
  align-items: center;
}

.search-main-input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  height: 48px;
  font-size: 14.5px;
  font-weight: 500;
  color: #18312f;
  font-family: inherit;
}

.search-main-input::placeholder {
  color: #92a4a1;
  font-weight: 400;
}

.search-clear-action {
  border: 0;
  background: #e2edea;
  color: #55726d;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
}

.search-clear-action:hover {
  background: #cbdcd7;
  color: #112c29;
}

.search-btn-cta {
  background: linear-gradient(135deg, #0d6b66 0%, #09504c 100%);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  height: 48px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.search-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 107, 102, 0.35);
}

/* Filters row */
.search-filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf4f2;
}

.filter-chip-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f4f8f7;
  border: 1px solid #d4e4e0;
  border-radius: 10px;
  height: 40px;
  padding: 0 10px;
  min-width: 150px;
  transition: all 0.2s ease;
}

.filter-chip-select:hover,
.filter-chip-select:focus-within {
  border-color: #0d6b66;
  background: #ffffff;
}

.filter-chip-icon {
  font-size: 14px;
  color: #0d6b66;
  margin-left: 8px;
}

.filter-chip-select select {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1f3d39;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 18px;
}

.filter-arrow {
  position: absolute;
  left: 10px;
  font-size: 11px;
  color: #7b9490;
  pointer-events: none;
}

.filter-reset-link {
  border: 0;
  background: transparent;
  color: #78908c;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-reset-link:hover {
  background: #f1f6f4;
  color: #c0392b;
}

.advanced-search-shortcut {
  color: #0d6b66;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.advanced-search-shortcut:hover {
  background: #eaf4f1;
}

/* Quick Trending Search Tags */
.search-trending-tags {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trending-label {
  font-size: 12px;
  font-weight: 700;
  color: #617b77;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trending-chips-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trending-chip {
  border: 1px solid #d5e6e2;
  background: #f3f8f6;
  color: #2b5550;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.trending-chip:hover {
  background: #0d6b66;
  border-color: #0d6b66;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- VIP Consignment Card & Pro Join Hub --- */
.action-hub-section {
  padding-top: 36px !important;
  padding-bottom: 24px !important;
}

.consign-vip-card {
  background: linear-gradient(135deg, #094d48 0%, #0d6b66 60%, #157b74 100%);
  border-radius: 22px;
  padding: 32px 34px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(13, 107, 102, 0.22);
}

.consign-vip-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  left: -80px;
  bottom: -90px;
  pointer-events: none;
}

.consign-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #d1fae5;
  margin-bottom: 14px;
}

.consign-vip-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
}

.consign-vip-desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: #dbebe7;
  max-width: 680px;
  margin: 0 0 20px;
}

.consign-vip-desc strong {
  color: #ffffff;
}

.consign-features-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.consign-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ecfdf5;
}

.consign-feat-item i {
  font-size: 16px;
}

.btn-consign-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a202c !important;
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-consign-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55);
}

/* Pro Join Card */
.pro-join-card {
  background: #ffffff;
  border: 1px solid #dbe8e5;
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(8, 44, 41, 0.06);
  display: flex;
  flex-direction: column;
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pro-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef7f5;
  color: #0d6b66;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.pro-card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: #18312f;
}

.pro-card-sub {
  font-size: 12px;
  color: #708581;
}

.pro-card-body-text {
  font-size: 13px;
  line-height: 1.8;
  color: #556c68;
  margin: 0 0 18px;
}

.pro-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.pro-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pro-action-btn strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.pro-action-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

.pro-action-btn .arrow-icon {
  font-size: 12px;
  transition: transform 0.2s;
}

.pro-action-btn:hover .arrow-icon {
  transform: translateX(-3px);
}

.pro-agent-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8 !important;
}

.pro-agent-btn:hover {
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.pro-biz-btn {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #15803d !important;
}

.pro-biz-btn:hover {
  background: #dcfce7;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

/* --- Redesigned Section Headers --- */
.section-head-redesign {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0d6b66;
  margin-bottom: 4px;
}

.section-heading {
  font-size: 24px;
  font-weight: 800;
  color: #18312f;
  margin: 0;
}

.section-subheading {
  font-size: 13px;
  color: #6a7f7c;
  margin: 4px 0 0;
}

.section-view-all {
  color: #0d6b66 !important;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.section-view-all:hover {
  background: #f0f7f5;
  transform: translateX(-3px);
}

/* --- Category Cards Navigator --- */
.section-categories-modern {
  background: #f9fbfb;
  border-top: 1px solid #edf4f2;
  border-bottom: 1px solid #edf4f2;
  padding: 44px 0;
}

.categories-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
}

.categories-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.categories-grid-modern {
  display: grid;
  grid-template-columns: repeat(10, minmax(105px, 1fr));
  gap: 12px;
}

.category-card-modern {
  background: #ffffff;
  border: 1px solid #e1eee9;
  border-radius: 16px;
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.category-card-modern:hover {
  border-color: #0d6b66;
  background: #f4faf8;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(13, 107, 102, 0.12);
}

.cat-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eaf5f2;
  color: #0d6b66;
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.category-card-modern:hover .cat-icon-container {
  transform: scale(1.08);
}

.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: #18312f;
  margin: 2px 0 0;
}

.cat-link-label {
  font-size: 10px;
  color: #7b928e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cat-loan-card {
  border-color: #fed7aa;
  background: #fffcf9;
}

.cat-loan-icon {
  background: #ffedd5;
  color: #ea580c;
}

.cat-biz-card {
  border-color: #bbf7d0;
  background: #fafffc;
}

.cat-biz-icon {
  background: #dcfce7;
  color: #16a34a;
}

/* --- Modern Property Cards Grid --- */
.section-featured-modern {
  background: #ffffff;
  padding: 50px 0;
}

.section-latest-modern {
  background: #fbfdfc;
  border-top: 1px solid #edf4f2;
  padding: 50px 0;
}

.property-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}

.property-card-modern {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(.4, 0, .2, 1), box-shadow 0.22s, border-color 0.2s;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.property-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(13, 107, 102, 0.12);
  border-color: #9ac2bb;
}

.prop-card-media {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #e6edea;
}

.prop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.property-card-modern:hover .prop-card-img {
  transform: scale(1.05);
}

.prop-badge-vip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.prop-badge-trans {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(13, 107, 102, 0.92);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.prop-badge-trans.bg-rent {
  background: rgba(30, 64, 175, 0.92);
}

.prop-badge-video {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prop-badge-video i {
  color: #ef4444;
  font-size: 13px;
}

.prop-card-loc-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #1e3a37;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prop-card-loc-pill i {
  color: #0d6b66;
}

.prop-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-card-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.type-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d6b66;
}

.prop-date {
  font-size: 11px;
  color: #8fa09d;
}

.prop-card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: #18312f;
  margin: 0 0 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
}

.prop-specs-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.spec-pill {
  background: #f1f7f5;
  color: #3b5a55;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spec-pill i {
  color: #0d6b66;
}

.prop-card-pricing {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf4f2;
}

.price-figure {
  font-size: 16px;
  font-weight: 800;
  color: #0d6b66;
}

.prop-card-advisor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5efec;
  font-size: 11.5px;
}

.advisor-mini-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #556f6b;
  font-weight: 600;
}

.details-cta {
  color: #0d6b66;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s;
}

.property-card-modern:hover .details-cta {
  transform: translateX(-3px);
}

/* Empty State */
.empty-state-modern {
  text-align: center;
  padding: 48px 20px;
  background: #fbfdfc;
  border: 1px dashed #cde1dc;
  border-radius: 16px;
  color: #647f7b;
}

.empty-state-modern .empty-icon {
  font-size: 38px;
  color: #a4c4bd;
  margin-bottom: 12px;
  display: block;
}

.empty-state-modern h4 {
  font-size: 17px;
  font-weight: 800;
  color: #1f3f3b;
  margin: 0 0 6px;
}

/* --- Loans Modern Grid --- */
.section-loans-modern {
  background: #f9fbfb;
  border-top: 1px solid #edf4f2;
  padding: 50px 0;
}

.loan-card-modern {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.loan-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 107, 102, 0.12);
  border-color: #a0c7c0;
}

.loan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.loan-bank-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef7f5;
  color: #0d6b66;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.bank-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #18312f;
}

.loan-city {
  font-size: 11.5px;
  color: #7b928e;
}

.loan-transfer-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}

.loan-transfer-pill.pill-ok {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.loan-title {
  font-size: 15px;
  font-weight: 800;
  color: #18312f;
  margin: 0 0 14px;
  line-height: 1.45;
}

.loan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fbfa;
  border: 1px solid #e7f0ee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.loan-stat-box .loan-stat-label {
  display: block;
  font-size: 11px;
  color: #78908c;
  margin-bottom: 2px;
}

.loan-stat-box .loan-stat-val {
  font-size: 14.5px;
  font-weight: 800;
}

.loan-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b8480;
  padding-top: 10px;
  border-top: 1px solid #edf4f2;
}

.loan-view-cta {
  color: #0d6b66;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Real Estate Advisors Grid --- */
.section-agents-modern {
  background: #ffffff;
  padding: 50px 0;
}

.agent-card-modern {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.22s ease;
  height: 100%;
}

.agent-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 107, 102, 0.12);
  border-color: #0d6b66;
}

.agent-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.agent-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #e2edea;
}

.agent-name {
  font-size: 15px;
  font-weight: 800;
  color: #18312f;
  margin: 0 0 3px;
}

.agent-city {
  font-size: 12px;
  color: #728c87;
}

.agent-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f7faf9;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #486460;
}

.agent-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
}

.agent-verified-badge {
  color: #15803d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agent-visit-link {
  color: #0d6b66;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Construction Businesses Grid --- */
.section-biz-modern {
  background: #fbfdfc;
  border-top: 1px solid #edf4f2;
  padding: 50px 0;
}

.biz-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.biz-card-modern {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.biz-card-modern:hover {
  transform: translateY(-3px);
  border-color: #16a34a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.1);
}

.biz-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #ecfdf5;
  display: grid;
  place-items: center;
}

.biz-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-logo-placeholder {
  color: #16a34a;
  font-size: 22px;
}

.biz-card-details {
  flex: 1;
  min-width: 0;
}

.biz-name {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #18312f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-cat {
  font-size: 11.5px;
  color: #728c87;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.biz-arrow-icon {
  font-size: 14px;
  color: #9ab4af;
  transition: transform 0.2s;
}

.biz-card-modern:hover .biz-arrow-icon {
  color: #16a34a;
  transform: translateX(-4px);
}

/* --- Online Real Estate Calculators Section --- */
.section-tools-modern {
  background: #ffffff;
  border-top: 1px solid #edf4f2;
  padding: 50px 0;
}

.calc-card-redesign {
  background: #ffffff;
  border: 1px solid #dfeae7;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(13, 107, 102, 0.06);
}

.calc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.calc-main-title {
  font-size: 18px;
  font-weight: 800;
  color: #18312f;
  margin: 0 0 4px;
}

.calc-subtitle {
  font-size: 12.5px;
  color: #6a827e;
}

.calc-badge-official {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calc-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f7f5;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.calc-mode-btn {
  border: 0;
  background: transparent;
  color: #4a6662;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.calc-mode-btn.active {
  background: #ffffff;
  color: #0d6b66;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calc-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #2b4743;
  margin-bottom: 6px;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-box {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d4e4e0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #18312f;
  background: #fbfdfc;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.calc-input-box:focus {
  border-color: #0d6b66;
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.12);
  background: #ffffff;
}

.calc-input-unit {
  position: absolute;
  left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #7b9490;
  pointer-events: none;
}

.calc-words-preview {
  display: block;
  font-size: 11.5px;
  color: #0d6b66;
  font-weight: 600;
  margin-top: 5px;
}

.calc-presets-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.calc-preset-pill {
  border: 1px solid #d4e4e0;
  background: #ffffff;
  color: #556f6b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.calc-preset-pill:hover,
.calc-preset-pill.active {
  background: #0d6b66;
  color: #ffffff;
  border-color: #0d6b66;
}

.calc-receipt-card {
  margin-top: 22px;
  background: #f7faf9;
  border: 1.5px solid #d8e8e4;
  border-radius: 14px;
  padding: 16px 18px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #18312f;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5efec;
}

.receipt-rate-tag {
  background: #e6f6f1;
  color: #0d6b66;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.receipt-label {
  color: #627b77;
}

.receipt-val {
  font-weight: 700;
  color: #18312f;
}

.receipt-divider {
  height: 1px;
  background: #d8e8e4;
  margin: 10px 0;
}

.receipt-total-row {
  margin-bottom: 0;
}

.receipt-total-label {
  font-weight: 800;
  color: #18312f;
}

.receipt-total-val {
  font-size: 17px;
  font-weight: 800;
}

.receipt-footer-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d8e8e4;
  font-size: 11.5px;
  color: #6a827e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Loan Tool */
.loan-card-tool {
  background: #f4f8f7;
  border: 1px solid #dce8e5;
  border-radius: 20px;
  padding: 24px;
}

.loan-tool-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d6b66;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.loan-tool-title {
  font-size: 18px;
  font-weight: 800;
  color: #18312f;
  margin: 0 0 6px;
}

.loan-tool-desc {
  font-size: 12.5px;
  color: #647d79;
  line-height: 1.7;
  margin: 0 0 16px;
}

.loan-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-select-arrow {
  position: absolute;
  left: 12px;
  font-size: 11px;
  color: #7b9490;
  pointer-events: none;
}

.loan-calc-btn {
  height: 44px;
  font-weight: 700;
  border-radius: 10px;
}

.loan-calc-result-box {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #d5e6e2;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.loan-calc-result-box .result-text {
  display: block;
  font-size: 12px;
  color: #647d79;
}

.loan-calc-result-box .result-val {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: #0d6b66;
  margin-top: 4px;
}

.loan-calc-result-box .result-val small {
  font-size: 12px;
  font-weight: 600;
  color: #556f6b;
}

/* Advisor Promo CTA */
.agent-cta-banner {
  background: #112d2a;
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
}

.agent-cta-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.agent-cta-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.45;
}

.agent-cta-desc {
  font-size: 12.5px;
  color: #bcd0cc;
  line-height: 1.7;
  margin: 0 0 16px;
}

.btn-agent-glow {
  background: #ffffff;
  color: #112d2a !important;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-agent-glow:hover {
  background: #fbbf24;
  color: #112d2a !important;
  transform: translateY(-2px);
}

/* =========================================================================
   Native-Like Mobile Bottom Navigation Bar (app-bar-bottom)
   ========================================================================= */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #dfeae7;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.m-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #627b77;
  font-size: 10.5px;
  font-weight: 600;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: color 0.18s ease;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
}

.m-nav-item i {
  font-size: 19px;
  line-height: 1;
}

.m-nav-item:hover,
.m-nav-item.active {
  color: #0d6b66;
}

.m-nav-center-action {
  position: relative;
  top: -8px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(310deg, #031678 0%, #0f2ded 100%);
  color: #ffffff !important;
  border: 3px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13, 107, 102, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
  font-size: 10px;
}

.m-nav-center-action i {
  font-size: 20px;
}

.m-nav-center-action:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Adjust PWA prompt position when mobile bottom bar exists */
@media (max-width: 767px) {
  .install-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    inset-inline: 10px !important;
  }

  footer.footer {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* =========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================= */
@media (max-width: 1199px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-showcase-col {
    display: none !important;
  }

  .categories-grid-modern {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
  }

  .biz-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-main-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .hero-redesign {
    padding: 28px 0 75px;
  }

  .hero-main-title {
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;

  }

  .hero-description {
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .hero-trust-bar {
    gap: 8px;
  }

  .trust-badge-item {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .search-box-wrapper {
    margin-top: 5px;
  }

  .search-card-redesign {
    padding: 14px;
    border-radius: 18px;
  }

  .search-nav-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 12px;
  }

  .search-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-tab-pill {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .search-input-bar {
    padding: 3px 4px 3px 10px;
  }

  .search-main-input {
    height: 44px;
    font-size: 13.5px;
  }

  .search-btn-cta {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .search-btn-cta span {
    display: none;
  }

  .search-btn-cta i {
    font-size: 16px;
    margin: 0;
  }

  .search-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-chip-select {
    width: 100%;
    min-width: 0;
  }

  .consign-vip-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .consign-vip-title {
    font-size: 17px;
  }

  .consign-vip-desc {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .btn-consign-glow {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 13.5px;
  }

  .categories-grid-modern {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 4px 0 12px;
  }

  .category-card-modern {
    flex: 0 0 115px;
    scroll-snap-align: start;
    padding: 14px 8px;
  }

  .biz-grid-modern {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
  }

  .biz-card-modern {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }

  .calc-card-redesign {
    padding: 18px 14px;
  }

  .loan-inputs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL PLACEHOLDER STYLING (Subtle & Pale to eliminate form clutter)
   ========================================================================== */
::placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

::-webkit-input-placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

::-moz-placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

:-ms-input-placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

.form-control::placeholder,
.form-select::placeholder,
.consign-input::placeholder,
.search-input::placeholder,
.search-main-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #b0b7be !important;
  opacity: 0.55 !important;
  font-weight: 300 !important;
}

/* Global Toast Notification System */
.global-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999 !important;
  max-width: min(520px, 92vw);
  width: auto;
  pointer-events: none;
}

.global-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #1e293b;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  font-weight: 500;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-toast.toast-success {
  border-right: 5px solid #10b981;
}

.global-toast.toast-error,
.global-toast.toast-danger {
  border-right: 5px solid #ef4444;
}

.global-toast.toast-warning {
  border-right: 5px solid #f59e0b;
}

.global-toast.toast-info {
  border-right: 5px solid #3b82f6;
}

.global-toast .toast-message {
  flex: 1;
  line-height: 1.5;
}

.global-toast .toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.global-toast .toast-close:hover {
  color: #334155;
  background: rgba(0, 0, 0, 0.05);
}

/* Invalid field highlight */
.form-control.is-invalid,
textarea.form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2) !important;
}

/* =========================================================================
   Redesigned Modern Advisor Dashboard Overview & Metrics
   ========================================================================= */
.advisor-summary-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e1edea;
  box-shadow: 0 2px 10px rgba(18, 48, 43, 0.04);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.advisor-stat-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.adv-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid #ebf4f1;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
  position: relative;
}

.adv-stat-item:not(.no-click):hover {
  background: #ffffff;
  border-color: #b7ded6;
  box-shadow: 0 4px 12px rgba(18, 48, 43, 0.06);
  transform: translateY(-1px);
}

.adv-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.adv-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adv-stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-family: inherit;
}

.adv-stat-title {
  font-size: 11.5px;
  color: #637572;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adv-stat-arrow {
  margin-right: auto;
  font-size: 13px;
  color: #b4c7c4;
  transition: transform 0.2s;
}

.adv-stat-item:hover .adv-stat-arrow {
  transform: translateX(-3px);
  color: var(--primary);
}

.advisor-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf4f2;
  flex-wrap: wrap;
}

.adv-status-bar-title {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.adv-status-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adv-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #f1f6f4;
  border: 1px solid #e1ece8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #3b4e4b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.adv-pill:hover {
  background: #e2f0ec;
  border-color: #bad9d1;
  color: var(--primary);
}

.adv-pill-success:hover {
  background: #e6f7f0;
  border-color: #84d8b5;
}

.adv-pill-warning {
  background: #fff8eb;
  border-color: #f7e0b5;
  color: #855700;
}

.adv-pill-warning:hover {
  background: #feefd0;
  border-color: #e5b967;
}

.adv-pill-danger {
  background: #fdf0f0;
  border-color: #f5c4c4;
  color: #aa1e1e;
}

.adv-pill-danger:hover {
  background: #fae1e1;
  border-color: #e69999;
}

/* =========================================================================
   Property Alert (گوش به زنگ ملک) Component Styles
   ========================================================================= */
.property-alert-box {
  background: #f6faf9;
  border: 1px solid #d9e9e5;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.property-alert-box.active {
  background: #f0f8f6;
  border-color: #92d4c5;
}

.property-alert-pill-toggle {
  background: #ffffff;
  border: 1px solid #d2e4e0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .advisor-stat-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .advisor-stat-items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .advisor-summary-card {
    padding: 12px;
  }
}

/* Smart Property Alert UX Enhancements */
.empty-state-alert {
  background: linear-gradient(135deg, #fffcf0 0%, #ffffff 100%);
  border: 1px solid #ffe8a1 !important;
}

.empty-alert-icon-box {
  display: flex;
  justify-content: center;
}

.empty-alert-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff3cd;
  color: #ff9800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.2);
  animation: bellPulse 2.5s infinite;
}

@keyframes bellPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.alert-save-search-btn {
  background: #fffdf5;
  border-color: #ffd269;
  font-size: 13px;
  transition: all 0.25s ease;
}

.alert-save-search-btn:hover {
  background: #ffecb5;
  border-color: #ffc107;
  transform: translateY(-1px);
}

.alert-similar-btn {
  background: #fffdf7;
  border-color: #ffc107;
  transition: all 0.25s ease;
}

.alert-similar-btn:hover {
  background: #ffecb5;
  border-color: #ffb300;
}

/* ==========================================================================
   Onboarding & Unified Multi-Role Flow Styles
   ========================================================================== */
.onboarding-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.activity-goal-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  border-color: #e2e8f0 !important;
  cursor: pointer;
}

.activity-goal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}

.activity-goal-card:active {
  transform: translateY(-1px);
}

.goal-icon-badge {
  transition: transform 0.25s ease;
}

.activity-goal-card:hover .goal-icon-badge {
  transform: scale(1.06);
}

.agency-results-box {
  background: #f8fafc;
}

.agency-results-box .list-group-item {
  transition: all 0.2s ease;
}

.agency-results-box .list-group-item:hover {
  background-color: #edf2f7;
}

.agency-results-box .list-group-item.active {
  background-color: #2563eb;
  color: #ffffff;
}

.onboarding-header h1 {
  letter-spacing: -0.02em;
}

@media (max-width: 576px) {
  .activity-goal-card {
    padding: 1.25rem !important;
  }
}

/* Onboarding responsive wizard steps */
.onboarding-steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.onboarding-steps-nav .step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50rem;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.onboarding-steps-nav .step-sep {
  color: #adb5bd;
  font-size: 12px;
}

@media (max-width: 576px) {
  .onboarding-steps-nav {
    gap: 4px;
    margin-bottom: 1rem;
  }

  .onboarding-steps-nav .step-pill {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 8px;
    gap: 3px;
  }

  .onboarding-steps-nav .step-sep {
    font-size: 9px;
  }

  .onboarding-card {
    padding: 1rem !important;
  }
}

/* 2-stage hierarchical category selector */
.biz-cat-parent-card {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.biz-cat-parent-card:hover {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.biz-cat-parent-card.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.biz-cat-child-btn {
  transition: all 0.15s ease;
  font-size: 13px;
  border-radius: 10px;
}

.biz-cat-child-btn:hover {
  transform: translateY(-1px);
}

.biz-cat-search-results {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.biz-cat-search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.biz-cat-search-item:last-child {
  border-bottom: none;
}

.biz-cat-search-item:hover {
  background: #f0fdf4;
}

/* ==========================================================================
   Mobile Accessibility & Touch Target Upgrades (UX 2026)
   - Minimum font-size for guidelines & labels: 13.5px
   - Minimum comfortable touch target: 44px
   - Enhanced contrast for sunlight legibility
   ========================================================================== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .small,
  small,
  .form-text,
  .muted {
    font-size: 13px !important;
  }

  .form-text,
  .muted {
    color: #475569;
  }

  .form-label,
  label {
    font-size: 14px !important;
    font-weight: 600;
  }

  .btn,
  .choice,
  .m-nav-item,
  .search-tab-pill,
  .bedroom-chip-btn,
  .consign-type-btn {
    min-height: 44px;
    font-size: 14px;
  }

  .btn.btn-sm,
  .quick-chip-btn,
  .gallery-actions button {
    min-height: 36px;
    font-size: 12.5px;
  }

  .icon-btn,
  .close-btn,
  .btn-close-custom,
  .gallery-del-float {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .form-control,
  .form-select {
    min-height: 46px;
    font-size: 15px !important;
  }
}

/* =========================================================================
   Mobile Property Sticky Action Bar & Push Notification UI
   ========================================================================= */
.property-mobile-bar {
  position: fixed;
  bottom: 58px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 101;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.push-notif-banner {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.push-notif-banner:hover {
  background: #f1f5f9;
}


/* Onboarding responsive wizard steps */
.onboarding-steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.onboarding-steps-nav .step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50rem;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.onboarding-steps-nav .step-sep {
  color: #adb5bd;
  font-size: 12px;
}

@media (max-width: 576px) {
  .onboarding-steps-nav {
    gap: 4px;
    margin-bottom: 1rem;
  }

  .onboarding-steps-nav .step-pill {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 8px;
    gap: 3px;
  }

  .onboarding-steps-nav .step-sep {
    font-size: 9px;
  }

  .onboarding-card {
    padding: 1rem !important;
  }
}

/* 2-stage hierarchical category selector */
.biz-cat-parent-card {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.biz-cat-parent-card:hover {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.biz-cat-parent-card.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.biz-cat-child-btn {
  transition: all 0.15s ease;
  font-size: 13px;
  border-radius: 10px;
}

.biz-cat-child-btn:hover {
  transform: translateY(-1px);
}

.biz-cat-search-results {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.biz-cat-search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.biz-cat-search-item:last-child {
  border-bottom: none;
}

.biz-cat-search-item:hover {
  background: #f0fdf4;
}

/* ==========================================================================
   Mobile Accessibility & Touch Target Upgrades (UX 2026)
   - Minimum font-size for guidelines & labels: 13.5px
   - Minimum comfortable touch target: 44px
   - Enhanced contrast for sunlight legibility
   ========================================================================== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .small,
  small,
  .form-text,
  .muted {
    font-size: 13px !important;
  }

  .form-text,
  .muted {
    color: #475569;
  }

  .form-label,
  label {
    font-size: 14px !important;
    font-weight: 600;
  }

  .btn,
  .choice,
  .m-nav-item,
  .search-tab-pill,
  .bedroom-chip-btn,
  .consign-type-btn {
    min-height: 44px;
    font-size: 14px;
  }

  .btn.btn-sm,
  .quick-chip-btn,
  .gallery-actions button {
    min-height: 36px;
    font-size: 12.5px;
  }

  .icon-btn,
  .close-btn,
  .btn-close-custom,
  .gallery-del-float {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .form-control,
  .form-select {
    min-height: 46px;
    font-size: 15px !important;
  }
}

/* =========================================================================
   Mobile Property Sticky Action Bar & Push Notification UI
   ========================================================================= */
.property-mobile-bar {
  position: fixed;
  bottom: 58px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 101;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.push-notif-banner {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.push-notif-banner:hover {
  background: #f1f5f9;
}


/* =========================================================================
   Quick Search Chips, Video Tours Reels & Smart Property Alert Styles
   ========================================================================= */

/* 1. Quick Search Chips */
.search-quick-tags {
  font-size: 13px;
}

.quick-chip-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.quick-chip-btn:hover {
  background: #0d6b66;
  color: #ffffff;
  border-color: #0d6b66;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 107, 102, 0.2);
}

.quick-chips-row .quick-chip-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  border-color: #d5e0de;
}

.quick-chips-row .quick-chip-btn.active,
.quick-chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 2. Video Tours & Reels Section */
.section-video-tours {
  background: #0f172a;
  color: #ffffff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.section-video-tours .section-heading {
  color: #ffffff;
}

.section-video-tours .section-view-all {
  color: #cbd5e1;
}

.section-video-tours .section-view-all:hover {
  color: #38bdf8;
}

.video-tours-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.video-tours-scroll::-webkit-scrollbar {
  height: 6px;
}

.video-tours-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.video-tour-card {
  flex: 0 0 220px;
  max-width: 220px;
  scroll-snap-align: start;
  background: #1e293b;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.video-tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.video-tour-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

.video-tour-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-tour-card:hover .video-tour-img {
  transform: scale(1.05);
}

.video-tour-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.video-play-btn-pulse {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0d6b66;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  animation: pulseGlow 2s infinite;
  padding-left: 2px;
}

.video-tour-card:hover .video-play-btn-pulse {
  transform: scale(1.12);
  background: #ffffff;
  color: #e11d48;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.video-trans-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0d6b66;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.video-trans-badge.bg-rent {
  background: #0284c7;
}

.video-tour-info {
  padding: 12px;
  background: #1e293b;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-tour-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.video-tour-title a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.15s ease;
}

.video-tour-title a:hover {
  color: #38bdf8;
}

/* 3. Smart Property Alert Hook */
.section-smart-alert-hook {
  padding: 40px 0;
  background: #f8fafc;
}

.smart-alert-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid #ccfbf1;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 12px 36px rgba(13, 107, 102, 0.08);
  position: relative;
  overflow: hidden;
}

.smart-alert-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(13, 107, 102, 0.06);
  pointer-events: none;
}

.alert-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fef3c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}

.alert-sparkle {
  position: absolute;
  top: -6px;
  left: -6px;
  font-size: 16px;
  animation: floatSparkle 2s ease-in-out infinite alternate;
}

@keyframes floatSparkle {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-4px) scale(1.15);
  }
}

.smart-alert-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.smart-alert-sub {
  font-size: 14px;
  line-height: 1.7;
}

.smart-alert-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.smart-alert-form .form-control,
.smart-alert-form .form-select {
  border-radius: 10px;
  border-color: #cbd5e1;
  font-size: 13.5px;
  background-color: #f8fafc;
}

.smart-alert-form .form-control:focus,
.smart-alert-form .form-select:focus {
  background-color: #ffffff;
  border-color: #0d6b66;
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.12);
}

@media (max-width: 768px) {
  .smart-alert-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .smart-alert-title {
    font-size: 19px;
  }

  .video-tour-card {
    flex: 0 0 175px;
    max-width: 175px;
    border-radius: 14px;
  }

  .video-play-btn-pulse {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}


/* =========================================================================
   Dedicated Video Tours Showcase Page Styles (/video-tours) - Clean & Minimal
   ========================================================================= */

.video-tours-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 0 20px 0;
}

.video-tours-header .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
}

.video-tours-header .breadcrumb-item a:hover {
  color: #0d6b66;
}

.v-verified-badge {
  background: #f0fdf4;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
}

.v-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.v-header-desc {
  font-size: 14px;
  color: #64748b;
}

.v-consign-btn {
  font-size: 13px;
  font-weight: 600;
  border-color: #cbd5e1;
  color: #334155;
  transition: all 0.2s ease;
}

.v-consign-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Toolbar & Filters */
.v-toolbar-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.v-category-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.v-chip {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.v-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.v-chip.active {
  background: #0d6b66;
  color: #ffffff;
  border-color: #0d6b66;
  box-shadow: 0 2px 6px rgba(13, 107, 102, 0.25);
}

.v-count-wrap {
  font-size: 12.5px;
}

.v-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.v-search-icon {
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.v-search-input {
  border-radius: 10px;
  font-size: 13px;
  padding-right: 36px;
  padding-left: 68px;
  border-color: #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.v-search-input:focus {
  background: #ffffff;
  border-color: #0d6b66;
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.1);
}

.v-search-submit {
  position: absolute;
  left: 5px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.v-select {
  border-radius: 10px;
  font-size: 13px;
  border-color: #e2e8f0;
  background-color: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
}

.v-select:focus {
  background-color: #ffffff;
  border-color: #0d6b66;
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.1);
}

/* Clean Video Cards */
.v-card-clean {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.v-card-clean:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  text-decoration: none;
}

.v-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0f172a;
  overflow: hidden;
}

.v-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.v-card-clean:hover .v-card-img {
  transform: scale(1.04);
}

.v-card-top-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.v-badge-trans {
  background: rgba(13, 107, 102, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.v-badge-trans.bg-rent {
  background: rgba(2, 132, 199, 0.85);
}

.v-badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.v-badge-insta {
  background: linear-gradient(135deg, #e1306c, #fd1d1d);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(225, 48, 108, 0.3);
}

.v-play-btn-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.v-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e11d48;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.2s ease;
}

.v-card-clean:hover .v-play-btn {
  transform: scale(1.12);
  background: #ffffff;
  color: #be123c;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
}

.v-media-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
  padding: 16px 12px 10px 12px;
  z-index: 2;
}

.v-price-text {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.v-card-info {
  padding: 12px 14px 14px 14px;
}

.v-card-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.v-card-clean:hover .v-card-heading {
  color: #0d6b66;
}

.v-card-sub {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-dot {
  margin: 0 6px;
  color: #cbd5e1;
}

.v-empty-box .v-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

@media (max-width: 768px) {
  .video-tours-header {
    padding: 16px 0;
  }
  .v-header-title {
    font-size: 20px;
  }
  .v-header-desc {
    font-size: 13px;
  }
  .v-toolbar-wrap {
    padding: 12px;
    border-radius: 12px;
  }
  .v-card-media {
    aspect-ratio: 4 / 5;
  }
}

/* Smart Title Generator and Suggestions */
.title-suggestions-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1 !important;
  transition: all 0.2s ease;
}

.title-suggestions-box:hover {
  background: #f1f5f9;
  border-color: #0d9488 !important;
}

.title-suggestion-pill {
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 16px;
  padding: 6px 13px;
  transition: all 0.18s ease;
  cursor: pointer;
  line-height: 1.6;
  white-space: normal;
  text-align: right;
}

.title-suggestion-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

/* ==========================================================================
   Enhanced Progressive Search & Synchronized Alert Modal (#/properties)
   ========================================================================== */
.x-properties-page {
  background: #f6faf9;
  min-height: 75vh;
  padding-top: 26px;
}

.x-search-card {
  background: #ffffff;
  border: 1px solid #d9e7e4;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(13, 107, 102, 0.06);
  margin-bottom: 16px;
}

.x-tx-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ecf3f1;
}

.x-tx-tab {
  border: 1px solid #dce8e5;
  background: #f8fbfa;
  color: #36524e;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.x-tx-tab:hover {
  border-color: #0d6b66;
  color: #0d6b66;
  background: #ffffff;
}

.x-tx-tab.active {
  background: #0d6b66;
  border-color: #0d6b66;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 107, 102, 0.22);
}

.x-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #46635e;
  margin-bottom: 5px;
}

.x-input-icon-wrap {
  position: relative;
}

.x-input-lead {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6d8985;
  font-size: 15px;
  pointer-events: none;
}

.x-main-input {
  padding-right: 36px !important;
  padding-left: 34px !important;
  height: 44px;
  border-radius: 11px !important;
  font-size: 13.5px;
}

.x-input-clear {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #e9f0ee;
  color: #4a6661;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.x-main-select {
  height: 44px;
  border-radius: 11px !important;
  font-size: 13.5px;
}

.x-submit-btn {
  height: 44px;
  border-radius: 11px;
  font-size: 14px;
}

.x-type-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2eeeb;
}

.x-bar-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #2f4e49;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}

.x-type-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.x-type-pill {
  border: 1px solid #d9e7e4;
  background: #f8fbfa;
  color: #2c4b46;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.x-type-pill:hover {
  border-color: #0d6b66;
  background: #ffffff;
}

.x-type-pill.active {
  background: #e8f5f3;
  border-color: #0d6b66;
  color: #0a5551;
  font-weight: 800;
}

.x-type-home-preset {
  border-color: #f3d27a;
  background: #fffbef;
  color: #7c5800;
}

.x-type-home-preset.active {
  background: #fef0c7;
  border-color: #d97706;
  color: #78350f;
}

.x-type-selection-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #0d6b66;
}

.x-type-extra-tray {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f7fbfa;
  border: 1px solid #e1eeeb;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.x-budget-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf4f2;
}

.x-words-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f766e;
  margin-top: 4px;
}

.x-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.x-quick-pill {
  border: 1px solid #d9e7e4;
  background: #ffffff;
  color: #36524e;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.x-quick-pill:hover {
  border-color: #0d6b66;
  color: #0d6b66;
}

.x-quick-pill.active {
  background: #0d6b66;
  border-color: #0d6b66;
  color: #ffffff;
}

.x-kw-pill {
  border-style: dashed;
}

.x-search-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf4f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.x-adv-toggle-btn {
  border: 1px solid #d4e3e0;
  background: #f7fbfa;
  color: #1f3d39;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.x-adv-toggle-btn:hover,
.x-adv-toggle-btn.active {
  border-color: #0d6b66;
  background: #eff8f6;
}

.x-adv-badge {
  background: #0d6b66;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-alert-cta-btn {
  background: #fff8df;
  border: 1.5px solid #f5c342;
  color: #6b4900;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.x-alert-cta-btn:hover {
  background: #ffecb5;
  border-color: #e6a800;
  color: #4d3300;
  transform: translateY(-1px);
}

.x-adv-drawer {
  margin-top: 14px;
  padding: 16px;
  background: #f8fbfa;
  border: 1px solid #dcebe7;
  border-radius: 14px;
}

.x-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.x-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbe0db;
  color: #154b47;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.x-chip button {
  border: 0;
  background: #e9f2f0;
  color: #244843;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.x-chip button:hover {
  background: #d93025;
  color: #ffffff;
}

.x-results-bar {
  background: #ffffff;
  border: 1px solid #dfece9;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.x-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7fbfa;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  padding: 2px 10px 2px 4px;
}

.x-sort-select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  font-weight: 700;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.x-split-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.x-split-map-sticky {
  position: sticky;
  top: 90px;
}

.x-empty-search-box {
  background: #ffffff;
  border: 1px dashed #cfdcd9;
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
}

.x-empty-bell {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff6da;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.x-alert-modal-card {
  max-width: 620px;
}

.x-alert-summary-box {
  background: #f4faf8;
  border: 1px solid #cfe6e1;
  border-radius: 12px;
  padding: 12px 14px;
}

.x-alert-custom-body {
  background: #f9fcfb;
  border: 1px solid #e1eeeb;
  border-radius: 12px;
  padding: 14px;
}

@media (max-width: 767px) {
  .x-search-card {
    padding: 14px;
    border-radius: 14px;
  }
  .x-tx-tab {
    font-size: 12px;
    padding: 6px 11px;
  }
  .x-alert-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .x-adv-toggle-btn {
    width: 100%;
    justify-content: space-between;
  }
}
