/* Catalog photo grid; filter styles and the earlier post variant share this file. */
.catalog-social { padding-block: 36px 72px; }
.catalog-social .catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.catalog-social .page-title { max-width: 820px; margin: 10px 0 0; font-size: clamp(25px, 3.4vw, 43px); line-height: 1.18; letter-spacing: -.045em; }
.catalog-social .lede { max-width: 700px; margin-top: 14px; font-size: 16px; }
.catalog-social .catalog-intro > .btn { flex-shrink: 0; }
.catalog-social .catalog-split { display: block; }
.catalog-filter-panel { margin-bottom: 24px; border: var(--dp-panel-border); border-radius: var(--dp-radius-panel); background: var(--dp-surface); }
.catalog-filter-panel > summary { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 16px 22px; cursor: pointer; list-style: none; border-radius: var(--dp-radius-panel); }
.catalog-filter-panel > summary::-webkit-details-marker { display: none; }
.catalog-filter-panel > summary:hover { background: var(--dp-meta-bg); }
.catalog-filter-panel__icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: var(--dp-signal); border: 1px solid var(--dp-ink); border-radius: 12px; font-size: 25px; }
.catalog-filter-panel summary strong { display: block; font-size: 17px; }
.catalog-filter-panel summary small { display: block; margin-top: 2px; font-size: 12px; color: var(--dp-muted); }
.catalog-filter-panel__toggle { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; font-size: 13px; font-weight: 600; }
.catalog-filter-panel__toggle > span:last-child { font-size: 22px; }
.catalog-filter-panel[open] .catalog-filter-panel__toggle > span:last-child { transform: rotate(180deg); }
.catalog-filter-panel .when-open, .catalog-filter-panel[open] .when-closed { display: none; }
.catalog-filter-panel[open] .when-open { display: inline; }
.catalog-social .catalog-filters { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 22px 22px; gap: 18px; border: 0; border-top: var(--dp-panel-border); border-radius: 0; background: transparent; }
.catalog-social .catalog-filters .field { min-width: 0; }
.catalog-social .catalog-filters .field--wide, .catalog-social .catalog-filters .field:has(.check-group) { grid-column: span 2; }
.catalog-social .catalog-filters .field-price { min-width: 0; }
.catalog-social .catalog-filters input, .catalog-social .catalog-filters select { min-width: 0; width: 100%; }
.catalog-social .catalog-filters .check-field { min-height: 44px; }
.catalog-social .catalog-filters .check-field input { width: auto; }
.catalog-social .catalog-actions { margin: 0; padding-top: 4px; }
.catalog-social .catalog-results { max-width: 1080px; margin-inline: auto; }
.catalog-social .filter-chips { margin-bottom: 18px; }
.catalog-social .filter-chip { min-height: 44px; height: auto; flex-wrap: wrap; padding-block: 5px; }
.catalog-social .results-status { margin-bottom: 18px; font-size: 13px; }
.catalog-filter-errors { padding: 22px; border: 1px solid var(--dp-error-border); border-radius: var(--dp-radius-panel); background: var(--dp-error-bg); }
.catalog-filter-errors h2 { margin: 0; font-size: 20px; }
.catalog-filter-errors p, .catalog-filter-errors li { font-size: 14px; }
.catalog-social .catalog-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.feed-post { min-width: 0; overflow: hidden; border: var(--dp-panel-border); border-radius: var(--dp-radius-panel); background: var(--dp-surface); }
.feed-post__header { display: flex; align-items: center; gap: 12px; padding: 18px 22px 10px; }
.feed-post__avatar { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--dp-primary); outline: 3px solid var(--dp-status-construction-bg); border-radius: 50%; background: var(--dp-ink); color: var(--dp-signal); font-family: var(--dp-font-display); font-size: 19px; text-decoration: none; }
.feed-post__identity { min-width: 0; flex: 1; }
.feed-post__identity h2 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feed-post__identity a { text-decoration: none; }
.feed-post__identity a:hover { color: var(--dp-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.feed-post__identity p { margin: 4px 0 0; color: var(--dp-muted); font-size: 12px; }
.feed-post__header .card-status { flex-shrink: 0; }
.feed-post__location { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 2px 22px 15px; color: var(--dp-muted); font-size: 13px; }
.feed-post__location > span:first-child { color: var(--dp-primary-strong); font-size: 18px; }
.feed-gallery { position: relative; background: var(--dp-building-cover-bg); }
.feed-gallery__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.feed-gallery__track:focus-visible { outline-offset: -4px; }
.feed-gallery__slide { display: block; position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; background: var(--dp-building-cover-bg); }
.feed-gallery__slide img { position: absolute; width: 100%; height: 100%; object-fit: cover; color: var(--dp-ink); }
.feed-gallery__count { position: absolute; z-index: 2; top: 16px; right: 16px; min-width: 52px; padding: 5px 11px; border-radius: 99px; background: rgba(21,33,27,.8); color: var(--dp-surface); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; pointer-events: none; }
.feed-gallery__arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: var(--dp-panel-border); border-radius: 50%; background: var(--dp-surface); color: var(--dp-ink); cursor: pointer; font-size: 22px; }
.feed-gallery__arrow--prev { left: 14px; }
.feed-gallery__arrow--next { right: 14px; }
.feed-gallery__arrow:hover:enabled { background: var(--dp-signal); border-color: var(--dp-ink); }
.feed-gallery__arrow:disabled { opacity: .35; cursor: default; }
.feed-gallery__missing { display: grid; align-content: center; justify-items: center; gap: 12px; aspect-ratio: 4 / 3; text-decoration: none; background: var(--dp-meta-bg); }
.feed-gallery__missing > span:first-child { font-size: 64px; color: var(--dp-primary-strong); }
.feed-gallery__missing:hover strong { text-decoration: underline; }
.feed-post__body { padding: 12px 22px 4px; }
.feed-post__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.feed-post__tools .favorite-btn { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0; background: transparent; border: 0; border-radius: 6px; font-weight: 600; font-size: 14px; }
.feed-post__tools .favorite-btn:hover { color: var(--dp-primary-strong); }
.feed-post__tools .favorite-btn.favorited { color: var(--dp-danger); }
.feed-post__tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0; background: transparent; border: 0; border-radius: 6px; color: var(--dp-ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.feed-post__tool > span { font-size: 24px; font-weight: 400; }
.feed-post__tool:hover { color: var(--dp-primary-strong); }
.feed-post__tool:disabled { opacity: .5; cursor: wait; }
.feed-post__share { margin-left: auto; }
.feed-post__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; font-family: var(--dp-font-display); font-size: clamp(25px, 3vw, 34px); line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.feed-post__price small { font-family: var(--dp-font-sans); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.feed-post__facts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 12px 0 0; list-style: none; font-size: 14px; }
.feed-post__facts li + li::before { content: '·'; margin-right: 12px; color: var(--dp-muted); }
.feed-post__description { margin-top: 8px; }
.feed-post__description summary { width: fit-content; min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--dp-muted); list-style: none; }
.feed-post__description summary::-webkit-details-marker { display: none; }
.feed-post__description summary::after { content: '+'; font-size: 20px; }
.feed-post__description[open] summary::after { content: '−'; }
.feed-post__description summary:hover { color: var(--dp-primary-strong); }
.feed-post__description p { margin: 0 0 14px; color: var(--dp-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.feed-post__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: var(--dp-panel-border); }
.feed-post__footer > span { color: var(--dp-muted); font-size: 13px; }
.feed-post__footer .btn { min-height: 46px; }
.feed-post__feedback { min-height: 22px; margin: 6px 0 0; color: var(--dp-muted); font-size: 12px; }
.catalog-social .pagination { padding-top: 10px; }
.catalog-social .catalog-results[aria-busy='true'] { opacity: .72; pointer-events: none; }
.catalog-social .catalog-results[aria-busy='true'] .hx-indicator { display: none; }

@media (max-width: 980px) {
    .catalog-social .catalog-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-social .catalog-intro { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 680px) {
    .catalog-social { padding-top: 24px; }
    .catalog-social .page-title { font-size: 28px; }
    .catalog-social .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 14px; }
    .catalog-filter-panel > summary { padding: 14px 16px; gap: 10px; }
    .catalog-filter-panel summary small { max-width: 210px; }
    .catalog-filter-panel__toggle > span:first-child, .catalog-filter-panel__toggle .when-closed { display: none; }
    .catalog-filter-panel[open] .catalog-filter-panel__toggle .when-open { display: none; }
    .feed-post__header { padding: 16px 16px 10px; gap: 10px; }
    .feed-post__avatar { flex-basis: 38px; height: 38px; font-size: 16px; }
    .feed-post__identity h2 { font-size: 17px; }
    .feed-post__header .card-status { font-size: 10px; padding: 4px 6px; }
    .feed-post__location { padding-inline: 16px; font-size: 12px; }
    .feed-post__body { padding-inline: 16px; }
    .feed-post__tools { gap: 4px 12px; }
    .feed-post__tools .favorite-btn, .feed-post__tool { font-size: 12px; }
    .feed-post__price { font-size: 27px; }
    .feed-post__footer .btn { width: 100%; }
    .feed-gallery__arrow--prev { left: 8px; }
    .feed-gallery__arrow--next { right: 8px; }
}
@media (max-width: 380px) {
    .catalog-social .catalog-filters { grid-template-columns: 1fr; }
    .catalog-social .catalog-filters .field--wide, .catalog-social .catalog-filters .field:has(.check-group) { grid-column: auto; }
    .feed-post__header { flex-wrap: wrap; }
    .feed-post__share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-social *, .catalog-social *::before, .catalog-social *::after { scroll-behavior: auto; transition: none; animation: none; }
}

/* Profile-style grid: three square photographs per row, including on phones. */
.catalog-social { width: min(calc(100% - 32px), 1080px); }
.catalog-social .page-title { font-size: clamp(24px, 3vw, 36px); }
.catalog-social .catalog-intro { margin-bottom: 20px; }
.catalog-highlights { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 18px; margin-bottom: 18px; }
.catalog-highlight { flex: 0 0 78px; display: grid; justify-items: center; align-content: start; gap: 8px; color: var(--dp-ink); text-decoration: none; font-size: 12px; text-align: center; }
.catalog-highlight__ring { display: grid; place-items: center; width: 74px; height: 74px; padding: 4px; border: 2px solid var(--dp-primary); border-radius: 50%; transition: border-color .16s ease; }
.catalog-highlight__ring > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--dp-meta-bg); font-family: var(--dp-font-display); font-size: 24px; }
.catalog-highlight:first-child .catalog-highlight__ring > span { background: var(--dp-ink); color: var(--dp-signal); }
.catalog-highlight:hover .catalog-highlight__ring { border-color: var(--dp-ink); }
.catalog-highlight:hover .catalog-highlight__ring > span { background: var(--dp-signal); color: var(--dp-ink); }
.catalog-filter-panel { margin-bottom: 20px; }
.catalog-tile { position: relative; display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; background: var(--dp-building-cover-bg); color: var(--dp-surface); text-decoration: none; }
.catalog-tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.catalog-tile::after { content: ''; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(21,33,27,.88)); }
.catalog-tile:hover > img { transform: scale(1.045); }
.catalog-tile:focus-visible { z-index: 1; outline: 3px solid var(--dp-signal); outline-offset: -5px; }
.catalog-tile__caption { position: absolute; z-index: 1; bottom: 14px; left: 14px; right: 14px; display: grid; gap: 4px; }
.catalog-tile__caption strong { font-size: clamp(13px, 1.7vw, 20px); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-tile__caption > span { font-size: clamp(12px, 1.4vw, 16px); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.catalog-tile__missing { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; color: var(--dp-ink); font-size: 13px; }
.catalog-tile__missing > span:first-child { font-size: 48px; line-height: 1; }
@media (max-width: 680px) {
    .catalog-social { width: calc(100% - 24px); }
    .catalog-highlights { gap: 14px; }
    .catalog-highlight { flex-basis: 64px; font-size: 11px; }
    .catalog-highlight__ring { width: 62px; height: 62px; }
    .catalog-highlight__ring > span { font-size: 21px; }
    .catalog-social .catalog-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
    .catalog-tile__caption { bottom: 7px; left: 6px; right: 6px; gap: 2px; }
    .catalog-tile__caption strong { font-size: 11px; }
    .catalog-tile__caption > span { font-size: 11px; }
    .catalog-tile__missing { font-size: 10px; }
    .catalog-tile__missing > span:first-child { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-tile > img, .catalog-highlight__ring { transition: none; }
}
@media (forced-colors: active) {
    .catalog-tile { border: 1px solid CanvasText; }
    .catalog-tile__caption { background: Canvas; color: CanvasText; }
}
