/* Ads4AE design system (shared by all redesigned pages). Scoped to body.a4 and a4- components.
   Mobile-first. No icon fonts: all icons are inline SVG. */

.a4 {
  --blue: #2563eb; --blue-ink: #1d4ed8; --blue-soft: #eff4ff;
  --orange: #c2410c; --orange-ink: #9a3412;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f8fafc;
  --navy: #0f172a;
  --r: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.a4 *, .a4 *::before, .a4 *::after { box-sizing: border-box; }
.a4 h1, .a4 h2, .a4 h3 { margin: 0; font-family: var(--font); color: var(--ink); text-transform: none; letter-spacing: -0.01em; line-height: 1.2; }
.a4 p { margin: 0; }
.a4 ul, .a4 ol { list-style: none; margin: 0; padding: 0; }
.a4 a { color: inherit; text-decoration: none; }
.a4 img { max-width: 100%; height: auto; display: block; }
.a4 :focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; border-radius: 6px; }
.a4 [hidden] { display: none !important; }
.a4 fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.a4-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a4-skip { position: absolute; top: 8px; left: 12px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.a4-skip:focus { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; }
.a4-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.a4-ico { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.a4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; font: 700 16px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color .15s ease; }
.a4-btn--cta { background: var(--orange); color: #fff !important; }
.a4-btn--cta:hover, .a4-btn--cta:focus-visible { background: var(--orange-ink); }
.a4-btn--compact { min-height: 40px; padding: 0 14px; font-size: 15px; }

/* Header */
.a4-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); } /* no backdrop-filter: it would trap the fixed phone menu inside the header */
.a4-header-top { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.a4-wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue) !important; }
.a4-wordmark--light { color: #fff !important; }
.a4-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.a4-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.a4-link:hover { background: var(--soft); }

.a4-dd { position: relative; }
.a4-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; background: var(--bg); }
.a4-dd > summary::-webkit-details-marker { display: none; }
.a4-dd > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.a4-dd > ul { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 220px; max-height: 60vh; overflow: auto; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.12); }
.a4-dd--lang > ul { left: auto; right: 0; }
.a4-dd > ul a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.a4-dd > ul a:hover { background: var(--blue-soft); color: var(--blue); }
.a4-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 18px; padding: 0 3px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.a4-dd--lang > summary { border-color: transparent; }

.a4-catnav { overflow-x: auto; scrollbar-width: none; }
.a4-catnav::-webkit-scrollbar { display: none; }
.a4-catnav ul { display: flex; gap: 4px; padding-bottom: 8px; }
.a4-catnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.a4-catnav a:hover { background: var(--blue-soft); color: var(--blue); }
.a4-catnav .a4-ico { width: 18px; height: 18px; color: var(--muted); }

@media (max-width: 599px) {
  .a4-dd--country summary { font-size: 0; gap: 0; padding: 0 8px; }
  .a4-dd--country summary .a4-flag { font-size: 11px; }
  .a4-dd--lang summary { font-size: 0; gap: 0; padding: 0 8px; }
  .a4-dd--lang summary::after, .a4-dd--country summary::after { display: none; }
  .a4-btn--compact { padding: 0 12px; font-size: 14px; }
  .a4-wordmark { font-size: 22px; }
}

