/* ==========================================================================
   Zingara category listing / search page. Scoped to body.sp. Presentation only.
   ========================================================================== */
:root { --sp-yellow: #ffb400; --sp-ink: #151515; --sp-muted: #6c675a; --sp-line: #ece6d3; --sp-cream: #faf8f2; }
body.sp { margin: 0; font-family: "Montserrat", "Inter", "Segoe UI", system-ui, sans-serif; color: var(--sp-ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.sp *, body.sp *::before, body.sp *::after { box-sizing: border-box; }
body.sp a { text-decoration: none; color: inherit; }
body.sp h1, body.sp h2, body.sp h3, body.sp p, body.sp ul { margin: 0; padding: 0; }
.sp-wrap { max-width: 1500px; margin: 0 auto; padding: 0 28px; }

/* hero */
.sp-hero { position: relative; background: #0a0a0a; color: #fff; padding: 22px 0 22px; overflow: hidden; min-height: 210px; }
.sp-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--sp-banner); background-size: cover; background-position: center; opacity: .38; }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0a 8%, rgba(10, 10, 10, .72) 45%, rgba(10, 10, 10, .25)), radial-gradient(500px 220px at 90% 10%, rgba(255, 180, 0, .22), transparent 70%); }
.sp-hero .sp-wrap { position: relative; z-index: 2; padding-left: 190px; }
.sp-crumb { font-size: .72rem; color: #d9d4c3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-crumb a:hover { color: var(--sp-yellow); } .sp-crumb i { font-size: .6rem; opacity: .6; }
.sp-badge { position: absolute; left: 36px; top: 96px; width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(135deg, #ff5a8a, #d6246e); display: grid; place-items: center; font-size: 3rem; color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); z-index: 3; overflow: hidden; }
.sp-badge img { width: 62%; height: 62%; object-fit: contain; filter: brightness(0) invert(1); }
.sp-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 10px 0 6px; text-transform: uppercase; }
.sp-hero h1 span { color: var(--sp-yellow); }
.sp-tag { font-size: 1rem; color: #f3efe2; margin-bottom: 14px; }
.sp-feats { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.sp-feat { display: flex; align-items: center; gap: 10px; font-size: .74rem; line-height: 1.25; font-weight: 600; }
.sp-feat i { width: 34px; height: 34px; border-radius: 9px; background: var(--sp-yellow); color: #111; display: grid; place-items: center; font-size: 1rem; }
.sp-feat b { display: block; color: var(--sp-yellow); font-size: .86rem; }

/* toolbar */
.sp-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 0 14px; }
.sp-select, .sp-input { height: 46px; border: 1px solid #e3dcc4; border-radius: 8px; background: #fff; font-family: inherit; font-size: .84rem; color: var(--sp-ink); }
.sp-cityb { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 700; min-width: 190px; cursor: pointer; }
.sp-cityb i { color: #111; }
.sp-search { flex: 1; min-width: 240px; position: relative; }
.sp-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8c8574; }
.sp-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid #e3dcc4; border-radius: 8px; font-family: inherit; font-size: .84rem; outline: none; }
.sp-search input:focus { border-color: var(--sp-yellow); box-shadow: 0 0 0 3px rgba(255, 180, 0, .18); }
.sp-btn { height: 46px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--sp-yellow); color: #111; font-weight: 800; font-size: .86rem; cursor: pointer; font-family: inherit; }
.sp-btn:hover { background: #ffc83d; }
.sp-sort { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; margin-left: auto; }
.sp-sort select { padding: 0 12px; min-width: 150px; }
.sp-view { display: inline-flex; border: 1px solid #e3dcc4; border-radius: 8px; overflow: hidden; }
.sp-view button { height: 46px; padding: 0 14px; border: 0; background: #fff; font-family: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.sp-view button.is-on { background: var(--sp-yellow); }

/* layout */
.sp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 24px; }
.sp-filters { position: sticky; top: 74px; border: 1px solid var(--sp-line); border-radius: 12px; padding: 16px 16px 8px; background: #fff; }
.sp-fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .sp-fhead h3 { font-size: .98rem; font-weight: 800; }
.sp-fhead a { font-size: .7rem; color: #1d6fe0; cursor: pointer; text-decoration: underline; }
.sp-fgroup { margin-bottom: 14px; } .sp-fgroup h4 { font-size: .8rem; font-weight: 800; margin: 12px 0 8px; }
.sp-fgroup label { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: #3b3a35; margin-bottom: 9px; cursor: pointer; }
.sp-fgroup input { accent-color: var(--sp-yellow); width: 15px; height: 15px; }
.sp-fgroup label i { color: var(--sp-yellow); }
.sp-geohint { font-size: .66rem; color: var(--sp-muted); background: var(--sp-cream); border: 1px dashed #e0d7b8; border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; display: none; }
.sp-geohint.show { display: block; }
.sp-geohint a { color: #1d6fe0; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* results */
.sp-title { font-size: 1.45rem; font-weight: 800; } .sp-desc { font-size: .84rem; color: var(--sp-muted); margin-top: 6px; }
.sp-count { float: right; font-size: .78rem; color: var(--sp-muted); margin-top: 6px; }
.sp-head { overflow: hidden; margin-bottom: 14px; }
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-grid.is-list { grid-template-columns: 1fr; }
.sp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ece6d3; border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); }
.sp-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #1b1b1b; overflow: hidden; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; } .sp-card:hover .sp-img img { transform: scale(1.05); }
.sp-off { position: absolute; right: 0; top: 10px; background: #e5251b; color: #fff; font-size: .7rem; font-weight: 800; padding: 5px 11px; border-radius: 4px 0 0 4px; }
.sp-bd { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sp-bd h3 { font-size: .92rem; font-weight: 800; line-height: 1.25; display: flex; align-items: center; gap: 6px; } .sp-bd h3 i { color: var(--sp-yellow); font-size: .82rem; }
.sp-cat { font-size: .7rem; color: #77725f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-meta { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; font-weight: 700; }
.sp-meta .st i { color: var(--sp-yellow); margin-right: 4px; } .sp-meta .st small { font-weight: 500; color: #8a8672; }
.sp-meta .km { color: #3b3a35; } .sp-meta .km i { margin-right: 4px; color: #111; }
.sp-addr { margin-top: 4px; font-size: .7rem; background: #f6f4ee; border-radius: 6px; padding: 8px 10px; color: #4a4638; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-grid.is-list .sp-card { flex-direction: row; } .sp-grid.is-list .sp-img { width: 260px; aspect-ratio: auto; min-height: 150px; flex: 0 0 260px; }
.sp-more { text-align: center; margin: 26px 0 6px; } .sp-more button { height: 46px; padding: 0 30px; border-radius: 8px; border: 1px solid var(--sp-yellow); background: #fff; font-weight: 800; font-family: inherit; cursor: pointer; font-size: .84rem; } .sp-more button:hover { background: var(--sp-yellow); }
.sp-empty { grid-column: 1 / -1; text-align: center; padding: 50px 10px; color: var(--sp-muted); font-size: .9rem; } .sp-empty b { display: block; color: var(--sp-ink); font-size: 1.05rem; margin-bottom: 6px; }
.sp-skel { height: 270px; border-radius: 10px; background: linear-gradient(90deg, #f1eee4 25%, #faf8f2 37%, #f1eee4 63%); background-size: 400% 100%; animation: spk 1.2s ease infinite; }
@keyframes spk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* bottom strip */
.sp-strip { background: #0a0a0a; color: #fff; }
.sp-strip .sp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; padding-top: 26px; padding-bottom: 26px; }
.sp-strip h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; text-transform: uppercase; } .sp-strip h2 span { color: var(--sp-yellow); }
.sp-strip p { font-size: .8rem; color: #cfcab8; margin-top: 4px; }
.sp-strip .go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--sp-yellow); color: #111 !important; font-weight: 800; padding: 13px 24px; border-radius: 6px; font-size: .82rem; cursor: pointer; border: 0; font-family: inherit; text-transform: uppercase; }

@media (max-width: 1280px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .sp-hero .sp-wrap { padding-left: 28px; } .sp-badge { display: none; } .sp-hero { min-height: 0; }
  .sp-body { grid-template-columns: 1fr; } .sp-filters { position: static; display: none; } .sp-filters.is-open { display: block; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-sort { margin-left: 0; width: 100%; }
}
@media (max-width: 575.98px) { .sp-wrap { padding: 0 14px; } .sp-grid { grid-template-columns: 1fr; } .sp-grid.is-list .sp-card { flex-direction: column; } .sp-grid.is-list .sp-img { width: 100%; flex: none; } .sp-cityb { min-width: 0; flex: 1; } }
.sp-fbtn { display: none; } @media (max-width: 991.98px) { .sp-fbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid #e3dcc4; border-radius: 8px; background: #fff; font-family: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; } }

/* ======================= enhancements (category listing) ======================= */
/* hero: tidy breadcrumb chips, centred category badge, gold ring */
.sp-hero { padding: 24px 0 26px; min-height: 230px; display: flex; align-items: center; }
.sp-hero .sp-wrap { width: 100%; padding-left: 196px; }
.sp-hero .sp-crumb { font-size: .76rem; margin-bottom: 4px; }
.sp-hero .sp-crumb a, .sp-hero .sp-crumb span { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.sp-hero .sp-crumb span { color: #ffb400; font-weight: 700; border-color: rgba(255, 180, 0, .4); }
.sp-hero .sp-crumb a:hover { background: rgba(255, 180, 0, .18); color: #ffb400; }
.sp-hero .sp-crumb i { color: #ffb400; opacity: 1; }
.sp-badge { top: 50%; transform: translateY(-50%); left: max(36px, calc((100vw - 1500px) / 2 + 36px)); width: 124px; height: 124px; background: #111; border: 4px solid #ffb400; color: #ffb400; box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 180, 0, .12); }
.sp-hero h1 { margin: 12px 0 6px; }
.sp-tag { margin-bottom: 18px; color: #e9e3cf; }
.sp-feats { gap: 12px 14px; }
.sp-feat { padding: 8px 14px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.sp-feat b { display: inline; margin-right: 4px; }
.sp-feat span { display: flex; flex-direction: column; }
.sp-feat span b { display: block; }

/* toolbar: one tidy panel */
.sp-bar { margin: 18px 0 16px; padding: 12px 14px; background: #faf8f2; border: 1px solid #ece6d3; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.sp-select, .sp-search input { border-color: #e3dcc4; background: #fff; }
.sp-btn { box-shadow: 0 8px 18px rgba(255, 180, 0, .3); }
.sp-view { background: #fff; }
.sp-view button.is-on { background: #111; color: #ffb400; }

/* filters */
.sp-filters { top: 96px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); border-top: 3px solid #ffb400; }
.sp-fgroup h4 { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: #6c675a; }
.sp-fgroup label:hover { color: #111; }

/* results */
.sp-title { position: relative; padding-left: 14px; }
.sp-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: #ffb400; }
.sp-count { background: #faf8f2; border: 1px solid #ece6d3; border-radius: 999px; padding: 4px 12px; }
.sp-grid { gap: 20px; }
.sp-card { border-radius: 16px; border-color: #ece6d3; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.sp-card:hover { transform: translateY(-5px); border-color: #ffb400; box-shadow: 0 18px 36px rgba(0, 0, 0, .14); }
.sp-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.sp-off { top: 14px; background: linear-gradient(135deg, #ff3d2e, #d6180d); border-radius: 0 999px 999px 0; left: 0; right: auto; padding: 6px 14px 6px 10px; box-shadow: 0 6px 14px rgba(214, 24, 13, .35); z-index: 2; }
.sp-bd { padding: 14px 16px 16px; gap: 7px; }
.sp-bd h3 { font-size: 1rem; }
.sp-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #8a7a4a; font-weight: 600; }
.sp-meta .st { display: inline-flex; align-items: center; background: #111; color: #fff; border-radius: 999px; padding: 3px 11px 3px 9px; font-size: .74rem; }
.sp-meta .st i { color: #ffb400; }
.sp-meta .km { background: #fff3cf; color: #7a5000; border-radius: 999px; padding: 3px 10px; font-size: .72rem; }
.sp-meta .km i { color: #b87900; }
.sp-addr { background: #faf8f2; border: 1px solid #f0ead8; border-radius: 10px; line-height: 1.45; }
.sp-more button { border: 2px solid #111; background: #111; color: #ffb400; border-radius: 999px; padding: 0 36px; }
.sp-more button:hover { background: #ffb400; border-color: #ffb400; color: #111; }
.sp-strip { border-top: 3px solid #ffb400; }
@media (max-width: 991.98px) { .sp-hero { min-height: 0; display: block; } .sp-hero .sp-wrap { padding-left: 28px; } .sp-feat { white-space: normal; } .sp-filters { top: auto; } }
@media (max-width: 575.98px) { .sp-hero .sp-wrap { padding-left: 14px; } .sp-bar { padding: 10px; } }
body.sp .sp-title { padding-left: 16px; }

/* Card refinements (match the design mock-up): address box with a pin, up to 3 lines; distance pill always on the right */
.sp-addr { display: flex; align-items: flex-start; gap: 8px; }
.sp-addr > i { color: #e5251b; font-size: .95rem; margin-top: 1px; flex: 0 0 auto; }
.sp-addr > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-meta { gap: 8px; }
.sp-meta .km { margin-left: auto; white-space: nowrap; }
