.properties-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 4px 0 36px;
  color: var(--text);
}

.properties-top-action,
.properties-primary-button,
.properties-secondary-button,
.properties-filter,
.bulk-actions button,
.property-card button,
.property-more summary {
  font: inherit;
}

.properties-top-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: var(--green-d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.properties-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  margin: 2px 0 22px;
  padding: 30px 34px;
  border: 1px solid var(--border-g);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(45, 205, 112, .17), transparent 40%),
    linear-gradient(115deg, var(--card), var(--green-l));
}

.properties-hero::after {
  content: '';
  position: absolute;
  right: 9%;
  bottom: -88px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(45, 205, 112, .16);
  border-radius: 50%;
  pointer-events: none;
}

.properties-hero-copy { position: relative; z-index: 1; max-width: 620px; }
.properties-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--green-dd);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.properties-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.properties-hero p { max-width: 510px; margin: 10px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.properties-primary-button,
.properties-secondary-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-d));
  box-shadow: var(--shadow-green);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.properties-primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(45, 205, 112, .26); }
.properties-secondary-button { background: var(--surface); border: 1px solid var(--border); box-shadow: none; color: var(--text-2); }

.properties-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
}
.overview-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.overview-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-2);
}
.overview-icon-green { background: var(--green-l); color: var(--green-dd); }
.overview-icon-blue { background: var(--blue-l); color: var(--blue); }
.overview-icon-purple { background: var(--purple-l); color: var(--purple); }
.overview-card div { display: grid; gap: 4px; min-width: 0; }
.overview-card strong { font-size: 22px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.overview-card span:not(.overview-icon) { color: var(--text-3); font-size: 12px; }

.properties-workspace {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.workspace-heading h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.workspace-heading p { margin: 5px 0 0; color: var(--text-3); font-size: 13px; }
.properties-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.properties-search,
.properties-sort {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-3);
}
.properties-search { flex: 1 1 auto; }
.properties-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.properties-search input::placeholder { color: var(--text-3); }
.properties-search:focus-within,
.properties-sort:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glass); }
.clear-search { display: grid; place-items: center; padding: 4px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.properties-sort { width: 205px; flex: 0 0 auto; }
.properties-sort select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.properties-filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  scrollbar-width: thin;
}
.properties-filter-row::-webkit-scrollbar { display: none; }
.properties-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.properties-filter span { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: var(--surface); color: var(--text-3); text-align: center; font-size: 10px; }
.properties-filter:hover { background: var(--surface); }
.properties-filter.is-active { border-color: var(--border-g); background: var(--green-l); color: var(--green-dd); }
.properties-filter.is-active span { background: var(--green-m); color: var(--green-dd); }

.selection-row { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.select-visible { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; cursor: pointer; }
.select-visible input,
.property-select input { width: 17px; height: 17px; accent-color: var(--green-d); cursor: pointer; }
.bulk-actions { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12px; font-weight: 650; }
.bulk-actions button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-2); font-size: 11px; font-weight: 700; cursor: pointer; }
.bulk-actions .bulk-delist { color: var(--red); }
.bulk-actions .bulk-clear { width: 32px; justify-content: center; padding: 0; }

