/* e2-category.css — Phase E2 builder C (FABLE-REVIEW-5.4 §3): cards, save search, empty state, sidebar. Tokens only. */

/* ---------- cards: title 2 lines, chips age / sex / city ---------- */
section#listings.grid ul.card-info > li.title a { -webkit-line-clamp: 2; min-height: 2.7em; }
section#listings ul.card-info > li.fields.am24-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
section#listings .am24-chip { margin: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
section#listings .am24-sex { display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; }
section#listings .am24-sex svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
section#listings .am24-sex--m svg { stroke: #2B6CB0; }
section#listings .am24-sex--f svg { stroke: #B83280; }
section#listings .am24-sex--l svg { stroke: var(--am24-accent); }
@media (max-width: 575px) {
    section#listings ul.card-info > li.fields.am24-chips > span:nth-child(n+3) { display: inline-block; }
    section#listings.grid ul.card-info { padding: 10px 10px 12px; }
    section#listings .am24-chip { font-size: 12px; padding: 2px 8px; }
    section#listings .price-tag, section#listings .price-tag > span { font-size: 16px; }
}
/* the grid: 3 columns beside the sidebar from ~1200px, 2 below */
@media (min-width: 992px) and (max-width: 1199px) {
    body[class^="large lt-"] aside.left ~ section#content section#listings > article.item, body[class^="large lt-"] #controller_area section#listings > article.item { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 1200px) {
    body[class^="large lt-"] #controller_area section#listings > article.item { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

/* ---------- toolbar: sort | save search | view toggle ---------- */
.grid_navbar { flex-direction: row !important; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start !important; }
.grid_navbar .am24-sort { order: 1; }
.grid_navbar .am24-savesearch { order: 2; }
.grid_navbar .switcher { order: 3; margin-left: auto; }
.am24-savesearch {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--am24-tap); padding: 0 18px;
    border: 1px solid var(--am24-accent); border-radius: var(--am24-radius-pill); background: var(--am24-surface); color: var(--am24-accent);
    font: 600 14px/1 var(--am24-font); cursor: pointer; transition: background .15s, color .15s;
}
.am24-savesearch svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am24-savesearch:hover, .am24-savesearch:focus-visible { background: var(--am24-tint); }
.am24-savesearch.is-saved { background: var(--am24-accent); color: #fff; }
.am24-savesearch[disabled] { opacity: .7; cursor: default; }
@media (max-width: 575px) {
    .grid_navbar .hook { order: 0; }
    .grid_navbar .am24-sort { order: 1; flex: 1 1 100%; }
    .grid_navbar .am24-savesearch { order: 0; flex: 1 1 auto; }
    .grid_navbar .switcher { display: contents; }
    .grid_navbar .switcher .buttons { display: none; }
}
@media (min-width: 576px) and (max-width: 991px) { .grid_navbar .am24-sort { flex: 0 0 auto; } }

/* ---------- empty state ---------- */
.am24-empty__intro {
    background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius);
    padding: var(--am24-s3); margin-bottom: var(--am24-s3);
}
.am24-empty__title { font-size: 22px; line-height: 1.3; font-weight: var(--am24-fw-head); margin: 0 0 var(--am24-s1); color: var(--am24-text); }
.am24-empty__text { margin: 0 0 var(--am24-s2); color: var(--am24-muted); font-size: var(--am24-fs-sm); }
.am24-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.am24-empty__actions .am24-savesearch { background: var(--am24-accent); color: #fff; }
.am24-empty__actions .am24-savesearch:hover { background: var(--am24-accent-hover); }
.am24-empty__post {
    display: inline-flex; align-items: center; min-height: var(--am24-tap); padding: 0 18px; border-radius: var(--am24-radius-pill);
    border: 1px solid var(--am24-border); color: var(--am24-text) !important; font-weight: 600; font-size: 14px; text-decoration: none;
}
.am24-empty__post:hover { border-color: var(--am24-accent); }
.am24-empty__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: var(--am24-s2); }
.am24-empty__head:first-child { margin-top: 0; }
.am24-empty__head h2 { font-size: 18px; line-height: 1.3; font-weight: var(--am24-fw-head); margin: 0; color: var(--am24-text); }
.am24-empty__head a { font-size: 14px; font-weight: 600; color: var(--am24-accent); white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--am24-tap); }
.am24-empty__grid { margin-left: 0; margin-right: 0; }
.am24-empty__roots { display: flex; flex-wrap: wrap; gap: 12px; }
.am24-empty__roots a {
    display: inline-flex; align-items: center; min-height: var(--am24-tap); padding: 0 18px; border-radius: var(--am24-radius-pill);
    background: var(--am24-surface); border: 1px solid var(--am24-border); color: var(--am24-accent); font-weight: 600; font-size: 14px;
}
@media (max-width: 767px) { .am24-empty__intro { padding: var(--am24-s2); } .am24-empty__actions > * { flex: 1 1 100%; } }

