:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --green-600: #16a34a;
  --yellow-400: #facc15;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 55px rgba(15, 23, 42, .20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mlsh-modern {
  margin: 0;
  color: var(--slate-800);
  background: var(--slate-50);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.mlsh-modern.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  color: var(--slate-900);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 14px;
}

.brand-text {
  font-size: 17px;
}

.custom-logo,
.site-logo-image {
  max-height: 80px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
}

.menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li,
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu > li {
  display: flex;
  align-items: center;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.menu a:hover,
.menu a.is-active,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu .current_page_item > a,
.text-link:hover {
  color: var(--blue-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--slate-900);
  background: transparent;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
}

.login-link:hover {
  color: var(--blue-700);
}

.gtranslate_wrapper,
.gt_switcher_wrapper,
.skiptranslate.goog-te-gadget {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.gtranslate_wrapper select,
.gt_selector,
.goog-te-combo {
  min-height: 36px;
  min-width: 138px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  color: var(--slate-800);
  appearance: none;
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-700) 50%), linear-gradient(135deg, var(--blue-700) 50%, transparent 50%);
  background-position: calc(100% - 18px) 15px, calc(100% - 12px) 15px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
  outline: 0;
}

.gt_switcher_wrapper {
  z-index: 55 !important;
}

body.admin-bar .gt_switcher_wrapper {
  margin-top: 32px;
}

.gtranslate_wrapper select:focus,
.gt_selector:focus,
.goog-te-combo:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.gt_float_switcher,
.gt_switcher {
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm) !important;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--slate-900);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

.account-dropdown {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 188px;
  padding: 5px 14px 5px 6px;
  border: 1px solid #c7dff2;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
  transition: color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.account-trigger:hover,
.account-dropdown.is-open .account-trigger {
  border-color: var(--blue-600);
  color: var(--blue-700);
  box-shadow: 0 9px 20px rgba(37, 99, 235, .13);
}

.account-avatar,
.account-card-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.account-avatar {
  width: 30px;
  height: 30px;
}

.account-avatar img,
.account-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-name {
  overflow: hidden;
  max-width: 118px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 200;
  width: 260px;
  padding: 14px 0 8px;
  border: 1px solid #d9e7f4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.account-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 28px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #d9e7f4;
  border-left: 1px solid #d9e7f4;
  background: var(--white);
  transform: rotate(45deg);
}

.account-dropdown:hover .account-menu,
.account-dropdown:focus-within .account-menu,
.account-dropdown.is-open .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}

.account-card-avatar {
  width: 54px;
  height: 54px;
}

.account-card-copy {
  display: grid;
  min-width: 0;
}

.account-card-copy strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-copy small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 18px;
  border-bottom: 0;
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.account-menu a:last-child {
  border-bottom: 0;
}

.account-menu a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.account-menu a span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #0000cc;
  font-size: 12px;
  font-weight: 900;
}

.account-menu a[data-dashboard-icon="board"] span::before {
  content: "B";
}

.account-menu a[data-dashboard-icon="insight"] span::before {
  content: "I";
}

.account-menu a[data-dashboard-icon="properties"] span::before {
  content: "P";
}

.account-menu a[data-dashboard-icon="submit"] span::before {
  content: "+";
}

.account-menu a[data-dashboard-icon="favorites"] span::before {
  content: "H";
}

.account-menu a[data-dashboard-icon="saved-search"] span::before {
  content: "S";
}

.account-menu a[data-dashboard-icon="invoices"] span::before {
  content: "$";
}

.account-menu a[data-dashboard-icon="profile"] span::before {
  content: "U";
}

.account-menu a[data-dashboard-icon="logout"] span::before {
  content: "L";
}

.mlsh-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, .46);
}

.mlsh-auth-overlay.is-open {
  display: flex;
}

body.mlsh-auth-open {
  overflow: hidden;
}

.mlsh-auth-dialog {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.mlsh-auth-tabs {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  background: #08008b;
}

.mlsh-auth-tab,
.mlsh-auth-close {
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
}

.mlsh-auth-tab {
  position: relative;
  min-width: 108px;
  color: var(--white);
  background: #08008b;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mlsh-auth-tab[aria-selected="false"] {
  color: var(--white);
  background: #08008b;
}

.mlsh-auth-tab.is-active,
.mlsh-auth-tab[aria-selected="true"] {
  color: #1f2937;
  background: var(--white);
  box-shadow: none;
}

.mlsh-auth-tab-fill {
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.mlsh-auth-close {
  width: 58px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: var(--white);
  background: #08008b;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.mlsh-auth-close:hover {
  background: #050064;
}

.mlsh-auth-tab.is-active:hover,
.mlsh-auth-tab[aria-selected="true"]:hover {
  background: var(--white);
}

.mlsh-auth-tab:not(.is-active):hover,
.mlsh-auth-tab[aria-selected="false"]:hover {
  color: var(--white);
  background: #050064;
}

.mlsh-auth-panel {
  display: none;
  padding: 30px;
}

.mlsh-auth-panel.is-active {
  display: block;
}

.mlsh-auth-message {
  margin: 18px 30px 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.mlsh-auth-message-error {
  color: #991b1b;
  background: #fee2e2;
}

.mlsh-auth-message-success {
  color: #166534;
  background: #dcfce7;
}

.auth-field {
  position: relative;
  display: block;
  margin: 0;
}

.auth-field + .auth-field,
.auth-field + .mlsh-robot-check,
.auth-select-field + .mlsh-robot-check {
  margin-top: 10px;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 52px 0 42px;
  border: 1px solid #d9dee4;
  border-radius: 4px;
  color: var(--slate-800);
  background: var(--white);
  font-size: 14px;
  font-weight: 400;
  outline: 0;
}

.auth-select-field select {
  padding-left: 14px;
}

.auth-field input::placeholder {
  color: #9aa3aa;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #08008b;
  box-shadow: 0 0 0 3px rgba(8, 0, 139, .12);
}

.auth-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #8b949e;
  font-size: 13px;
  font-weight: 700;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  background: #df4545;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  transform: translateY(-50%);
}

.mlsh-robot-check,
.mlsh-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

.mlsh-robot-check {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d9dee4;
  border-radius: 4px;
  background: #f8fafc;
}

.mlsh-aiowps-captcha {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d9dee4;
  border-radius: 4px;
  background: #f8fafc;
}

.mlsh-aiowps-captcha .aiowps-captcha {
  margin: 0;
}

.mlsh-aiowps-captcha .aiowps-captcha label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.mlsh-aiowps-captcha .aiowps-captcha-equation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlsh-aiowps-captcha .aiowps-captcha-answer {
  width: 64px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #d9dee4;
  border-radius: 4px;
}

.mlsh-robot-check input,
.mlsh-auth-remember input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #08008b;
}

.mlsh-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.mlsh-auth-row a {
  color: #08008b;
  font-size: 13px;
  font-weight: 700;
}

.mlsh-auth-submit {
  margin-top: 30px;
}

.menu > .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .65;
}

.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 240px;
  max-height: none;
  overflow: visible;
  padding: 8px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.menu .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

.menu > li:last-child > .sub-menu,
.menu > li:nth-last-child(2) > .sub-menu {
  right: 0;
  left: auto;
}

.menu > li:last-child .sub-menu .sub-menu,
.menu > li:nth-last-child(2) .sub-menu .sub-menu {
  right: calc(100% + 8px);
  left: auto;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  min-width: 216px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.3;
}

.menu .sub-menu a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

/* Mobile-only: the open/close buttons theme.js adds to menu items with sub-menus. */
.submenu-toggle {
  display: none;
}

.menu .sub-menu .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}

.header-cta,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.header-cta,
.btn-primary {
  color: var(--white);
  border-color: var(--blue-700);
  background: var(--blue-700);
  box-shadow: 0 4px 10px rgba(29, 78, 216, .18);
}

.header-cta {
  min-height: 36px;
  padding-inline: 16px;
}

.header-cta:hover,
.btn-primary:hover {
  color: var(--white);
  border-color: var(--blue-800);
  background: var(--blue-800);
  box-shadow: 0 7px 16px rgba(29, 78, 216, .22);
}