.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.property-card { min-width: 0; overflow: visible; border: 1px solid var(--border); border-radius: 17px; background: var(--card); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.property-card:hover { transform: translateY(-2px); border-color: var(--border-g); box-shadow: var(--shadow); }
.property-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-glass); }
.property-image-wrap { position: relative; height: 185px; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--green-l); }
.property-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-image { transform: scale(1.025); }
.property-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 65% 30%, var(--green-m), transparent 42%), var(--green-l); color: var(--green-d); }
.property-select { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 9px; background: rgba(255,255,255,.92); cursor: pointer; }
.property-status { position: absolute; top: 13px; right: 13px; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-green { border-color: rgba(26,173,92,.2); background: var(--green-l); color: var(--green-dd); }
.status-blue { border-color: rgba(37,99,235,.2); background: var(--blue-l); color: var(--blue); }
.status-orange { border-color: rgba(255,140,66,.2); background: var(--orange-l); color: var(--orange); }
.status-purple { border-color: rgba(124,58,237,.2); background: var(--purple-l); color: var(--purple); }
.status-gray { border-color: var(--border); background: var(--card); color: var(--text-2); }
.status-red { border-color: rgba(255,59,92,.2); background: var(--red-l); color: var(--red); }
.property-view-link { position: absolute; right: 12px; bottom: 12px; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; background: rgba(15,25,35,.75); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); cursor: pointer; }
.property-card-content { padding: 15px; }
.property-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.property-type { margin: 0 0 5px; color: var(--text-3); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .045em; }
.property-card h3 { overflow: hidden; margin: 0; color: var(--text); font-size: 17px; font-weight: 780; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.property-location { display: flex; align-items: center; gap: 5px; overflow: hidden; margin: 8px 0 10px; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.property-location svg { flex: 0 0 auto; color: var(--green-d); }
.property-price { margin: 0 0 13px; color: var(--green-dd); font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.property-price span { color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.property-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 11px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-3); }
.property-metrics span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.property-metrics svg { color: var(--text-4); }
.property-card-actions { display: grid; grid-template-columns: 1fr auto 40px; gap: 8px; padding: 12px 0 10px; }
.property-card-actions > button,
.property-more summary { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.property-card-actions > .property-bids-button { justify-content: flex-start; background: var(--green-d); border-color: var(--green-d); color: #fff; }
.property-bids-button span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 10px; }
.property-card-actions > .property-edit-button { min-width: 63px; }
.property-more { position: relative; }
.property-more summary { width: 40px; padding: 0; list-style: none; }
.property-more summary::-webkit-details-marker { display: none; }
.property-more[open] summary { border-color: var(--green); color: var(--green-d); }
.property-more-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 180px; padding: 5px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); box-shadow: var(--shadow); }
.property-more-menu button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; }
.property-more-menu button:hover { background: var(--surface); }
.property-visibility { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 37px; padding-top: 9px; border-top: 1px solid var(--border); }
.property-visibility span { flex: 1 1 auto; color: var(--text-3); font-size: 11px; }
.property-visibility button { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid var(--border-g); border-radius: 8px; background: var(--green-l); color: var(--green-dd); font-size: 11px; font-weight: 700; cursor: pointer; }
.property-visibility button.visibility-pause { border-color: var(--border); background: var(--surface); color: var(--text-2); }
.property-visibility button.visibility-delist { border-color: transparent; background: transparent; color: var(--red); }
.property-visibility button:disabled { opacity: .6; cursor: wait; }

.properties-empty { display: flex; align-items: center; flex-direction: column; padding: 64px 20px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 18px; background: var(--green-l); color: var(--green-d); }
.properties-empty h3 { margin: 0; font-size: 18px; font-weight: 800; }
.properties-empty p { max-width: 360px; margin: 8px 0 18px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.properties-result-count { margin: 17px 2px 0; color: var(--text-3); font-size: 11px; text-align: right; }
.property-skeleton { height: 375px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(100deg, var(--surface) 30%, var(--card) 50%, var(--surface) 70%); background-size: 200% 100%; animation: properties-shimmer 1.2s ease-in-out infinite; }
@keyframes properties-shimmer { to { background-position-x: -200%; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.properties-page button:focus-visible,
.properties-page summary:focus-visible,
.properties-page input:focus-visible,
.properties-page select:focus-visible { outline: 2px solid var(--green-d); outline-offset: 2px; }

@media (max-width: 1000px) {
  .properties-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .properties-page { padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
  .properties-top-action { width: 40px; height: 40px; padding: 0; }
  .properties-top-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .properties-hero { min-height: 0; align-items: flex-start; flex-direction: column; gap: 16px; margin: 0 0 14px; padding: 21px 18px; border-radius: 17px; }
  .properties-hero h1 { max-width: 360px; font-size: 25px; }
  .properties-hero p { margin-top: 8px; font-size: 13px; }
  .properties-hero .properties-primary-button { min-height: 42px; width: 100%; }
  .properties-overview { gap: 9px; margin-bottom: 16px; }
  .overview-card { min-height: 74px; gap: 9px; padding: 11px; border-radius: 13px; }
  .overview-icon { width: 35px; height: 35px; border-radius: 11px; }
  .overview-icon svg { width: 17px; }
  .overview-card strong { font-size: 19px; }
  .overview-card span:not(.overview-icon) { font-size: 10px; }
  .properties-workspace { margin: 0 -2px; padding: 14px 12px; border-radius: 16px; }
  .workspace-heading { margin-bottom: 13px; }
  .workspace-heading h2 { font-size: 18px; }
  .workspace-heading p { font-size: 11px; }
  .properties-controls { align-items: stretch; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .properties-search { flex: initial; }
  .properties-sort { width: 100%; height: 42px; }
  .properties-filter-row { margin-right: -12px; padding-right: 12px; scrollbar-width: none; }
  .selection-row { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .bulk-actions { width: 100%; flex-wrap: wrap; }
  .bulk-actions > span { width: 100%; }
  .property-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .property-image-wrap { height: 190px; }
  .property-card-content { padding: 13px; }
  .property-card h3 { font-size: 16px; }
  .properties-empty { padding: 46px 15px; }
  .properties-result-count { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .properties-page *, .properties-page *::before, .properties-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