/* Hero */
.a4-hero { position: relative; overflow: hidden; padding: 40px 0 36px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.10) 0 120px, transparent 121px), radial-gradient(circle at 0% 100%, rgba(255,255,255,.07) 0 140px, transparent 141px), linear-gradient(135deg, #2563eb 0%, #1e40af 55%, #312e81 100%); }
.a4-hero-inner { text-align: center; }
.a4-hero h1 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.a4-hero h1 span { background: linear-gradient(90deg, #fb923c, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a4-hero .a4-lead { max-width: 620px; margin: 10px auto 22px; font-size: 16px; color: #dbe6ff; }

.a4-search { max-width: 960px; margin: 0 auto; padding: 10px; background: var(--bg); border-radius: 16px; text-align: left; box-shadow: 0 18px 40px rgba(15,23,42,.25); }
.a4-tabs { display: flex; gap: 6px; padding: 2px 2px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.a4-tabs::-webkit-scrollbar { display: none; }
.a4-tab { position: relative; flex-shrink: 0; }
.a4-tab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a4-tab > span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.a4-tab > span .a4-ico { width: 16px; height: 16px; }
.a4-tab:hover > span { background: var(--soft); }
.a4-tab input:checked + span { background: var(--blue); color: #fff; }
.a4-tab input:focus-visible + span { outline: 3px solid #fbbf24; outline-offset: 2px; }
.a4-tab--more select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.a4-tab--more input:checked ~ select { border-color: var(--blue); color: var(--blue); }

.a4-search-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
.a4-search-city, .a4-search-kw { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); }
.a4-search-city:focus-within, .a4-search-kw:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.a4-search-city select, .a4-search-kw input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--font); outline: none; }
.a4-search-city select { cursor: pointer; }
.a4-search-btn { min-height: 52px; font-size: 17px; border-radius: 12px; }

.a4-stats { display: flex; justify-content: center; gap: 36px; margin: 26px 0 0; }
.a4-stats div { display: flex; flex-direction: column-reverse; align-items: center; }
.a4-stats dd { margin: 0; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.a4-stats dt { font-size: 14px; color: #c7d6ff; }

@media (min-width: 720px) {
  .a4-hero { padding: 64px 0 56px; }
  .a4-hero h1 { font-size: 48px; }
  .a4-hero .a4-lead { font-size: 19px; }
  .a4-search { padding: 14px; }
  .a4-search-row { grid-template-columns: 220px 1fr auto; gap: 0; border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-top: 12px; overflow: hidden; }
  .a4-search-row .a4-search-city, .a4-search-row .a4-search-kw { border: 0; border-radius: 0; box-shadow: none !important; }
  .a4-search-row .a4-search-city { border-right: 1px solid var(--line); }
  .a4-search-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
  .a4-search-btn { border-radius: 0; padding: 0 30px; }
  .a4-stats { gap: 64px; }
  .a4-stats dd { font-size: 32px; }
}
@media (min-width: 1100px) { .a4-hero h1 { font-size: 58px; } }

/* Sections */
.a4-section { padding: 44px 0; }
.a4-section--alt { background: var(--soft); }
.a4-section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.a4-section-head--center { justify-content: center; text-align: center; }
.a4-section-head h2 { font-size: 24px; font-weight: 800; }
.a4-section-head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.a4-more { font-weight: 700; color: var(--blue) !important; white-space: nowrap; }
.a4-more:hover { text-decoration: underline; }
.a4-empty { color: var(--muted); }
.a4-empty a { color: var(--blue); font-weight: 700; }
@media (min-width: 720px) { .a4-section { padding: 60px 0; } .a4-section-head h2 { font-size: 28px; } }

/* Tones for icons and placeholders (soft, accessible) */
.a4-tone-0 { --tone: #2563eb; --tone-bg: #eff4ff; }
.a4-tone-1 { --tone: #059669; --tone-bg: #ecfdf5; }
.a4-tone-2 { --tone: #7c3aed; --tone-bg: #f5f3ff; }
.a4-tone-3 { --tone: #0891b2; --tone-bg: #ecfeff; }
.a4-tone-4 { --tone: #db2777; --tone-bg: #fdf2f8; }
.a4-tone-5 { --tone: #d97706; --tone-bg: #fffbeb; }

/* Category cards */
.a4-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a4-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 132px; padding: 18px 10px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.a4-cat:hover, .a4-cat:focus-visible { border-color: var(--tone); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.a4-cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tone-bg); color: var(--tone); }
.a4-cat-ico .a4-ico { width: 26px; height: 26px; }
.a4-cat-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.a4-cat-count { font-size: 13px; color: var(--muted); }
@media (min-width: 600px) { .a4-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .a4-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }

/* Listing cards */
.a4-ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a4-ad { min-width: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .15s ease, transform .15s ease; }
.a4-ad:hover, .a4-ad:focus-visible { box-shadow: 0 10px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.a4-ad-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #e2e8f0; overflow: hidden; }
.a4-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.a4-ad-img--ph { flex-direction: column; gap: 8px; background: linear-gradient(135deg, var(--tone-bg), #fff); color: var(--tone); }
.a4-ad-img--ph .a4-ico { width: 44px; height: 44px; }
.a4-ad-ph-label { max-width: 90%; font-size: 13px; font-weight: 700; text-align: center; color: var(--tone); }
.a4-ad-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px; }
.a4-ad-price { font-size: 17px; font-weight: 800; color: var(--blue); }
.a4-ad-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.a4-ad-meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.a4-ad-meta .a4-ico { width: 14px; height: 14px; }
.a4-ad-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.a4-ad-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a4-ad-foot span:last-child { white-space: nowrap; }
@media (min-width: 720px) { .a4-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .a4-ad-body { padding: 14px; } }
@media (min-width: 1040px) { .a4-ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* City cards */
.a4-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a4-city { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 108px; padding: 16px; overflow: hidden; border-radius: var(--r); color: #fff !important; transition: transform .15s ease; }
.a4-city::after { content: ""; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.14); }
.a4-city:hover, .a4-city:focus-visible { transform: translateY(-2px); }
.a4-city strong { position: relative; z-index: 1; font-size: 18px; font-weight: 800; }
.a4-city span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255,255,255,.88); }
.a4-city .a4-ico { width: 14px; height: 14px; }
.a4-grad-0 { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.a4-grad-1 { background: linear-gradient(135deg, #0d9488, #059669); }
.a4-grad-2 { background: linear-gradient(135deg, #7c3aed, #a21caf); }
.a4-grad-3 { background: linear-gradient(135deg, #ea580c, #db2777); }
.a4-grad-4 { background: linear-gradient(135deg, #0891b2, #2563eb); }
.a4-grad-5 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.a4-grad-6 { background: linear-gradient(135deg, #059669, #0891b2); }
.a4-grad-7 { background: linear-gradient(135deg, #be123c, #ea580c); }
@media (min-width: 720px) { .a4-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .a4-city { min-height: 128px; } }

/* Countries */
.a4-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a4-country { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s ease; }
.a4-country:hover, .a4-country:focus-visible { border-color: var(--blue); }
.a4-country strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.a4-country-name { font-size: 13px; font-weight: 600; color: var(--text); }
.a4-country-count { font-size: 12px; color: #475569; }
.a4-country.is-current { border: 2px solid var(--blue); background: var(--blue-soft); }
.a4-country.is-current strong { color: var(--blue); }
@media (min-width: 720px) { .a4-country-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; } }

/* Advertising slot: only rendered when configured; local shows a thin placeholder */
.a4-adslot { display: block; max-width: 1208px; margin: 0 auto; padding: 0 16px; }
.a4-adslot--local { display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 8px 16px; border: 1px dashed #cbd5e1; border-radius: 10px; font-size: 13px; color: var(--muted); }

/* Free posting band */
.a4-post { padding: 48px 0; color: #fff; background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%); }
.a4-post-inner { display: grid; gap: 28px; align-items: center; }
.a4-post h2 { color: #fff; font-size: 26px; font-weight: 800; }
.a4-post-copy p { margin: 10px 0 20px; color: #dbe6ff; font-size: 17px; }
.a4-steps { display: grid; gap: 12px; }
.a4-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); }
.a4-step-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 800; }
.a4-steps h3 { color: #fff; font-size: 17px; font-weight: 700; }
.a4-steps p { margin-top: 2px; color: #dbe6ff; font-size: 15px; }
@media (min-width: 900px) { .a4-post { padding: 64px 0; } .a4-post-inner { grid-template-columns: 1fr 1.1fr; gap: 48px; } .a4-post h2 { font-size: 34px; } }

/* Footer */
.a4-footer { padding: 48px 0 20px; background: var(--navy); color: #94a3b8; }
.a4-footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.a4-footer h2 { margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e2e8f0; }
.a4-footer .a4-footer-sub { margin-top: 20px; }
.a4-footer p { font-size: 14px; line-height: 1.6; }
.a4-footer-brand p { margin-top: 12px; max-width: 340px; }
.a4-footer a { color: #cbd5e1; }
.a4-footer li a { display: inline-block; padding: 5px 0; font-size: 14px; }
.a4-footer a:hover { color: #fff; text-decoration: underline; }
.a4-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #1e293b; font-size: 13px; }
@media (min-width: 640px) { .a4-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .a4-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }

/* Arabic / RTL */
[dir="rtl"] .a4-header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .a4-search { text-align: right; }
[dir="rtl"] .a4-dd > ul { left: auto; right: 0; }
[dir="rtl"] .a4-dd--lang > ul { right: auto; left: 0; }
@media (min-width: 720px) { [dir="rtl"] .a4-search-city { border-right: 0; border-left: 1px solid var(--line); } }

@media (prefers-reduced-motion: reduce) { .a4 * { transition: none !important; } }
@media (min-width: 1240px) { .a4-adslot--local { margin: 8px auto; } }

/* ============ Shared page components (listing, detail, forms) ============ */
.a4-pagehead { padding: 20px 0 22px; background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.a4-pagehead h1 { font-size: 26px; font-weight: 800; }
.a4-pagehead-sub { margin-top: 4px !important; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) { .a4-pagehead { padding: 28px 0 30px; } .a4-pagehead h1 { font-size: 32px; } }

.a4-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px !important; font-size: 14px; color: var(--muted); }
.a4-crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #cbd5e1; }
.a4-crumbs a { color: var(--blue); }
.a4-crumbs a:hover { text-decoration: underline; }

.a4-minisearch { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.a4-select { display: flex; align-items: center; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.a4-select select { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--ink); font: 500 15px var(--font); outline: none; cursor: pointer; }
.a4-select:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.a4-minisearch .a4-search-kw { min-height: 48px; }
.a4-minisearch .a4-search-kw input { height: 46px; }
@media (min-width: 600px) { .a4-minisearch { grid-template-columns: 1fr 1fr; } .a4-minisearch .a4-search-kw, .a4-minisearch .a4-btn { grid-column: 1 / -1; } }
@media (min-width: 900px) { .a4-minisearch { grid-template-columns: 1fr 220px 180px auto; } .a4-minisearch .a4-search-kw, .a4-minisearch .a4-btn { grid-column: auto; } }

.a4-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 1000px) { .a4-listing-layout { grid-template-columns: minmax(0, 1fr) 300px; } }

.a4-chiprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.a4-chiprow::-webkit-scrollbar { display: none; }
.a4-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.a4-chip span { color: var(--muted); font-weight: 500; }
.a4-chip:hover { border-color: var(--blue); color: var(--blue); }
.a4-chip.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.a4-chip.is-current span { color: #dbe6ff; }

.a4-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.a4-sort { display: flex; flex-wrap: wrap; gap: 4px; }
.a4-sort a { padding: 6px 10px; border-radius: 8px; font-weight: 600; color: var(--text); }
.a4-sort a:hover { background: var(--soft); }
.a4-sort a.is-current { background: var(--blue-soft); color: var(--blue); }

@media (min-width: 720px) { .a4-ad-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .a4-ad-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a4-ad-grid-wide { grid-column: 1 / -1; }
.a4-ad-grid-wide .a4-adslot, .a4-ad-grid-wide .a4-adslot--local { margin: 0; padding: 0; max-width: none; }
.a4-ad-grid-wide .a4-adslot--local { padding: 0 12px; }

.a4-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.a4-pager ol { display: flex; gap: 4px; }
.a4-pager a, .a4-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; color: var(--ink); }
.a4-pager a:hover { border-color: var(--blue); color: var(--blue); }
.a4-pager span[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.a4-pager .a4-pager-gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

.a4-emptystate { padding: 40px 20px; text-align: center; border: 1px dashed #cbd5e1; border-radius: var(--r); background: var(--soft); }
.a4-emptystate h2 { font-size: 20px; margin-bottom: 6px !important; }
.a4-emptystate p { margin-bottom: 18px !important; color: var(--muted); }
.a4-emptystate a:not(.a4-btn) { color: var(--blue); font-weight: 600; }

.a4-prose { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.7; }
.a4-prose h2 { font-size: 20px; margin-bottom: 10px !important; }
.a4-prose p { margin-bottom: 12px !important; }
.a4-prose a { color: var(--blue); text-decoration: underline; }

.a4-sidebox { padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.a4-sidebox h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px !important; }
.a4-sidebox ul a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 8px; font-size: 14px; color: var(--text); }
.a4-sidebox ul a span { flex: 1; min-width: 0; }
.a4-sidebox ul a em { font-style: normal; font-size: 13px; color: var(--muted); }
.a4-sidebox ul a .a4-ico { width: 18px; height: 18px; color: var(--muted); }
.a4-sidebox ul a:hover { background: var(--soft); color: var(--blue); }
.a4-sidebox ul a.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.a4-sidebox-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.a4-sidebox--cta { background: linear-gradient(135deg, #1d4ed8, #4338ca); border: 0; color: #dbe6ff; }
.a4-sidebox--cta h2 { color: #fff; }
.a4-sidebox--cta p { margin-bottom: 14px !important; font-size: 14px; }
.a4-sidebox--cta .a4-btn { width: 100%; }

/* ============ Ad detail ============ */
.a4-btn--ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-size: 15px; min-height: 44px; }
.a4-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.a4 .a4-btn--danger { color: #b91c1c; }
.a4-btn--danger:hover { border-color: #b91c1c; color: #b91c1c; }
.a4-btn--call { width: 100%; background: var(--blue); color: #fff !important; }
.a4-btn--call:hover { background: var(--blue-ink); }
.a4-btn--wa { width: 100%; background: #15803d; color: #fff !important; }
.a4-btn--wa:hover { background: #166534; }

.a4-detail-wrap { padding-top: 16px; padding-bottom: 48px; }
.a4-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .a4-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }

.a4-gallery { overflow: hidden; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); }
.a4-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.a4-gallery-track::-webkit-scrollbar { display: none; }
.a4-gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; background: #0f172a; }
.a4-gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.a4-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.a4-gallery-thumbs a { display: block; width: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.a4-gallery-thumbs a:hover, .a4-gallery-thumbs a:focus-visible, .a4-gallery-thumbs a[aria-current="true"] { border-color: var(--blue); }
.a4-gallery-thumbs a:not([aria-current="true"]) img { opacity: .75; }
.a4-gallery-stage { position: relative; }
.a4-gallery-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(15,23,42,.25); color: var(--ink); cursor: pointer; }
.a4-gallery-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a4-gallery-nav:hover { background: #fff; color: var(--blue); }
.a4-gallery-nav:disabled { opacity: .35; cursor: default; }
.a4-gallery-prev { left: 12px; }
.a4-gallery-next { right: 12px; }
[dir="rtl"] .a4-gallery-nav svg { transform: scaleX(-1); }
[dir="rtl"] .a4-gallery-prev { left: auto; right: 12px; }
[dir="rtl"] .a4-gallery-next { right: auto; left: 12px; }
.a4-gallery-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: 13px; font-weight: 700; }
[dir="rtl"] .a4-gallery-count { right: auto; left: 12px; }
@media (max-width: 599px) { .a4-gallery-nav { width: 38px; height: 38px; margin-top: -19px; } }
.a4-gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a4-gallery-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--tone-bg), #fff); color: var(--tone); font-weight: 600; }
.a4-gallery-ph .a4-ico { width: 64px; height: 64px; }
@media (max-width: 599px) { .a4-gallery-ph { aspect-ratio: 4 / 3; } }

.a4-detail-head { padding: 20px 0 8px; }
.a4-detail-cat { margin-bottom: 8px !important; font-size: 14px; color: var(--muted); }
.a4-detail-cat a { color: var(--blue); font-weight: 600; }
.a4-detail-head h1 { font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.a4-detail-price { margin-top: 8px !important; font-size: 26px; font-weight: 800; color: var(--blue); }
.a4-detail-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px !important; font-size: 14px; color: var(--muted); }
.a4-detail-facts li { display: inline-flex; align-items: center; gap: 6px; }
.a4-detail-facts .a4-ico { width: 16px; height: 16px; }
.a4-detail-facts a { color: var(--text); font-weight: 600; }
@media (min-width: 720px) { .a4-detail-head h1 { font-size: 30px; } .a4-detail-price { font-size: 30px; } }

.a4-detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.a4-detail-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px !important; }
.a4-detail-text { font-size: 16px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.a4-detail-text p, .a4-detail-text ul, .a4-detail-text ol { margin-bottom: 12px !important; }
.a4-detail-text ul { list-style: disc; padding-left: 20px; }
.a4-detail-share { display: flex; flex-wrap: wrap; gap: 8px; }

.a4-contact { padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1000px) { .a4-contact { position: sticky; top: 124px; } }
.a4-contact-price { font-size: 24px; font-weight: 800; color: var(--ink); }
.a4-contact h2 { font-size: 16px; font-weight: 800; }
.a4-contact-img img { max-width: 100%; }
.a4-contact-none, .a4-contact-note { font-size: 13px; color: var(--muted); }
.a4-safety ul { list-style: disc; padding-left: 18px; font-size: 14px; color: var(--text); line-height: 1.8; }
.a4-safety ul li { display: list-item; }
.a4-detail-side .a4-adslot, .a4-detail-side .a4-adslot--local { margin: 0 0 16px; padding: 0; max-width: none; }
.a4-detail-side .a4-adslot--local { padding: 0 12px; }

.a4-related { padding-top: 32px; margin-top: 16px; border-top: 1px solid var(--line); }
.a4-related .a4-section-head h2 { font-size: 22px; }

.a4-contactbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
.a4-contactbar .a4-btn { flex: 1; }
.has-contactbar .a4-footer { padding-bottom: 88px; }
@media (min-width: 1000px) { .a4-contactbar { display: none; } .has-contactbar .a4-footer { padding-bottom: 20px; } }

/* ============ Forms (posting, account, login) ============ */
.a4-narrow { max-width: 820px; }
.a4-btn--primary { background: var(--blue); color: #fff !important; }
.a4-btn--primary:hover { background: var(--blue-ink); }
.a4-btn--block { width: 100%; min-height: 54px; font-size: 18px; }
.a4-btn[disabled] { opacity: .7; cursor: progress; }

.a4-alert { padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 15px; }
.a4-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.a4-alert a { font-weight: 700; text-decoration: underline; color: inherit; }
.a4-alert .a4-btn { text-decoration: none; }
.a4-optional { font-weight: 400; color: var(--muted); }
.a4-help a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.a4-alert--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.a4-post-wrap { padding-top: 20px; padding-bottom: 56px; }
.a4-steps-nav { display: flex; gap: 4px; margin-bottom: 18px !important; overflow-x: auto; scrollbar-width: none; }
.a4-steps-nav::-webkit-scrollbar { display: none; }
.a4-steps-nav li { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; border-top: 4px solid var(--line); }
.a4-steps-nav li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 6px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line); font-weight: 800; color: var(--muted); }
.a4-steps-nav li.is-current { color: var(--blue); border-top-color: var(--blue); }
.a4-steps-nav li.is-current span { background: var(--blue); border-color: var(--blue); color: #fff; }
.a4-steps-nav li.is-done { color: var(--text); border-top-color: #93c5fd; }
.a4-steps-nav li.is-done span { background: #dbeafe; border-color: #93c5fd; color: var(--blue); }

.a4-step-card { padding: 22px 18px !important; margin-bottom: 16px !important; border: 1px solid var(--line) !important; border-radius: var(--r); background: var(--bg); }
.a4-step-card legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-size: 21px; font-weight: 800; color: var(--ink); }
.a4-step-card legend + * { clear: both; }
.a4-step-badge { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
@media (min-width: 720px) { .a4-step-card { padding: 28px !important; } .a4-step-card legend { font-size: 24px; } }

.a4-help { margin: 6px 0 0 !important; font-size: 14px; color: var(--muted); }
.a4-count { float: right; font-variant-numeric: tabular-nums; }
.a4-req { margin-left: 6px; font-size: 12px; font-weight: 600; color: #b91c1c; }
.a4-opt { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.a4-field-error { margin: 8px 0 0 !important; font-size: 14px; font-weight: 600; color: #b91c1c; }

.a4-field-block { margin-top: 18px; }
.a4-field-block > label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.a4-field-block input, .a4-field-block select, .a4-field-block textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 17px/1.4 var(--font); }
.a4-field-block textarea { min-height: 150px; resize: vertical; }
.a4-field-block input:focus, .a4-field-block select:focus, .a4-field-block textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.a4-field-block input:user-invalid, .a4-field-block select:user-invalid, .a4-field-block textarea:user-invalid { border-color: #dc2626; }
.a4-field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .a4-field-row { grid-template-columns: 1fr 1fr; } }

.a4-cat-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .a4-cat-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a4-cat-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.a4-cat-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a4-cat-option .a4-cat-ico { width: 42px; height: 42px; flex-shrink: 0; }
.a4-cat-option .a4-cat-ico .a4-ico { width: 22px; height: 22px; }
.a4-cat-option .a4-cat-name { font-size: 14px; line-height: 1.25; }
.a4-cat-option:hover { border-color: var(--tone); }
.a4-cat-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue); }
.a4-cat-option:has(input:focus-visible) { outline: 3px solid #fbbf24; outline-offset: 2px; }

.a4-upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; margin-top: 16px; overflow: hidden; border: 2px dashed #93c5fd; border-radius: var(--r); background: var(--blue-soft); cursor: pointer; text-align: center; }
.a4-upload.is-drag { border-color: var(--blue); background: #dbeafe; }
.a4-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.a4-upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; color: var(--blue); pointer-events: none; }
.a4-upload-empty .a4-ico { width: 48px; height: 48px; }
.a4-upload-empty strong { font-size: 18px; }
.a4-upload-empty em { font-style: normal; font-size: 14px; color: var(--muted); }
.a4-upload-preview { max-height: 320px; width: auto; max-width: 100%; object-fit: contain; pointer-events: none; }
.a4-upload-actions { margin-top: 10px !important; }

.a4-captcha { margin-top: 20px; }

.a4-preview { display: grid; grid-template-columns: 1fr; gap: 0; margin: 14px 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 640px) { .a4-preview { grid-template-columns: 240px 1fr; } }
.a4-preview-img { display: flex; align-items: center; justify-content: center; min-height: 160px; background: var(--soft); color: var(--muted); font-size: 14px; }
.a4-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.a4-preview-body { padding: 16px; }
.a4-preview-cat { font-size: 13px; font-weight: 600; color: var(--blue); }
.a4-preview-body h2 { margin: 4px 0 !important; font-size: 19px; overflow-wrap: anywhere; }
.a4-preview-price { font-size: 18px; font-weight: 800; color: var(--blue); }
.a4-preview-meta { font-size: 14px; color: var(--muted); }
.a4-preview-text { margin-top: 8px !important; font-size: 14px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; max-height: 9em; overflow: hidden; }

.a4-step-buttons { display: flex; justify-content: space-between; gap: 12px; }
.a4-step-buttons .a4-btn { min-width: 120px; min-height: 52px; font-size: 17px; }
.a4-step-buttons [data-next] { margin-left: auto; }

/* ============ Auth, account, success, static, 404 ============ */
.a4-auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 32px; padding-bottom: 56px; max-width: 980px; }
@media (min-width: 860px) { .a4-auth { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; } .a4-auth--single { grid-template-columns: minmax(0, 520px); justify-content: center; } }
.a4-auth-card { padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
@media (min-width: 720px) { .a4-auth-card { padding: 34px; } }
.a4-auth-card h1 { font-size: 28px; font-weight: 800; }
.a4-auth-sub { margin: 6px 0 4px !important; color: var(--muted); }
.a4-auth-card form { margin-top: 8px; }
.a4-auth-card .a4-btn--block { margin-top: 20px; }
.a4-check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--text); cursor: pointer; }
.a4-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.a4-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px !important; font-size: 15px; }
.a4-auth-links a { color: var(--blue); font-weight: 600; }
.a4-auth-aside { padding: 24px; border-radius: var(--r); background: linear-gradient(135deg, #1d4ed8, #4338ca); color: #dbe6ff; }
.a4-auth-aside h2 { color: #fff; font-size: 20px; margin-bottom: 8px !important; }
.a4-auth-aside p { margin-bottom: 16px !important; }

.a4-tabsnav { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.a4-tabsnav::-webkit-scrollbar { display: none; }
.a4-tabsnav a { flex-shrink: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--text); white-space: nowrap; }
.a4-tabsnav a:hover { background: var(--bg); }
.a4-tabsnav a[aria-current] { background: var(--blue); color: #fff; }
.a4-account { padding-top: 24px; padding-bottom: 56px; }
.a4-account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 860px) { .a4-account-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.a4-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.a4-panel h2 { font-size: 19px; font-weight: 800; }
.a4-panel .a4-btn { margin-top: 18px; }

.a4-myads { display: grid; gap: 12px; }
.a4-myad { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
@media (min-width: 720px) { .a4-myad { grid-template-columns: 140px minmax(0, 1fr) auto; padding: 14px; } }
.a4-myad-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--soft); color: var(--muted); }
.a4-myad-img img { width: 100%; height: 100%; object-fit: cover; }
.a4-myad-body h2 { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.a4-myad-body h2 a:hover { color: var(--blue); }
.a4-myad-meta { margin-top: 4px !important; font-size: 13px; color: var(--muted); }
.a4-myad-price { margin-top: 4px !important; font-weight: 800; color: var(--blue); }
.a4-myad-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.a4-myad-actions .a4-btn { flex: 1; }
@media (min-width: 720px) { .a4-myad-actions { grid-column: auto; flex-direction: column; } }

.a4-success { padding-top: 40px; padding-bottom: 56px; text-align: center; }
.a4-success h1 { font-size: 30px; font-weight: 800; }
.a4-success-sub { max-width: 560px; margin: 8px auto 20px !important; color: var(--muted); font-size: 17px; }
.a4-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.a4-success-icon svg { width: 38px; height: 38px; }
.a4-success-card { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 0 auto 20px; padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.a4-success-card img { width: 96px; border-radius: 10px; }
.a4-success-card strong { display: block; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.a4-success-card em { font-style: normal; font-weight: 600; color: var(--blue); }
.a4-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.a4-success-share { max-width: 560px; margin: 0 auto; text-align: left; }
.a4-success-share h2 { margin-bottom: 12px !important; font-size: 17px; }
.a4-success-share .a4-btn--wa { width: auto; }
.a4-404-code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -0.04em; }
.a4-minisearch--center { max-width: 860px; margin: 0 auto 16px; text-align: left; }
.a4-chips--center { justify-content: center; margin-bottom: 20px !important; }

.a4-prose--page { margin-top: 0; padding: 28px 0 56px; border-top: 0; }

/* Photo picker (up to 4): compact thumbnails */
.a4-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.a4-photo-grid:empty { display: none; }
.a4-photo-tile { position: relative; flex: 0 0 auto; width: 96px; height: 96px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.a4-photo-tile:first-child { outline: 2px solid var(--blue); outline-offset: 1px; }
.a4-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a4-photo-cover { position: absolute; left: 4px; bottom: 4px; padding: 2px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; }
.a4-photo-make { position: absolute; left: 4px; bottom: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(15,23,42,.75); color: #fde68a; font-size: 15px; line-height: 1; cursor: pointer; }
.a4-photo-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(15,23,42,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.a4-photo-remove:hover, .a4-photo-make:hover { background: #0f172a; }
@media (max-width: 400px) { .a4-photo-tile { width: calc((100% - 30px) / 4); height: auto; aspect-ratio: 1 / 1; } }
.a4-photos .a4-upload { min-height: 140px; }

/* Featured ads and promotion */
.a4-ad { position: relative; }
.a4-ad.is-featured { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b; }
.a4-badge-featured { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1f2937; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.a4-btn--auto { width: auto; }
.a4-btn--feature { background: #fffbeb; color: #92400e !important; border: 1px solid #f59e0b; font-size: 15px; min-height: 44px; }
.a4-btn--feature:hover { background: #fef3c7; }
.a4-promote { display: flex; gap: 16px; align-items: flex-start; max-width: 560px; margin: 0 auto 20px; padding: 20px; text-align: left; border: 1px solid #fcd34d; border-radius: var(--r); background: linear-gradient(135deg, #fffbeb, #fff); }
.a4-promote-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: #f59e0b; color: #fff; font-size: 22px; }
.a4-promote h2 { font-size: 18px; font-weight: 800; }
.a4-promote p { margin: 6px 0 14px !important; font-size: 15px; color: var(--text); }
.a4-helpbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #bbf7d0; border-radius: var(--r); background: #f0fdf4; color: #14532d; }
.a4-helpbox > .a4-ico { width: 28px; height: 28px; color: #15803d; }
.a4-helpbox p { flex: 1; min-width: 200px; font-size: 15px; }

/* Live ad units: small label, reserved height for responsive units to limit layout shift */
.a4-adslot-label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; text-align: center; }
.a4-adslot--auto { min-height: 120px; margin: 16px auto; }
.a4-adslot--fluid { margin: 16px 0; }
/* Google's documented way to collapse a unit that returned no ad (keeps no empty gap or orphan label) */
.a4 ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.a4-adslot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.a4-detail-section .a4-adslot, .a4-detail-section .a4-adslot--local { margin: 0; padding: 0; max-width: none; }
.a4-detail-section .a4-adslot--local { padding: 0 12px; }

/* Social sharing */
.a4-share { display: flex; flex-wrap: wrap; gap: 8px; }
.a4-share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; font: 700 14px var(--font); color: #fff !important; cursor: pointer; }
.a4-share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.a4-share-btn:hover { filter: brightness(.92); }
.a4-share-native { background: var(--ink); }
.a4-share-wa { background: #15803d; }
.a4-share-fb { background: #1877f2; }
.a4-share-pin { background: #c8102e; }
.a4-share-x { background: #0f1419; }
.a4-share-tg { background: #0077b5; }
.a4-share-in { background: #0a66c2; }
.a4-share-mail, .a4-share-copy { background: var(--bg); color: var(--ink) !important; border: 1px solid var(--line); }
.a4-share-mail:hover, .a4-share-copy:hover { border-color: var(--blue); color: var(--blue) !important; filter: none; }
.a4-report { margin-top: 14px !important; }
@media (max-width: 480px) { .a4-share-btn { flex: 1 1 calc(50% - 8px); justify-content: center; } }
.a4-premiumbox { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 18px; padding: 16px; border: 1px solid #fcd34d; border-radius: var(--r); background: linear-gradient(135deg, #fffbeb, #fff); }
.a4-premiumbox p { margin-bottom: 12px !important; font-size: 15px; color: var(--text); }

/* Header: log in / my ads */
.a4 .a4-login-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--blue); border-radius: 10px; background: var(--bg); color: var(--blue); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.a4 .a4-login-btn::-webkit-details-marker { display: none; }
.a4-dd--account > summary::after { display: none; }
.a4 .a4-login-btn:hover { background: var(--blue-soft); }
.a4-login-btn .a4-ico { width: 18px; height: 18px; }
.a4-dd--account > ul { left: auto; right: 0; }
@media (max-width: 599px) { .a4 .a4-login-btn { padding: 0 9px; } .a4-login-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ============ Phone menu (hamburger) ============ */
.a4-mnav { display: none; }
@media (max-width: 719px) {
  /* Header row on phones: logo, Post Free Ad, menu. Country/language/login live in the menu. */
  .a4-header-top { gap: 8px; min-height: 56px; }
  .a4-header-top > .a4-dd--country,
  .a4-header-actions > .a4-dd--lang,
  .a4-header-actions > .a4-dd--account,
  .a4-header-actions > .a4-login-btn { display: none !important; }
  .a4-header-actions { gap: 8px; }
  .a4-mnav { display: block; }
  .a4-mnav-btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; }
  .a4-mnav-btn::-webkit-details-marker { display: none; }
  .a4-mnav-btn .a4-ico { width: 22px; height: 22px; }
  .a4-mnav .a4-mnav-close { display: none; }
  .a4-mnav[open] .a4-mnav-open { display: none; }
  .a4-mnav[open] .a4-mnav-close { display: block; }
  .a4-mnav[open] .a4-mnav-btn { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
  .a4-mnav-panel { position: fixed; left: 0; right: 0; top: 57px; bottom: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 32px; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15,23,42,.15); }
  .a4-mnav-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .a4-mnav-group:last-child { border-bottom: 0; }
  .a4-mnav-group h2 { margin-bottom: 10px !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .a4-mnav-wide { display: flex; width: 100%; margin-top: 8px; min-height: 50px; font-size: 17px; }
  .a4-mnav-link { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--soft); }
  .a4-mnav-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .a4-mnav-cats a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; background: var(--soft); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
  .a4-mnav-cats a .a4-ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
  .a4-mnav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .a4-mnav-chips a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); }
  .a4-mnav-chips a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
  .a4-mnav-split { display: grid; gap: 16px; }
  body.a4:has(.a4-mnav[open]) { overflow: hidden; }
}
/* RTL: arrows point the other way */
[dir="rtl"] .a4-arrow { display: inline-block; transform: scaleX(-1); }
.a4-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.a4-prose--page h2 { margin-top: 28px !important; }

/* ============ Interaction: saved ads, report, suggestions, filters, stats ============ */
/* Card wrapper keeps the heart button outside the link (valid HTML) */
.a4-card { position: relative; height: 100%; }
.a4-fav { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(15,23,42,.18); color: #334155; cursor: pointer; transition: transform .15s ease, color .15s ease; }
.a4-fav svg, .a4-savebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.a4-fav:hover { color: #e11d48; transform: scale(1.06); }
.a4-fav[aria-pressed="true"], .a4-savebtn[aria-pressed="true"] { color: #e11d48; }
.a4-fav[aria-pressed="true"] svg, .a4-savebtn[aria-pressed="true"] svg { fill: currentColor; }
.a4-fav.is-pop, .a4-savebtn.is-pop svg { animation: a4-pop .35s ease; }
@keyframes a4-pop { 50% { transform: scale(1.25); } }

.a4-savedbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.a4-savedbtn:hover { border-color: #e11d48; color: #e11d48; }
.a4-savedbtn-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }

.a4-detail-titlerow { display: flex; align-items: flex-start; gap: 12px; }
.a4-detail-titlerow h1 { flex: 1; min-width: 0; }
.a4 .a4-savebtn { min-height: 40px; padding: 0 12px; font-size: 14px; flex-shrink: 0; }
.a4 .a4-savebtn[aria-pressed="true"] { border-color: #fecdd3; background: #fff1f2; }
@media (max-width: 479px) { .a4 .a4-savebtn { width: 44px; padding: 0; } .a4-savebtn [data-fav-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Dialogs (saved list, report form). Never contain ads. */
.a4-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 24px 60px rgba(15,23,42,.3); font-family: var(--font); }
.a4-modal::backdrop { background: rgba(15,23,42,.55); }
.a4-modal-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; }
.a4-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a4-modal-head h2 { font-size: 20px; font-weight: 800; }
.a4-modal-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.a4-modal-x:hover { background: var(--line); }
.a4-modal fieldset { display: grid; gap: 6px; }
.a4-modal legend { margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.a4-radio, .a4-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--ink); }
.a4-radio:has(input:checked), .a4-check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.a4-radio input, .a4-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.a4-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.a4-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.a4-field textarea, .a4-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 16px var(--font); color: var(--ink); background: var(--bg); }
.a4-field textarea:focus, .a4-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.a4-modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.a4-modal-actions .a4-btn { min-height: 44px; }
.a4-btn--danger-solid { background: #b91c1c; color: #fff !important; }
.a4-btn--danger-solid:hover { background: #991b1b; }
.a4-btn--danger-solid:disabled { opacity: .6; cursor: wait; }
.a4-modal-msg { padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.a4-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.a4-report-done { margin-top: 10px !important; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; font-weight: 600; }
@media (max-width: 479px) { .a4-modal-actions .a4-btn { flex: 1; } }

/* Saved ads: side panel (full height); on phones it fills the screen */
.a4-modal--side { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); border-radius: 0; }
[dir="rtl"] .a4-modal--side { margin: 0 auto 0 0; }
.a4-modal--side .a4-modal-body { height: 100%; overflow-y: auto; }
.a4-saved-list { display: grid; gap: 8px; }
.a4-saved-item { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.a4-saved-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 8px 44px 8px 8px; }
[dir="rtl"] .a4-saved-link { padding: 8px 8px 8px 44px; }
.a4-saved-link:hover .a4-saved-title { color: var(--blue); }
.a4-saved-img { flex-shrink: 0; width: 72px; height: 54px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--blue-soft), #fff); }
.a4-saved-img img { width: 100%; height: 100%; object-fit: cover; }
.a4-saved-body { display: grid; gap: 2px; min-width: 0; }
.a4-saved-title { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a4-saved-meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a4-saved-rm { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
[dir="rtl"] .a4-saved-rm { right: auto; left: 6px; }
.a4-saved-rm:hover { background: #fef2f2; color: #b91c1c; }
.a4-saved-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 12px; text-align: center; color: var(--muted); }
.a4-saved-empty .a4-ico { width: 44px; height: 44px; color: #fda4af; }
.a4-saved-empty strong { color: var(--ink); }
.a4-saved-note { margin-top: auto !important; font-size: 12px; color: var(--muted); text-align: center; }

/* Toast */
.a4-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 12px 30px rgba(15,23,42,.3); transform: translate(-50%, 16px); opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.a4-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.has-contactbar .a4-toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .has-contactbar .a4-toast { bottom: 24px; } }

/* Search suggestions */
.a4-search-kw { position: relative; }
.a4-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 65; max-height: 320px; overflow-y: auto; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(15,23,42,.16); text-align: start; }
.a4-suggest li { display: block; min-height: 42px; padding: 11px 10px 11px 34px; border-radius: 8px; font-size: 15px; line-height: 20px; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: no-repeat 10px center / 16px 16px; }
[dir="rtl"] .a4-suggest li { padding: 11px 34px 11px 10px; background-position: right 10px center; }
.a4-suggest-ad { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2394a3b8%22 stroke-width=%222%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M20 20l-3.5-3.5%22/%3E%3C/svg%3E"); }
.a4-suggest-cat { font-weight: 600; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2394a3b8%22 stroke-width=%222%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%223%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%223%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3C/svg%3E"); }
.a4-suggest li:hover, .a4-suggest li[aria-selected="true"] { background-color: var(--blue-soft); color: var(--blue); }
.a4-suggest mark { background: none; color: inherit; font-weight: 800; }

/* Listing filters */
.a4-filters { margin: -4px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.a4-filters > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.a4-filters > summary::-webkit-details-marker { display: none; }
.a4-filters > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
[dir="rtl"] .a4-filters > summary::after { margin-left: 0; margin-right: auto; }
.a4-filters[open] > summary::after { transform: rotate(-135deg); }
.a4-filters-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.a4-filters-form { display: grid; gap: 12px; padding: 4px 14px 14px; }
.a4-filters-price { display: block; min-width: 0; }
.a4-filters-price legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.a4-filters-price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.a4-filters-price input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 16px var(--font); color: var(--ink); background: var(--bg); }
.a4-filters-price input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.a4-filters-days { min-height: 44px; }
.a4-filters-days select { height: 42px; }
.a4-filters-actions { display: flex; align-items: center; gap: 14px; }
.a4-filters-clear { font-size: 14px; font-weight: 700; color: var(--blue) !important; }
@media (min-width: 720px) {
  .a4-filters-form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; align-items: end; }
}

/* My ads: performance numbers */
.a4-myad-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; font-size: 13px; color: var(--muted); }
.a4-myad-stats li { display: inline-flex; align-items: center; gap: 5px; }
.a4-myad-stats .a4-ico { width: 15px; height: 15px; }
.a4-myad-stats strong { color: var(--ink); }

/* Phone contact bar: share button */
.a4 .a4-contactbar-share { flex: 0 0 52px; padding: 0; min-height: 48px; }

/* Very narrow phones: logo, heart, Post and menu stay on one row */
@media (max-width: 380px) {
  .a4-header-top, .a4-header-actions { gap: 6px; }
  .a4 .a4-header-actions > .a4-btn--compact { padding: 0 10px; font-size: 14px; }
  .a4-wordmark { font-size: 21px; }
  .a4-savedbtn { width: 40px; height: 40px; }
}
