:root {
  color-scheme: light;
  --bg-main: #f5f6f7;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f8f9fa;
  --text-main: #111418;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --button-active-bg: #111418;
  --button-active-text: #ffffff;
  --button-inactive-bg: #f1f2f4;
  --button-inactive-text: #374151;
  --button-inactive-border: #d1d5db;
  --button-hover-bg-token: #1f2933;
  --button-disabled-bg: #e5e7eb;
  --button-disabled-text: #9ca3af;
  --bg: #f5f6f7;
  --panel: #ffffff;
  --ink: #111418;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #111418;
  --brand-dark: #1f2933;
  --button-soft-bg: #f1f2f4;
  --button-soft-text: #374151;
  --button-bg: #111418;
  --button-text: #ffffff;
  --button-hover-bg: #1f2933;
  --control-radius: 8px;
  --sand: #f8f9fa;
  --pin: #111418;
  --sale: #374151;
  --shadow: 0 8px 24px rgba(17, 20, 24, 0.06);
  --map-frame: #e5e7eb;
  font-family: "Plus Jakarta Sans", Inter, "Noto Sans Hebrew", system-ui, sans-serif;
}

body[data-theme="green"] {
  color-scheme: light;
  --bg: #f7f4ef;
  --panel: #fffdfa;
  --ink: #1f2e28;
  --muted: #6b766f;
  --line: #e7ded1;
  --brand: #1f3d34;
  --brand-dark: #174f42;
  --button-soft-bg: #eee8dd;
  --button-soft-text: #1f3d34;
  --button-bg: #1f3d34;
  --button-text: #ffffff;
  --button-hover-bg: #174f42;
  --control-radius: 8px;
  --sand: #efe9dc;
  --pin: #1f3d34;
  --sale: #c89654;
  --shadow: 0 18px 42px rgba(31, 61, 52, 0.13);
  --map-frame: #e9e3da;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1116;
  --panel: #181820;
  --ink: #f2f4f7;
  --muted: #c7cbd1;
  --line: #2a2f36;
  --brand: #d4af37;
  --brand-dark: #e0bd4c;
  --button-soft-bg: #242a32;
  --button-soft-text: #f2f4f7;
  --button-bg: #d4af37;
  --button-text: #111418;
  --button-hover-bg: #e0bd4c;
  --control-radius: 8px;
  --sand: #181820;
  --pin: #d4af37;
  --sale: #58687c;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  --map-frame: #20242b;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  background: var(--button-bg);
  border: 1px solid color-mix(in srgb, var(--button-bg) 78%, #fff 14%);
  border-radius: var(--control-radius);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  color: var(--button-text);
  cursor: pointer;
  font-weight: 550;
  min-height: 40px;
  padding: 9px 14px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 100ms ease;
}

button:hover {
  background: var(--button-hover-bg);
  border-color: color-mix(in srgb, var(--button-hover-bg) 78%, #fff 14%);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.primary,
.button-link,
.auth-button,
.admin-actions button,
.section-title button,
.address-actions button,
.photo-uploader button,
.filter-drawer-actions button,
.modal-owner-actions button,
.map-popup button {
  border-radius: var(--control-radius);
}

button:active {
  transform: translateY(1px) scale(0.98);
}

button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-bottom: 1px solid var(--line);
  column-gap: 22px;
  display: grid;
  grid-template-columns: auto minmax(210px, 0.75fr) minmax(300px, 1fr) auto;
  padding: 12px 22px;
  position: sticky;
  top: 0;
  z-index: 64;
}

.topbar > div:first-child {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.topbar h1 {
  font-size: clamp(28px, 2.35vw, 40px);
  line-height: 1.1;
  margin: 0;
}

.brand-logo {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 850;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-logo span:first-child::first-letter {
  color: color-mix(in srgb, var(--brand) 74%, var(--ink) 26%);
}

.brand-pin {
  display: inline-block;
  height: 1.08em;
  margin-left: 0.1em;
  position: relative;
  transform: translateY(0.08em);
  width: 0.7em;
}

.brand-pin::before {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 0.11em, transparent 0.118em),
    #e31919;
  border: 0.055em solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 10px rgba(227, 25, 25, 0.34);
  content: "";
  height: 0.62em;
  left: 50%;
  position: absolute;
  top: -0.02em;
  transform: translateX(-50%) rotate(-45deg);
  width: 0.62em;
  z-index: 1;
}

.brand-pin::after {
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  border-radius: 50%;
  bottom: 0.03em;
  content: "";
  height: 0.15em;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 0.46em;
}

.brand-pin .pin-hole {
  display: none;
}

body[data-theme="dark"] .brand-pin::after {
  background: color-mix(in srgb, #fff 42%, transparent);
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
  justify-self: center;
}

nav a,
.user-badge,
.top-filter-actions button,
.top-actions select,
.theme-select {
  border: 1px solid color-mix(in srgb, var(--button-soft-text) 14%, var(--line));
  border-radius: var(--control-radius);
  color: var(--ink);
  min-height: 40px;
  padding: 8px 13px;
  text-decoration: none;
}

nav a,
.top-filter-actions button {
  align-items: center;
  background: var(--button-soft-bg);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  color: var(--button-soft-text);
  display: inline-flex;
  font-weight: 560;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

nav a:hover,
nav a:focus-visible,
.top-filter-actions button:hover,
.top-filter-actions button:focus-visible {
  background: color-mix(in srgb, var(--button-soft-bg) 82%, var(--brand) 18%);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.1);
}

.top-filter-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: start;
  margin-left: 0;
  padding-left: clamp(150px, 14vw, 260px);
}

.top-filter-actions button {
  min-width: 108px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: end;
  position: relative;
}

.top-actions select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: var(--button-soft-bg);
  min-width: 0;
  text-align: center;
  text-align-last: center;
  width: 58px;
}

.top-actions select::-ms-expand {
  display: none;
}

.top-actions button {
  background: var(--button-soft-bg);
  border-color: color-mix(in srgb, var(--button-soft-text) 14%, var(--line));
  color: var(--button-soft-text);
  min-height: 40px;
  padding: 8px 13px;
  white-space: nowrap;
}

.user-badge {
  align-items: center;
  background: var(--button-soft-bg);
  display: inline-flex;
  gap: 9px;
  height: 40px;
  max-width: 210px;
  min-height: 40px;
  overflow: visible;
  padding: 1px 12px 1px 4px;
}

.user-badge span:last-child {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar,
.profile-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--brand) 22%, var(--panel));
  background-position: center;
  background-size: cover;
  border: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  color: var(--brand-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
}

.user-avatar {
  height: 38px;
  width: 38px;
}

.auth-button {
  background: var(--button-soft-bg);
  border-color: color-mix(in srgb, var(--button-soft-text) 14%, var(--line));
  border-radius: var(--control-radius);
  color: var(--button-soft-text);
  min-width: 86px;
}

.top-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
}

.top-profile-dropdown {
  width: min(660px, calc(100vw - 28px));
}

.top-profile-menu .profile-dropdown {
  left: auto;
  margin-top: 0;
  position: static;
  top: auto;
}

.profile-panel-summary {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
}

.profile-panel-summary p {
  color: var(--muted);
  margin: 0;
}

