/* =========================================================
   Rawaj v7 — "global" theme
   Built on what the big marketplaces share: photography carries the page,
   one warm accent, generous white space, flat surfaces with one shadow tier,
   14px photo corners, pill search, calm type. Layered over app.css.
   ========================================================= */
:root {
  --accent: #F2542D;
  --accent-2: #D9431D;
  --accent-soft: #FFF1EC;
  --warm: #FFF6F0;

  --brand: #222222; --brand-ink: #111111; --brand-2: #3A3A3A; --brand-soft: #F2F2F2;
  --sun: var(--accent); --sun-ink: #FFFFFF; --sun-soft: var(--accent-soft); --coral: var(--accent);
  --night: #222222; --night-2: #2E2E2E;

  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F7F7F7;
  --ink: #222222; --ink-2: #3F3F3F; --muted: #6A6A6A; --line: #EBEBEB; --line-2: #DDDDDD;
  --danger: #C13515; --ok: #008A05;

  --font-display: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 20px;
  --shadow: 0 6px 16px rgb(0 0 0 / .12);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px rgb(0 0 0 / .05);
  --shadow-lg: 0 8px 28px rgb(0 0 0 / .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pattern: none;
  --wrap: 1400px;
}

body { background: #fff; color: var(--ink); font-size: 15px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
.wrap { padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.i--title { display: none; }

/* ---------- buttons & small parts ---------- */
.btn { border-radius: 8px; font-weight: 600; height: 46px; }
.btn--sun { background: var(--accent); color: #fff; }
.btn--sun:hover { background: var(--accent-2); }
.btn--brand, .btn--dark { background: var(--ink); color: #fff; }
.btn--brand:hover, .btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--ink); background: #fff; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-2); }
.icon-btn { border-radius: 999px; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.link-arrow { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow .i { display: none; }
.badge { background: var(--surface-2); color: var(--ink); }
.badge--sun { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .18); }
.dot-count { background: var(--accent); }
.verified { color: var(--accent); }

/* ---------- header ---------- */
.site-header { background: rgb(255 255 255 / .9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); box-shadow: none; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(0 0 0 / .2); }
.mainbar__inner { min-height: 80px; gap: 20px; }
.brand { color: var(--accent); }
.brand__mark svg { width: 36px; height: 36px; }
.brand__word { font-weight: 700; font-size: 24px; color: var(--accent); letter-spacing: -.02em; }
[dir="rtl"] .brand__word { letter-spacing: 0; }

.pill-search { flex: 1; max-width: 560px; margin-inline: auto; display: flex; align-items: center; height: 56px; padding-inline: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.pill-search:hover, .pill-search:focus-within { box-shadow: var(--shadow); }
.pill-search__seg { display: grid; align-content: center; min-width: 0; padding: 0 18px; height: 44px; border-radius: 999px; cursor: pointer; }
.pill-search__seg:hover { background: var(--surface-2); }
.pill-search__seg > span { font-size: 12px; font-weight: 600; line-height: 1.2; }
.pill-search__seg--q { flex: 1; }
.pill-search__seg input { border: 0; padding: 0; background: transparent; font-size: 14px; width: 100%; min-width: 0; outline: none; }
.pill-search__seg input::placeholder { color: var(--muted); }
.pill-search__seg input::-webkit-search-cancel-button { display: none; }
.pill-search__seg--where { position: relative; flex: none; max-width: 200px; }
.pill-search__seg--where::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.pill-search__seg--where strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-search__seg--where img { border-radius: 2px; flex: none; }
.pill-search__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.pill-search__go:hover { background: var(--accent-2); }
.pill-search__go .i { width: 18px; height: 18px; stroke-width: 2.6; }
.page-home .pill-search { visibility: hidden; }

.mainbar__actions { gap: 4px; margin-inline-start: 0; }
.post-link { padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.post-link:hover { background: var(--surface-2); }
.user-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; margin-inline-start: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); transition: box-shadow .2s; }
[dir="rtl"] .user-pill { padding: 0 14px 0 6px; }
.user-pill:hover, .dropdown.is-open .user-pill { box-shadow: var(--shadow-sm); }
.user-pill .avatar { width: 32px; height: 32px; }
.user-pill__anon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #6A6A6A; color: #fff; }
.user-pill__anon .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.dropdown__menu { min-width: 250px; padding: 8px 0; border: 0; border-radius: 14px; box-shadow: 0 2px 16px rgb(0 0 0 / .14); }
.dropdown__menu a, .dropdown__menu button { border-radius: 0; padding: 11px 18px; font-size: 14.5px; }
.dropdown__menu .i { display: none; }
.dropdown__head { padding: 8px 18px 12px; }
.dropdown__menu form { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.dropdown__admin { color: var(--accent); }

.catbar { background: transparent; border-top: 0; }
.catbar__inner { display: flex; justify-content: safe center; gap: 34px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; }
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar a { position: relative; display: grid; justify-items: center; gap: 7px; flex: none; padding: 4px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; background: none; border-radius: 0; transition: color .15s; }
.catbar a img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; opacity: .85; filter: grayscale(.25); transition: opacity .15s, filter .15s, transform .2s var(--ease); background: var(--surface-2); }
.catbar a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: transparent; }
.catbar a:hover { color: var(--ink); background: none; }
.catbar a:hover img { opacity: 1; filter: none; transform: translateY(-2px); }
.catbar a:hover::after { background: var(--line-2); }
.catbar a.is-on { color: var(--ink); }
.catbar a.is-on img { opacity: 1; filter: none; }
.catbar a.is-on::after { background: var(--ink); }

.drawer__panel > a .i { color: var(--ink); }
.drawer__country { background: var(--surface-2); }
.drawer__country small { color: var(--ink); text-decoration: underline; }

/* ---------- hero: photo slider + warm wash ---------- */
.h7 { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-height: 620px; margin-top: 20px; padding: 0; border-radius: 28px; background: #2A1A14; max-width: calc(var(--wrap) - 48px); width: calc(100% - 48px); }
.h7__media { position: absolute; inset: 0; z-index: -2; }
.h7__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s var(--ease); }
.h7__media img.is-on { opacity: 1; transform: scale(1); }
.h7__wash { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 100% 30%, rgb(255 168 92 / .55), transparent 70%),
    linear-gradient(270deg, var(--warm) 0%, rgb(255 246 240 / .97) 34%, rgb(255 246 240 / .78) 50%, rgb(255 246 240 / 0) 72%),
    linear-gradient(0deg, rgb(0 0 0 / .35), transparent 30%); }
[dir="ltr"] .h7__wash { background:
    radial-gradient(60% 90% at 0% 30%, rgb(255 168 92 / .55), transparent 70%),
    linear-gradient(90deg, var(--warm) 0%, rgb(255 246 240 / .97) 34%, rgb(255 246 240 / .78) 50%, rgb(255 246 240 / 0) 72%),
    linear-gradient(0deg, rgb(0 0 0 / .35), transparent 30%); }
.h7__content { align-self: center; max-width: 620px; padding: 64px 56px 32px; }
.h7__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.h7__eyebrow img { border-radius: 3px; }
.h7 h1 { margin: 20px 0 14px; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.2; font-weight: 700; }
.h7 h1 span { color: var(--accent); }
.h7__lead { font-size: 18px; color: #5A4A44; max-width: 44ch; margin-bottom: 28px; }
.h7__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 56px 28px; }
.h7__tab { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: start; color: var(--ink); cursor: pointer; opacity: .62; transition: opacity .25s; font: inherit; }
.h7__tab:hover, .h7__tab.is-on { opacity: 1; }
.h7__tab strong { font-size: 15px; font-weight: 700; }
.h7__tab small { font-size: 13px; color: var(--muted); }
.h7__bar { height: 3px; border-radius: 3px; background: rgb(0 0 0 / .12); overflow: hidden; margin-bottom: 6px; }
.h7__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.h7__tab.is-on .h7__bar span { width: 100%; }
.h7.is-ticking .h7__tab.is-on .h7__bar span { animation: h7bar 6s linear both; }
@keyframes h7bar { from { width: 0; } to { width: 100%; } }
/* the photo half of the tabs sits on the image: switch to white text there */
.h7__tab:nth-child(n+3) { color: #fff; }
.h7__tab:nth-child(n+3) small { color: rgb(255 255 255 / .8); }
.h7__tab:nth-child(n+3) .h7__bar { background: rgb(255 255 255 / .35); }
.h7__tab:nth-child(n+3) .h7__bar span { background: #fff; }

.bigsearch { display: flex; align-items: center; height: 68px; padding: 8px; padding-inline-start: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 16px 36px -12px rgb(120 40 10 / .3); }
.bigsearch__seg { position: relative; display: grid; align-content: center; flex: 1; min-width: 0; height: 100%; padding-inline: 22px; border-radius: 999px; cursor: pointer; }
.bigsearch__seg--q { flex: 1.5; }
.bigsearch__seg:hover { background: var(--surface-2); }
.bigsearch__seg + .bigsearch__seg::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.bigsearch__seg > span { font-size: 12px; font-weight: 700; line-height: 1.3; }
.bigsearch input, .bigsearch select { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; font-size: 14.5px; color: var(--ink); outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.bigsearch input { cursor: text; }
.bigsearch input::placeholder { color: var(--muted); }
.bigsearch select { color: var(--muted); }
.bigsearch__go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .15s; }
.bigsearch__go:hover { background: var(--accent-2); }
.bigsearch__go .i { width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- sections ---------- */
.section { margin-block: 64px; }
.section__head { align-items: center; margin-bottom: 22px; }
.section__head h2 { font-size: 26px; font-weight: 700; margin-inline-end: auto; }
.rail-nav { display: inline-flex; gap: 8px; }
.rail-nav__btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.rail-nav__btn:hover { box-shadow: var(--shadow-sm); transform: scale(1.05); }

/* category bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px; gap: 16px; }
.bento__tile { position: relative; overflow: hidden; display: block; border-radius: 20px; background: var(--surface-2); color: #fff; isolation: isolate; }
.bento__tile--1 { grid-column: span 2; grid-row: span 2; }
.bento__tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .62), rgb(0 0 0 / 0) 55%); }
.bento__tile:hover img { transform: scale(1.06); }
.bento__text { position: absolute; inset-inline-start: 22px; bottom: 20px; display: grid; line-height: 1.3; }
.bento__text strong { font-size: 20px; font-weight: 700; }
.bento__tile--1 .bento__text strong { font-size: 32px; }
.bento__text small { font-size: 14px; color: rgb(255 255 255 / .85); }
.bento__go { position: absolute; inset-inline-end: 18px; bottom: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); transform: translateY(8px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.bento__tile:hover .bento__go { transform: none; opacity: 1; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
[dir="rtl"] .cat-chips a { padding: 6px 6px 6px 16px; }
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cat-chips small { color: var(--muted); font-weight: 400; }

/* ---------- listing cards (1:1 photo, Airbnb meta) ---------- */
.card { border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
.card:hover { box-shadow: none; transform: none; }
.card--featured { border: 0; box-shadow: none; }
.card__media { margin: 0; border-radius: 14px; aspect-ratio: 1 / 1; background: var(--surface-2); }
.card__media img { transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { top: 12px; inset-inline-start: 12px; }
.card__badge.badge--sun { padding: 4px 11px; font-size: 12.5px; }
.card__badge.badge--dark { background: var(--ink); }
.card__count { bottom: 10px; inset-inline-start: auto; inset-inline-end: 10px; background: rgb(0 0 0 / .55); border-radius: 999px; padding: 2px 9px; }
.card__fav-form { top: 10px; inset-inline-end: 10px; z-index: 3; }
.card__fav { width: 34px; height: 34px; background: transparent; box-shadow: none; color: #fff; }
.card__fav .i { width: 24px; height: 24px; fill: rgb(0 0 0 / .5); stroke: #fff; stroke-width: 2; transition: transform .15s; }
.card__fav:hover { color: #fff; }
.card__fav:hover .i { transform: scale(1.1); }
.card__fav.is-on .i { fill: var(--accent); stroke: #fff; }
.card__body { padding: 12px 2px 0; gap: 2px; flex: 1; align-content: start; }
.card__title { font-weight: 600; font-size: 15px; color: var(--ink); min-height: 0; -webkit-line-clamp: 1; line-height: 1.4; }
.card__title a:hover { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { display: flex; justify-content: start; gap: 0; margin: 0; padding: 0; border: 0; font-size: 14px; color: var(--muted); }
.card__meta span + span::before { content: "·"; margin-inline: 6px; }
.card__specs { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__specs span { padding: 0; background: none; box-shadow: none; font-size: inherit; font-weight: 400; color: inherit; }
.card__specs span + span::before { content: "·"; margin-inline: 6px; }
.card__price { margin-top: 6px; font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; white-space: nowrap; }
.card__price small { padding: 0; background: none; font-weight: 400; font-size: 14px; color: var(--muted); }
.card__placeholder { border-radius: 14px; background: var(--surface-2); color: #B0B0B0; background-image: none; }

.rail { grid-auto-columns: calc((100% - 4 * 24px) / 5); gap: 24px; padding: 0; margin: 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 40px 24px; }

/* stores */
.store-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; }
.store-chip { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.store-chip:hover { box-shadow: var(--shadow); border-color: transparent; }
.store-logo--chip { width: 56px; height: 56px; border-radius: 50%; font-size: 20px; box-shadow: none; border: 0; margin: 0; background: var(--accent-soft); color: var(--accent-2); }
.store-chip__text { display: grid; min-width: 0; }
.store-chip__text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-chip__text small { color: var(--muted); }

/* how it works (warm, light) */
.how { position: relative; isolation: isolate; overflow: hidden; padding: 56px; border-radius: 28px; background: var(--warm); }
.how::before { content: ""; position: absolute; inset: -20%; z-index: -1; filter: blur(80px); opacity: .5; background: radial-gradient(30% 40% at 15% 20%, rgb(255 168 92), transparent 70%), radial-gradient(30% 40% at 85% 30%, rgb(255 105 140 / .7), transparent 70%); }
.how__head { text-align: center; margin-bottom: 36px; }
.how__kicker { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--accent-2); font-size: 13px; font-weight: 600; }
.how__head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.how__steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 28px; border-radius: 20px; background: #fff; counter-increment: step; transition: transform .3s var(--ease), box-shadow .3s; }
.how__steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.how__steps li::after { content: counter(step, decimal-leading-zero); position: absolute; top: 22px; inset-inline-end: 24px; font-size: 40px; font-weight: 700; line-height: 1; color: rgb(242 84 45 / .14); }
.how__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--accent); color: #fff; }
.how__icon .i { width: 26px; height: 26px; }
.how__steps strong { font-size: 18px; font-weight: 700; }
.how__steps span:not(.how__icon) { color: var(--ink-2); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; padding-top: 28px; border-top: 1px solid rgb(0 0 0 / .08); text-align: center; }
.stats > div { display: flex; flex-direction: column; gap: 2px; }
.stats > div + div { border-inline-start: 1px solid rgb(0 0 0 / .08); }
.stats dt { order: 2; color: var(--ink-2); font-size: 14px; }
.stats dd { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* promo pair (photo cards) */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo { position: relative; display: flex; align-items: flex-end; min-height: 380px; padding: 32px; border-radius: 24px; overflow: hidden; color: #fff; background: #333; isolation: isolate; }
.promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .7), rgb(0 0 0 / .05) 65%); }
.promo:hover .promo__bg { transform: scale(1.05); }
.promo__text { display: grid; gap: 10px; justify-items: start; }
.promo__text strong { font-size: 28px; font-weight: 700; line-height: 1.25; max-width: 18ch; }
.promo__text > span:not(.btn) { opacity: .92; max-width: 40ch; }
.promo__text .btn { margin-top: 8px; }

.banner { border-radius: 20px; background-image: none; }
.banner .btn--sun { background: #fff; color: var(--ink); }

/* ---------- results page ---------- */
.results-head h1 { font-size: 28px; font-weight: 700; }
.results-head--cat { position: relative; isolation: isolate; overflow: hidden; align-items: center; justify-content: flex-start; gap: 24px; margin-block: 6px 18px; padding: 22px 26px; border-radius: 24px; background: var(--warm); }
.results-head--cat::before { content: ""; position: absolute; inset: -40%; z-index: -1; filter: blur(30px); background: radial-gradient(35% 60% at 15% 30%, rgb(255 168 92 / .55), transparent 70%), radial-gradient(35% 60% at 85% 80%, rgb(242 84 45 / .25), transparent 70%); }
.results-head__img { flex: none; width: 88px; height: 88px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 4px rgb(255 255 255 / .85); }
.results-head__img img { width: 100%; height: 100%; object-fit: cover; }
.results-head--cat .results-head__title { margin-inline-end: auto; }
.results-head--cat .sort-form .btn--ghost, .results-head--cat .sort-form select { background: rgb(255 255 255 / .9); }
.filters__form { border: 1px solid var(--line-2); border-radius: 16px; box-shadow: none; }
.chip { border-radius: 999px; border-color: var(--line-2); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); }

/* ---------- listing page ---------- */
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ad-top .ad__headline { margin-block: 8px 20px; }
.ad__headline h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.ad__meta { font-size: 14.5px; color: var(--ink-2); }
.ad__meta .i { color: var(--muted); }
.gallery { position: relative; }
.gallery__stage { border-radius: 16px; background: var(--surface-2); box-shadow: none; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; }
.gallery__stage img { object-fit: cover; }
.gallery__nav { width: 38px; height: 38px; background: rgb(255 255 255 / .94); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.gallery__counter { border-radius: 999px; background: rgb(0 0 0 / .6); }
.gallery__thumbs button { position: relative; border-radius: 10px; width: 92px; height: 70px; border: 0; opacity: 1; }
.gallery__thumbs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / 0); transition: background .2s; }
.gallery__thumbs button:hover::after { background: rgb(0 0 0 / .12); }
.gallery__thumbs button.is-active { box-shadow: inset 0 0 0 2px var(--ink); }
.gallery__more { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgb(0 0 0 / .45); color: #fff; font-weight: 700; font-size: 20px; }
@media (min-width: 901px) {
  .gallery:has(.gallery__thumbs) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: 480px; border-radius: 18px; overflow: hidden; }
  .gallery:has(.gallery__thumbs) .gallery__stage { aspect-ratio: auto; height: 100%; max-height: none; border-radius: 0; }
  .gallery__thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; margin: 0; overflow: hidden; }
  .gallery__thumbs button { width: auto; height: auto; border-radius: 0; }
  .gallery__thumbs button.is-active { box-shadow: none; }
  .gallery__thumbs button:first-child, .gallery__thumbs button:nth-child(n+6) { display: none; }
  .gallery__thumbs:not(:has(button:nth-child(4))) { grid-template-columns: 1fr; }
  .gallery:has(.gallery__thumbs:not(:has(button:nth-child(4)))) { grid-template-columns: 2fr 1fr; }
  .gallery:has(.gallery__thumbs:not(:has(button:nth-child(3)))) { grid-template-columns: 1fr 1fr; }
}
.ad { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-block: 32px 24px; }
.ad__side { top: 200px; }
.ad__section-title { font-size: 22px; margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; margin-bottom: 28px; background: none; border: 0; border-block: 1px solid var(--line); border-radius: 0; padding-block: 12px; }
.specs > div { background: none; padding: 12px 0; }
.specs dt { font-size: 13.5px; }
.specs dd { font-size: 15.5px; }
.ad__desc { padding-block: 8px 28px; border-bottom: 1px solid var(--line); }
.ad__desc h2 { font-size: 22px; }
.ad__desc .prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.safety { border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.safety > .i { color: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.price-panel { border-color: var(--line-2); box-shadow: var(--shadow); padding: 24px; }
.price-panel__price { margin: 0; padding: 0; background: none; color: var(--ink); font-size: 28px; font-weight: 700; }
.price-panel .stack { margin-top: 20px; }
.price-panel .btn--sun { height: 52px; font-size: 16px; }
.price-panel .btn--brand { height: 50px; background: #fff; color: var(--ink); border-color: var(--ink); }
.price-panel .btn--brand:hover { background: var(--surface-2); }
.quick-msg textarea { border-radius: 8px; border-color: var(--line-2); }
.tool-btn { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.seller { border-radius: 14px; padding: 20px; }
.seller:hover { border-color: var(--ink); }
.seller__store { color: var(--ink); }
.ad-bar { display: none; }

/* ---------- forms ---------- */
.field input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]), .field select, .field textarea { border-radius: 8px; border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 1px var(--ink); outline: none; }
.step { border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.step__title > span { background: var(--ink); color: #fff; }
.cat-picker__root { border-radius: 12px; }

/* ---------- country picker ---------- */
.gate { background: #fff; background-image: none; color: var(--ink); padding-block: 56px 72px; }
.gate h1 { font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); color: var(--ink); }
.gate .lead { color: var(--muted); font-size: 18px; }
.gate__grid { gap: 16px; }
.gate-country { border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.gate-country:hover { background: #fff; box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.gate-country__count { color: var(--muted); opacity: 1; }
.pillar { border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }

/* ---------- account / misc ---------- */
.acct-nav, .mine__row, .search-row, .pay-row, .alerts, .inbox, .profile-head { border: 1px solid var(--line); box-shadow: none; }
.acct-nav, .profile-head, .inbox { border-radius: 16px; }
.store-hero { background-color: #2A1A14; background-image: radial-gradient(800px 400px at 85% 0%, rgb(242 84 45 / .45), transparent 60%); }
.store-card__cover { background-color: #2A1A14; background-image: radial-gradient(400px 200px at 80% 0%, rgb(242 84 45 / .55), transparent 70%); }
.auth { background: var(--surface-2); background-image: none; }
.auth__card { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth__switch a, .auth .stack-form a, .auth__forgot { color: var(--ink); }
.thread__ad { color: var(--ink-2); }
.profile-head__stats dd { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #fff; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 96px; }
body:has(.footer-cta) .site-footer { border-top: 0; }
.site-footer::before { content: none; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: -40px; margin-bottom: 8px; padding: 40px 48px; border-radius: 24px; color: #fff; background: var(--accent); box-shadow: 0 24px 50px -24px rgb(194 49 15 / .55); }
.footer-cta__text { display: grid; gap: 6px; }
.footer-cta__text strong { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; }
.footer-cta__text span { opacity: .92; max-width: 52ch; }
.footer-cta .btn { flex: none; color: var(--accent-2); }
.footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.footer__grid h3 { color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.footer__about { display: grid; gap: 14px; align-content: start; }
.footer__about p { color: var(--muted); max-width: 34ch; }
.footer__about .brand__word { font-size: 24px; }
.footer__contact { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.footer__contact .i { color: var(--accent); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col a { color: var(--ink-2); width: fit-content; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__safety { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.footer__safety .i { color: var(--accent); flex: none; }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.footer__social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--ink-2); }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }

/* ---------- motion: gentle reveal on scroll ---------- */
.motion-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion-on .reveal.is-in { opacity: 1; transform: none; }
.motion-on .reveal :is(.card, .bento__tile, .how__steps li, .store-chip, .promo) { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), box-shadow .25s; }
.motion-on .reveal.is-in :is(.card, .bento__tile, .how__steps li, .store-chip, .promo) { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .rail { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
}
@media (max-width: 1100px) {
  .post-link { display: none; }
  .h7__content { max-width: 560px; padding: 48px 40px 24px; }
  .h7__tabs { padding: 0 40px 24px; }
  .bento { grid-template-rows: 210px 210px; }
  .ad { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 900px) {
  .wrap { padding-inline: 20px; }
  .mainbar__menu { display: inline-grid; }
  .mainbar__inner { flex-wrap: wrap; gap: 10px; min-height: 0; padding-block: 12px 10px; }
  .mainbar__actions { margin-inline-start: auto; }
  .pill-search { order: 5; flex-basis: 100%; max-width: none; height: 52px; }
  .page-home .pill-search { display: none; }
  .catbar__inner { justify-content: flex-start; gap: 24px; }
  .h7 { width: calc(100% - 32px); min-height: 0; }
  .h7__wash { background: linear-gradient(0deg, var(--warm) 0%, rgb(255 246 240 / .96) 55%, rgb(255 246 240 / .4) 78%, rgb(255 246 240 / 0) 100%) !important; }
  .h7__content { padding: 180px 22px 20px; max-width: none; }
  .h7__tabs { grid-template-columns: repeat(4, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; padding: 0 22px 22px; gap: 14px; }
  .h7__tab:nth-child(n+3) { color: var(--ink); }
  .h7__tab:nth-child(n+3) small { color: var(--muted); }
  .h7__tab:nth-child(n+3) .h7__bar { background: rgb(0 0 0 / .12); }
  .h7__tab:nth-child(n+3) .h7__bar span { background: var(--accent); }
  .bigsearch { flex-wrap: wrap; height: auto; border-radius: 22px; padding: 8px; gap: 4px; }
  .bigsearch__seg { flex: 1 1 40%; height: 58px; border-radius: 14px; padding-inline: 16px; background: var(--surface-2); }
  .bigsearch__seg--q { flex-basis: 100%; }
  .bigsearch__seg + .bigsearch__seg::before { display: none; }
  .bigsearch__go { flex-basis: 100%; justify-content: center; border-radius: 14px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 260px repeat(2, 180px); }
  .bento__tile--1 { grid-column: span 2; grid-row: span 1; }
  .bento__tile:nth-child(n+6) { display: none; }
  .rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
  .how { padding: 36px 22px; }
  .how__steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stats > div:nth-child(3) { border-inline-start: 0; }
  .promo-pair { grid-template-columns: 1fr; }
  .ad { grid-template-columns: 1fr; gap: 24px; }
  .ad__side { position: static; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ad-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
  .ad-bar__price { display: grid; line-height: 1.3; min-width: 0; }
  .ad-bar__price strong { font-size: 17px; font-weight: 700; }
  .ad-bar__price small { color: var(--muted); font-size: 13px; }
  .ad-bar .btn { height: 48px; padding-inline: 22px; }
  body:has(.ad-bar) .site-footer { padding-bottom: 76px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .brand__word { font-size: 21px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .user-pill { padding: 0 4px 0 10px; height: 40px; gap: 6px; }
  [dir="rtl"] .user-pill { padding: 0 10px 0 4px; }
  .h7 { width: calc(100% - 20px); margin-top: 10px; border-radius: 22px; }
  .h7__content { padding-top: 150px; }
  .h7 h1 { font-size: 34px; }
  .h7__lead { font-size: 16px; margin-bottom: 20px; }
  .section { margin-block: 44px; }
  .section__head h2 { font-size: 21px; }
  .rail-nav { display: none; }
  .rail { grid-auto-columns: 72%; gap: 14px; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card__title, .card__price { font-size: 14.5px; }
  .card__meta, .card__specs { font-size: 13px; }
  .bento { grid-template-rows: 220px repeat(2, 150px); gap: 10px; }
  .bento__text strong { font-size: 16px; }
  .bento__tile--1 .bento__text strong { font-size: 24px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cat-chips a { flex: none; }
  .promo { min-height: 300px; padding: 24px; }
  .promo__text strong { font-size: 23px; }
  .store-rail { grid-auto-columns: 82%; }
  .how { width: calc(100% - 32px); border-radius: 22px; }
  .gallery__stage { aspect-ratio: 4 / 3; margin-inline: -16px; width: calc(100% + 32px); border-radius: 0; }
  .results-head--cat { padding: 18px; gap: 14px; flex-wrap: wrap; border-radius: 20px; }
  .results-head__img { width: 64px; height: 64px; border-radius: 16px; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .h7__media img, .bento__tile img, .promo__bg, .card__media img { transition: none; transform: none; }
}
.banner__art span:nth-child(2) { background: #fff; opacity: .9; }
@media (max-width: 900px) {
  .h7__wash { background: linear-gradient(0deg, var(--warm) 0%, rgb(255 246 240 / .97) 50%, rgb(255 246 240 / .6) 62%, rgb(255 246 240 / 0) 74%) !important; }
  .h7__content { padding-top: 230px; }
}

/* =========================================================
   v8 hero — full-bleed photo (slow crossfade), centred headline,
   white search card with category tabs (the classic global-classifieds pattern)
   ========================================================= */
.h8 { position: relative; isolation: isolate; overflow: hidden; min-height: 580px; display: grid; align-items: center; color: #fff; background: #1B1411; }
.h8__media { position: absolute; inset: 0; z-index: -2; }
.h8__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s linear; }
.h8__media img.is-on { opacity: 1; transform: scale(1); }
.h8__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 6 4 / .55) 0%, rgb(10 6 4 / .35) 40%, rgb(10 6 4 / .6) 100%), radial-gradient(70% 60% at 50% 45%, rgb(10 6 4 / .25), transparent 70%); }
.h8__content { display: grid; justify-items: center; text-align: center; padding-block: 72px 88px; }
.h8 h1 { margin: 0; max-width: 18ch; font-size: clamp(36px, 5vw, 64px); line-height: 1.2; font-weight: 700; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.h8 h1 span { color: #FFB089; }
.h8__lead { margin: 14px 0 32px; font-size: 18px; color: rgb(255 255 255 / .88); }

.h8-search { width: min(880px, 100%); text-align: start; }
.h8-search__tabs { display: flex; gap: 4px; padding-inline: 18px; overflow-x: auto; scrollbar-width: none; }
.h8-search__tabs button { flex: none; padding: 11px 18px; border: 0; border-radius: 14px 14px 0 0; background: rgb(0 0 0 / .38); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s, color .15s; }
.h8-search__tabs button:hover { background: rgb(0 0 0 / .55); }
.h8-search__tabs button.is-on { background: #fff; color: var(--ink); }
.h8-search__row { display: flex; gap: 10px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.h8-search__field { position: relative; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 58px; padding-inline: 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.h8-search__field--q { flex: 2.2; }
.h8-search__field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.h8-search__field input, .h8-search__field select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15.5px; color: var(--ink); outline: none; appearance: none; cursor: pointer; }
.h8-search__field input { cursor: text; }
.h8-search__field input::placeholder { color: var(--muted); }
.h8-search__go { flex: none; height: 58px; padding: 0 34px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.h8-search__go:hover { background: var(--accent-2); }
.h8__popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14px; color: rgb(255 255 255 / .8); }
.h8__popular span { align-self: center; margin-inline-end: 4px; }
.h8__popular a { padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s; }
.h8__popular a:hover { background: rgb(255 255 255 / .26); }
.h8__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.h8__dots .h7__tab { width: 44px; opacity: 1; padding: 6px 0; }
.h8__dots .h7__bar { margin: 0; height: 3px; background: rgb(255 255 255 / .35); }
.h8__dots .h7__bar span { background: #fff; }
.h8__dots .h7__tab:not(.is-on) .h7__bar span { width: 0; }
@media (max-width: 700px) {
  .h8 { min-height: 0; }
  .h8__content { padding-block: 44px 64px; }
  .h8 h1 { font-size: 32px; }
  .h8__lead { font-size: 15px; margin-bottom: 22px; }
  .h8-search__tabs { padding-inline: 10px; }
  .h8-search__tabs button { padding: 9px 14px; font-size: 13.5px; }
  .h8-search__row { flex-wrap: wrap; padding: 10px; border-radius: 18px; }
  .h8-search__field, .h8-search__field--q { flex: 1 1 100%; height: 54px; }
  .h8-search__go { flex: 1 1 100%; height: 54px; }
}
.h8 { grid-template-columns: minmax(0, 1fr); }
.h8__content { grid-template-columns: minmax(0, 1fr); width: 100%; }
.h8__content > * { min-width: 0; max-width: 100%; }
.h8 h1 { justify-self: center; }
.h8-search { justify-self: center; }

/* =========================================================
   v8 — regional-marketplace structure
   One strong photo hero with a tabbed search card, a category directory
   with sub-categories, price-first listing cards. No slider.
   ========================================================= */
.page-home .pill-search { visibility: hidden; }
.h8 { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #3A1F14, #1B1210 60%, #2A1A14); color: #fff; }
.h8__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.h8::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 8 6 / .55) 0%, rgb(15 8 6 / .35) 45%, rgb(15 8 6 / .7) 100%); }
.h8__inner { display: grid; justify-items: center; text-align: center; padding-block: 88px 64px; }
.h8 h1 { margin: 0 0 12px; color: #fff; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; line-height: 1.25; text-shadow: 0 2px 20px rgb(0 0 0 / .35); }
.h8__lead { margin: 0 0 32px; color: rgb(255 255 255 / .88); font-size: 18px; max-width: 60ch; }

.sbox { width: min(920px, 100%); padding: 10px; border-radius: 22px; background: #fff; color: var(--ink); text-align: start; box-shadow: 0 30px 70px -25px rgb(0 0 0 / .6); }
.sbox__tabs { display: flex; gap: 4px; padding: 4px 4px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.sbox__tabs::-webkit-scrollbar { display: none; }
.sbox__tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.sbox__tabs button:hover { background: var(--surface-2); color: var(--ink); }
.sbox__tabs button.is-on { background: var(--accent-soft); color: var(--accent-2); }
.sbox__tabs .i { width: 18px; height: 18px; }
.sbox__row { display: flex; gap: 10px; padding-top: 10px; }
.sbox__field { position: relative; display: flex; align-items: center; height: 56px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sbox__field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sbox__field .i { position: absolute; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.sbox__field input, .sbox__field select { width: 100%; height: 100%; padding-inline: 48px 16px; border: 0; background: transparent; font-size: 15.5px; color: var(--ink); outline: none; appearance: none; cursor: pointer; }
.sbox__field input { cursor: text; }
.sbox__field--q { flex: 1; }
.sbox__field--city { flex: 0 0 230px; }
.sbox__go { flex: none; height: 56px; padding: 0 34px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.sbox__go:hover { background: var(--accent-2); }
.h8__popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 14px; color: rgb(255 255 255 / .8); }
.h8__popular a { padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s; }
.h8__popular a:hover { background: rgb(255 255 255 / .26); }

.catdir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.catdir__item { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .25s, border-color .25s; }
.catdir__item:hover { box-shadow: var(--shadow); border-color: transparent; }
.catdir__head { display: flex; align-items: center; gap: 14px; }
.catdir__img { flex: none; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.catdir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.catdir__item:hover .catdir__img img { transform: scale(1.08); }
.catdir__title { display: grid; line-height: 1.35; min-width: 0; }
.catdir__title strong { font-size: 16px; font-weight: 700; }
.catdir__title small { font-size: 13.5px; color: var(--muted); }
.catdir__subs { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.catdir__subs a { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catdir__subs a:hover { color: var(--accent-2); text-decoration: underline; }

/* price-first cards with classic 4:3 photos */
.card__media { aspect-ratio: 4 / 3; }
.card__body { display: flex; flex-direction: column; }
.card__price { order: -1; margin: 0 0 2px; font-size: 18px; }
.card__title { font-weight: 500; }

@media (max-width: 1100px) { .catdir { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .h8__inner { padding-block: 56px 40px; }
  .sbox__row { flex-wrap: wrap; }
  .sbox__field--q { flex-basis: 100%; }
  .sbox__field--city { flex: 1; }
  .catdir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .h8 h1 { font-size: 30px; }
  .h8__lead { font-size: 15.5px; margin-bottom: 22px; }
  .sbox { padding: 8px; border-radius: 18px; }
  .sbox__go { flex: 1 1 100%; }
  .catdir { grid-template-columns: 1fr; gap: 10px; }
  .catdir__item { padding: 14px; }
  .card__price { font-size: 16px; }
}
