/* Dense, photo-first browsing cards for phones and tablets. */
.catalog-filter-toggle { display: none; }

@media (max-width: 1024px) {
  :is(#listingGrid, #featuredGrid, #recentGrid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
  }
  .catalog-listing-grid:not(.catalog-list-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) > .property-card,
  .catalog-listing-grid:not(.catalog-list-mode) > .catalog-card {
    min-width: 0;
    border-radius: 13px !important;
    box-shadow: 0 5px 16px rgba(31, 38, 52, .07) !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-media {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-media img,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-body,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-body {
    padding: 9px 10px 10px !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-price,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-topline > strong,
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-promo-price strong,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-promo-price strong {
    font-size: 17px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-title,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card h3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin: 5px 0 4px !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-location,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-location {
    font-size: 10px !important;
    line-height: 1.3;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) :is(.card-use, .engagement-row, .card-footer),
  .catalog-listing-grid:not(.catalog-list-mode) :is(.catalog-event-meta, .catalog-use-line, .catalog-card-engagement, .catalog-card-footer) {
    display: none !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-meta {
    margin-top: 6px;
    font-size: 9px !important;
    overflow: hidden;
    white-space: nowrap;
  }
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-topline {
    flex-wrap: wrap;
    gap: 3px 8px;
  }
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-compare-check {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .catalog-filter-ready .catalog-filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #d1dcdf;
    border-radius: 12px;
    background: #fff;
    color: #272e30;
    font-weight: 800;
  }
  .catalog-filter-ready #catalogFilters:not(.is-open) { display: none !important; }
  .catalog-shell { gap: 10px; }
  .catalog-listing-grid:not(.catalog-list-mode) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .catalog-hero { padding: 22px 0 14px !important; }
  .catalog-hero h1 { font-size: 27px !important; line-height: 1.1; margin: 5px 0; }
  .catalog-hero p { font-size: 12px; line-height: 1.35; margin: 7px 0 12px; }
  .catalog-search-shell { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 6px; }
  .catalog-search-shell .primary-btn { grid-column: auto !important; width: auto !important; padding: 10px 11px; font-size: 11px; }
  .catalog-mode-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .catalog-mode-tabs button { flex: 0 0 auto; }
  :is(#listingGrid, #featuredGrid, #recentGrid),
  .catalog-listing-grid:not(.catalog-list-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-price,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-topline > strong,
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-promo-price strong,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-promo-price strong {
    font-size: 15px !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-meta {
    display: none !important;
  }
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-badge,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-mode-badge {
    max-width: calc(100% - 16px);
    padding: 4px 6px;
    font-size: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-verified-badge {
    top: 35px;
    right: 7px;
    padding: 4px 6px;
    font-size: 8px;
  }
}

/* Profiles (My profile and the public profile overlay), on every screen size: a lister's Featured
   and Active listings show as small thumbnails (2 per row on phones, more on wider screens). On
   tablets and computers they sit in a box 3 rows tall that scrolls up and down, so a profile with
   many listings stays short; phones show them in the page. Rows have a fixed height so exactly
   3 rows show. Owner request, 2026-10-04 (was 2 per row on phones only).
   !important because the older card rules in styles.css use it. */
.profile-section .listing-grid.compact-grid {
  --pl-row: 256px;
  --pl-gap: 12px;
  gap: var(--pl-gap) !important;
  grid-auto-rows: var(--pl-row) !important;
  /* As many cards per row as fit at thumbnail size: 3 on tablets and laptops, 4–5 on wide
     screens (owner request, 2026-10-08: on wide screens 3 stretched cards showed flat photo strips).
     auto-fill keeps empty columns, so one listing stays thumbnail-sized. */
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  max-height: calc(3 * var(--pl-row) + 2 * var(--pl-gap) + 12px) !important;
  overflow-y: auto !important;
  /* At either end of the box the page keeps scrolling (owner report 2026-10-10: the page
     seemed stuck while the finger or mouse was over the listings). */
  overscroll-behavior: auto !important;
  padding: 4px 4px 8px !important;
  -webkit-overflow-scrolling: touch !important;
}
/* The scroll box cuts off anything outside it, so cards keep a small shadow (and featured cards
   their gold border without the wide glow) instead of showing clipped rectangles. */
.profile-section .listing-grid.compact-grid .property-card, .similar-wrap .listing-grid.compact-grid .property-card { border-radius: 14px !important; box-shadow: 0 2px 8px rgba(23, 40, 45, .08) !important; display: flex !important; flex-direction: column !important; height: 100% !important; min-width: 0 !important; overflow: hidden !important; }
.profile-section .listing-grid.compact-grid .property-card::before, .similar-wrap .listing-grid.compact-grid .property-card::before,
.profile-section .listing-grid.compact-grid .property-card::after, .similar-wrap .listing-grid.compact-grid .property-card::after { box-shadow: none !important; filter: none !important; }
.profile-section .listing-grid.compact-grid .property-card:hover, .similar-wrap .listing-grid.compact-grid .property-card:hover { transform: none !important; }
.profile-section .listing-grid.compact-grid .card-media, .similar-wrap .listing-grid.compact-grid .card-media { flex: 0 0 auto !important; height: 124px !important; }
.profile-section .listing-grid.compact-grid .card-badge, .similar-wrap .listing-grid.compact-grid .card-badge { bottom: 6px !important; font-size: 9px !important; left: 6px !important; max-width: calc(100% - 12px) !important; overflow: hidden !important; padding: 4px 6px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.profile-section .listing-grid.compact-grid .card-featured-badge, .similar-wrap .listing-grid.compact-grid .card-featured-badge,
.profile-section .listing-grid.compact-grid .card-actions, .similar-wrap .listing-grid.compact-grid .card-actions,
.profile-section .listing-grid.compact-grid .card-meta, .similar-wrap .listing-grid.compact-grid .card-meta,
.profile-section .listing-grid.compact-grid .engagement-row, .similar-wrap .listing-grid.compact-grid .engagement-row,
.profile-section .listing-grid.compact-grid .card-footer .rating, .similar-wrap .listing-grid.compact-grid .card-footer .rating { display: none !important; }
.profile-section .listing-grid.compact-grid .card-body, .similar-wrap .listing-grid.compact-grid .card-body { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; padding: 9px 10px 10px !important; }
.profile-section .listing-grid.compact-grid .card-price, .similar-wrap .listing-grid.compact-grid .card-price { font-size: 15px !important; line-height: 1.25 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.profile-section .listing-grid.compact-grid .card-title, .similar-wrap .listing-grid.compact-grid .card-title { -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; display: -webkit-box !important; font-size: 13px !important; line-height: 1.3 !important; margin: 4px 0 !important; overflow: hidden !important; }
.profile-section .listing-grid.compact-grid .card-location, .similar-wrap .listing-grid.compact-grid .card-location { font-size: 11.5px !important; margin-bottom: 4px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.profile-section .listing-grid.compact-grid .card-footer, .similar-wrap .listing-grid.compact-grid .card-footer { border-top: 0 !important; font-size: 11px !important; margin-top: 2px !important; padding-top: 0 !important; overflow: hidden !important; white-space: nowrap !important; }
/* Find similar in the listing window (app.js .similar-wrap): the same thumbnail cards as profile
   listings, as many per row as fit (owner request, 2026-10-09: on wide screens 3 stretched cards
   filled the window). Only 3 listings, so no scrolling box. */
.similar-wrap .listing-grid.compact-grid { align-items: stretch !important; gap: 12px !important; grid-auto-rows: 256px !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }
@media (max-width: 700px) {
  .similar-wrap .listing-grid.compact-grid { gap: 8px !important; grid-auto-rows: 164px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  /* Phones: 2 thumbnails across, so prices and names are not cut off (owner request
     2026-10-10; was 3), and no scrolling box inside the page: a swipe over the listings
     always moves the page. Tablets and computers keep as many per row as fit (above). */
  .profile-section .listing-grid.compact-grid { --pl-row: 214px; --pl-gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-height: none !important; overflow: visible !important; }
  .profile-section .listing-grid.compact-grid .property-card, .similar-wrap .listing-grid.compact-grid .property-card { border-radius: 12px !important; }
  .profile-section .listing-grid.compact-grid .card-media, .similar-wrap .listing-grid.compact-grid .card-media { height: 80px !important; }
  .profile-section .listing-grid.compact-grid .card-badge, .similar-wrap .listing-grid.compact-grid .card-badge { display: none !important; }
  .profile-section .listing-grid.compact-grid .card-body, .similar-wrap .listing-grid.compact-grid .card-body { padding: 7px 7px 8px !important; }
  .profile-section .listing-grid.compact-grid .card-price, .similar-wrap .listing-grid.compact-grid .card-price { font-size: 12px !important; }
  .profile-section .listing-grid.compact-grid .card-title, .similar-wrap .listing-grid.compact-grid .card-title { font-size: 11.5px !important; margin: 3px 0 !important; }
  .profile-section .listing-grid.compact-grid .card-location, .similar-wrap .listing-grid.compact-grid .card-location { font-size: 10.5px !important; margin-bottom: 0 !important; }
  .profile-section .listing-grid.compact-grid .card-footer, .similar-wrap .listing-grid.compact-grid .card-footer { display: none !important; }
  .profile-section .listing-grid.compact-grid .card-media { height: 118px !important; }
  .profile-section .listing-grid.compact-grid .card-body { padding: 9px 10px 10px !important; }
  .profile-section .listing-grid.compact-grid .card-price { font-size: 14px !important; }
  .profile-section .listing-grid.compact-grid .card-title { font-size: 13px !important; }
  .profile-section .listing-grid.compact-grid .card-location { font-size: 11.5px !important; }
}
/* The profile's close button stays pinned at the top right without taking a column of its own:
   floated, it made the whole profile 56px narrower than the window. */
#profileModal > .modal-close { display: block; float: none !important; margin: 14px 14px -56px auto !important; position: sticky; top: 14px; z-index: 20; }
@media (max-width: 700px) {
  /* Phones: less side padding around the listing thumbnails so 2 fit comfortably. */
  #profileModal .profile-layout { padding-left: 10px !important; padding-right: 10px !important; }
  #profileModal .profile-section:has(.compact-grid) { padding-left: 10px !important; padding-right: 10px !important; }
}

/* Compact member profile (Lister, Pro Lister and Host profiles: My profile, the public profile
   overlay and /agent/<username>; owner request, 2026-10-09, from the approved mockup). Seeker
   profiles (.seeker-hub) and team pages are separate and unchanged.
   - wide screens: centered, at most 1200px wide (it stretched edge to edge on 1920–2560px monitors)
   - shorter cover (150px, phones 110px) with the photo overlapping its bottom edge
   - the four stat boxes become one slim line under the name
   - About: tighter spacing, lines of at most ~75 characters (line breaks still kept, pre-line)
   - Featured and Active listings right after About; one sidebar card with details, chips,
     trust badges and the profile photos as small thumbnails (3 per row)
   !important only where older rules in styles.css use it. */
.profile-storefront.profile-compact { margin-inline: auto; max-width: 1200px; }
.profile-compact .profile-cover { height: 150px; }
.profile-storefront-modal.profile-compact .profile-cover { border-radius: 22px 22px 0 0; }
.profile-compact .profile-identity-row { align-items: start; gap: 18px; grid-template-columns: auto minmax(0, 1fr) auto; margin-top: -44px; padding: 0 22px 18px; }
.profile-compact .profile-primary-wrap,
.profile-compact .profile-primary { height: 104px; width: 104px; }
.profile-compact .profile-primary { border-width: 4px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 6px 18px rgba(0, 0, 0, .12); }
.profile-compact .profile-presence-dot { border-width: 4px; bottom: 5px; height: 20px; right: 5px; width: 20px; }
.profile-compact :is(.fl-seal, .fd-seal) { height: 28px; right: 0; top: 0; width: 28px; }
.profile-compact :is(.fl-seal, .fd-seal) svg { height: 15px; width: 15px; }
.profile-compact .profile-main-copy { padding: 52px 0 0; }
/* The name sits on the card below the cover now, so the dark glass behind it is dropped. */
.profile-compact .profile-name-line { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; display: flex !important; gap: 8px !important; padding: 0 !important; }
.profile-compact .profile-name-line h1 { color: #13302f !important; font-size: 26px; letter-spacing: -.5px; line-height: 1.15; text-shadow: none !important; }
.profile-compact .profile-role-pill { background: #e3f2ef !important; border-color: transparent !important; color: #027168 !important; }
.profile-compact .profile-main-copy > p { color: #536b68 !important; font-size: 13px; font-weight: 600 !important; margin: 6px 0 0 !important; }
.profile-compact .profile-main-copy > p.profile-business-line { color: #13302f !important; font-size: 14px; font-weight: 700 !important; margin-top: 4px !important; }
.profile-compact .profile-trust-inline { margin-top: 6px; }
.profile-compact .fl-note { font-size: 12px; margin-top: 6px; padding: 5px 10px; }
.profile-compact .profile-hero-actions { align-self: end; padding-bottom: 4px; }
/* Stats: "7 active listings · 0 confirmed deals · ★ — rating · New profile". */
.profile-compact .profile-stats-row { color: #3f5552; display: flex; flex-wrap: wrap; font-size: 13px; gap: 4px 0; margin-top: 8px; padding: 0; }
.profile-compact .profile-stat { align-items: baseline; background: none; border: 0; border-radius: 0; box-shadow: none; display: inline-flex; gap: 4px; padding: 0; text-align: left; }
.profile-compact .profile-stat + .profile-stat::before { color: #9aa7a5; content: '·'; margin: 0 8px; }
.profile-compact .profile-stat b,
.profile-compact .profile-stat span { display: inline; font-size: 13px; letter-spacing: 0; margin: 0; }
.profile-compact .profile-stat b { color: #13302f; font-weight: 800; }
.profile-compact .profile-stat span { color: #3f5552; text-transform: lowercase; }
.profile-compact .profile-stat-rating b::before { content: '★ '; font-weight: 400; }
/* Main column and sidebar. */
.profile-compact .profile-layout { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(280px, 310px); padding: 0 22px 24px; }
.profile-compact .profile-section { border-radius: 18px; margin-bottom: 16px; padding: 18px 20px; }
.profile-compact .profile-section:last-child { margin-bottom: 0; }
.profile-compact .profile-section-head { margin-bottom: 10px; }
.profile-compact .profile-section-head h2 { font-size: 21px; letter-spacing: -.5px; margin-top: 4px; }
.profile-compact [data-profile-activity] { margin-top: 0; }
.profile-compact .profile-about > p { line-height: 1.6; max-width: 75ch; }
.profile-compact .profile-side-card { border-radius: 18px; padding: 16px; }
.profile-compact .profile-side-card h3 { font-size: 18px; margin: 4px 0 8px; }
.profile-compact .profile-detail-row { padding: 7px 0; }
.profile-compact .profile-detail-row :is(span, b) { font-size: 12px; }
.profile-compact .profile-side-group { margin-top: 12px; }
.profile-compact .profile-side-group > span { margin-bottom: 6px; }
.profile-compact .profile-side-group .info-chips span { background: #f2f6f7; border: 1px solid #e3eaee; border-radius: 999px; font-size: 11.5px; padding: 4px 9px; }
.profile-compact .profile-trust-box { background: #eef8f3; border-radius: 10px; margin-top: 12px; padding: 8px 10px; }
.profile-compact :is(.profile-trust-box, .profile-trust-inline) .muted { font-size: 12px; font-weight: 600; }
.profile-compact .profile-trust-box small { color: #536b68; display: block; font-size: 10.5px; line-height: 1.45; margin-top: 6px; }
/* Profile photos in the sidebar card: small square tiles, 3 per row, photo filling the tile
   (top-aligned so faces stay in view). Tapping one opens it whole in the photo viewer; the owner
   keeps the add-photo tile and the × to remove a photo. Replaces the full-width gallery section
   of 2026-10-08. */
.profile-compact .profile-photos-side .profile-gallery { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-compact .profile-photos-side :is(.profile-gallery-item, .profile-gallery-add) { aspect-ratio: 1; border-radius: 10px; min-height: 0; }
.profile-compact .profile-photos-side .profile-gallery-item img { height: 100%; object-fit: cover; object-position: center top; }
.profile-compact .profile-photos-side .profile-gallery-item figcaption,
.profile-compact .profile-photos-side .profile-gallery-add small { display: none; }
.profile-compact .profile-photos-side .gallery-remove { font-size: 14px; height: 22px; line-height: 1; padding: 0; right: 4px; top: 4px; width: 22px; }
.profile-compact .profile-photos-side .profile-gallery-add span { font-size: 20px; line-height: 1; }
.profile-compact .profile-photos-side .profile-gallery-add b { font-size: 10px; }
/* One column (tablets and phones): About, Featured, Active listings, then the Profile details card
   with the photos last; the other cards (feedback, closed deals, teams, credentials, the owner's
   own cards) follow. main and aside step aside so their sections can be put in this order. */
@media (max-width: 900px) {
  .profile-compact .profile-layout { display: flex; flex-direction: column; }
  .profile-compact .profile-layout > :is(main, aside) { display: contents; }
  .profile-compact .profile-section { margin-bottom: 0; }
  .profile-compact .profile-details-card { order: 1; }
  .profile-compact .profile-layout > main > [data-profile-activity],
  .profile-compact .profile-layout > aside > :not(.profile-details-card) { order: 2; }
  .profile-compact [data-profile-activity] { display: flex; flex-direction: column; gap: 16px; }
  .profile-compact .profile-photos-side .profile-gallery { max-width: 360px; }
}
@media (max-width: 700px) {
  .profile-compact .profile-cover { height: 110px; }
  .profile-compact .profile-identity-row { gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: -38px; padding: 0 16px 14px; text-align: left; }
  .profile-compact .profile-primary-wrap,
  .profile-compact .profile-primary { height: 84px; width: 84px; }
  .profile-compact .profile-primary-wrap { margin: 0; }
  .profile-compact .profile-main-copy { padding-top: 0; }
  .profile-compact .profile-name-line { justify-content: flex-start !important; }
  .profile-compact .profile-name-line h1 { font-size: 22px; }
  .profile-compact .profile-trust-inline { justify-content: flex-start; }
  .profile-compact .profile-hero-actions { display: grid; gap: 8px; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; justify-content: stretch; }
  .profile-compact .profile-hero-actions > * { text-align: center; width: 100%; }
  .profile-compact .profile-layout { gap: 10px; }
  .profile-compact [data-profile-activity] { gap: 10px; }
  .profile-compact .profile-section { padding: 16px; }
}
/* Profile listing cards keep all their details (owner report 2026-10-10: on a fixed row height
   the price, old price, name and place squeezed over each other and were cut off).
   - Every card is as tall as its details, and the cards in a row line up.
   - The lines inside a card never shrink into each other.
   - "Good for: …" (event venues) is left off these small cards; the listing page shows it. */
.profile-section .listing-grid.compact-grid { grid-auto-rows: auto !important; --pl-row: 290px; }
.profile-section .listing-grid.compact-grid .card-body > * { flex-shrink: 0 !important; }
.profile-section .listing-grid.compact-grid .card-use { display: none !important; }
.profile-section .listing-grid.compact-grid .card-title { min-height: 0 !important; }
@media (max-width: 700px) {
  .profile-section .listing-grid.compact-grid { grid-auto-rows: auto !important; }
}

/* Readable text sizes (owner request, 2026-10-13; docs/readable-text.md): nothing people need to read
   below 12px, card titles 14px, reading text 15-16px. Same selectors as the rules above, so these win. */
@media (max-width: 1024px){
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-title, .catalog-listing-grid:not(.catalog-list-mode) .catalog-card h3{font-size:14px !important}
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-location, .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-location{font-size:13px !important}
}
@media (max-width: 700px){
  .catalog-hero p{font-size:14px}
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-badge, .catalog-listing-grid:not(.catalog-list-mode) .catalog-mode-badge{font-size:12px}
  .profile-section .listing-grid.compact-grid .card-location{font-size:13px !important}
}
.profile-section .listing-grid.compact-grid .card-badge, .similar-wrap .listing-grid.compact-grid .card-badge{font-size:12px !important}
.profile-section .listing-grid.compact-grid .card-location, .similar-wrap .listing-grid.compact-grid .card-location{font-size:13px !important}
.profile-section .listing-grid.compact-grid .card-footer, .similar-wrap .listing-grid.compact-grid .card-footer{font-size:12px !important}
/* Readable text sizes, short labels: badges, buttons, chips and dates at 12px. */
@media (max-width: 700px){
  .catalog-search-shell .primary-btn{font-size:12px}
}
@media (max-width: 1024px){
  /* Bigger card text wraps instead of being cut off. */
  :is(#listingGrid, #featuredGrid, #recentGrid) .card-location,
  .catalog-listing-grid:not(.catalog-list-mode) .catalog-card-location{white-space:normal}
}

/* Home page rows on phones (owner request, 2026-10-13): "Good for: …" (event venues) is left off the
   cards, like the listing grids above; computers still show it, and the listing page always does. */
@media (max-width: 700px) {
  .home-row-track .card-use { display: none !important; }
}