.btn-light {
  color: var(--slate-700);
  border-color: var(--slate-300);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  color: var(--blue-700);
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.btn-secondary {
  color: var(--white);
  border-color: #05008c;
  background: #05008c;
  box-shadow: 0 4px 10px rgba(5, 0, 140, .16);
}

.btn-secondary:hover {
  color: var(--white);
  border-color: #0700b8;
  background: #0700b8;
  box-shadow: 0 7px 16px rgba(5, 0, 140, .20);
}

.btn-outline {
  color: var(--blue-700);
  background: var(--white);
  border-color: var(--blue-600);
}

.btn-outline:hover {
  color: var(--white);
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.btn-danger {
  color: var(--white);
  border-color: #dc2626;
  background: #dc2626;
}

.btn-danger:hover {
  color: var(--white);
  border-color: #b91c1c;
  background: #b91c1c;
}

.btn-sm {
  min-height: 36px;
  padding-inline: 13px;
  border-radius: 7px;
  font-size: 12px;
}

.btn-icon {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.btn-full,
.btn.full {
  width: 100%;
}

.header-cta:hover,
.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.header-cta:active,
.btn:not(:disabled):active {
  box-shadow: none;
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.header-cta:focus-visible,
.btn:focus-visible,
.login-link:focus-visible,
.account-trigger:focus-visible,
.home-search-tabs button:focus-visible,
.mlsh-auth-tab:focus-visible,
.mlsh-auth-close:focus-visible,
.auth-password-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-700);
  transition: transform .18s ease, opacity .18s ease;
}

/* Open menu: the three bars become an X. */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Account, phone and language inside the menu: phones only. */
.mobile-nav-extras {
  display: none;
}

/* GTranslate's box, moved into the header bar by theme.js; undo its floating position. */
.header-language .gt_switcher_wrapper,
.header-language .gtranslate_wrapper {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.header-language:empty {
  display: none;
}

/* Smaller desktops: keep the header on one line (phone as an icon, narrower language box). */
@media (min-width: 981px) and (max-width: 1240px) {
  .header-inner {
    gap: 16px;
  }

  .header-phone span {
    display: none;
  }

  .header-language select {
    min-width: 0;
    width: 120px;
  }
}

.home-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
}

.home-hero-bg,
.home-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-bg {
  object-fit: cover;
}

.home-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .52) 52%, rgba(15, 23, 42, .08));
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 54px 0;
}

.home-hero .eyebrow {
  color: var(--yellow-400);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
}

.home-hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 26px;
  color: var(--slate-200);
  font-size: 16px;
  line-height: 1.65;
}

.home-search-card {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.home-search-tabs {
  display: flex;
}

.home-search-tabs button {
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  color: var(--slate-500);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.home-search-tabs button.is-active,
.home-search-tabs button:hover {
  color: var(--white);
  background: var(--blue-700);
}

.home-search-fields {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(150px, .35fr) minmax(130px, .25fr) minmax(130px, .25fr) minmax(140px, auto);
  align-items: stretch;
  border-top: 1px solid var(--slate-100);
}

.home-search-fields label {
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-right: 1px solid var(--slate-100);
}

.home-search-fields span {
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 800;
}

.home-search-fields input,
.home-search-fields select {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--slate-700);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.home-search-fields input:focus,
.home-search-fields select:focus {
  outline: 0;
}

.home-search-fields .btn {
  min-height: 70px;
  border-radius: 0;
  padding-inline: 26px;
}

.home-benefits {
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.benefit-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
}

.benefit-home {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 15 16 6l11 9' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 14v11h14V14' fill='%23dbeafe' stroke='%231d4ed8' stroke-width='2'/%3E%3Cpath d='M14 25v-7h4v7' fill='%23facc15'/%3E%3C/svg%3E");
}

.benefit-shield {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4 25 8v7c0 6-4 10-9 13-5-3-9-7-9-13V8l9-4Z' fill='%2393c5fd' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='m12 16 3 3 6-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.benefit-agents {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='4' fill='%237c3aed'/%3E%3Ccircle cx='21' cy='13' r='4' fill='%235b21b6'/%3E%3Cpath d='M5 25c1-5 4-8 8-8s7 3 8 8' fill='%23c4b5fd'/%3E%3Cpath d='M15 25c1-4 3-7 7-7 3 0 5 3 6 7' fill='%238b5cf6'/%3E%3C/svg%3E");
}

.benefit-support {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 17v-2a8 8 0 0 1 16 0v2' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='5' y='16' width='6' height='8' rx='3' fill='%23cbd5e1'/%3E%3Crect x='21' y='16' width='6' height='8' rx='3' fill='%23cbd5e1'/%3E%3Cpath d='M21 24c0 3-3 4-5 4' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.benefit-item strong {
  color: var(--slate-800);
  font-size: 14px;
}

.benefit-item p {
  max-width: 250px;
  margin: 0;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.55;
}

.compact-section {
  padding: 48px 0 42px;
  background: var(--white);
}

.figma-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.figma-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 28px;
  line-height: 1.2;
}

.home-featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.location-section {
  padding-top: 0;
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-200);
}

.location-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform .3s ease;
}

.location-card:hover img {
  transform: scale(1.05);
}

.location-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, .76), rgba(15, 23, 42, .06));
}

.location-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  gap: 2px;
}

.location-copy strong {
  color: var(--white);
  font-size: 14px;
}

.location-copy small {
  color: var(--slate-300);
  font-size: 12px;
}

.why-section {
  padding: 54px 0;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 44px;
  align-items: center;
}

.why-section h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 30px;
}

.why-section p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.75;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-list div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 4px 10px;
}

.why-list span {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 4px solid var(--blue-100);
  border-radius: 999px;
  background: var(--blue-700);
}

.why-list strong {
  color: var(--slate-800);
  font-size: 14px;
}

.why-list small {
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.45;
}

.why-visual {
  position: relative;
}

.why-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.why-stat {
  position: absolute;
  left: -18px;
  bottom: -18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 12px;
  align-items: center;
  min-width: 230px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.why-stat strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 15px;
}

.why-stat span {
  color: var(--slate-800);
  font-size: 14px;
  font-weight: 800;
}

.why-stat small {
  color: var(--slate-500);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.property-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.property-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .88), rgba(29, 78, 216, .68)),
    linear-gradient(0deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .15));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.hero-copy h1,
.archive-hero h1,
.property-title-wrap h1,
.agent-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.property-hero .eyebrow,
.agent-hero .eyebrow {
  color: var(--yellow-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.property-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.archive-hero .property-search {
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr)) auto;
  margin-top: 28px;
  padding: 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.property-search label,
.calculator-card label {
  display: grid;
  gap: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.property-search input,
.property-search select,
.calculator-card input,
.calculator-card select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
}

.property-search .btn {
  min-height: 44px;
  align-self: end;
}

.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--slate-200);
}

.stats-grid div {
  padding: 24px;
  text-align: center;
  background: var(--white);
}

.stats-grid strong {
  display: block;
  color: var(--blue-700);
  font-size: 32px;
}

.stats-grid span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--white);
}

.section-heading,
.archive-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.text-link {
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 800;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.property-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-200);
}

.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.property-card:hover .property-card-media img {
  transform: scale(1.04);
}

.property-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  font-size: 11px;
  font-weight: 800;
}

.property-card-body {
  padding: 18px;
}

.property-card-price,
.property-price-block {
  color: var(--blue-700);
  font-size: 22px;
  font-weight: 800;
}

.property-card h3 {
  margin: 8px 0 6px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
}

.property-location,
.property-type {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.45;
}

.property-location.large {
  margin-top: 12px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
}

.property-card-meta,
.overview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.property-pill {
  display: inline-grid;
  min-width: 76px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--slate-100);
}

.property-pill strong {
  color: var(--slate-900);
  font-size: 14px;
}

.property-pill small {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  display: grid;
  gap: 6px;
  min-height: 110px;
  align-content: end;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--white), var(--blue-50));
}

.type-card strong {
  color: var(--slate-900);
}

.type-card span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.archive-hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
  color: var(--white);
}

.archive-hero .eyebrow {
  color: var(--yellow-400);
}

.archive-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.archive-bar {
  align-items: center;
  margin-bottom: 22px;
}

.search-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  background: var(--white);
}

.search-filters {
  border-right: 1px solid var(--slate-200);
  background: var(--white);
}

.search-filters form {
  position: sticky;
  top: 56px;
  display: grid;
  gap: 20px;
  padding: 18px 16px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-head h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
}

.filter-head a {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group h2 {
  margin: 0 0 4px;
  color: var(--slate-900);
  font-size: 13px;
}

.filter-group label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--slate-700);
  font-size: 14px;
}

.filter-group label small {
  color: var(--slate-400);
}

.filter-group input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: var(--blue-700);
}

.filter-search input,
.filter-group select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.search-main {
  min-width: 0;
}

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}

