.prop-page { min-width: 0; }
.prop-toolbar { gap: 12px; }
.prop-toolbar .search { flex: 0 1 240px; min-width: 160px; }
.prop-toolbar .search input { width: 100%; min-width: 0; }
.prop-sort select { min-height: var(--crm-search-height); max-width: 100%; padding: 4px 8px; border: 1px solid var(--crm-border-control); border-radius: var(--crm-radius-sm); color: var(--crm-text); background: var(--crm-field); font: inherit; font-size: 14px; }
.prop-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; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr)); gap: 12px; align-items: start; }
.prop-card { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--crm-border); border-radius: var(--crm-radius-md); background: var(--crm-surface); color: var(--crm-text); text-decoration: none; transition: border-color var(--crm-duration-feedback) var(--crm-ease); }
.prop-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: var(--crm-property-image-ratio); background: var(--crm-surface-subtle); color: var(--crm-text-muted); font-size: 12px; }
.prop-cover > svg { width: 26px; height: 26px; }
.prop-cover > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.prop-task-dot { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--crm-radius-xs); background: var(--crm-surface); color: var(--crm-brand); }
.prop-task-dot svg { width: 16px; height: 16px; }
.prop-card-info { padding: 8px 12px 10px; }
.prop-card-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 4px; }
.prop-card-title strong { min-width: 0; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.prop-card-title .price { font-size: 18px; line-height: 24px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prop-room { margin: 4px 0 0; color: var(--crm-text-muted); font-size: 14px; line-height: 20px; }
.prop-card-facts { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.prop-card-facts span { white-space: nowrap; }
.prop-detail { max-width: 1100px; }
.prop-detail-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.prop-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.prop-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.prop-summary-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.prop-summary-room { font-size: 16px; line-height: 24px; white-space: nowrap; }
.prop-summary-unit, .prop-summary-tax { font-size: 14px; line-height: 20px; white-space: nowrap; }
.prop-summary-unit { color: var(--crm-text-muted); }
.prop-info .field-grid { margin: 0; }
.prop-info .field-grid dd { font-variant-numeric: tabular-nums; }
.prop-info h1 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; overflow-wrap: anywhere; }
.prop-info .prop-field-price { font-size: 24px; line-height: 30px; }
.prop-photo-note { margin: 12px 0 0; font-size: 14px; }
.prop-owners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.prop-owner { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; padding: 6px 12px; border-radius: var(--crm-radius-sm); background: var(--crm-brand); color: var(--crm-on-dark); text-decoration: none; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.prop-owner svg { width: 18px; height: 18px; }
.prop-owner > span { white-space: nowrap; }
.prop-notes > p { margin: 4px 0 0; font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prop-tasks time { font-size: 16px; font-variant-numeric: tabular-nums; }
.prop-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prop-photo { display: block; width: 120px; min-height: 44px; border: 0; padding: 0; background: transparent; }
.prop-photo img { display: block; max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; }
.prop-album-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 12px; }
.prop-album-thumb { position: relative; display: block; max-width: 168px; min-height: 44px; border: 0; padding: 0; background: transparent; }
.prop-album-thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; object-fit: contain; }
.prop-photo-count { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: var(--crm-radius-xs); background: var(--crm-brand); color: var(--crm-on-dark); font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.prop-photo-count svg { width: 14px; height: 14px; }
.prop-album-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 0; border-radius: var(--crm-radius-lg); background: var(--crm-surface); color: var(--crm-text); box-shadow: var(--crm-shadow-dialog); }
.prop-album-dialog::backdrop { background: var(--crm-overlay); }
.prop-album-header, .prop-album-tools, .prop-album-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.prop-album-header h2 { margin: 0; font-size: 18px; line-height: 26px; }
.prop-album-tools { margin: 8px 0 12px; }
.prop-album-tabs, .prop-album-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prop-album-tabs .btn[aria-pressed=true] { color: var(--crm-on-dark); background: var(--crm-brand); }
.prop-album-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 48px; min-height: 140px; touch-action: pan-y pinch-zoom; }
.prop-album-stage > img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 280px); object-fit: contain; user-select: none; }
.prop-album-prev, .prop-album-next { position: absolute; top: calc(50% - 22px); background: var(--crm-brand-soft); }
.prop-album-prev { left: 0; }
.prop-album-next { right: 0; }
.prop-album-bottom { margin-top: 12px; min-height: 44px; }
.prop-album-bottom > .meta { font-variant-numeric: tabular-nums; }
.prop-album-actions .prop-delete { color: var(--crm-danger); }
.prop-upload-classify { margin-top: 8px; }
.prop-album-status { margin: 4px 0 0; min-height: 20px; color: var(--crm-text-muted); font-size: 14px; line-height: 20px; }
.prop-followup-composer { margin-top: 8px; }
.prop-followup textarea { display: block; width: 100%; min-height: 84px; padding: 8px 12px; border: 1px solid var(--crm-border-control); border-radius: var(--crm-radius-sm); resize: vertical; font: inherit; line-height: 24px; color: var(--crm-text); background: var(--crm-field); box-sizing: border-box; }
.prop-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.prop-followup-list { margin-top: 12px; }
.prop-followup-list .followup-record { padding: 8px 0; border-top: 1px solid var(--crm-border); }
.prop-record-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prop-record-top time { font-size: 14px; line-height: 20px; color: var(--crm-text-muted); font-variant-numeric: tabular-nums; }
.prop-record-top .text-btn { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.prop-record-top svg { width: 14px; height: 14px; }
.prop-record-top .prop-pinned { color: var(--crm-brand); font-weight: 600; }
.prop-followup-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; font-size: 16px; line-height: 24px; }
.prop-empty-followup { margin: 4px 0; font-size: 14px; }
.prop-expand { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.prop-expand svg { width: 14px; height: 14px; }
.prop-draft-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.prop-draft-photo { position: relative; width: 88px; height: 88px; }
.prop-draft-photo img { width: 100%; height: 100%; object-fit: contain; }
.prop-draft-photo .icon-btn { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border-radius: var(--crm-radius-sm); color: var(--crm-danger); background: var(--crm-surface); }
@media (hover: hover) {
  .prop-card:hover { border-color: var(--crm-brand); }
  .prop-owner:hover { background: var(--crm-brand-hover); }
  .prop-album-tabs .btn[aria-pressed=false]:hover { color: var(--crm-brand); background: var(--crm-brand-soft); border-color: var(--crm-brand); }
}
@media (max-width: 767px) {
  .prop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
  .prop-toolbar { gap: 8px; }
  .prop-toolbar .search { flex: 1 1 150px; min-width: 140px; max-width: 280px; }
  .prop-toolbar .counter { display: none; }
  .prop-sort { flex-shrink: 0; max-width: 45%; }
  .prop-card-info { padding: 8px; }
  .prop-detail-header { gap: 8px; }
  .prop-detail-actions { gap: 4px; }
  .prop-detail-actions .btn { padding-inline: 8px; }
  .prop-owner { max-width: 100%; }
  .prop-album-thumb { max-width: 100%; }
  .prop-album-thumb img { max-height: 240px; }
  .prop-album-thumb:not(:first-child) { display: none; }
  .prop-album-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 12px; }
  .prop-album-stage { padding: 0 44px; }
  .prop-album-stage > img { max-height: calc(100dvh - 320px); }
  .prop-album-tabs, .prop-album-actions { gap: 4px; }
}
