/* Listings share a quiet surface, readable hierarchy and consistent actions. */
#dashboardRealEstateList {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; align-items: start;
}
#dashboardRealEstateList > .empty, #postsFeed > .empty { grid-column: 1 / -1; }
.real-estate-listing-card, .item.post-item {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 0; margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.real-estate-listing-card:hover {
  background: var(--surface); border-color: var(--accent); transform: none;
}
.real-estate-card-media {
  display: block; width: 100%; height: auto; min-height: 0;
  aspect-ratio: 16 / 10; border-radius: 0; background: var(--surface-inset);
  text-decoration: none;
}
.real-estate-card-media img { background: var(--surface-inset); object-fit: contain; }
.real-estate-card-placeholder { background: var(--surface-soft); color: var(--muted); gap: 12px; }
.real-estate-placeholder-icon { width: 48px; height: 48px; border-color: var(--border); color: var(--muted); border-radius: 14px; }
.real-estate-listing-card .real-estate-card-content { padding: 20px; min-height: 0; gap: 0; }
.listing-card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.listing-card-kicker .real-estate-intent-badge { margin: 0; font-size: 11px; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; }
.listing-property-type { color: var(--muted); font-size: 13px; }
.real-estate-listing-card .real-estate-card-content h3 { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.real-estate-card-content h3 a { color: var(--text); text-decoration: none; }
.real-estate-card-content h3 a:hover { color: var(--link); }
.real-estate-card-meta, .real-estate-card-details { font-size: 14px; line-height: 1.5; margin: 0 0 3px; }
.real-estate-listing-card .real-estate-card-price { color: var(--text); font-size: 25px; line-height: 1.3; letter-spacing: -.025em; margin: 14px 0 4px; }
.real-estate-listing-card .real-estate-card-description { font-size: 15px; line-height: 1.6; margin: 10px 0 16px; }
.real-estate-listing-card .real-estate-author-row { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.real-estate-author-name { color: var(--muted); }
.real-estate-card-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 0; }
.real-estate-card-actions > .real-estate-card-action,
.real-estate-card-actions > .real-estate-card-secondary-action { flex: 1 1 auto; padding: 10px 12px; font-size: 14px; white-space: normal; text-align: center; min-height: 44px; }
.real-estate-card-secondary-action, .real-estate-card-secondary-action:visited { color: var(--muted); border-color: var(--border) !important; }
.real-estate-card-delete, .real-estate-card-delete:visited { color: var(--red); }
.real-estate-listing-card label { margin: 16px 0 0; }
.real-estate-status-help { font-size: 13px; line-height: 1.5; }
#panelPosts { padding: 0; border: 0; background: transparent; box-shadow: none; }
.posts-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0 24px; }
.posts-eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; margin-bottom: 8px; }
.posts-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 30px; letter-spacing: -.025em; }
.posts-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.posts-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.posts-count:empty { display: none; }
.posts-heading .btn-primary { width: auto; flex-shrink: 0; margin: 0; padding: 12px 18px; border-radius: 10px; font-size: 14px; }
#postsFeed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.item.post-item { display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px; column-gap: 24px; border-radius: 14px; box-shadow: none; }
.item.post-item:hover { background: var(--surface); transform: none; border-color: var(--field-border, var(--border)); }
.item.post-has-image { grid-template-columns: 170px minmax(0, 1fr); }
.post-item .post-header {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 10px;
  padding: 0; margin: 0; min-height: 40px;
}
.post-has-image > :not(.post-image-wrap) { grid-column: 2; }
.post-header .avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.post-author-info { display: grid; gap: 4px; min-width: 0; flex: 1; }
.post-author { font-size: 14px; overflow-wrap: anywhere; }
.post-author.profile-link { color: var(--text); text-decoration: none; }
.post-author.profile-link:hover { color: var(--link); text-decoration: underline; }
.post-author-info .post-date { font-size: 12px; margin: 0; color: var(--muted); }
.post-owner-actions { display: flex; align-items: center; flex-shrink: 0; gap: 6px; }
.post-owner-actions .post-edit, .post-owner-actions .post-delete {
  position: static; min-height: 40px; min-width: 40px; margin: 0; padding: 8px 10px;
  color: var(--muted); font-size: 12px; background: transparent; border: 1px solid transparent; border-radius: 8px;
}
.post-owner-actions .post-edit:hover { background: var(--surface-soft); border-color: var(--border); }
.post-owner-actions .post-delete:hover { color: var(--red); }
.post-item .post-image-wrap { display: block; grid-column: 1; grid-row: 1 / 3; align-self: start; width: 170px; height: 170px; margin: 0; border-radius: 10px; overflow: hidden; background: var(--surface-inset); }
.post-item .post-image-wrap img {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none;
  aspect-ratio: 1; object-fit: cover; border: 0; border-radius: 0;
  background: transparent;
}
.post-copy { min-width: 0; padding: 12px 0 0; align-self: start; }
.post-item .post-header { align-self: start; }
.item.post-item { grid-template-rows: auto 1fr; }
.post-title { margin: 0 0 8px; color: var(--text); font-size: 21px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.post-item .post-body { color: var(--muted); }
[data-theme="light"] .item.post-item { border: 2px solid #a6b4c7; box-shadow: 0 3px 12px rgb(20 40 70 / 5%); }
[data-theme="light"] #panelPosts .post-form { border: 2px solid #a6b4c7; }
#panelPosts #postTitle { margin-bottom: 18px; font-size: 16px; font-weight: 650; }
#panelPosts label { font-weight: 600; margin-bottom: 8px; }
.post-item .post-body { font-size: 15px; line-height: 1.6; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.post-body.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.post-body p + p { margin-top: .65em; }
.post-read-more { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0 0; border: 0; background: none; color: var(--link); font-size: 14px; font-weight: 600; cursor: pointer; }
#panelPosts .post-form { margin: 0 0 24px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
#panelPosts .post-form-head { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 18px; }
#panelPosts .post-form-head strong { font-size: 18px; }
#panelPosts .post-image-controls { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; margin-top: 16px; }
#panelPosts .post-image-name { margin: 0; overflow-wrap: anywhere; }
#panelPosts .post-image-hint { grid-column: 1 / -1; margin: 0; text-align: left; font-size: 12px; }
#panelPosts :is(#postImageError, #postImagePreview, #postRemoveImageWrap) { grid-column: 1 / -1; }
#panelPosts .post-form-actions { justify-content: flex-end; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
#panelPosts .post-form-actions .btn-primary { flex: 0 0 auto; min-width: 140px; margin: 0; padding: 12px 18px; font-size: 14px; }
.property-message-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 17px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.property-message-link:hover { border-color: var(--accent); color: var(--link); }
.property-message-link :is(.icon, svg) { width: 20px; height: 20px; }
.property-message-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 12px; background: var(--accent-solid); color: #fff; font-size: 11px; }
.profile-hero.profile-account { width: calc(100% - 32px); max-width: 640px; margin: 40px auto; padding: 32px 24px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); }
.profile-account .profile-joined { margin-top: 8px; color: var(--muted); }
.public-preview-list { gap: 20px; }
.public-preview-item { padding: 18px; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 16px; }
.public-preview-item h3 { font-size: 18px; line-height: 1.4; }
.public-preview-item p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.public-preview-item .item-meta { font-size: 13px; }
.public-preview-item .button-link { border-radius: 9px; min-height: 44px; font-size: 14px; }
.public-preview-image { object-fit: contain; background: var(--surface-inset); }
.seo-content { background: var(--card); box-shadow: var(--shadow-soft); }
@media (max-width: 700px) {
  #dashboardRealEstateList, .public-preview-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .item.post-item { padding: 18px; column-gap: 16px; }
  .item.post-has-image { grid-template-columns: 112px minmax(0, 1fr); }
  .post-item .post-image-wrap { width: 112px; height: 140px; }
}
@media (max-width: 600px) {
  .real-estate-listing-card .real-estate-card-content { padding: 18px; }
  .real-estate-listing-card .real-estate-card-content h3 { font-size: 20px; }
  .real-estate-listing-card .real-estate-card-price { font-size: 25px; }
  .real-estate-card-actions > .real-estate-card-action,
  .real-estate-card-actions > .real-estate-card-secondary-action { flex-basis: 110px; }
  .posts-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .posts-heading h2 { font-size: 26px; }
  .posts-heading .btn-primary { min-height: 44px; }
  .post-author-info .post-date { font-size: 12px; }
  .post-has-image > .post-header { grid-column: 1 / -1; margin-bottom: 16px; }
  .post-item .post-image-wrap { grid-row: 2; }
  .post-has-image > .post-copy { padding: 0; }
  #panelPosts .post-form { padding: 18px; }
  .profile-hero.profile-account { margin: 24px auto; padding: 24px 16px; }
  .profile-account .avatar-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .real-estate-listing-card { transition: none; }
}