.search-toolbar strong {
  color: var(--slate-700);
  font-size: 16px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-form label {
  color: var(--slate-500);
  font-size: 13px;
}

.sort-form select {
  min-height: 34px;
  min-width: 142px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
  font-size: 13px;
}

.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.view-toggle a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

.view-toggle .is-active {
  color: var(--white);
  background: var(--blue-700);
}

.search-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  height: calc(100vh - 112px);
  min-height: 620px;
}

.map-panel {
  position: relative;
  overflow: hidden;
  background: var(--blue-50);
}

.map-panel-live {
  background: #dbeafe;
}

.map-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}

.map-wash {
  position: absolute;
  inset: 0;
  background: rgba(239, 246, 255, .55);
}

.map-area {
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 24px;
  border-radius: 10px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 8px 18px rgba(29, 78, 216, .28);
  font-size: 12px;
  font-weight: 900;
}

.leaflet-search-map {
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 620px;
  font-family: var(--font-main);
}

.leaflet-search-map .leaflet-tile-pane {
  filter: saturate(.92) contrast(.96);
}

.leaflet-search-map .leaflet-control-zoom a {
  color: var(--slate-900);
  font-weight: 800;
}

.mlsh-map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

.mlsh-map-marker span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 10px 22px rgba(29, 78, 216, .34);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.leaflet-popup-content {
  width: 220px !important;
  margin: 0;
  font-family: var(--font-main);
}

.mlsh-map-popup img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: var(--slate-100);
}

.mlsh-map-popup-body {
  padding: 12px;
}

.mlsh-map-popup strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-700);
  font-size: 17px;
  line-height: 1.1;
}

.mlsh-map-popup h3 {
  margin: 0 0 4px;
  color: var(--slate-950);
  font-size: 14px;
  line-height: 1.25;
}

.mlsh-map-popup p {
  margin: 0 0 10px;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.35;
}

.mlsh-map-popup a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.map-empty {
  display: grid;
  min-height: 620px;
  place-items: center;
  color: var(--slate-600);
  font-weight: 700;
}

.search-results-rail {
  overflow-y: auto;
  padding: 18px 14px;
  border-left: 1px solid var(--slate-200);
  background: var(--white);
}

.search-result-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-100);
}

.search-result-image {
  display: block;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--slate-100);
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-status {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--white);
  background: #00a63e;
  font-size: 10px;
  font-weight: 900;
}

.mini-price {
  display: block;
  margin-top: 6px;
  color: var(--blue-700);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.search-result-card h2 {
  margin: 2px 0;
  color: var(--slate-900);
  font-size: 14px;
  line-height: 1.25;
}

.search-result-card p {
  margin: 0;
  color: var(--slate-400);
  font-size: 12px;
  line-height: 1.3;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

/* Search box suggestions (assets/js/search-suggest.js), placed under the input by the script. */
.search-suggest {
  position: fixed;
  z-index: 10000;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
  text-align: left;
}

.search-suggest[hidden] {
  display: none;
}

.search-suggest-head {
  margin: 6px 8px 4px;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--blue-50);
}

.search-suggest-text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.search-suggest-text strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-text small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-pin {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.search-suggest-count {
  flex: 0 0 auto;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 600;
}

.search-suggest-listing img {
  flex: 0 0 auto;
  width: 44px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--slate-100);
}

.search-suggest-note {
  margin: 6px 8px;
  color: var(--slate-400);
  font-size: 12px;
}

/* Home page: all of Haiti on a map, featured listings beside it. */
.home-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  height: min(78vh, 720px);
  min-height: 520px;
}

.home-map-panel {
  position: relative;
  overflow: hidden;
  background: #dbeafe;
}

.home-map-panel .leaflet-search-map {
  min-height: 100%;
}

.home-map-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 800;
}

.home-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.home-rail-head h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 20px;
}

/* Grouped pins on the home map, in the site's blue. */
.leaflet-search-map .marker-cluster-small,
.leaflet-search-map .marker-cluster-medium,
.leaflet-search-map .marker-cluster-large {
  background: rgba(29, 78, 216, .25);
}

.leaflet-search-map .marker-cluster-small div,
.leaflet-search-map .marker-cluster-medium div,
.leaflet-search-map .marker-cluster-large div {
  color: var(--white);
  background: var(--blue-700);
  font-family: var(--font-main);
  font-weight: 800;
}

.search-list-layout {
  min-height: calc(100vh - 112px);
  padding: 28px;
  background: var(--slate-50);
}

.search-list-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.search-pagination {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

.figma-property {
  background: var(--slate-50);
}

.property-page-wrap {
  padding: 24px 0 80px;
}

.property-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--slate-400);
  font-size: 13px;
}

.property-breadcrumb a:hover {
  color: var(--blue-700);
}

.property-breadcrumb strong {
  color: var(--slate-700);
  font-weight: 600;
}

.property-gallery-hero {
  position: relative;
  height: 386px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.property-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-badges,
.gallery-actions {
  position: absolute;
  top: 16px;
  display: flex;
  gap: 8px;
}

.gallery-badges {
  left: 16px;
}

.gallery-actions {
  right: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 4px;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.badge-green {
  background: #00a63e;
}

.badge-gold {
  background: #eab308;
}

.badge-blue {
  background: var(--blue-700);
}

.gallery-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-500);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gallery-actions button:hover {
  color: var(--blue-700);
  background: var(--blue-50);
  transform: translateY(-1px);
}

.gallery-actions button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--white);
  background: rgba(15, 23, 42, .72);
  font-size: 12px;
  font-weight: 700;
}

.property-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.property-main-column {
  min-width: 0;
}

.property-summary {
  padding-bottom: 18px;
}

.property-summary h1 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 28px;
  line-height: 1.2;
}

.summary-location {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 700;
}

.property-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--slate-200);
}

.property-tabs a {
  padding: 0 18px 12px;
  color: var(--slate-600);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.property-tabs a:first-child {
  padding-left: 16px;
}

.property-tabs a.is-active,
.property-tabs a:hover {
  color: var(--blue-700);
  border-color: var(--blue-700);
}

.figma-detail-section {
  margin-bottom: 22px;
}

.figma-detail-section h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.3;
}

.figma-detail-section p,
.figma-detail-section .entry-content {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.75;
}

.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  color: var(--slate-700);
  font-size: 15px;
}

.feature-check-grid span::before {
  content: "✓";
  margin-right: 10px;
  color: #00a63e;
}

.property-side-column {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-price {
  min-height: 72px;
  display: grid;
  justify-items: end;
  align-content: start;
}

.side-price strong {
  color: var(--blue-700);
  font-size: 34px;
  line-height: 1.1;
}

.side-price span {
  color: var(--slate-400);
  font-size: 14px;
}

.figma-agent-card,
.figma-calculator-card {
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .08);
}

.figma-agent-card {
  position: static;
}

.figma-agent-card .agent-card-head {
  align-items: center;
}

.figma-agent-card .agent-avatar {
  width: 58px;
  height: 58px;
}

.figma-agent-card h2 {
  margin-bottom: 2px;
  font-size: 16px;
}

.figma-agent-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 12px;
}

.agent-rating {
  margin-top: 4px;
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
}

.agent-rating span {
  color: var(--slate-500);
  letter-spacing: 0;
}

.agent-contact-lines {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
}

.agent-contact-lines a {
  color: var(--slate-500);
  font-size: 13px;
}

.figma-agent-card .btn + .btn {
  margin-top: 8px;
}

.figma-calculator-card h2 {
  font-size: 16px;
}

.figma-calculator-card {
  position: sticky;
  top: 78px;
}

.figma-calculator-card .btn {
  margin-top: 2px;
}

.figma-calculator-card .calc-result {
  padding: 14px;
}

.figma-calculator-card .calc-result strong {
  font-size: 24px;
}

.property-detail-rich {
  background: #f8fafc;
}

.legacy-property-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 28px 0 24px;
}

.legacy-property-head h1 {
  margin: 0 0 12px;
  color: var(--slate-950);
  font-size: 30px;
  line-height: 1.25;
}

.legacy-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-dark {
  background: #4b5563;
}

.badge-red {
  background: #e11d48;
}

.legacy-price {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--slate-950);
  text-align: right;
}

.property-head-tools {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.property-head-tools a,
.property-head-tools button {
  min-width: 58px;
}

.legacy-price strong {
  font-size: 31px;
  line-height: 1.1;
}

.legacy-price span {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, 270px);
  gap: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.property-gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--slate-200);
}

.property-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery-grid .gallery-main {
  grid-row: 1 / span 2;
}

/* One photo: shown once, full width. Two: side by side. */
.property-gallery-grid.is-single {
  grid-template-columns: 1fr;
}

