/* Shared public-marketplace finish. Preserve the cyan brand; use a darker
   action tone for readable white labels. Loaded after legacy page styles. */
body.wc-theme {
  --market-action: #087ca8;
  --market-action-hover: #066488;
  --market-ink: #252d38;
  --market-muted: #626b78;
  --market-line: #dce2e8;
}
/* A returning visitor's grid is inserted by recent-viewed-local.ts. Keep the
   first visit focused on discovery, without a flash of an empty panel. */
body.wc-theme .home-viewed-listings:not(:has(.desktop-viewed-card)) { display: none !important; }
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card {
  border-color: var(--market-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 5px #252d3808 !important;
  color: var(--market-ink);
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card:not(.is-list):not(.re-property-card) { display: flex !important; }
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card:not(.is-list):not(.re-property-card) .body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 12px !important;
  gap: 6px !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .title {
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  min-height: 0 !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  text-align: right;
  /* Model identifiers must remain readable, including mixed Hebrew/Latin. */
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .price {
  color: var(--market-ink) !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.wc-theme .listing-card .body .price { order: -1 !important; }
body.wc-theme.page-category-realestate .listing-card.re-property-card .price { padding: 12px 12px 6px !important; }
body.wc-theme.page-category-realestate .listing-card.re-property-card .title span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  min-width: 0;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .meta.specs {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--market-muted) !important;
  flex-wrap: wrap !important;
  gap: 2px 4px !important;
  overflow: visible !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .meta.specs span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  min-width: 0;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .browse-card-category {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--market-muted) !important;
  margin: 0 !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .marketplace-card-footer {
  margin-top: auto;
  padding: 9px 12px !important;
  min-height: 38px !important;
  font-size: 13px !important;
  color: var(--market-muted) !important;
  border-color: var(--market-line) !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category,.page-login,.page-register,.auth-reference) :is(.btn-primary,.hs-btn),
body.wc-theme .navbar .btn-publish,
body.wc-theme .mobile-app-nav-plus,
body.wc-theme.page-search .browse-search .btn,
body.wc-theme.page-search #filterSidebar .btn-primary,
body.wc-theme #cookieBanner .cb-accept {
  background: var(--market-action) !important;
  border-color: var(--market-action) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.wc-theme:is(.page-home,.page-search,.page-category,.page-login,.page-register,.auth-reference) :is(.btn-primary,.hs-btn):hover,
body.wc-theme #cookieBanner .cb-accept:hover { background: var(--market-action-hover) !important; }
body.wc-theme .auth-card a,
body.wc-theme #cookieBanner .cb-text a { color: var(--market-action) !important; }
body.wc-theme #cookieBanner {
  width: min(680px, calc(100% - 24px));
  padding: 12px 16px !important;
  gap: 14px !important;
  border: 1px solid var(--market-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--market-ink) !important;
  box-shadow: 0 4px 18px #252d3814 !important;
  backdrop-filter: none !important;
}
body.wc-theme #cookieBanner .cb-icon { display: none !important; }
body.wc-theme #cookieBanner .cb-title { font-size: 13px !important; margin: 0 0 2px !important; color: var(--market-ink) !important; }
body.wc-theme #cookieBanner .cb-text { font-size: 13px !important; line-height: 1.5 !important; color: var(--market-muted) !important; }
body.wc-theme #cookieBanner .cb-accept { min-height: 44px !important; border-radius: 8px !important; font-size: 13px !important; }
body.wc-theme :is(.listing-card,.hs-btn,.browse-search .btn,.view-toggle a,#toggleFilters,.cb-accept):focus-visible {
  outline: 3px solid var(--market-action) !important;
  outline-offset: 3px;
}
@media (max-width: 767.98px) {
  body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card .price { font-size: 18px !important; }
  body.wc-theme:is(.page-home,.page-search,.page-category) .listing-card:not(.is-list):not(.re-property-card) .body { padding: 10px !important; }
  body.wc-theme #cookieBanner { padding: 10px 12px !important; gap: 10px !important; }
  body.wc-theme #cookieBanner .cb-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.wc-theme #cookieBanner .cb-actions { align-self: center; }
  body.wc-theme .browse-results-toolbar { flex-wrap: wrap !important; }
  body.wc-theme .browse-result-controls { gap: 6px !important; flex-wrap: wrap; }
  body.wc-theme :is(.browse-search .btn,#toggleFilters,.browse-result-controls > select,.view-toggle a) { min-height: 44px !important; font-size: 13px !important; }
  body.wc-theme .view-toggle { gap: 4px !important; }
  body.wc-theme .view-toggle a { min-width: 44px !important; width: 44px !important; height: 44px !important; }
  body.wc-theme .browse-search input { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.wc-theme .listing-card, body.wc-theme .listing-card img { transition: none !important; transform: none !important; }
}
