.listings-page .page-main { max-width: 1700px; width: 100%; padding: 24px 28px 48px; }
.listings-page .page-heading { margin-bottom: 16px; }
.listings-page .page-heading h1 { font-size: 30px; overflow-wrap: anywhere; }
.listings-page button, .listings-page select { font: inherit; cursor: pointer; }
.listings-page input, .listings-page select { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--page-line); border-radius: 6px; background: #fff; color: var(--page-text); }
.listings-page button { border: 1px solid var(--page-line); }
.listings-page svg { width: 18px; height: 18px; flex-shrink: 0; }
.listings-page :focus-visible { outline: 3px solid #207b97; outline-offset: 3px; }
.classified-toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.classified-search { display: flex; gap: 10px; margin-bottom: 24px; }
.classified-search label { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; padding: 0 14px; border: 1px solid #b5bfc7; border-radius: 6px; background: #fff; }
.classified-search input { border: 0; padding: 13px 0; }
.classified-search button { min-width: 96px; }
.classified-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 24px; align-items: start; }
.classified-filters { min-width: 0; position: sticky; top: 90px; }
.classified-filters summary { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; padding-bottom: 16px; }
.classified-filter-body { display: grid; gap: 18px; }
.classified-filter-body > label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.classified-filter-body select { font-size: 13px; }
.classified-filter-body fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.classified-filter-body legend { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.classified-price-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.classified-price-fields input { font-size: 13px; }
.classified-filter-body .classified-checkbox { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.classified-checkbox input { width: 18px; height: 18px; accent-color: var(--page-orange); }
.classified-reset { display: flex; align-items: center; justify-content: center; gap: 8px; color: #35657e; font-size: 14px; }
.classified-results { min-width: 0; }
.classified-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; min-height: 42px; }
.classified-results-head p { margin: 0; font-size: 14px; }
.classified-results-head label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--page-muted); }
.classified-results-head select { width: auto; max-width: 190px; font-size: 13px; padding: 8px; }
.classified-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px 16px; align-items: stretch; }
.classified-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--page-line); border-radius: 8px; overflow: hidden; }
.classified-card:hover { border-color: #b3c1cb; }
.classified-image { position: relative; aspect-ratio: 4 / 3; background: #eef1f3; }
.classified-image > a { display: block; width: 100%; height: 100%; }
.classified-image img { width: 100%; height: 100%; object-fit: contain; }
.listing-no-photo { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; height: 100%; color: var(--page-muted); font-size: 12px; }
.listing-no-photo svg { width: 32px; height: 32px; }
.listing-save { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 6px; color: #58646e; }
[data-listing-save][aria-pressed="true"] { color: #bc3f31; }
[data-listing-save][aria-pressed="true"] svg { fill: #ffe4df; }
.listing-condition { position: absolute; bottom: 8px; left: 8px; border-radius: 4px; padding: 2px 7px; background: #fff; color: #335769; font-size: 11px; }
.classified-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px; min-width: 0; }
.listing-category { font-size: 11px; color: var(--page-muted); overflow-wrap: anywhere; }
.classified-body h2 { font-size: 16px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.classified-body h2 a:hover { color: #b64814; }
.classified-price { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.classified-excerpt { font-size: 13px; color: #66717b; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.classified-place, .classified-seller { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; overflow-wrap: anywhere; }
.classified-place svg, .classified-seller svg { width: 14px; height: 16px; }
.classified-seller { color: #426270; }
.classified-body time { font-size: 11px; color: var(--page-muted); }
.classified-contacts { display: grid; gap: 6px; padding-top: 10px; margin-top: auto; }
.classified-contacts a, .classified-detail-contacts a { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; padding: 9px 6px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.classified-contacts a span { min-width: 0; }
.listing-phone { background: #e8f2ed; color: #1b654d; }
.listing-telegram, .listing-write { background: #edf3f8; color: #2d5c7c; }
.classified-empty { padding: 56px 16px; text-align: center; border-top: 1px solid var(--page-line); }
.classified-empty > svg { width: 34px; height: 34px; color: #748590; }
.classified-empty h2 { font-size: 20px; margin: 14px 0 22px; }
.classified-empty a { margin: 4px; }
.listing-notice { background: #e9f2f7; color: #28546b; padding: 12px; border-radius: 6px; font-size: 14px; }
.listing-notice a { text-decoration: underline; }
.classified-detail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }
.classified-detail-main { min-width: 0; }
.classified-main-image { display: flex; align-items: center; justify-content: center; background: #e9edef; aspect-ratio: 4 / 3; max-height: 560px; border-radius: 7px; overflow: hidden; }
.classified-main-image img { width: 100%; height: 100%; object-fit: contain; }
.classified-thumbnails { display: flex; overflow-x: auto; gap: 8px; padding: 12px 2px; }
.classified-thumbnails button { flex: 0 0 72px; width: 72px; height: 60px; background: #fff; border-radius: 5px; padding: 3px; }
.classified-thumbnails button[aria-pressed="true"] { border: 2px solid #bd4d17; }
.classified-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.classified-detail-meta { display: flex; gap: 20px; font-size: 12px; color: var(--page-muted); margin: 12px 0 26px; }
.classified-detail-main h2 { font-size: 21px; margin: 26px 0 12px; }
.classified-description { white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
.classified-facts { margin: 0; }
.classified-facts div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--page-line); font-size: 14px; }
.classified-facts dt { color: var(--page-muted); }
.classified-facts dd { margin: 0; overflow-wrap: anywhere; }
.classified-contact-panel { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; padding: 0 0 0 24px; border-left: 1px solid var(--page-line); min-width: 0; }
.classified-detail-price { font-size: 27px; line-height: 1.35; overflow-wrap: anywhere; }
.classified-owner { display: flex; flex-direction: column; gap: 6px; }
.classified-owner > span { font-size: 12px; color: var(--page-muted); }
.classified-owner a { font-weight: 700; color: #335e77; overflow-wrap: anywhere; }
.classified-detail-contacts { display: grid; gap: 8px; }
.classified-detail-contacts a { font-size: 15px; padding: 13px 8px; }
.classified-detail-contacts p { font-size: 13px; margin: 0; color: var(--page-muted); }
.classified-detail-tools { display: grid; gap: 8px; }
.classified-detail-tools button { font-size: 13px; }
.classified-report { display: flex; align-items: center; gap: 7px; color: var(--page-muted); font-size: 12px; }
@media (max-width: 1350px) { .classified-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .classified-layout { gap: 18px; grid-template-columns: 190px minmax(0,1fr); } }
@media (max-width: 1100px) { .classified-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .classified-detail { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; } }
@media (max-width: 760px) {
  .listings-page .page-main { padding: 18px 14px 32px; }
  .listings-page .page-heading h1 { font-size: 26px; }
  .classified-layout { grid-template-columns: 1fr; }
  .classified-filters { position: static; border-bottom: 1px solid var(--page-line); padding-bottom: 12px; }
  .classified-filters summary { padding-bottom: 0; }
  .classified-filters[open] summary { padding-bottom: 16px; }
  .classified-filter-body { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .classified-filter-body .classified-checkbox { grid-column: 1 / -1; }
  .classified-toolbar { justify-content: stretch; }
  .classified-toolbar a { flex: 1; font-size: 12px; padding: 9px; }
  .classified-search { gap: 6px; margin-bottom: 18px; }
  .classified-search label { padding: 0 9px; gap: 6px; }
  .classified-search input { font-size: 14px; }
  .classified-search button { min-width: 65px; padding: 9px; font-size: 13px; }
  .classified-results-head { gap: 8px; }
  .classified-results-head label { font-size: 0; gap: 0; }
  .classified-results-head select { max-width: 160px; }
  .classified-grid { gap: 14px 10px; }
  .classified-body { padding: 10px; }
  .classified-body h2 { font-size: 14px; }
  .classified-price { font-size: 16px; }
  .classified-contacts a { font-size: 11px; }
  .classified-contacts svg { width: 13px; height: 13px; }
  .classified-detail { display: flex; flex-direction: column; }
  .classified-detail-main, .classified-contact-panel { width: 100%; }
  .classified-contact-panel { position: static; border-left: 0; border-top: 1px solid var(--page-line); padding: 22px 0 0; }
}
@media (max-width: 359px) { .classified-grid { grid-template-columns: 1fr; } }