.profile-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.profile-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

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

.profile-stat strong {
  display: block;
  font-size: 17px;
  margin-top: 2px;
}

.profile-stat-wide {
  grid-column: 1 / -1;
}

.theme-select {
  background: var(--button-soft-bg);
  border: 1px solid color-mix(in srgb, var(--button-soft-text) 14%, var(--line));
  border-radius: var(--control-radius);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  color: var(--button-soft-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  min-height: 40px;
  min-width: 94px;
  padding: 8px 13px;
}

.theme-select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent);
  outline-offset: 2px;
}

.theme-menu {
  position: relative;
}

.theme-options {
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.theme-options button {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
}

.theme-options button:hover,
.theme-options button.active {
  background: color-mix(in srgb, var(--button-soft-bg) 78%, var(--brand) 22%);
  color: var(--button-soft-text);
}

.theme-options button.active::after {
  content: "✓";
  font-weight: 900;
}

body[data-theme="dark"] .map-shell {
  background: #0f1116;
  border-color: var(--map-frame);
}

body[data-theme="dark"] .top-actions button,
body[data-theme="dark"] .section-title button,
body[data-theme="dark"] .admin-actions button {
  background: var(--button-soft-bg);
  border-color: color-mix(in srgb, var(--button-soft-text) 18%, var(--line));
  color: var(--button-soft-text);
}

body[data-theme="dark"] .auth-button {
  background: var(--button-soft-bg);
  border-color: color-mix(in srgb, var(--button-soft-text) 18%, var(--line));
  color: var(--button-soft-text);
}

body[data-theme="dark"] button:hover {
  background: color-mix(in srgb, var(--button-soft-bg) 82%, var(--brand) 18%);
}

main {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.list,
.agents,
.auth-panel,
.account-section,
.admin-section,
.form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.property-card p,
.agent-card p,
.plan p,
.empty {
  color: var(--muted);
}

.workspace {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100vh - 64px);
  min-height: 760px;
  max-height: none;
  position: relative;
}

.workspace.filters-open::before {
  background: rgba(17, 20, 24, 0.34);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 24;
}

.workspace.filters-open .filters {
  z-index: 32;
}

.filters {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  inset: 0;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  position: absolute;
  z-index: 30;
}

.list {
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--panel) 45%, transparent);
  bottom: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  position: absolute;
  right: 8px;
  top: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.2s ease, width 0.2s ease;
  width: 300px;
  z-index: 9;
}

.filters {
  font-size: 14px;
}

.filters label,
.filters .city-filter > label {
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
  line-height: 1.2;
  margin: 0;
}

.filters input,
.filters select {
  font-size: 14px;
  min-height: 36px;
  padding: 8px 9px;
}

.filters input[type="checkbox"] {
  height: 18px;
  min-height: 0;
  width: 18px;
}

.list-empty {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 160px;
  padding: 18px;
  text-align: center;
}

.section-title {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title button {
  background: var(--button-soft-bg);
  border: 1px solid color-mix(in srgb, var(--button-soft-text) 14%, var(--line));
  border-radius: var(--control-radius);
  color: var(--button-soft-text);
}

.filters .section-title {
  gap: 10px;
  margin: 0;
}

.filter-title-actions {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.filter-title-actions button {
  min-height: 36px;
  padding: 8px 11px;
  white-space: nowrap;
}

.filter-main-row {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.rooms-filter {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-advanced {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  display: none;
  left: 50%;
  max-width: min(760px, calc(100vw - 44px));
  overflow: visible;
  padding: 0;
  position: absolute;
  right: auto;
  top: 58px;
  transform: translateX(-50%);
  width: 760px;
  z-index: 31;
  pointer-events: auto;
}

.workspace.filters-open .filter-advanced {
  display: flex;
  flex-direction: column;
}

.filter-modal-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 58px;
  padding: 12px 58px;
  position: relative;
}

.filter-modal-head h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.filter-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 8px;
  width: 42px;
}

.filter-modal-close::before {
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  content: "";
  display: block;
  height: 16px;
  width: 16px;
}

.filter-modal-close:hover,
.filter-modal-close:focus-visible {
  background: color-mix(in srgb, var(--panel) 78%, var(--ink) 10%);
}

.filter-advanced .filter-main-row,
.filter-advanced .filter-amenities {
  margin: 0 18px;
}

.filter-advanced .filter-main-row {
  padding: 20px 0 12px;
}

.filter-advanced .filter-amenities {
  border-top: 1px solid var(--line);
  max-height: none;
  overflow: visible;
  padding: 18px 0;
}

.results-title {
  gap: 10px;
  margin-bottom: 10px;
}

.results-title > div:first-child {
  display: grid;
  gap: 2px;
}

.results-title small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.results-actions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.results-actions button {
  min-height: 34px;
  padding: 7px 9px;
}

#toggleResultsPanel {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

#toggleResultsPanel::before {
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  content: "";
  display: block;
  height: 13px;
  width: 13px;
}

#propertyList {
  min-height: 0;
  overflow: auto;
  padding: 2px 3px 2px 0;
}

.results-collapsed-button {
  align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: none;
  font-weight: 900;
  gap: 8px;
  padding: 10px 12px;
  pointer-events: auto;
  white-space: nowrap;
}

.results-collapsed-button span:first-child {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 7px;
}

.list.collapsed {
  background: transparent;
  border-color: transparent;
  bottom: auto;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  right: 8px;
  top: 82px;
  width: auto;
}

.list.collapsed .results-title,
.list.collapsed #propertyList {
  display: none;
}

.list.collapsed .results-collapsed-button {
  display: inline-flex;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 12px;
}

.city-filter {
  display: grid;
  gap: 8px;
  margin: 0;
  position: relative;
}

.city-filter > label {
  margin: 0;
}

.city-options {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 36;
}

.city-summary,
.city-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 4px;
}

.selected-city-strip {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0 0 8px;
}

.selected-city-chip {
  align-items: center;
  background: color-mix(in srgb, var(--brand) 18%, var(--panel) 82%);
  border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 6px;
  padding: 6px 9px;
}

.selected-city-chip strong {
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1;
}

.selected-city-chip.chip-just-added {
  animation: chipArrived 900ms ease-out;
  background: color-mix(in srgb, var(--brand) 32%, var(--panel) 68%);
}

.city-choice {
  align-items: center;
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 7px 6px;
  position: relative;
}

.city-choice:hover {
  background: color-mix(in srgb, var(--panel) 80%, var(--brand) 20%);
}

.city-choice.city-just-added {
  animation: cityAdded 900ms ease-out;
  background: color-mix(in srgb, var(--brand) 36%, var(--panel) 64%);
}

.city-choice.city-just-added::after {
  animation: cityTrail 900ms ease-out;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--brand) 70%, transparent),
    color-mix(in srgb, var(--brand) 28%, transparent),
    transparent
  );
  border-radius: 12px;
  content: "";
  height: 90px;
  left: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: -86px;
}

@keyframes cityAdded {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent);
    transform: translateY(0);
  }
  35% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 24%, transparent);
  }
  100% {
    box-shadow: none;
    transform: translateY(0);
  }
}