.property-gallery-grid.is-pair .gallery-side {
  grid-row: 1 / span 2;
}

/* Each photo opens the full-screen viewer (assets/js/gallery.js). */
.property-gallery-grid img {
  transition: transform .35s ease;
}

.property-gallery-grid figure:hover img {
  transform: scale(1.03);
}

.gallery-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-open:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: -3px;
}

/* "View all N photos", bottom-right of the last photo. */
.gallery-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .25);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.gallery-all:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.gallery-all:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
}

.gallery-all svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Full-screen photo viewer. */
.pg-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #fff;
  background: rgba(2, 6, 23, .95);
}

.pg-viewer[hidden] {
  display: none;
}

.pg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.pg-count {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pg-tools {
  display: flex;
  gap: 8px;
}

.pg-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.pg-button:hover {
  background: rgba(255, 255, 255, .2);
}

.pg-button:focus-visible,
.pg-thumb:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.pg-button svg {
  width: 22px;
  height: 22px;
}

.pg-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}

.pg-stage.is-zoomed {
  cursor: grab;
}

.pg-stage.is-dragging {
  cursor: grabbing;
}

.pg-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
  -webkit-user-drag: none;
}

.pg-stage.is-dragging .pg-img {
  transition: none;
}

.pg-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.pg-prev {
  left: 16px;
}

.pg-next {
  right: 16px;
}

.pg-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pg-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  opacity: .55;
  cursor: pointer;
}

.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-thumb:hover,
.pg-thumb.is-active {
  opacity: 1;
}

.pg-thumb.is-active {
  border-color: #fff;
}

@media (max-width: 640px) {
  .pg-nav {
    display: none;
  }

  .pg-thumb {
    width: 52px;
    height: 40px;
  }
}

@media print {
  .pg-viewer,
  .gallery-open,
  .gallery-all {
    display: none !important;
  }
}

.property-fact-strip {
  display: grid;
  grid-template-columns: repeat(var(--fact-columns, 8), minmax(0, 1fr));
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.property-fact-strip div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid var(--slate-200);
  text-align: center;
}

.property-fact-strip div:last-child {
  border-right: 0;
}

.property-fact-strip strong {
  color: var(--slate-900);
  font-size: 14px;
  line-height: 1.25;
}

.property-fact-strip span {
  color: var(--slate-500);
  font-size: 13px;
}

.property-section-nav {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 24px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.property-section-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.property-section-nav a:hover {
  color: var(--white);
  background: var(--blue-700);
}

.property-rich-section {
  margin: 0 auto 34px;
  padding: 38px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.property-rich-section h2 {
  margin: 0 0 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-950);
  font-size: 20px;
  line-height: 1.3;
}

.property-rich-section .entry-content {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.85;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--slate-200);
}

.section-title-row h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-title-row > span {
  color: var(--slate-400);
  font-size: 13px;
}

.contact-info-agent {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.contact-info-agent .agent-avatar {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
}

.contact-info-agent div {
  display: grid;
  gap: 4px;
}

.contact-info-agent strong {
  color: var(--slate-900);
  font-size: 16px;
}

.contact-info-agent span,
.contact-info-agent a {
  color: var(--slate-500);
  font-size: 14px;
}

.property-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.property-contact-form h3,
.property-contact-form .form-wide,
.property-contact-form .btn {
  grid-column: 1 / -1;
}

.property-contact-form h3 {
  margin: 0 0 4px;
  color: var(--slate-950);
  font-size: 17px;
}

.property-contact-form label,
.mortgage-input-grid label {
  color: var(--slate-950);
  font-size: 14px;
  font-weight: 700;
}

.property-contact-form label {
  display: block;
}

.mortgage-input-grid label {
  display: grid;
  gap: 8px;
}

.property-contact-form label:not(.terms-row) > input,
.property-contact-form label:not(.terms-row) > select,
.property-contact-form label:not(.terms-row) > textarea {
  margin-top: 8px;
}

.property-contact-form input,
.property-contact-form select,
.property-contact-form textarea,
.mortgage-input-grid input,
.mortgage-input-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
}

.property-contact-form textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.terms-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.terms-row input {
  width: 20px;
  min-height: 20px;
}

.property-contact-form input.is-invalid,
.property-contact-form select.is-invalid,
.property-contact-form textarea.is-invalid,
.service-request-form input.is-invalid,
.service-request-form select.is-invalid,
.service-request-form textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.field-error {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.terms-row .field-error {
  flex-basis: 100%;
  margin-left: 30px;
}

.property-info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-bottom: 24px;
}

.property-info-table div,
.property-details-box div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--slate-200);
}

.property-info-table strong,
.property-details-box strong {
  color: var(--slate-950);
  font-size: 14px;
}

.property-info-table span,
.property-details-box span {
  color: var(--slate-600);
  text-align: right;
  font-size: 14px;
}

.property-location-map {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  background: var(--slate-100);
}

.property-details-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
  padding: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.feature-check-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mortgage-layout {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 30px;
}

.mortgage-circle {
  width: 186px;
  height: 186px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border: 16px solid #bfdbfe;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--blue-700);
}

.mortgage-circle strong {
  color: var(--slate-950);
  font-size: 30px;
  line-height: 1.1;
}

.mortgage-circle span {
  color: var(--slate-400);
  font-size: 14px;
}

.mortgage-breakdown {
  display: grid;
}

.mortgage-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--slate-200);
}

.mortgage-breakdown strong {
  color: var(--slate-950);
  font-size: 14px;
}

.mortgage-breakdown span {
  color: var(--slate-600);
}

.mortgage-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin-bottom: 18px;
}

.property-disclaimer {
  max-width: 980px;
  margin: 38px auto 64px;
  color: var(--slate-400);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.modern-dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #f7f7f7;
}

.modern-dashboard-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 24px 18px;
  border-right: 1px solid var(--slate-200);
  background: var(--white);
}

.modern-dashboard-sidebar nav {
  display: grid;
  gap: 5px;
}

.modern-dashboard-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
}

.modern-dashboard-sidebar nav a:hover,
.modern-dashboard-sidebar nav a.is-active {
  color: var(--white);
  background: var(--blue-700);
}

.modern-dashboard-main {
  min-width: 0;
  padding: 34px;
}

.modern-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.modern-dashboard-header h1 {
  margin: 0;
  color: var(--slate-950);
  font-size: 34px;
  line-height: 1.16;
}

.modern-dashboard-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.6;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-stat-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-stat-grid > div,
.modern-dashboard-card,
.dashboard-empty-card {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.dashboard-stat-grid > div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 20px;
}

.dashboard-stat-grid span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-stat-grid strong {
  color: var(--blue-700);
  font-size: 34px;
  line-height: 1;
}

.modern-dashboard-card {
  padding: 20px;
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-card-head h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 20px;
}

.dashboard-card-head a {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-filter-bar {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.dashboard-filter-bar form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 12px;
}

.dashboard-filter-bar input,
.dashboard-filter-bar select,
.modern-dashboard-form input,
.modern-dashboard-form select,
.modern-dashboard-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
}

.modern-dashboard-form textarea {
  min-height: 150px;
  padding-top: 12px;
  resize: vertical;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.modern-dashboard-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.modern-dashboard-table th,
.modern-dashboard-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.modern-dashboard-table th {
  color: var(--slate-900);
  background: #f8fafc;
  font-weight: 900;
}

.dashboard-property-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dashboard-property-cell img {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--slate-100);
}

.dashboard-property-cell strong,
.dashboard-property-cell span {
  display: block;
}

.dashboard-property-cell strong a {
  color: var(--slate-950);
}

.dashboard-property-cell span {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 12px;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 900;
}

/* Review Status (the WordPress post status): green when published. */
.dashboard-status.review-expired {
  color: #9a3412;
  background: #ffedd5;
}

.dashboard-status.review-pending,
.dashboard-status.review-on_hold {
  color: #92400e;
  background: #fef3c7;
}

.dashboard-status.review-draft,
.dashboard-status.review-inactive,
.dashboard-status.review-withdrawn {
  color: var(--slate-600);
  background: var(--slate-100);
}

.dashboard-status.review-sold {
  color: #6b21a8;
  background: #f3e8ff;
}

.dashboard-status.review-rented {
  color: #115e59;
  background: #ccfbf1;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
}

.dashboard-actions .btn {
  flex: 0 0 auto;
}

.modern-dashboard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.modern-dashboard-form-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modern-dashboard-form label {
  display: block;
  color: var(--slate-900);
  font-size: 13px;
  font-weight: 900;
}