/* ---------- sidebar ---------- */
.categoryFilter .fieldset.am24-nodata { display: none !important; }
aside.left section.categories-box.am24-nodata, aside.left .categoryFilter.am24-nodata, aside.left .side_block.am24-nodata { display: none !important; }
.categoryFilter #fs_cf_gender .body ul, .categoryFilter [id^="fs_cf_gender"] .body ul { max-height: none; }
.categoryFilter .fieldset .body ul li { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.categoryFilter .fieldset .body ul li a { flex: 1 1 auto; }
.categoryFilter .fieldset .body ul li .counter, .categoryFilter .fieldset .body ul li span.counter { color: var(--am24-muted); font-size: var(--am24-fs-xs); }
.categoryFilter .fieldset .body .checkbox { display: inline-block; }
.categoryFilter > h3:empty { display: none; }

/* ======================= E3: cards (Pets4homes pattern) ======================= */
section#listings ul.card-info { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; }
section#listings ul.card-info > li { margin: 0; padding: 0; }
section#listings .am24-breed { font-size: 12px; line-height: 1.3; color: var(--am24-muted); margin-top: -2px; }
section#listings .am24-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--am24-border); }
section#listings .am24-meta__i { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
section#listings .am24-meta__i b { font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--am24-text); display: inline-flex; align-items: center; white-space: nowrap; }
section#listings .am24-meta__i small { font-size: 11px; line-height: 1.2; color: var(--am24-muted); }
section#listings .am24-meta__price { text-align: right; align-items: flex-end; margin-left: auto; }
section#listings .am24-meta__price b.price-tag { font-size: 16px; color: var(--am24-accent); padding: 0; background: none; }
section#listings .am24-meta__price b.price-tag a { color: inherit; }
section#listings .am24-snippet { font-size: 13px; line-height: 1.4; color: var(--am24-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
section#listings .am24-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.3; color: var(--am24-muted); }
section#listings .am24-foot .am24-ago { white-space: nowrap; }
section#listings .am24-sex { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; }
section#listings ul.card-info > li.am24-heart { position: static; padding: 0; }
@media (max-width: 575px) {
    section#listings .am24-meta__i b { font-size: 13px; }
    section#listings .am24-meta__price b.price-tag { font-size: 15px; }
    section#listings .am24-foot { flex-direction: column; gap: 2px; }
}
/* grid: 2 at >=768 (in the content column), 3 at >=1200, 1 at <=480 is too narrow for photos so 2 compact at 375 stays? spec: 1 at 375 */
@media (max-width: 479px) { body[class^="large lt-"] section#listings > article.item, section#listings.grid > article.item { flex: 0 0 100%; max-width: 100%; } }
section#listings.row { --bs-gutter-x: 16px; }

/* ======================= E3: toolbar: Save search, then Sort ======================= */
.grid_navbar .am24-savesearch { order: 1; }
.grid_navbar .am24-sort { order: 2; margin-left: auto; }
.grid_navbar .switcher { order: 3; margin-left: 0; }
.grid_navbar .switcher .buttons { display: none !important; }
.grid_navbar .am24-sorting-legacy { display: none !important; }
@media (max-width: 575px) {
    .grid_navbar .am24-savesearch { order: 0; flex: 1 1 auto; }
    .grid_navbar .am24-sort { order: 1; flex: 1 1 100%; margin-left: 0; }
}

/* ======================= E3: city pills + breed note ======================= */
.am24-pills { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 0 var(--am24-s2); padding: 2px 0 4px; max-width: 100%; }
.am24-pills::-webkit-scrollbar { display: none; }
.am24-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: var(--am24-tap); padding: 0 16px; border-radius: var(--am24-radius-pill); border: 1px solid var(--am24-border); background: var(--am24-surface); color: var(--am24-text); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.am24-pill span { color: var(--am24-muted); font-weight: 500; font-size: 12px; }
.am24-pill:hover { border-color: var(--am24-accent); color: var(--am24-accent); }
.am24-pill.is-active { background: var(--am24-accent); border-color: var(--am24-accent); color: #fff; }
.am24-pill.is-active span { color: #fff; opacity: .85; }
.am24-note { margin: 0 0 var(--am24-s2); color: var(--am24-muted); font-size: var(--am24-fs-sm); line-height: 1.5; }
.am24-note.is-collapsed .am24-note__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am24-note__text > :last-child { margin-bottom: 0; }
.am24-note__btn { display: inline-flex; align-items: center; min-height: var(--am24-tap); padding: 0; border: 0; background: none; color: var(--am24-accent); font: 600 14px/1 var(--am24-font); cursor: pointer; }
.am24-note__btn[hidden] { display: none; }
nav.am24-pills a.am24-pill, nav.am24-pills a.am24-pill:link, nav.am24-pills a.am24-pill:visited { color: var(--am24-text) !important; background: var(--am24-surface); font-size: 14px; font-weight: 600; gap: 8px; justify-content: flex-start; }
nav.am24-pills a.am24-pill:hover { color: var(--am24-accent) !important; }
nav.am24-pills a.am24-pill.is-active, nav.am24-pills a.am24-pill.is-active:link, nav.am24-pills a.am24-pill.is-active:visited { color: #fff !important; background: var(--am24-accent); }
section#listings .am24-meta { flex-wrap: wrap; row-gap: 6px; }
section#listings .am24-meta__i:first-child { margin-right: 4px; }
.am24-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section#listings .am24-sex svg { width: 18px; height: 18px; }
section#listings .am24-meta { flex-wrap: nowrap; }
section#listings .am24-meta__i:nth-child(2):not(.am24-meta__price) { margin-right: auto; margin-left: 8px; }
#content .category-description.am24-note { border: 0; background: none; padding: 0; box-shadow: none; }
@media (min-width: 480px) and (max-width: 1199px) { body[class^="large lt-"] #controller_area section#listings > article.item, body[class^="large lt-"] section#listings > article.item { flex: 0 0 50%; max-width: 50%; } }

/* ======================= E3 fix round 1 ======================= */
/* card titles: bold 15/1.35, 2-line clamp */
section#listings.grid ul.card-info > li.title { margin: 0 !important; }
section#listings.grid ul.card-info > li.title a, section#listings.grid ul.card-info > li.title a.link-large, section#listings ul.card-info > li.title a:link {
    font-size: 15px !important; font-weight: 700 !important; line-height: 1.35 !important; color: var(--am24-text);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.7em; max-height: 2.7em;
}
/* no dead space under the city line */
section#listings ul.card-info { padding: 12px 14px 16px; gap: 6px; }
section#listings ul.card-info > li { margin: 0 !important; }
section#listings ul.card-info > li.am24-heart, section#listings ul.card-info > li.am24-heart .navigation-column { height: 0; min-height: 0 !important; padding: 0; margin: 0; overflow: visible; }
section#listings ul.card-info > ol { display: none; }
/* empty state: only the message box centres */
#content .am24-empty { text-align: left; background: none; border: 0; padding: 0; }
#content .am24-empty__intro { text-align: center; }
#content .am24-empty__actions { justify-content: center; }
#content .am24-empty__grid article.item, #content .am24-empty__grid article.item * { text-align: left; }
/* sort select on every width */
.am24-sort select { border: 1px solid var(--am24-border); height: 44px; -webkit-appearance: none; appearance: none; }
/* toolbar <=600px: one row */
@media (max-width: 600px) {
    .grid_navbar { flex-wrap: nowrap !important; align-items: center; gap: 8px; }
    .grid_navbar .hook { order: 0; flex: 0 0 auto; }
    .grid_navbar .switcher { display: contents; }
    .grid_navbar .am24-savesearch { order: 1; flex: 0 0 44px; width: 44px; padding: 0; }
    .grid_navbar .am24-savesearch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .grid_navbar .am24-sort { order: 2; flex: 1 1 auto; min-width: 0; margin-left: 0; }
    .grid_navbar .am24-sort > span { display: none; }
    .grid_navbar .am24-sort select { width: 100%; min-width: 0; }
}
/* sidebar: City list (top 6 + Show all), consistent Apply buttons */
.categoryFilter #fs_cf_city .body ul li.am24-more-hidden, .categoryFilter [id^="fs_cf_city"] .body ul li.am24-more-hidden { display: none; }
.categoryFilter .am24-expanded li.am24-more-hidden { display: flex !important; }
.categoryFilter .cf-apply a, .categoryFilter .cf-apply button, .categoryFilter .fieldset a.cf-apply-link, .categoryFilter .am24-apply {
    display: flex; align-items: center; justify-content: center; min-height: var(--am24-tap); width: 100%; margin-top: 8px; border-radius: var(--am24-radius-pill);
    background: var(--am24-accent); color: #fff !important; font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
}
/* sidebar categories: same indent with or without the + glyph */
.categories-box__style_sidebar .categories-box__parent > div { padding-left: 0; }
.categories-box__style_sidebar .categories-box__parent > div:not(:has(.categories-box__plus)) > .categories-box__parent-link { margin-left: 22px; }

/* =====================================================================================================
   2026-10-12 P4H polish: category header (count, search pill, 1-line note), one Filter card, big cards
   ===================================================================================================== */

/* ---- title row: "721 ads found" under the h1 ---- */
.am24-titlerow { flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 var(--am24-s2); }
.am24-titlerow .am24-count { font-size: 15px; font-weight: 500; color: var(--am24-muted); }
.am24-titlerow .am24-count::after { content: " found"; }

/* ---- big search pill ---- */
.am24-bigsearch {
    display: flex; align-items: center; gap: 10px; max-width: 760px; height: 56px; margin: 0 0 var(--am24-s2);
    padding: 0 6px 0 20px; background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius-pill);
    box-shadow: 0 1px 3px rgba(16, 24, 16, .06); box-sizing: border-box;
}
.am24-bigsearch:focus-within { border-color: var(--am24-accent); box-shadow: 0 0 0 3px var(--am24-tint); }
.am24-bigsearch__ico { flex: none; fill: none; stroke: var(--am24-text); stroke-width: 2; stroke-linecap: round; }
.am24-bigsearch input[type=text] {
    flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important;
    font: 600 16px var(--am24-font); color: var(--am24-text); outline: 0;
}
.am24-bigsearch input[type=text]::placeholder { color: var(--am24-text); font-weight: 600; opacity: .85; }
.am24-bigsearch button {
    flex: none; height: 44px; margin: 0; padding: 0 24px; border: 0; border-radius: var(--am24-radius-pill);
    background: var(--am24-accent); color: #fff; font: 700 15px var(--am24-font); cursor: pointer;
}
.am24-bigsearch button:hover { background: var(--am24-accent-hover); }
@media (max-width: 575px) {
    .am24-bigsearch { height: 52px; padding-left: 16px; }
    .am24-bigsearch input[type=text], .am24-bigsearch input[type=text]::placeholder { font-size: 15px; }
    .am24-bigsearch button { padding: 0 16px; height: 40px; }
}

/* ---- breed note: 1 line (2 on phones) + Read more -> full text, guide link, Show less ---- */
#content .am24-note { color: var(--am24-text); font-size: 15px; line-height: 1.55; margin-bottom: 4px; }
#content .am24-note.is-collapsed .am24-note__text { -webkit-line-clamp: 1; }
@media (max-width: 767px) { #content .am24-note.is-collapsed .am24-note__text { -webkit-line-clamp: 2; } }
#content .am24-note .am24-note__text p { margin: 0 0 .7em; }
.am24-note__guide { margin: 4px 0 0; }
.am24-note__guide a { color: var(--am24-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.am24-note.is-collapsed .am24-note__guide { display: none; }

/* ---- toolbar: Save search left, Sort right, a little air above the grid ---- */
.grid_navbar { margin-bottom: var(--am24-s2); align-items: center; }

/* ---- one "Filter" card: the breed box + the categoryFilter box are joined ---- */
.am24-fhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 var(--am24-s2); }
.am24-fhead__t { font-size: 20px; font-weight: 800; color: var(--am24-text); letter-spacing: -.01em; }
aside.left .side_block a.am24-fhead__clear { font-size: 14px; font-weight: 700; color: var(--am24-accent); text-decoration: underline; text-underline-offset: 3px; }
.am24-flabel { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--am24-text); }
aside.left .am24-fbox .am24-typeswitch { margin-bottom: var(--am24-s2) !important; }
aside.left .am24-fbox > h3 { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 700; margin-bottom: 8px; }
@media (min-width: 992px) {
    aside.left section.side_block.am24-fbox:has(+ section.categoryFilter:not(.am24-nodata)) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; padding-bottom: var(--am24-s2); }
    aside.left section.am24-fbox + section.categoryFilter { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 1px dashed transparent; position: relative; }
    aside.left section.am24-fbox + section.categoryFilter::before { content: ""; position: absolute; top: 0; left: var(--am24-s2); right: var(--am24-s2); border-top: 1px solid var(--am24-border); }
    aside.left section.am24-fbox + section.categoryFilter > h3 { display: none; }
}
/* type-to-filter box above the breed list */
.am24-bfilter { margin: 4px 0 10px; }
.am24-bfilter input {
    width: 100%; height: 44px; margin: 0; padding: 0 14px 0 38px; box-sizing: border-box; border: 1px solid var(--am24-border); border-radius: 8px;
    background: var(--am24-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 12px center / 18px no-repeat;
    font: 400 15px var(--am24-font); color: var(--am24-text);
}
.am24-bfilter input:focus { border-color: var(--am24-accent); outline: 0; box-shadow: 0 0 0 3px var(--am24-tint); }
.categories-box.am24-filtering .categories-box__item.am24-more-hidden { display: block; }
.categories-box .categories-box__item.am24-fhide { display: none !important; }
.am24-bfilter__none { margin: 4px 0 0; color: var(--am24-muted); font-size: 14px; }
.am24-bfilter__none[hidden], .am24-showall[hidden] { display: none !important; }
.categories-box.am24-filtering .am24-longlist { max-height: none; }
/* breed list as a checkbox list (links, single choice = current breed ticked) */
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link { display: flex !important; align-items: center; gap: 10px; min-height: 36px; }
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link::before {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid #B8BEC6; border-radius: 4px; background: var(--am24-surface);
}
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link:hover::before { border-color: var(--am24-accent); }
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link_active::before {
    border-color: var(--am24-accent);
    background: var(--am24-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.am24-breedbox .categories-box__item:has(.categories-box__parent-link_active) .categories-box__parent { background: none; margin: 0; padding: 0 !important; }
.am24-breedbox .categories-box__style_sidebar .categories-box__parent > div > .categories-box__parent-link { margin-left: 0 !important; }
.am24-breedbox .categories-box__parent { padding-bottom: 0 !important; }

/* ---- cards (Pets4homes): 4:3 photo, count badge bottom-right, heart in the body, 1-line title, breed, divider, Age | Sex | Price ---- */
section#listings > article.item .main-column { border-radius: var(--am24-radius); overflow: hidden; }
section#listings div.picture > span { left: auto !important; right: 8px; bottom: 8px; }
section#listings ul.card-info { position: relative; padding: 14px 16px 16px; gap: 4px; }
section#listings ul.card-info > li.am24-heart .navigation-column { position: absolute; top: 8px; right: 6px; left: auto; z-index: 3; }
section#listings.grid ul.nav-column > li.favorite { background: transparent; }
section#listings.grid ul.nav-column > li.favorite:hover { background: var(--am24-tint); }
section#listings ul.nav-column > li.favorite .icon, section#listings.grid .icon { background: var(--am24-text); }
section#listings ul.nav-column > li.favorite.remove .icon { background: var(--am24-accent); }
section#listings.grid ul.card-info > li.title a, section#listings.grid ul.card-info > li.title a.link-large, section#listings ul.card-info > li.title a:link {
    -webkit-line-clamp: 1 !important; min-height: 0 !important; max-height: 1.35em !important; font-size: 16px !important; padding-right: 36px;
    display: block !important; white-space: nowrap; text-overflow: ellipsis;
}
section#listings .am24-breed { font-size: 13px; margin: 0 0 6px !important; padding-right: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
section#listings ul.card-info > li.am24-meta {
    display: grid !important; grid-template-columns: 1fr 1fr 1.25fr; align-items: start; column-gap: 8px; row-gap: 0;
    padding-top: 10px; margin-top: 2px !important; border-top: 1px solid var(--am24-border);
}
section#listings .am24-meta .am24-meta__i { margin: 0 !important; min-width: 0; }
section#listings .am24-meta .am24-meta__age { grid-column: 1; }
section#listings .am24-meta .am24-meta__sex { grid-column: 2; }
section#listings .am24-meta .am24-meta__price { grid-column: 3; text-align: right; align-items: flex-end; }
section#listings .am24-meta__i b { font-size: 15px; }
section#listings .am24-meta__i small { font-size: 12px; }
section#listings .am24-meta__price b.price-tag { font-size: 16px; white-space: nowrap; }
section#listings .am24-snippet { font-size: 14px; color: var(--am24-text); opacity: .8; margin-top: 6px !important; }
section#listings .am24-foot { font-size: 13px; }
section#listings .am24-foot .am24-city { display: inline-flex; align-items: center; gap: 4px; }
section#listings .am24-foot .am24-city::before {
    content: ""; width: 14px; height: 14px; flex: none; background: var(--am24-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 575px) {
    section#listings .am24-foot { flex-direction: row; }
    section#listings .am24-meta__i b { font-size: 15px; }
}
/* grid: 3 columns from 1200px, 2 from 576px, 1 below; 20px gaps */
section#listings.row { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
@media (min-width: 576px) and (max-width: 1199px) {
    body[class^="large lt-"] #controller_area section#listings > article.item, body[class^="large lt-"] section#listings > article.item { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575px) {
    body[class^="large lt-"] section#listings > article.item, section#listings.grid > article.item { flex: 0 0 100%; max-width: 100%; }
}
.am24-note.is-collapsed.am24-note--fits .am24-note__guide { display: block; }
aside.left .am24-fbox > .am24-fhead { margin-bottom: 14px; }
aside.left .am24-fbox > .am24-flabel { margin-top: 0; }
section#listings article.featured div.picture > span:after { box-shadow: none !important; background-color: transparent !important; }

/* =====================================================================================================
   2026-10-20 filter restyle (owner, Pets4homes look): outline pill type buttons, breed list as a highlighted
   list (one breed = one page, no fake checkbox), rounder inputs, round slider handles, disabled Apply button
   ===================================================================================================== */

/* For sale / For adoption: separate outline pills, active one filled */
.am24-fbox .am24-typeswitch { background: none; padding: 0; gap: 8px; flex-wrap: wrap; }
.am24-fbox .am24-typeswitch a {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: var(--am24-tap); line-height: 1; padding: 0 14px; box-sizing: border-box;
    border: 2px solid var(--am24-accent); border-radius: var(--am24-radius-pill); color: var(--am24-accent) !important; font-size: 15px; font-weight: 700;
}
.am24-fbox .am24-typeswitch a:not(.active):hover { background: var(--am24-tint); }
.am24-fbox .am24-typeswitch a.active { background: var(--am24-accent); color: #fff !important; }

/* breed list: rows, current breed highlighted (replaces the checkbox look of 2026-10-12) */
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link::before { content: none; }
.am24-breedbox .categories-box__item .categories-box__parent { margin: 0 -10px 2px; padding: 0 10px !important; border-radius: 10px; }
.am24-breedbox .categories-box__item .categories-box__parent:hover { background: var(--am24-surface-2); }
.am24-breedbox .categories-box__item:has(.categories-box__parent-link_active) .categories-box__parent { background: var(--am24-tint); margin: 0 -10px 2px; padding: 0 10px !important; }
.am24-breedbox .categories-box__style_sidebar .categories-box__parent-link_active { color: var(--am24-accent) !important; font-weight: 700; }
.am24-breedbox .categories-box__item:has(.categories-box__parent-link_active) .categories-box__parent-counter { color: var(--am24-accent); font-weight: 600; }

/* inputs: rounder, a firmer border */
.am24-bfilter input, .am24-inp, .categoryFilter .search-item.two-fields input { border-radius: 10px; border: 1.5px solid var(--am24-border-strong); }
.categoryFilter .search-item.two-fields input { padding: 0 14px; font: 400 15px var(--am24-font); }
.categoryFilter .search-item.two-fields input:focus { border-color: var(--am24-accent); outline: 0; box-shadow: 0 0 0 3px var(--am24-tint); }

/* price slider: thin round track, white round handles with a green ring */
.filter-area .slider.slider-horizontal .slider-track { height: 4px; margin-top: -2px; border-radius: 2px; }
.filter-area .slider .slider-selection { border-radius: 2px; }
.filter-area .slider-handle, .filter-area .slider-handle.custom {
    width: 22px; height: 22px; top: -1px; margin-left: -11px; border-radius: 50%;
    background: var(--am24-surface) !important; border: 2px solid var(--am24-accent) !important; box-shadow: 0 1px 4px rgba(16, 24, 16, .2) !important; box-sizing: border-box;
}
.filter-area .slider-handle svg { display: none; }
.filter-area .slider-handle:focus { outline: 0; box-shadow: 0 0 0 4px var(--am24-tint) !important; }

/* Age "Apply" before anything is typed: a disabled button, not loose text (categoryFilter shows span.hide inline) */
.categoryFilter .cf-apply span.hide[style*="inline"] {
    display: flex !important; align-items: center; justify-content: center; min-height: var(--am24-tap); width: 100%; margin-top: 8px; box-sizing: border-box;
    border-radius: var(--am24-radius-pill); background: var(--am24-surface-2); color: var(--am24-muted); font-weight: 600; font-size: 14px; cursor: not-allowed;
}