@keyframes cityTrail {
  0% {
    opacity: 0.95;
    transform: translateY(26px) scaleX(0.82);
  }
  45% {
    opacity: 0.75;
    transform: translateY(-18px) scaleX(0.94);
  }
  100% {
    opacity: 0;
    transform: translateY(-54px) scaleX(0.62);
  }
}

@keyframes chipArrived {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent);
    transform: scale(0.96);
  }
  45% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent);
    transform: scale(1.04);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

input,
select,
textarea {
  background: color-mix(in srgb, var(--panel) 94%, white);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  min-width: 0;
  padding: 10px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

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

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

.checks {
  display: grid;
  gap: 9px;
}

.checks label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
}

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

.filter-amenities label {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  padding: 10px 12px;
}

.filter-drawer-actions {
  align-items: center;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
  position: static;
}

.filter-drawer-actions button {
  border-radius: var(--control-radius);
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 18px;
}

#resetFiltersModal {
  background: var(--button-soft-bg);
  border-color: color-mix(in srgb, var(--button-soft-text) 18%, var(--line));
  color: var(--button-soft-text);
}

#resetFiltersModal,
#showMapResults {
  flex: 1;
  max-width: 420px;
  text-align: center;
}

#showMapResults {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.inline {
  grid-template-columns: repeat(3, max-content);
  margin-bottom: 14px;
}

.map-shell {
  background: color-mix(in srgb, var(--panel) 80%, var(--brand) 20%);
  border: 1px solid var(--map-frame);
  border-radius: 8px;
  grid-row: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.israel-map {
  background: #d7e7ec;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.streetview-return {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  color: #1f2933;
  font-size: 14px;
  font-weight: 850;
  left: 50%;
  min-height: 40px;
  padding: 9px 13px;
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  z-index: 22;
}

.streetview-return:hover,
.streetview-return:focus-visible {
  background: #f8f9fa;
  color: #111827;
}

.streetview-active .map-zoom-control,
.streetview-active .results-collapsed-button {
  display: none;
}

.map-zoom-control {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  display: grid;
  left: 14px;
  overflow: hidden;
  position: absolute;
  top: 14px;
  width: 40px;
  z-index: 10;
}

.map-zoom-control button {
  align-items: center;
  background: #fff;
  border: 0;
  color: #1f2933;
  display: inline-flex;
  font-size: 24px;
  font-weight: 500;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 40px;
}

.map-zoom-control button + button {
  border-top: 1px solid #dadce0;
}

.map-zoom-control button:hover,
.map-zoom-control button:focus-visible {
  background: #f8f9fa;
}

#googleMap .gm-svpc {
  height: 40px !important;
  margin: 106px 0 0 4px !important;
  position: relative !important;
  width: 40px !important;
}

.pin-drag-hint {
  background: color-mix(in srgb, var(--panel) 92%, var(--brand) 8%);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  left: 50%;
  max-width: min(720px, calc(100% - 36px));
  padding: 12px 18px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 8;
}

#googleMap .gm-style-mtc button {
  font-size: 12px !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 10px !important;
}

#googleMap .gm-style-mtc {
  margin-right: 7px !important;
}

#googleMap .gm-style-mtc > div {
  border-radius: 7px !important;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16) !important;
  overflow: hidden !important;
}

#googleMap {
  height: 100%;
  inset: 0;
  min-height: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.map-fade {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 2;
}

.map-fade.visible {
  opacity: 0.72;
}

.map-loading {
  align-items: center;
  background: linear-gradient(135deg, #cfe8ef, #edf0df);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 28, 0.18);
  color: var(--muted);
  display: flex;
  font-weight: 800;
  left: 50%;
  line-height: 1.45;
  min-width: 280px;
  padding: 18px 22px;
  justify-content: center;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.map-empty {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
  color: var(--ink);
  font-weight: 900;
  left: 50%;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 18px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 18px;
  transform: translateX(-50%);
  z-index: 3;
}

.pin {
  align-items: center;
  background: var(--pin);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  min-width: 62px;
  padding: 0 11px;
  position: relative;
  white-space: nowrap;
}

.pin::after {
  background: inherit;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  bottom: -6px;
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  z-index: -1;
}

.pin.sale {
  background: var(--sale);
}

.pin:hover,
.pin.active {
  transform: scale(1.08);
  z-index: 5;
}

.pin span {
  position: relative;
  z-index: 2;
}

.map-popup h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.map-popup {
  overflow: hidden;
  width: 310px;
}

.map-hover-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.22);
  display: none;
  max-width: calc(100% - 28px);
  overflow: hidden;
  position: absolute;
  z-index: 4;
}

.map-hover-card.visible {
  display: block;
}

.map-popup img {
  background: #05070b;
  display: block;
  height: 156px;
  object-fit: contain;
  width: 100%;
}

.map-popup-body {
  padding: 12px;
}

.map-popup p {
  color: var(--muted);
  margin: 0 0 8px;
}

.map-popup strong {
  color: var(--brand-dark);
}

.map-popup .popup-meta,
.map-popup small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.map-popup button {
  background: var(--button-bg);
  border-radius: var(--control-radius);
  color: var(--button-text);
  margin-top: 10px;
  padding: 8px 10px;
  width: 100%;
}

.cluster-popup {
  width: 380px;
}

.cluster-popup .map-popup-body {
  padding: 16px;
}

.cluster-popup-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cluster-popup-head h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}

.cluster-popup-head span {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
}