.required-mark {
  display: inline;
  margin-left: 3px;
  color: #dc2626;
  font-weight: 900;
}

.modern-dashboard-form label > input:not([type="radio"]):not([type="checkbox"]),
.modern-dashboard-form label > select,
.modern-dashboard-form label > textarea,
.service-request-form label > input:not([type="radio"]):not([type="checkbox"]),
.service-request-form label > select,
.service-request-form label > textarea {
  margin-top: 8px;
}

.modern-dashboard-form input.is-invalid,
.modern-dashboard-form select.is-invalid,
.modern-dashboard-form textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.modern-dashboard-form .form-wide {
  grid-column: 1 / -1;
}

.modern-dashboard-form .btn {
  justify-self: start;
}

.dashboard-form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
}

.dashboard-form-actions .btn {
  min-width: 132px;
}

.dashboard-profile-form > label:last-of-type {
  grid-column: 1 / -1;
  width: min(100%, calc(50% - 9px));
}

@media (max-width: 720px) {
  .dashboard-profile-form > label:last-of-type {
    width: 100%;
  }
}

.listing-submit-form {
  width: min(100%, 1240px);
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-inline: auto;
}

.listing-form-section {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}

.listing-form-section h2 {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid #e5e7eb;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 500;
}

.listing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.listing-form-grid.nested {
  padding: 0;
}

.listing-form-grid .form-wide {
  grid-column: 1 / -1;
}

.listing-form-grid select[multiple] {
  min-height: 118px;
  padding-block: 10px;
}

.listing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 38px;
  padding: 10px 24px 28px;
}

.listing-feature-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 700;
}

.listing-feature-grid input {
  width: 16px;
  min-height: 16px;
}

.listing-submit-wrap {
  display: grid;
  gap: 18px;
}

.listing-editor-field {
  display: grid;
  gap: 8px;
}

.listing-editor-field > label {
  font-size: 13px;
  font-weight: 900;
}

.listing-editor-field .wp-editor-wrap {
  width: 100%;
}

.listing-editor-field .wp-editor-area {
  min-height: 260px;
  border-color: #d9e0e8;
}

/* Keep the dashboard's full-width input styling out of TinyMCE's own UI. */
.modern-dashboard-form .wp-editor-wrap input,
.modern-dashboard-form .wp-editor-wrap button {
  width: auto;
  min-height: 0;
}

.listing-agent-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
}

.listing-agent-card .agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.listing-agent-card div {
  display: grid;
  gap: 2px;
}

.listing-agent-card strong {
  color: var(--slate-900);
  font-size: 16px;
}

.listing-agent-card span:not(.listing-card-kicker) {
  color: var(--slate-500);
  font-size: 14px;
}

.co-listing-agent {
  margin: -14px 0 30px;
  color: var(--slate-500);
  font-size: 14px;
}

.co-listing-agent strong {
  color: var(--slate-900);
}

.field-help {
  color: var(--slate-400);
  font-size: 11px;
  font-weight: 600;
}

.section-note {
  margin: 0;
  padding: 12px 24px 0;
  color: #ff0000;
  font-size: 13px;
  font-weight: 800;
}

.listing-upload-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.listing-current-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.listing-current-image {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.listing-current-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.listing-current-image:has(input:checked) img {
  opacity: 0.35;
}

.listing-upload-panel p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.listing-upload-dropzone {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 6px;
  padding: 32px;
  border: 2px dashed #d7dde5;
  background: #f3f6f7;
  text-align: center;
  cursor: pointer;
}

.listing-upload-dropzone span,
.listing-upload-dropzone small {
  display: block;
  color: var(--slate-700);
}

.listing-upload-dropzone strong {
  margin-top: 8px;
}

.listing-upload-dropzone input {
  max-width: 300px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.listing-radio-row,
.listing-check-stack {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--slate-900);
  font-size: 13px;
}

.listing-radio-row label,
.listing-check-stack label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.listing-radio-row input,
.listing-check-stack input {
  width: 16px;
  min-height: 16px;
}

.listing-radio-end {
  justify-content: space-between;
}

.listing-check-stack {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.listing-check-stack p {
  margin: 0 0 4px;
  color: var(--slate-500);
  font-weight: 600;
}

.listing-map-box {
  display: grid;
  gap: 12px;
}

.listing-map-box > strong {
  color: var(--slate-900);
  font-size: 13px;
}

.listing-map-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid #cdd7e2;
  background:
    linear-gradient(35deg, rgba(56, 189, 248, .18) 0 20%, transparent 20% 100%),
    linear-gradient(135deg, transparent 0 35%, rgba(34, 197, 94, .14) 35% 50%, transparent 50% 100%),
    repeating-linear-gradient(0deg, #eef2f7 0 18px, #e2e8f0 18px 20px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(148, 163, 184, .28) 48px 50px);
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 900;
}

.listing-map-box .btn {
  width: 100%;
}

.listing-bottom-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
}

.dashboard-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-notice strong {
  display: block;
}

.dashboard-notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.dashboard-notice li + li {
  margin-top: 4px;
}

.dashboard-notice-error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.dashboard-notice-success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.dashboard-empty-card {
  padding: 22px;
  color: var(--slate-500);
}

.dashboard-login-required {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 32px;
  background: #f8fafc;
}

.dashboard-login-required .dashboard-empty-card {
  max-width: 460px;
  text-align: center;
}

.dashboard-login-required h1 {
  margin: 0 0 8px;
  color: var(--slate-950);
}

.pagination-wrap {
  margin-top: 34px;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.page-numbers {
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
  font-weight: 700;
}

.page-numbers.current {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.property-hero,
.agent-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.property-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 72px 0 46px;
}

.property-price-block {
  flex: 0 0 auto;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 40px 0 80px;
}

.property-detail-main,
.property-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-200);
}

.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-grid .gallery-feature {
  grid-row: span 2;
  height: 388px;
}

.detail-card,
.agent-card,
.calculator-card,
.content-card {
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h2,
.agent-card h2,
.calculator-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 20px;
}

.entry-content {
  color: var(--slate-600);
  line-height: 1.75;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.page-content-wrap {
  max-width: 980px;
}

.page-content-card {
  display: block;
}

.service-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
}

.service-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 300px;
  padding: 64px 0 44px;
}

.service-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
}

.service-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

.service-request-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.service-request-intro {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.service-panel,
.service-contact-card,
.service-form-card,
.directory-card {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-panel,
.service-contact-card,
.service-form-card {
  padding: 24px;
}

.service-panel h2,
.service-contact-card h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 22px;
}

.service-panel p,
.service-contact-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.service-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.service-steps div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: var(--slate-50);
}

.service-steps strong {
  color: var(--blue-700);
}

.service-steps span {
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
}

.service-contact-card {
  display: grid;
  gap: 8px;
}

.service-contact-card strong {
  color: var(--slate-900);
}

.service-contact-card a {
  color: var(--blue-700);
  font-weight: 800;
}

.service-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-request-form .form-wide,
.service-request-form .btn {
  grid-column: 1 / -1;
}

.service-request-form label {
  display: block;
  color: var(--slate-900);
  font-size: 13px;
  font-weight: 800;
}

.service-request-form input,
.service-request-form select,
.service-request-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
}

.service-request-form textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

/* Sell / Buy / Rent and property type tabs reuse the Create Listing pills. */
.service-tabs {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-200);
}

.service-tabs-label {
  color: var(--slate-900);
  font-size: 13px;
  font-weight: 800;
}

.service-request-form .listing-type-tabs {
  padding: 0;
}

/* Beat the form's own label and input rules. */
.service-request-form .listing-type-tab {
  display: inline-flex;
  color: var(--slate-600);
  font-weight: 600;
}

.service-request-form .listing-type-tab:hover {
  color: var(--blue-700);
}

.service-request-form .listing-type-tab.is-active {
  color: var(--white);
}

.service-request-form .listing-type-tab input {
  width: 1px;
  height: 1px;
  min-height: 0;
}

.service-intent-tabs .listing-type-tab {
  min-width: 96px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}

.service-request-form [hidden] {
  display: none !important;
}

.service-choice,
.yes-no-grid {
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--slate-50);
}

.service-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.service-choice span {
  color: var(--slate-900);
  font-weight: 800;
}

.service-choice label,
.yes-no-grid label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.service-choice input,
.yes-no-grid input {
  width: 16px;
  min-height: 16px;
}

.yes-no-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.yes-no-grid fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.yes-no-grid legend {
  flex: 0 0 100%;
  color: var(--slate-900);
  font-size: 13px;
  font-weight: 800;
}

