.property-index {
  display: grid;
  gap: 1rem;
}

.property-hero,
.property-surface,
.property-summary-card {
  border-radius: 24px;
}

.property-hero {
  padding: 1.4rem;
}

.property-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.property-hero-title {
  margin: 0;
  font-size: 1.6rem;
}

.property-hero-lead {
  margin: 0.45rem 0 0;
  color: #667085;
}

.property-hero-action {
  min-width: 200px;
}

.property-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.property-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(148 163 184 / 15%);
}

.property-stat-label {
  margin: 0;
  font-size: 0.82rem;
  color: #667085;
}

.property-stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.property-surface {
  padding: 1rem;
}

.property-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.property-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.property-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 0.62rem 0.85rem;
  border: 1px solid #d4dbe5;
  border-radius: 999px;
  background: rgb(255 255 255 / 85%);
  color: #344054;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.property-pill.is-active {
  background: linear-gradient(135deg, #142033 0%, #214b73 100%);
  border-color: #142033;
  color: #fff;
}

.property-mode-note {
  margin: 0.9rem 0 0;
  color: #667085;
  font-size: 0.95rem;
}

.property-view,
.property-summary-grid {
  margin-top: 0.9rem;
}

.property-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.property-list-grid.is-table-mode {
  grid-template-columns: 1fr;
}

.property-card {
  position: relative;
  overflow: visible;
  padding: 0.95rem;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.property-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.property-card-title {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.property-card-address {
  margin: 0.25rem 0 0;
  color: #667085;
  font-size: 0.88rem;
}

.property-table-shell {
  overflow-x: auto;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 18px;
  background: #fff;
}

.property-table {
  min-width: 1180px;
}

.property-table-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.5fr)
    88px
    112px
    120px
    120px
    minmax(220px, 2fr)
    120px
    90px
    90px
    72px;
  align-items: center;
}

.property-table-head .property-table-row {
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
}

.property-table-body .property-table-row {
  border-bottom: 1px solid #e7edf5;
}

.property-table-body .property-table-row:last-child {
  border-bottom: 0;
}

.property-table-body .property-table-row:hover {
  background: #f9fbfd;
}

.property-table-cell {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  font-size: 0.86rem;
  color: #344054;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-table-head .property-table-cell {
  font-size: 0.76rem;
  font-weight: 700;
  color: #667085;
}

.property-table-name {
  display: block;
  font-size: 0.9rem;
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-table-cell.is-address {
  color: #667085;
}

.property-table-cell.is-actions {
  justify-self: end;
  overflow: visible;
}

.property-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.property-card-metric {
  padding: 0.65rem;
  border-radius: 14px;
  background: #f3f7fb;
}

.property-card-metric-label {
  margin: 0;
  font-size: 0.75rem;
  color: #667085;
}

.property-card-metric-value {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.property-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.property-usage-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #e8f1f9;
  color: #214b73;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-considering {
  background: #e5e7eb;
  color: #374151;
}

.status-owned {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-sold {
  background: #fee2e2;
  color: #b91c1c;
}

.status-on_hold {
  background: #fef3c7;
  color: #b45309;
}

.status-archived {
  background: #e2e8f0;
  color: #475569;
}

.property-card-menu {
  position: relative;
  z-index: 40;
}

.property-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d4dbe5;
  border-radius: 999px;
  background: #fff;
  color: #142033;
  cursor: pointer;
}

.property-menu-trigger .material-symbols-outlined {
  font-size: 22px;
}

.property-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 120;
  min-width: 220px;
  padding: 0.5rem;
  border: 1px solid rgb(148 163 184 / 20%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(15 23 42 / 12%);
}

.property-menu-panel[hidden] {
  display: none;
}

.property-menu-label {
  padding: 0.45rem 0.7rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.property-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.property-menu-item:hover {
  background: #eef4f8;
}

.property-menu-item.is-danger {
  color: #b42318;
}

.property-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #667085;
}

.property-map {
  width: 100%;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 18%);
  background: #f3f7fb;
}

.property-map-shell {
  position: relative;
}

.property-map-fullscreen {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(20 32 51 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #142033;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(15 23 42 / 10%);
  backdrop-filter: blur(10px);
}

.property-map-fullscreen:disabled {
  opacity: 0.55;
  cursor: default;
}

.property-map-shell:fullscreen,
.property-map-shell:-webkit-full-screen,
.property-map-shell.is-map-fullscreen {
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  background: #f3f7fb;
}

.property-map-shell:fullscreen .property-map,
.property-map-shell:-webkit-full-screen .property-map,
.property-map-shell.is-map-fullscreen .property-map {
  height: 100%;
  border-radius: 18px;
}

.property-map-shell:fullscreen .property-map-fullscreen,
.property-map-shell:-webkit-full-screen .property-map-fullscreen,
.property-map-shell.is-map-fullscreen .property-map-fullscreen {
  top: 1.25rem;
  right: 1.25rem;
}

.property-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.property-summary-card {
  padding: 0.95rem;
}

.property-summary-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #667085;
}

.property-summary-card p {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.property-summary-card small {
  display: block;
  margin-top: 0.35rem;
  color: #98a2b3;
}

@media (max-width: 900px) {
  .property-hero-stats,
  .property-summary-grid,
  .property-list-grid {
    grid-template-columns: 1fr;
  }

  .property-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .property-hero,
  .property-surface {
    border-radius: 16px;
  }

  .property-hero,
  .property-surface {
    padding: 0.9rem;
  }

  .property-hero-action {
    min-width: 0;
  }

  .property-toolbar {
    gap: 0.75rem;
  }

  .property-segment {
    gap: 0.5rem;
  }

  .property-pill {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
    font-size: 0.88rem;
  }

  .property-mode-note {
    font-size: 0.9rem;
  }

  .property-map {
    height: 360px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .property-index {
    gap: 0.75rem;
  }

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

  .property-hero-title {
    font-size: 1.35rem;
  }

  .property-hero-lead {
    font-size: 0.92rem;
  }

  .property-stat-value {
    font-size: 1.05rem;
  }

  .property-card {
    padding: 0.8rem;
  }

  .property-card-top {
    gap: 0.6rem;
  }

  .property-card-metrics {
    gap: 0.5rem;
  }
}