.cluster-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.cluster-popup .cluster-item {
  background: #fff;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  color: #15202b;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  min-height: 68px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.cluster-popup .cluster-item:hover,
.cluster-popup .cluster-item.active {
  background: #f7fbff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
  color: #0f172a;
  transform: translateY(-1px);
}

.cluster-item-main {
  font-weight: 900;
  min-width: 0;
}

.cluster-item-price {
  background: #eef2f7;
  border-radius: 999px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 7px;
  white-space: nowrap;
}

.cluster-item small,
.cluster-extra {
  color: #566575;
  grid-column: 1 / -1;
}

.cluster-extra {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 2px;
}

body[dir="rtl"] .cluster-item {
  text-align: right;
}

body[data-theme="dark"] .map-hover-card {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .cluster-popup-head span {
  background: #e5e7eb;
  color: #0b0f16;
}

body[data-theme="dark"] .cluster-popup .cluster-item {
  background: #151c27;
  border-color: #2c3748;
  color: #eef2f7;
}

body[data-theme="dark"] .cluster-popup .cluster-item:hover,
body[data-theme="dark"] .cluster-popup .cluster-item.active {
  background: #1b2636;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

body[data-theme="dark"] .cluster-item-price {
  background: #253244;
  color: #f8fafc;
}

body[data-theme="dark"] .cluster-item small,
body[data-theme="dark"] .cluster-extra {
  color: #9aa7b8;
}

body[dir="rtl"] .topbar,
body[dir="rtl"] .section-title {
  direction: rtl;
}

body[dir="rtl"] input,
body[dir="rtl"] textarea,
body[dir="rtl"] select {
  text-align: right;
}

.property-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-bottom: 9px;
  overflow: hidden;
  padding: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.property-card-photo {
  background: #05070b;
  border-radius: 7px;
  display: block;
  height: 146px;
  object-fit: contain;
  width: 100%;
}

.property-card-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.property-card-city {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.property-card-bottom {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.property-card-bottom strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.property-card-bottom span {
  background: color-mix(in srgb, var(--panel) 82%, var(--brand) 18%);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  padding: 5px 8px;
}

.property-card:hover,
.property-card.hovered {
  background: color-mix(in srgb, var(--brand) 16%, var(--panel) 84%);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  transform: translateY(-2px);
}

.property-card.faded {
  filter: grayscale(0.45);
  opacity: 0.32;
  transform: scale(0.985);
}

.property-card.faded:hover {
  opacity: 0.72;
}

.property-card h3 {
  font-size: 16px;
  margin: 0 0 7px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: color-mix(in srgb, var(--panel) 82%, var(--brand) 18%);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  padding: 5px 8px;
}

body.modal-open {
  overflow: hidden;
}

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

.listing-modal {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 65;
}

.avatar-crop-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.property-modal-backdrop {
  background: rgba(4, 7, 12, 0.62);
  inset: 0;
  position: absolute;
}

.property-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  max-height: min(860px, calc(100vh - 56px));
  max-width: 1120px;
  overflow: hidden;
  position: relative;
  width: min(1120px, calc(100vw - 56px));
  z-index: 1;
}

.listing-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  font-size: 16.5px;
  max-height: min(940px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  z-index: 1;
}

.listing-modal-card .section-heading {
  padding-right: 46px;
}

.listing-modal-card .section-heading h2 {
  font-size: 30px;
  line-height: 1.12;
}

.listing-modal-card .eyebrow {
  font-size: 13px;
}

.listing-modal-card form {
  display: grid;
  gap: 16px;
}

.required-note {
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  padding: 11px 13px;
}

.suggest-field {
  position: relative;
}

.form-suggestions {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  display: grid;
  left: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 95;
}

.form-suggestions button {
  background: transparent;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 800;
  padding: 9px 10px;
  text-align: left;
}

.form-suggestions button:hover,
.form-suggestions button.active {
  background: color-mix(in srgb, var(--panel) 78%, var(--brand) 22%);
}

.form-city-option {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.form-city-option.favorite {
  background: color-mix(in srgb, #facc15 9%, transparent);
  border-radius: 8px;
}

.form-city-divider {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
  margin: 6px 4px;
}

.form-city-divider::before {
  background: #f59e0b;
  border-radius: 999px;
  content: "";
  display: block;
  height: 18px;
  margin: -9px auto 0;
  width: 3px;
}

.form-suggestions .form-city-pick {
  min-width: 0;
  text-align: left;
}

.form-suggestions .form-city-star {
  align-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 22px;
  justify-content: center;
  line-height: 1;
  padding: 8px 0;
}

.form-suggestions .form-city-star:hover,
.form-suggestions .form-city-star.active {
  background: color-mix(in srgb, #facc15 16%, var(--panel));
  border-color: color-mix(in srgb, #facc15 45%, var(--line));
  color: #f59e0b;
}

body[data-theme="dark"] .form-suggestions .form-city-star.active {
  color: #facc15;
}

.listing-modal-card label,
.listing-modal-card legend {
  font-size: 16px;
  font-weight: 800;
}

.listing-modal-card label {
  display: grid;
  gap: 7px;
}

.listing-modal-card input:not([type="checkbox"]),
.listing-modal-card select,
.listing-modal-card textarea {
  font-size: 16.5px;
  min-height: 48px;
  padding: 13px 14px;
}

.listing-modal-card textarea {
  min-height: 120px;
}

.listing-modal-card .form-grid {
  display: grid;
  gap: 14px;
}

.address-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.35fr) minmax(120px, 0.55fr);
}

.details-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.meta-grid {
  grid-template-columns: minmax(280px, 1.4fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(220px, 1fr);
}

.area-grid {
  grid-template-columns: minmax(180px, 280px);
}

.wide-field {
  display: grid;
}

.listing-modal-card input[type="checkbox"] {
  accent-color: var(--brand);
  height: 17px;
  min-height: 0;
  width: 17px;
}

.listing-modal-card .checks label,
.listing-modal-card .amenities-grid label {
  align-items: center;
  background: color-mix(in srgb, var(--panel) 88%, var(--button-soft-bg));
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
}

.listing-modal-card .checks label input,
.listing-modal-card .amenities-grid label input {
  flex: 0 0 auto;
}

.no-spinner {
  appearance: textfield;
  -moz-appearance: textfield;
}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.listing-modal-card .three,
.listing-modal-card .form-grid,
.listing-modal-card .availability-row {
  gap: 16px;
}

.listing-modal-card .address-actions,
.listing-modal-card .photo-uploader,
.listing-modal-card .amenities-fieldset,
.listing-modal-card .form-submit-card {
  padding: 16px;
}

.listing-modal-card .checks label {
  font-weight: 700;
}

.listing-modal-card .primary,
.listing-modal-card .address-actions button,
.listing-modal-card .photo-uploader button,
.listing-modal-card .form-submit-card button {
  font-size: 16.5px;
  min-height: 48px;
  padding: 13px 18px;
}

.listing-modal-card .property-modal-close {
  height: 42px;
  width: 42px;
}

.listing-modal-card::-webkit-scrollbar {
  width: 10px;
}

.listing-modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.listing-modal-card::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.pac-container {
  font-size: 16px;
  z-index: 100000 !important;
}

.avatar-crop-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  padding: 22px;
  position: relative;
  width: min(440px, calc(100vw - 40px));
  z-index: 1;
}

.avatar-crop-card h2 {
  margin: 0 48px 16px 0;
}

.avatar-crop-stage {
  background:
    radial-gradient(circle at center, transparent 156px, rgba(0, 0, 0, 0.45) 157px),
    #0b1020;
  border-radius: 8px;
  display: grid;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

#avatarCropCanvas {
  border-radius: 50%;
  cursor: grab;
  max-width: 100%;
  touch-action: none;
}

#avatarCropCanvas:active {
  cursor: grabbing;
}

.avatar-zoom {
  margin-top: 14px;
}

.avatar-zoom input {
  width: 100%;
}

.avatar-crop-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.property-modal-close {
  align-items: center;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  z-index: 2;
}

.property-modal-close::before {
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  content: "";
  display: block;
  height: 15px;
  width: 15px;
}

#propertyModalContent {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(340px, 0.9fr);
  height: min(780px, calc(100vh - 72px));
  max-height: inherit;
}

.modal-gallery {
  background: #05070b;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.gallery-main {
  background: #05070b;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  display: block;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  width: 100%;
}

.gallery-count {
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
  position: absolute;
  right: 14px;
}

.gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #111418;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  opacity: 0.72;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 2;
  touch-action: manipulation;
  user-select: none;
}

.gallery-arrow::before {
  border-color: currentColor;
  border-style: solid;
  border-width: 0 3px 3px 0;
  content: "";
  height: 12px;
  width: 12px;
  pointer-events: none;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: #fff;
  opacity: 1;
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.gallery-arrow-prev {
  left: 14px;
}

.gallery-arrow-prev::before {
  transform: translateX(2px) rotate(135deg);
}

.gallery-arrow-next {
  right: 14px;
}

.gallery-arrow-next::before {
  transform: translateX(-2px) rotate(-45deg);
}

.gallery-thumbs {
  background: #05070b;
  display: flex;
  gap: 8px;
  min-height: 82px;
  overflow-x: auto;
  padding: 10px;
}

.gallery-thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  flex: 0 0 82px;
  height: 62px;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--brand);
}

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

.modal-description {
  background: var(--bg-panel-soft, #f8f9fa);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 13px 14px;
}

.modal-description-language {
  color: var(--text-muted, #6b7280);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.modal-description p {
  line-height: 1.45;
  margin: 0;
}

.property-address-he {
  color: var(--text-muted, #6b7280);
  display: block;
  margin-top: 4px;
}

.modal-property-body {
  overflow: auto;
  padding: 34px;
}

.modal-property-body h2 {
  font-size: 30px;
  line-height: 1.12;
  margin: 6px 0 12px;
}

.modal-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.modal-owner-actions button {
  background: var(--button-soft-bg);
  border: 1px solid color-mix(in srgb, var(--button-soft-text) 16%, var(--line));
  border-radius: var(--control-radius);
  color: var(--button-soft-text);
  min-height: 38px;
  padding: 9px 12px;
}

.modal-owner-actions .danger-lite {
  background: color-mix(in srgb, #ef4444 12%, var(--panel));
  color: #b91c1c;
}

.modal-details {
  background: color-mix(in srgb, var(--panel) 92%, var(--brand) 8%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
}

.modal-detail-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.modal-detail-row span,
.modal-detail-block > span {
  color: var(--muted);
}

.modal-detail-block {
  display: grid;
  gap: 8px;
}

.modal-agent-box {
  background: color-mix(in srgb, var(--panel) 90%, var(--brand) 10%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
}

.modal-agent-box span {
  color: var(--muted);
}

.modal-agent-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.modal-agent-head > div {
  display: grid;
  gap: 2px;
}

.modal-agent-avatar {
  flex: 0 0 58px;
  font-size: 22px;
  height: 58px;
  width: 58px;
}

.moderation-warning {
  background: color-mix(in srgb, #f59e0b 18%, var(--panel));
  border: 1px solid color-mix(in srgb, #f59e0b 50%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 14px;
  padding: 12px;
}

.danger-action {
  background: #dc2626;
  border: 1px solid #b91c1c;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  margin-top: 8px;
  padding: 10px 12px;
}

.danger-action:hover {
  background: #b91c1c;
}

.danger-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

label,
input,
select,
textarea,
.property-card,
.account-property,
.admin-row,
.map-popup,
.modal-property-body {
  font-weight: 400;
}

button,
.button-link,
.tag,
.status-pill,
.section-title,
.profile-trigger,
.admin-actions button,
.cluster-item-main,
.cluster-item-price {
  font-weight: 650;
}

h1,
h2,
h3,
strong,
.price,
.eyebrow {
  font-weight: 750;
}

.section-heading h2 {
  margin: 4px 0 10px;
}

.price {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
}

.empty {
  padding: 30px;
}

.agents,
.auth-panel,
.account-section,
.admin-section {
  padding: 20px;
}

.resume-add-button {
  background: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 70%, white);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 900;
  position: fixed;
  right: 22px;
  z-index: 35;
}

.auth-panel form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 420px) max-content;
}

.auth-panel {
  position: fixed;
  right: 22px;
  top: 92px;
  width: min(520px, calc(100vw - 44px));
  z-index: 30;
}

.auth-google h2,
.choice-modal h2 {
  color: var(--text-main);
  margin: 0 0 8px;
}

.auth-google p,
.choice-modal-card > p,
.plans-modal-card > p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.auth-google {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 18px;
}

.service-login {
  margin-top: 14px;
}

.service-login summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.service-login form {
  margin-top: 12px;
}

.google-config-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px !important;
}

.choice-modal {
  inset: 0;
  position: fixed;
  z-index: 70;
}

.choice-modal-card,
.plans-modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(17, 20, 24, 0.18);
  left: 50%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  z-index: 1;
}

.plans-modal-card {
  width: min(1040px, calc(100vw - 32px));
}

.choice-modal-card .property-modal-close,
.plans-modal-card .property-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.account-type-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-type-option {
  align-items: flex-start;
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  text-align: left;
}

.account-type-option strong {
  font-size: 20px;
}

.account-type-option span {
  color: var(--text-muted);
  font-weight: 400;
}

.account-type-option:hover {
  background: var(--bg-panel);
  border-color: var(--text-main);
  color: var(--text-main);
  transform: translateY(-2px);
}

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

.pricing-card {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  padding: 22px;
}

.pricing-card.featured {
  border-color: var(--text-main);
  box-shadow: 0 12px 30px rgba(17, 20, 24, 0.09);
}

.pricing-kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.pricing-card h3 {
  font-size: 22px;
  margin: 8px 0;
}

.pricing-price {
  display: block;
  font-size: 22px;
}

.pricing-card small {
  color: var(--text-muted);
}

.pricing-card ul {
  color: var(--text-body);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-card li::before {
  content: "✓";
  margin-inline-end: 8px;
}

.pricing-card button {
  margin-top: auto;
  width: 100%;
}

.listing-validity {
  color: var(--text-muted);
  display: inline-block;
  margin-inline-start: 10px;
}

.status-expired {
  background: var(--button-disabled-bg);
  color: var(--button-disabled-text);
}

@media (max-width: 760px) {
  .account-type-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 0;
  }

  .choice-modal-card,
  .plans-modal-card {
    padding: 24px 18px;
  }
}

.toast {
  background: color-mix(in srgb, var(--ink) 92%, var(--brand) 8%);
  border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.24);
  color: var(--panel);
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  top: 82px;
  transform: translate(-50%, -10px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast[data-variant="error"] {
  background: #b91c1c;
  border-color: #fecaca;
  color: #fff7f7;
}

body[dir="rtl"] .auth-panel {
  left: 22px;
  right: auto;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.account-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 360px);
  justify-content: start;
  margin-top: -4px;
}

.account-topline {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.account-hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  max-width: 760px;
  padding: 10px 12px;
}

.account-hero-meta {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.account-hero-meta div {
  display: grid;
  gap: 2px;
  min-width: 96px;
}

.account-hero-meta span,
.account-hero-meta small {
  color: var(--muted);
  font-size: 12px;
}

.account-hero-meta strong {
  font-size: 18px;
}

.account-hero-meta .button-link {
  margin-top: 0;
}

.profile-menu {
  position: relative;
  width: min(100%, 360px);
  z-index: 12;
}

.profile-trigger {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 9px;
  justify-content: flex-start;
  min-height: 58px;
  padding: 6px 14px 6px 6px;
  text-align: left;
  width: auto;
}

.profile-trigger:hover,
.profile-menu.open .profile-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.profile-trigger span:last-child {
  display: grid;
  gap: 1px;
}

.profile-trigger small {
  color: var(--muted);
  font-size: 12px;
}

.profile-dropdown {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  left: 0;
  margin-top: 4px;
  padding: 12px;
  position: absolute;
  top: 100%;
  width: min(620px, calc(100vw - 40px));
}

body[data-theme="dark"] .profile-dropdown {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.profile-avatar-editor {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 136px minmax(0, 1fr);
  margin-bottom: 16px;
}

.profile-avatar-editor p {
  color: var(--muted);
  margin: 3px 0 0;
}

.profile-avatar-small {
  font-size: 24px;
  height: 58px;
  width: 58px;
}

.profile-avatar-edit {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  height: 136px;
  justify-self: center;
  padding: 0;
  width: 136px;
}

.profile-avatar-edit:hover,
.profile-avatar-edit:focus,
.profile-avatar-edit:focus-visible,
.profile-avatar-edit:active {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  outline: 0;
  transform: none;
}

.profile-avatar-large {
  font-size: 48px;
  height: 136px;
  width: 136px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.profile-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-avatar {
  font-size: 22px;
}

.profile-trigger .profile-avatar-small {
  font-size: 26px;
  height: 64px;
  width: 64px;
}

.profile-dropdown .profile-avatar-edit {
  font-size: 48px;
  height: 136px;
  width: 136px;
}

.modal-agent-box .modal-agent-avatar {
  flex-basis: 88px;
  font-size: 34px;
  height: 88px;
  width: 88px;
}

.profile-head h3 {
  margin: 2px 0 4px;
}

.profile-head p:last-child,
.account-property p,
.profile-card p {
  color: var(--muted);
}

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

.profile-fields label {
  font-size: 12px;
  gap: 4px;
}

.profile-fields input {
  min-height: 34px;
  padding: 8px 10px;
}

.profile-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.profile-actions .primary {
  padding: 9px 12px;
}

.account-summary-card {
  align-self: start;
  padding: 10px 12px;
}

.account-summary-card h3 {
  font-size: 19px;
  margin: 2px 0 5px;
}

.account-summary-card p {
  font-size: 13px;
  margin: 4px 0;
}

.button-link {
  background: var(--button-bg);
  border-radius: var(--control-radius);
  color: var(--button-text);
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 13px;
  text-decoration: none;
}

.account-list-toolbar {
  margin: 0 0 14px;
}

.account-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 420px));
  justify-content: start;
  margin-top: 16px;
}

.account-property {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px 14px;
  grid-template-columns: 128px minmax(0, 1fr);
  padding: 14px;
}

.account-property-photo {
  background: #05070b;
  border-radius: 8px;
  display: block;
  height: 96px;
  object-fit: contain;
  width: 128px;
}

.account-property p {
  margin: 6px 0;
}

.account-property .admin-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.account-property .admin-actions button {
  min-height: 36px;
}

.admin-grid h3 {
  margin: 0 0 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-row {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-row.highlighted {
  background: color-mix(in srgb, var(--brand) 18%, var(--panel) 82%);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.admin-row strong,
.admin-row p {
  overflow-wrap: anywhere;
}

.admin-row p {
  color: var(--muted);
  margin: 6px 0;
}

.admin-agent-details {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 4px;
  margin: 8px 0;
}

.admin-agent-headline {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin-bottom: -10px;
  padding-bottom: 10px;
  position: relative;
}

.admin-agent-headline::after {
  bottom: 0;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  right: 0;
}

.admin-agent-headline .status-pill {
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
}

.agent-action-popover {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  gap: 8px;
  left: 0;
  min-width: 230px;
  padding: 10px;
  position: absolute;
  top: calc(100% - 1px);
  z-index: 20;
}

.admin-agent-headline:hover .agent-action-popover,
.admin-agent-headline:focus-within .agent-action-popover {
  display: grid;
}

.agent-block-reason-field {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.agent-block-reason-field textarea {
  font-size: 13px;
  min-height: 68px;
  padding: 8px;
  resize: vertical;
}

.agent-action-popover button {
  min-height: 34px;
}

.admin-block-reason {
  color: color-mix(in srgb, var(--muted) 86%, #111418);
  font-size: 12px;
  margin-top: 6px;
}

.inline-agent-link {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  display: inline;
  font: inherit;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-agent-link:hover,
.inline-agent-link:focus-visible {
  background: transparent;
  box-shadow: none;
  color: var(--brand-dark);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.admin-actions button {
  background: var(--button-soft-bg);
  border: 1px solid color-mix(in srgb, var(--button-soft-text) 18%, var(--line));
  border-radius: var(--control-radius);
  color: var(--button-soft-text);
  padding: 8px 10px;
}

.admin-actions .danger-lite {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

body[data-theme="dark"] .admin-actions .danger-lite {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #fecaca;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 6px;
  padding: 7px 10px;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-blocked {
  background: #fee2e2;
  color: #991b1b;
}

.status-archived {
  background: color-mix(in srgb, var(--muted) 20%, var(--panel));
  color: var(--muted);
}

.status-paused {
  background: #e0f2fe;
  color: #075985;
}

.status-deleted {
  background: #f1f5f9;
  color: #475569;
}

.status-review {
  background: color-mix(in srgb, #38bdf8 18%, var(--panel));
  color: #0369a1;
  margin-left: 6px;
}

.status-alert {
  background: #fee2e2;
  color: #991b1b;
  margin-left: 6px;
}

body[data-theme="dark"] .status-active {
  background: #064e3b;
  border: 1px solid #10b981;
  color: #bbf7d0;
}

body[data-theme="dark"] .status-pending {
  background: #422006;
  border: 1px solid #f59e0b;
  color: #fde68a;
}

body[data-theme="dark"] .status-blocked {
  background: #450a0a;
  border: 1px solid #ef4444;
  color: #fecaca;
}

body[data-theme="dark"] .status-archived {
  background: color-mix(in srgb, var(--muted) 14%, var(--panel));
  color: #cbd5e1;
}

body[data-theme="dark"] .status-paused {
  background: #082f49;
  border: 1px solid #0ea5e9;
  color: #bae6fd;
}

body[data-theme="dark"] .status-deleted {
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
}

body[data-theme="dark"] .status-review {
  background: #082f49;
  border: 1px solid #38bdf8;
  color: #bae6fd;
}

body[data-theme="dark"] .status-alert {
  background: #450a0a;
  border: 1px solid #ef4444;
  color: #fecaca;
}

.section-heading {
  margin-bottom: 14px;
}

.plans,
.agent-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.plan,
.agent-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.plan strong {
  display: block;
  font-size: 24px;
  margin: 8px 0;
}

.primary {
  background: var(--button-bg);
  border-color: color-mix(in srgb, var(--button-bg) 78%, #fff 14%);
  color: var(--button-text);
  min-width: 180px;
}

.form-message {
  color: var(--brand-dark);
  font-weight: 800;
}

body[data-theme="dark"] .primary,
body[data-theme="dark"] .button-link,
body[data-theme="dark"] .address-actions button,
body[data-theme="dark"] .photo-uploader button,
body[data-theme="dark"] .form-submit-card button,
body[data-theme="dark"] .filter-drawer-actions button {
  background: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 72%, #fff 18%);
  color: #111418;
}

body[data-theme="dark"] .primary:hover,
body[data-theme="dark"] .button-link:hover,
body[data-theme="dark"] .address-actions button:hover,
body[data-theme="dark"] .photo-uploader button:hover,
body[data-theme="dark"] .form-submit-card button:hover {
  background: var(--brand-dark);
}

body[data-theme="dark"] .form-message,
body[data-theme="dark"] .price,
body[data-theme="dark"] .eyebrow {
  color: var(--brand-dark);
}

body[data-theme="dark"] .tag {
  background: #1d2732;
  border: 1px solid #2d3b49;
  color: #e7eef5;
}

.address-actions,
.photo-uploader,
.amenities-fieldset,
.form-submit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.address-actions,
.form-submit-card {
  display: grid;
  gap: 10px;
}

.address-actions button,
.photo-uploader button,
.form-submit-card button {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.address-actions button:disabled,
.form-submit-card button:disabled {
  background: color-mix(in srgb, var(--muted) 38%, var(--panel));
  color: var(--muted);
  cursor: not-allowed;
}

.form-submit-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.form-submit-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr);
}

.form-submit-actions .primary {
  width: 100%;
}

.availability-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(90px, 0.5fr));
}

.availability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
}

.availability-title {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.listing-modal-card .availability-row {
  align-items: end;
  grid-template-columns: repeat(3, 86px) 34px minmax(180px, 1fr);
}

.availability-or {
  align-self: center;
  color: var(--muted);
  font-weight: 900;
  justify-self: center;
  padding-top: 22px;
}

.availability-card.available-now .availability-row > label:not(.compact-check),
.availability-card.available-now .availability-or {
  filter: grayscale(0.3);
  opacity: 0.12;
}

.compact-check {
  align-items: center;
  background: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  flex-direction: row;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
}

.listing-modal-card input[readonly] {
  background: color-mix(in srgb, var(--panel) 84%, var(--brand) 16%);
  color: var(--ink);
  cursor: default;
  font-weight: 800;
}

.photo-uploader {
  display: grid;
  gap: 10px;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-preview figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 132px;
}

.photo-open {
  background: transparent;
  border-radius: 0;
  display: block;
  padding: 0;
  pointer-events: none;
  width: 100%;
}

.photo-open:hover {
  background: transparent;
}

.photo-preview img {
  display: block;
  height: 98px;
  object-fit: cover;
  width: 100%;
}

.photo-preview figure > button:last-child {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 0;
  color: #fff;
  font-size: 11px;
  padding: 5px;
  width: 100%;
}

.photo-number,
.main-photo-badge {
  position: absolute;
  top: 7px;
}

.photo-number {
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  left: 7px;
  width: 24px;
}

.main-photo-badge {
  background: color-mix(in srgb, var(--brand) 88%, #111827);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 7px;
  right: 7px;
}

.photo-lightbox {
  display: flex;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 90;
}

.photo-lightbox .property-modal-backdrop {
  display: none;
}

.photo-lightbox-card {
  background: #05070b;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  max-height: 280px;
  max-width: 360px;
  padding: 8px;
  position: fixed;
  z-index: 1;
}

.photo-lightbox-card img {
  display: block;
  max-height: 264px;
  max-width: 100%;
  object-fit: contain;
}

.photo-lightbox-card .property-modal-close {
  display: none;
}

.amenities-fieldset legend {
  font-weight: 900;
  padding: 0 6px;
}

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

button,
.button-link,
.admin-actions button,
.modal-owner-actions button,
.filter-drawer-actions button,
.photo-uploader button,
.form-submit-card button,
.address-actions button,
.map-popup button {
  font-weight: 560 !important;
}

/* Premium grey visual theme */
body {
  background: var(--bg-main);
  color: var(--text-body);
}

.topbar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 6px 22px rgba(17, 20, 24, 0.04);
}

.brand-logo,
.topbar h1,
h1,
h2,
h3,
strong {
  color: var(--text-main);
}

button,
.button-link,
.auth-button,
.top-actions button,
.top-actions select,
.top-filter-actions button,
.theme-select,
.admin-actions button,
.modal-owner-actions button,
.filter-drawer-actions button,
.address-actions button,
.photo-uploader button,
.form-submit-card button,
.section-title button,
.results-actions button {
  background: var(--button-inactive-bg);
  border: 1px solid var(--button-inactive-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17, 20, 24, 0.05);
  color: var(--button-inactive-text);
  text-align: center;
}

button:hover,
.button-link:hover,
.auth-button:hover,
.top-actions button:hover,
.top-actions select:hover,
.top-filter-actions button:hover,
.theme-select:hover,
.admin-actions button:hover,
.modal-owner-actions button:hover,
.filter-drawer-actions button:hover,
.address-actions button:hover,
.photo-uploader button:hover,
.form-submit-card button:hover,
.section-title button:hover,
.results-actions button:hover {
  background: var(--bg-panel-soft);
  border-color: var(--border-medium);
  box-shadow: 0 8px 20px rgba(17, 20, 24, 0.08);
  color: var(--text-main);
}

button,
.button-link,
nav a,
.auth-button,
.top-actions button,
.top-filter-actions button,
.theme-select,
.admin-actions button,
.modal-owner-actions button,
.filter-drawer-actions button,
.address-actions button,
.photo-uploader button,
.form-submit-card button,
.section-title button,
.results-actions button,
.map-popup button {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.theme-options button {
  justify-content: space-between;
  text-align: left;
}

.form-suggestions button,
.cluster-popup .cluster-item,
.inline-agent-link {
  justify-content: initial;
  text-align: left;
}

.primary,
.button-link,
#showMapResults,
.map-popup button,
.address-actions button,
.photo-uploader button,
.form-submit-card button {
  background: var(--button-active-bg);
  border-color: var(--button-active-bg);
  color: var(--button-active-text);
}

.primary:hover,
.button-link:hover,
#showMapResults:hover,
.map-popup button:hover,
.address-actions button:hover,
.photo-uploader button:hover,
.form-submit-card button:hover {
  background: var(--button-hover-bg-token);
  border-color: var(--button-hover-bg-token);
  color: var(--button-active-text);
}

button:disabled,
.address-actions button:disabled,
.form-submit-card button:disabled {
  background: var(--button-disabled-bg);
  border-color: var(--button-disabled-bg);
  color: var(--button-disabled-text);
  opacity: 1;
}

.danger-action,
.admin-actions .danger-lite,
.modal-owner-actions .danger-lite,
.photo-preview figure > button:last-child {
  background: var(--bg-panel-soft);
  border-color: var(--border-medium);
  color: var(--text-body);
}

.danger-action:hover,
.admin-actions .danger-lite:hover,
.modal-owner-actions .danger-lite:hover,
.photo-preview figure > button:last-child:hover {
  background: #eef0f2;
  border-color: var(--border-medium);
  color: var(--text-main);
}

.list,
.agents,
.auth-panel,
.account-section,
.admin-section,
.form-section,
.profile-dropdown,
.property-modal-card,
.listing-modal-card,
.filter-advanced,
.theme-menu {
  background: var(--bg-panel);
  border-color: var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.06);
}

.filters {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.list {
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.06);
}

.results-title h2,
.cluster-popup-head h3 {
  color: var(--text-main);
}

.results-title small,
.property-card-city,
.property-card p,
.map-popup p,
.map-popup small,
.map-popup .popup-meta,
.cluster-item small,
.cluster-extra,
.empty,
label {
  color: var(--text-muted);
}

#toggleResultsPanel,
.filter-modal-close,
.property-modal-close {
  background: var(--button-inactive-bg);
  border-color: var(--border-light);
  color: var(--text-body);
}

#toggleResultsPanel:hover,
.filter-modal-close:hover,
.property-modal-close:hover {
  background: #f3f4f6;
  border-color: var(--border-medium);
}

.property-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(17, 20, 24, 0.06);
}

.property-card:hover,
.property-card.hovered {
  background: #ffffff;
  border-color: var(--border-medium);
  box-shadow: 0 10px 24px rgba(17, 20, 24, 0.1);
  transform: translateY(-2px);
}

.property-card-photo {
  background: #f3f4f6;
  border-radius: 10px;
}

.property-card-bottom strong,
.price,
.map-popup strong {
  color: var(--text-main);
  font-weight: 700;
}

.property-card-bottom span,
.tag,
.cluster-item-price {
  background: var(--border-light);
  color: var(--text-body);
  border-radius: 999px;
}

.results-collapsed-button {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.06);
}

.results-collapsed-button span:first-child,
.pin,
.cluster-popup-head span {
  background: var(--text-main);
  color: #ffffff;
}

.pin {
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(17, 20, 24, 0.18);
}

.pin.sale {
  background: var(--text-body);
}

.map-hover-card,
.map-empty,
.map-loading {
  background: var(--bg-panel);
  border-color: var(--border-light);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(17, 20, 24, 0.12);
}

.cluster-popup .cluster-item {
  background: var(--bg-panel);
  border-color: var(--border-light);
  border-radius: 10px;
  color: var(--text-body);
}

.cluster-popup .cluster-item:hover,
.cluster-popup .cluster-item.active {
  background: var(--bg-panel-soft);
  border-color: var(--border-medium);
  box-shadow: 0 6px 18px rgba(17, 20, 24, 0.08);
  color: var(--text-main);
}

.filter-advanced input,
.filter-advanced select,
.filters input,
.filters select,
.profile-fields input,
.listing-modal-card input:not([type="checkbox"]),
.listing-modal-card select,
.listing-modal-card textarea,
textarea,
input,
select {
  background: var(--bg-panel);
  border-color: var(--border-medium);
  border-radius: 8px;
  color: var(--text-main);
}

.filter-advanced input:focus,
.filter-advanced select:focus,
.filters input:focus,
.filters select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(17, 20, 24, 0.08);
  outline: 0;
}

.filter-amenities label,
.listing-modal-card .checks label,
.listing-modal-card .amenities-grid label {
  background: var(--bg-panel);
  border-color: var(--border-light);
  border-radius: 10px;
  color: var(--text-body);
}

.status-pill,
.status-active,
.status-pending,
.status-blocked,
.status-paused,
.status-review,
.status-alert,
.status-archived,
.status-deleted {
  background: var(--border-light);
  border: 0;
  color: var(--text-body);
}

.admin-row,
.account-property,
.profile-card,
.account-hero-card,
.account-summary-card,
.plan {
  background: var(--bg-panel);
  border-color: var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(17, 20, 24, 0.05);
}

.admin-row.highlighted {
  background: var(--bg-panel-soft);
  border-color: var(--border-medium);
  box-shadow: 0 0 0 3px rgba(17, 20, 24, 0.08);
}

.theme-options button.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

.map-zoom-control {
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(17, 20, 24, 0.1);
}

.map-zoom-control button {
  background: var(--button-inactive-bg);
  border: 0;
  color: var(--text-body);
}

.map-zoom-control button:hover,
.map-zoom-control button:focus-visible {
  background: var(--bg-panel-soft);
  color: var(--text-main);
}

#googleMap .gm-style-mtc > div,
#googleMap .gm-svpc,
#googleMap .gm-control-active {
  border: 1px solid var(--border-medium) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 16px rgba(17, 20, 24, 0.1) !important;
}

#googleMap .gm-style-mtc button {
  background: var(--button-inactive-bg) !important;
  color: var(--text-body) !important;
}

@media (max-width: 1180px) {
  .address-grid,
  .details-grid,
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-submit-actions {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .filters {
    display: block;
  }

  .filter-main-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list {
    width: 286px;
  }

  .israel-map,
  #googleMap {
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: start;
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  nav,
  .top-filter-actions,
  .top-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: stretch;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .property-modal {
    align-items: flex-end;
    padding: 0;
  }

  .listing-modal {
    align-items: flex-end;
    padding: 0;
  }

  .property-modal-card {
    border-radius: 8px 8px 0 0;
    max-height: 92vh;
    width: 100%;
  }

  .listing-modal-card {
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    max-height: 94vh;
    padding: 22px 18px;
    width: 100%;
  }

  .listing-modal-card .section-heading h2 {
    font-size: 24px;
  }

  #propertyModalContent {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-gallery {
    min-height: auto;
  }

  .gallery-main img {
    max-height: none;
    min-height: 0;
  }

  .modal-property-body {
    padding: 22px;
  }

  .modal-property-body h2 {
    font-size: 24px;
  }

  .workspace,
  .plans,
  .agent-board,
  .admin-grid,
  .account-grid,
  .auth-panel form,
  .three,
  .address-grid,
  .details-grid,
  .meta-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    height: auto;
  }

  .filters {
    display: block;
    inset: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    position: absolute;
    z-index: 30;
  }

  .top-filter-actions {
    margin-left: 0;
    width: 100%;
  }

  .top-filter-actions button {
    flex: 1;
    min-width: 0;
  }

  .filter-main-row {
    grid-template-columns: 1fr;
  }

  .filter-title-actions {
    width: 100%;
  }

  .filter-title-actions button {
    flex: 1;
  }

  .filter-advanced {
    left: 50%;
    max-width: calc(100vw - 24px);
    overflow: visible;
    right: auto;
    top: 24px;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 24px));
  }

  .filter-advanced .filter-main-row,
  .filter-advanced .filter-amenities {
    margin: 0 14px;
  }

  .filter-advanced .filter-main-row,
  .filter-amenities {
    grid-template-columns: 1fr;
  }

  .israel-map {
    min-height: 560px;
  }

  .list {
    bottom: 8px;
    left: 8px;
    max-height: min(390px, 48vh);
    right: 8px;
    top: auto;
    width: auto;
  }

  .list.collapsed {
    bottom: 8px;
    left: auto;
    right: 8px;
    top: auto;
  }

  .property-card-photo {
    height: 134px;
  }

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

  .profile-avatar-editor {
    grid-template-columns: 1fr;
  }

  .account-property {
    grid-template-columns: 1fr;
  }

  .account-property-photo {
    height: 170px;
    width: 100%;
  }

  .availability-row {
    grid-template-columns: 1fr;
  }

  .listing-modal-card .availability-row {
    grid-template-columns: 1fr;
  }

  .map-zoom-control {
    left: 14px;
    top: 14px;
  }

  .filter-drawer-actions {
    background: color-mix(in srgb, var(--panel) 95%, transparent);
    display: flex;
    margin: 0;
    padding: 14px 16px 16px;
    position: static;
  }

  .filter-drawer-actions button {
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    width: 100%;
  }

  .resume-add-button {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}