.form-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.form-notice.success {
  color: #14532d;
  background: #dcfce7;
}

.form-notice.error {
  color: #7f1d1d;
  background: #fee2e2;
}

.form-notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.agent-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.directory-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.directory-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--slate-100);
}

.directory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
}

.directory-card p,
.directory-card .entry-summary {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
}

.directory-card > a:not(.directory-photo) {
  color: var(--blue-700);
  font-weight: 800;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.details-list.compact {
  grid-template-columns: 1fr;
}

.details-list div {
  padding: 12px;
  border-radius: 8px;
  background: var(--slate-50);
}

.details-list dt {
  color: var(--slate-400);
  font-size: 12px;
  font-weight: 800;
}

.details-list dd {
  margin: 4px 0 0;
  color: var(--slate-800);
  font-size: 14px;
  font-weight: 700;
}

.agent-card,
.calculator-card {
  position: sticky;
  top: 96px;
}

.agent-card {
  display: grid;
  gap: 12px;
}

.agent-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.agent-avatar,
.agent-card-head img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--slate-200);
}

.agent-card h2 {
  margin: 0;
  font-size: 16px;
}

.agent-card p {
  margin: 3px 0 0;
  color: var(--slate-500);
  font-size: 12px;
}

.calculator-card {
  display: grid;
  gap: 12px;
}

.calc-result {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 10px;
  background: var(--blue-50);
  text-align: center;
}

.calc-result strong {
  color: var(--blue-700);
  font-size: 24px;
}

.calc-result span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.agent-hero {
  min-height: 360px;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
}

.agent-hero-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 70px 0 44px;
}

.agent-photo {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-list {
  display: grid;
  gap: 18px;
}

.content-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.content-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.content-card h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--slate-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-500);
  text-align: center;
}

.site-footer {
  padding: 42px 0 28px;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 80px;
  align-items: start;
  padding-bottom: 34px;
}

.footer-brand {
  color: var(--white);
}

.footer-about p {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--slate-300);
  font-size: 13px;
  line-height: 1.75;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 58px;
}

.footer-column h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 13px;
}

.footer-column a {
  display: block;
  margin-bottom: 7px;
  color: var(--slate-300);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-800);
  color: var(--slate-300);
  text-align: center;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--white);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: #bfdbfe;
}

.footer-menu a {
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

  /* Phone header: logo on the left, menu button on the right. Account,
     phone and language move into the menu (.mobile-nav-extras). */
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    order: 3;
    margin-left: auto;
  }

  .mobile-nav-extras {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
  }

  .mobile-nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-nav-account .account-card-copy {
    display: grid;
    min-width: 0;
  }

  .mobile-nav-account .account-card-avatar,
  .mobile-nav-account .account-card-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .mobile-nav-account small {
    overflow: hidden;
    color: var(--slate-500);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav-links a,
  .mobile-nav-phone {
    display: block;
    padding: 7px 0;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-nav-phone::before {
    content: "\260E  ";
  }

  /* GTranslate's floating box is moved in here by theme.js; undo its fixed positioning. */
  .mobile-nav-language .gt_switcher_wrapper,
  .mobile-nav-language .gtranslate_wrapper {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .mobile-nav-language select {
    width: 100%;
  }

  .mobile-nav-language:empty {
    display: none;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    /* The header is sticky, so the panel scrolls inside the screen rather than running off its bottom. */
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .primary-nav.is-open {
    display: block;
  }

  /* Sub-menus start closed; the arrow button added by theme.js opens one level at a time. */
  .menu .menu-item-has-children {
    position: relative;
  }

  .menu .menu-item-has-children > a {
    padding-right: 44px;
  }

  .menu .sub-menu .menu-item-has-children > a::after {
    display: none;
  }

  .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
  }

  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .16s ease;
  }

  .submenu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background: var(--blue-50);
    color: var(--blue-700);
  }

  .menu {
    display: grid;
    gap: 12px;
  }

  .menu > li {
    display: block;
  }

  .menu a {
    min-height: 0;
    padding: 8px 0;
    white-space: normal;
  }

  .menu > .menu-item-has-children > a::after {
    display: none;
  }

  .menu .sub-menu,
  .menu .sub-menu .sub-menu {
    position: static;
    max-height: none;
    overflow: visible;
    margin: 4px 0 4px 12px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--slate-200);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    display: none;
  }

  .menu .is-expanded > .sub-menu {
    display: block;
  }

  .menu .sub-menu a {
    min-height: 0;
    min-width: 0;
    padding: 8px 44px 8px 8px;
  }

  .hero-grid,
  .property-detail-grid,
  .agent-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .home-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-search-fields .btn {
    grid-column: 1 / -1;
    min-height: 48px;
    border-radius: 0;
  }

  .benefits-grid,
  .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .property-content-grid {
    grid-template-columns: 1fr;
  }

  .service-request-layout {
    grid-template-columns: 1fr;
  }

  .service-request-intro {
    position: static;
  }

  .agent-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modern-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .modern-dashboard-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .modern-dashboard-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .modern-dashboard-sidebar nav a {
    flex: 0 0 auto;
  }

  .modern-dashboard-main {
    padding: 24px;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modern-dashboard-form-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-form-grid,
  .listing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-property-head,
  .mortgage-layout {
    grid-template-columns: 1fr;
  }

  .legacy-price {
    justify-items: start;
    text-align: left;
  }

  .property-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 190px;
  }

  .property-gallery-grid .gallery-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .property-gallery-grid.is-single {
    grid-template-columns: 1fr;
    grid-template-rows: 420px;
  }

  .property-gallery-grid.is-pair {
    grid-template-rows: 360px 260px;
  }

  .property-gallery-grid.is-pair .gallery-side {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .property-fact-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-details-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-check-grid-wide,
  .mortgage-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-shell,
  .search-map-layout,
  .home-map-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .home-map-panel {
    height: 460px;
  }

  .search-filters {
    border-right: 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .search-filters form {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-head,
  .search-filters .btn {
    grid-column: 1 / -1;
  }

  .map-panel {
    min-height: 460px;
  }

  .leaflet-search-map,
  .map-empty {
    min-height: 460px;
  }

  .search-results-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--slate-200);
  }

  .search-result-card {
    margin-bottom: 0;
  }

  .search-list-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-price {
    justify-items: start;
  }

  .archive-hero .property-search,
  .property-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card,
  .calculator-card {
    position: static;
  }
}

@media (max-width: 700px) {
  body.mlsh-modern.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-phone {
    font-size: 13px;
  }

  .account-trigger {
    max-width: 145px;
  }

  .account-name {
    max-width: 78px;
  }

  .brand-text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-grid {
    gap: 24px;
    padding: 48px 0 28px;
  }

  .hero-copy h1,
  .property-title-wrap h1,
  .archive-hero h1,
  .agent-hero h1 {
    font-size: 36px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-panel {
    padding: 12px;
  }

  .property-search,
  .archive-hero .property-search,
  .stats-grid,
  .property-grid,
  .type-grid,
  .details-list,
  .agent-hero-grid,
  .content-card,
  .service-hero-inner,
  .service-request-form,
  .yes-no-grid,
  .agent-directory-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-inner {
    align-items: start;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading,
  .property-title-wrap,
  .footer-grid,
  .footer-main {
    display: grid;
    align-items: start;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .property-price-block {
    width: fit-content;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid .gallery-feature {
    grid-column: 1 / -1;
    height: 260px;
  }

  .gallery-grid img {
    height: 140px;
  }

  .agent-photo {
    width: 132px;
    height: 132px;
  }

  .footer-menu {
    display: grid;
    align-items: start;
  }

  .home-hero,
  .home-hero-content {
    min-height: 540px;
  }

  .home-search-tabs button {
    flex: 1;
    padding-inline: 12px;
  }

  .home-search-fields,
  .benefits-grid,
  .home-featured-grid,
  .location-grid,
  .why-list,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .search-toolbar,
  .sort-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-toolbar {
    padding: 14px 12px;
  }

  .search-filters form,
  .search-results-rail,
  .search-list-results {
    grid-template-columns: 1fr;
  }

  .search-list-layout {
    padding: 18px 12px;
  }

  .map-panel {
    min-height: 360px;
  }

  .leaflet-search-map,
  .map-empty {
    min-height: 360px;
  }

  .search-result-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .location-card,
  .location-card img {
    min-height: 170px;
  }

  .why-stat {
    left: 12px;
    right: 12px;
    bottom: -24px;
  }

  .footer-main {
    gap: 28px;
  }

  .property-page-wrap {
    padding-top: 18px;
  }

  .property-gallery-hero {
    height: 300px;
  }

  .modern-dashboard-main {
    padding: 18px 12px;
  }

  .modern-dashboard-header,
  .dashboard-filter-bar form,
  .modern-dashboard-form,
  .modern-dashboard-form-wide {
    grid-template-columns: 1fr;
  }

  .listing-form-grid,
  .listing-feature-grid {
    grid-template-columns: 1fr;
  }

  .modern-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .modern-dashboard-header h1 {
    font-size: 28px;
  }

  .dashboard-stat-grid,
  .dashboard-stat-grid.compact {
    grid-template-columns: 1fr;
  }

  .modern-dashboard-card {
    padding: 14px;
  }

  .legacy-property-head h1 {
    font-size: 26px;
  }

  .legacy-price strong {
    font-size: 28px;
  }

  .legacy-price span {
    font-size: 19px;
  }

  .property-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 170px 170px;
  }

  .property-gallery-grid.is-single {
    grid-template-rows: 300px;
  }

  .property-gallery-grid.is-pair {
    grid-template-rows: 300px 220px;
  }

  .property-gallery-grid .gallery-main {
    grid-column: auto;
  }

  .property-fact-strip,
  .property-info-table,
  .property-details-box,
  .property-contact-form,
  .feature-check-grid-wide,
  .mortgage-input-grid {
    grid-template-columns: 1fr;
  }

  .property-rich-section {
    padding: 24px 18px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-location-map {
    min-height: 320px;
  }

  .property-content-grid {
    gap: 16px;
  }

  .property-summary h1 {
    font-size: 25px;
  }

  .side-price strong {
    font-size: 30px;
  }

  .property-tabs {
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .property-tabs a {
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .feature-check-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .figma-calculator-card {
    position: static;
  }
}

@media (max-width: 480px) {
  .header-phone span {
    display: none;
  }

  .login-link {
    min-height: 34px;
    padding: 0 4px;
    font-size: 12px;
  }

  .mlsh-auth-panel {
    padding: 24px 16px;
  }

  .mlsh-auth-tab {
    min-width: 94px;
  }

  .account-trigger {
    max-width: 124px;
    padding-right: 10px;
  }

  .account-menu {
    right: -4px;
    width: min(260px, calc(100vw - 24px));
  }
}

/* ---------------------------------------------------------------------------
   Create Listing: type tabs and step tabs
   ------------------------------------------------------------------------ */

/* Several listing containers set an explicit display, which would otherwise
   win over the hidden attribute the type/step switching relies on. */
.listing-submit-form [hidden] {
  display: none !important;
}

/* The fieldset exists only so a hidden section can be disabled in one move;
   it must not introduce a box of its own. */
.listing-section-fields {
  display: contents;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.listing-setup-card,
.listing-wizard-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.listing-card-heading,
.listing-wizard-heading {
  padding: 24px 26px 18px;
}

.listing-card-heading h2,
.listing-wizard-heading h2 {
  margin: 4px 0 0;
  color: var(--slate-950);
  font-size: 20px;
  line-height: 1.3;
}

.listing-card-heading p {
  margin: 7px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.listing-card-kicker {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.listing-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 22px;
}

.listing-type-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-50);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.listing-type-tab:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

/* The radio stays in the DOM so the type still posts without JavaScript, but
   the label is what the user actually sees and clicks. */
.listing-type-tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.listing-type-tab.is-active {
  border-color: var(--blue-600);
  color: var(--white);
  background: var(--blue-600);
}

/* The same tabs as filters above an agent's listings. */
.listing-type-tabs.agent-listing-filters {
  padding: 0;
  margin: 0 0 22px;
}

.agent-listing-filters .tab-count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: 11px;
  font-weight: 700;
}

.agent-listing-filters .is-active .tab-count {
  background: rgba(255, 255, 255, .25);
}

.listing-type-tab:focus-within {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.listing-step-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  counter-reset: listing-step;
  overflow-x: auto;
  border-block: 1px solid #e2e8f0;
  background: #f8fafc;
}

.listing-step-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 3px solid transparent;
  color: var(--slate-500);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.listing-step-tab::before {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: var(--white);
  content: counter(listing-step);
  counter-increment: listing-step;
  font-size: 11px;
  font-weight: 900;
}

.listing-step-tab:last-child {
  border-right: 0;
}

.listing-step-tab:hover {
  color: var(--slate-800);
}

.listing-step-tab.is-active {
  border-bottom-color: var(--blue-600);
  color: var(--blue-700);
  background: var(--white);
  font-weight: 800;
}

.listing-step-tab.is-active::before {
  color: var(--white);
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.listing-step-tab.is-complete::before {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

.listing-step-tab:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: -2px;
}

.listing-step-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: #f8fafc;
}

.listing-wizard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.listing-step-progress {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eef2ff;
  font-size: 12px;
}

@media (max-width: 720px) {
  .listing-step-tabs {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
  }

  .listing-step-tab {
    white-space: nowrap;
  }
}

/* The exact property type, scoped to the active category tab. */
.listing-type-picker {
  padding: 20px 26px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.listing-type-picker > label {
  display: grid;
  gap: 6px;
  max-width: 560px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 500;
}

.listing-type-picker .listing-field-label {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
}

.listing-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid #e2e8f0;
  background: var(--white);
}

.listing-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px) {
  .listing-card-heading,
  .listing-wizard-heading,
  .listing-step-panel {
    padding-inline: 16px;
  }

  .listing-type-tabs,
  .listing-type-picker {
    padding-inline: 16px;
  }

  .listing-wizard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .listing-bottom-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 16px;
  }

  .listing-primary-actions,
  .listing-primary-actions .btn,
  .listing-bottom-actions > .btn {
    width: 100%;
  }

  .listing-primary-actions .btn {
    justify-content: center;
  }
}

/* Unified form typography and controls. */
body.mlsh-modern input,
body.mlsh-modern select,
body.mlsh-modern textarea,
body.mlsh-modern button {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.auth-field input,
.auth-field select,
.home-search-fields input,
.home-search-fields select,
.property-search input,
.property-search select,
.calculator-card input,
.calculator-card select,
.filter-group select,
.sort-form select,
.property-contact-form input,
.property-contact-form select,
.property-contact-form textarea,
.mortgage-input-grid input,
.mortgage-input-grid select,
.dashboard-filter-bar input,
.dashboard-filter-bar select,
.modern-dashboard-form input,
.modern-dashboard-form select,
.modern-dashboard-form textarea,
.service-request-form input,
.service-request-form select,
.service-request-form textarea {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.property-search label,
.calculator-card label,
.property-contact-form label:not(.terms-row),
.mortgage-input-grid label,
.modern-dashboard-form label,
.service-request-form > label,
.listing-editor-field > label,
.listing-type-picker > label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.service-choice label,
.yes-no-grid label,
.terms-row,
.listing-radio-row label,
.listing-check-stack label,
.listing-feature-grid label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-field input::placeholder,
.home-search-fields input::placeholder,
.property-search input::placeholder,
.property-contact-form input::placeholder,
.property-contact-form textarea::placeholder,
.dashboard-filter-bar input::placeholder,
.modern-dashboard-form input::placeholder,
.modern-dashboard-form textarea::placeholder,
.service-request-form input::placeholder,
.service-request-form textarea::placeholder {
  color: var(--slate-400);
  font-weight: 400;
  opacity: 1;
}

.field-help,
.field-error,
.section-note {
  font-family: inherit;
  line-height: 1.45;
}

/* Listing status colours (MLS colour code), on cards, the listing page, the
   map list and My Properties. Set by mlsh_modern_status_class(). */
.status-chip.status-active         { background: #16a34a; color: #fff; }
.status-chip.status-back-on-market { background: #6b7f1e; color: #fff; }
.status-chip.status-coming-soon    { background: #c026d3; color: #fff; }
.status-chip.status-expired        { background: #ea580c; color: #fff; }
.status-chip.status-pending        { background: #dc2626; color: #fff; }
.status-chip.status-sold           { background: #7e22ce; color: #fff; }
.status-chip.status-rented         { background: #0f766e; color: #fff; }
.status-chip.status-withdrawn      { background: #db2777; color: #fff; }
.status-chip.status-contingent     { background: #b45309; color: #fff; }
.status-chip.status-inactive       { background: #6b7280; color: #fff; }

/* My Properties status cell: chip, then the picker and its button on one line. */
.dashboard-status-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-status-form select {
  width: 150px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--slate-300);
  border-radius: 7px;
  color: var(--slate-700);
  background: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.dashboard-status-form select:focus {
  border-color: var(--blue-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.dashboard-status-form .btn {
  min-height: 34px;
}

/* Edit form: Under Contract / Mark as Sold under the read-only status. */
.listing-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn.is-busy {
  opacity: .65;
  cursor: wait;
  pointer-events: none;
}

.listing-status-actions + .field-help {
  display: block;
  margin-top: 8px;
}

.field-help a {
  color: var(--blue-700);
}

.field-help a:hover {
  text-decoration: underline;
}

/* Closing details (Sold / Under Contract): an explanatory note, not a warning. */
.closing-details-card .section-note {
  padding: 0 0 8px;
  color: var(--slate-600);
  font-weight: 500;
}

.closing-section-title {
  margin: 18px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-900);
  font-size: 16px;
}

.closing-details-card .listing-check-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.closing-details-card .listing-check-inline input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

/* Forminator generates per-form CSS after the theme stylesheet, so these
   important declarations intentionally keep every embedded form on-brand. */
body.mlsh-modern .forminator-ui.forminator-custom-form,
body.mlsh-modern .forminator-ui.forminator-custom-form *:not([class*="forminator-icon-"]) {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-label,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-legend,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-field > label:not(.forminator-checkbox):not(.forminator-radio) {
  color: var(--slate-900) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-required {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-textarea,
body.mlsh-modern .forminator-ui.forminator-custom-form select.forminator-select2,
body.mlsh-modern .forminator-ui.forminator-custom-form select.forminator-select--field,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--single,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--multiple {
  border: 1px solid var(--slate-200) !important;
  border-radius: 8px !important;
  color: var(--slate-700) !important;
  background: var(--white) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input,
body.mlsh-modern .forminator-ui.forminator-custom-form select.forminator-select2,
body.mlsh-modern .forminator-ui.forminator-custom-form select.forminator-select--field,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--single,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--multiple {
  min-height: 44px !important;
  padding: 10px 12px !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-textarea {
  min-height: 140px !important;
  padding: 12px !important;
  resize: vertical;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection__rendered,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input input,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-iti-input .iti__selected-dial-code {
  color: var(--slate-700) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input::placeholder,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-textarea::placeholder {
  color: var(--slate-400) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input:hover,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-textarea:hover,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--single:hover,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--multiple:hover {
  border-color: var(--slate-300) !important;
  background: var(--white) !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-input:focus,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-textarea:focus,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--single:focus,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-selection--multiple:focus,
body.mlsh-modern .forminator-ui.forminator-custom-form .select2-container--open .select2-selection {
  border-color: var(--blue-600) !important;
  background: var(--white) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-description,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-description p,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-error-message,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-checkbox,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-radio {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-description,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-description p {
  color: var(--slate-500) !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-submit,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-next,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-back,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-upload {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 1px solid var(--blue-700) !important;
  border-radius: 8px !important;
  color: var(--white) !important;
  background: var(--blue-700) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: 0 4px 10px rgba(29, 78, 216, .18) !important;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-back {
  color: var(--slate-700) !important;
  border-color: var(--slate-300) !important;
  background: var(--white) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-submit:hover,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-next:hover,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-upload:hover {
  border-color: var(--blue-800) !important;
  background: var(--blue-800) !important;
  box-shadow: 0 7px 16px rgba(29, 78, 216, .22) !important;
  transform: translateY(-1px);
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-back:hover {
  color: var(--blue-700) !important;
  border-color: var(--blue-600) !important;
  background: var(--blue-50) !important;
}

body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-submit:focus-visible,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-next:focus-visible,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-back:focus-visible,
body.mlsh-modern .forminator-ui.forminator-custom-form .forminator-button-upload:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28) !important;
  outline-offset: 2px !important;
}

/* Keep any Elementor, WPForms, and Contact Form 7 forms aligned with the same
   typography if those widgets are placed on a page later. */
body.mlsh-modern .elementor-form .elementor-field-label,
body.mlsh-modern .wpforms-container .wpforms-field-label,
body.mlsh-modern .wpcf7 form label {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

body.mlsh-modern .elementor-form .elementor-field,
body.mlsh-modern .wpforms-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.mlsh-modern .wpforms-container select,
body.mlsh-modern .wpforms-container textarea,
body.mlsh-modern .wpcf7 form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.mlsh-modern .wpcf7 form select,
body.mlsh-modern .wpcf7 form textarea {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

/* Elementor page-level styles can declare Roboto or Roboto Slab after the
   theme. Keep all semantic widget copy in the site's Poppins type system. */
body.mlsh-modern .elementor .elementor-widget-text-editor,
body.mlsh-modern .elementor .elementor-widget-text-editor .elementor-widget-container,
body.mlsh-modern .elementor .elementor-widget-container,
body.mlsh-modern .elementor .elementor-heading-title,
body.mlsh-modern .elementor .elementor-divider__text,
body.mlsh-modern .elementor .elementor-icon-box-title,
body.mlsh-modern .elementor .elementor-icon-box-description,
body.mlsh-modern .elementor .elementor-image-box-title,
body.mlsh-modern .elementor .elementor-image-box-description,
body.mlsh-modern .elementor .elementor-counter-number-wrapper,
body.mlsh-modern .elementor .elementor-counter-title,
body.mlsh-modern .elementor .elementor-testimonial-content,
body.mlsh-modern .elementor .elementor-testimonial-name,
body.mlsh-modern .elementor .elementor-testimonial-job,
body.mlsh-modern .elementor .elementor-tab-title,
body.mlsh-modern .elementor .elementor-tab-content,
body.mlsh-modern .elementor .elementor-button,
body.mlsh-modern .elementor :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption) {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

/* Shown while an administrator is viewing the site as another user. */
.view-as-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  background: #b45309;
  font-size: 14px;
}

.view-as-bar .btn {
  color: #b45309;
  background: #fff;
}

.admin-bar .view-as-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .view-as-bar {
    top: 46px;
  }
}

/* At 600px and below WordPress lets its admin bar scroll away, so sticky bars
   go to the very top; otherwise page content shows through the empty strip. */
@media screen and (max-width: 600px) {
  body.mlsh-modern.admin-bar .site-header,
  .admin-bar .view-as-bar {
    top: 0;
  }
}

/* WordPress's standard visually-hidden helper (used by core markup). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* Footer on tablets and phones: the about text on top, the three link groups
   side by side below it (two per row on very small phones). Placed last so
   it wins over the older single-column rule in the 700px block. */
@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-about p {
    max-width: none;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The brown logo disappears on the dark footer; give it a white card. */
.footer-brand .site-logo-image {
  width: auto;
  max-width: 150px;
  height: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--white);
}
/* Header: "Log In" link + "Join MLS Haiti" button (logged-out visitors). */
.header-join {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

.mobile-nav-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-nav-auth .btn {
  width: 100%;
  white-space: nowrap;
}

@media (min-width: 981px) and (max-width: 1240px) {
  .header-join {
    padding: 0 12px;
    font-size: 13px;
  }
}
/* Property overview: land area in a double-width cell, one conversion per line. */
.property-fact-strip .fact-land-area {
  grid-column: span 2;
  gap: 4px;
}

.property-fact-strip .fact-land-area strong {
  font-size: 17px;
}

.land-area-conversions {
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .property-fact-strip .fact-land-area {
    grid-column: auto;
  }
}
/* Listing form: Cancel / Back / Next / Save stay at the bottom of the screen while scrolling. */
/* clip (unlike hidden) keeps the rounded corners without stopping the bar from sticking;
   min-width: 0 lets the card stay narrower than its step tabs, as hidden did. */
.listing-submit-form,
.listing-submit-form .listing-wizard-card {
  min-width: 0;
}

.listing-submit-form .listing-wizard-card {
  overflow: clip;
}

.listing-submit-form .listing-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}

@media (max-width: 720px) {
  .listing-submit-form .listing-bottom-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .listing-submit-form .listing-bottom-actions > .btn {
    width: auto;
    padding-inline: 12px;
  }

  .listing-submit-form .listing-primary-actions {
    flex: 1;
    width: auto;
    gap: 8px;
  }

  .listing-submit-form .listing-primary-actions .btn {
    flex: 1;
    width: auto;
    min-width: 0;
    padding-inline: 8px;
    white-space: nowrap;
  }
}
/* Board: five count cards (All, Published, Pending, Drafts, Expired). */
.dashboard-stat-grid.dashboard-stat-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .dashboard-stat-grid.dashboard-stat-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard-stat-grid.dashboard-stat-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}