/* =====================================================
   LankanAd.net — global stylesheet
   Theme: dark pink + white, editorial-modern.
   ===================================================== */

:root {
  --pink-50:  #fdf2f7;
  --pink-100: #fbe4ee;
  --pink-200: #f4c1d8;
  --pink-300: #ec94bb;
  --pink-500: #d81b60;
  --pink-600: #c2185b;
  --pink-700: #ad1457;
  --pink-800: #880e4f;
  --pink-900: #560930;

  --ink-900: #1f0a14;
  --ink-700: #4a2a3a;
  --ink-500: #7a5063;
  --ink-300: #b59aa9;

  --white:   #ffffff;
  --bg:      #fffafc;
  --border:  #f3d4e1;
  --shadow:  0 1px 2px rgba(31,10,20,.04), 0 8px 24px rgba(194,24,91,.06);
  --shadow-lg: 0 8px 32px rgba(194,24,91,.18);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-700); text-decoration: none; }
a:hover { color: var(--pink-800); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  color: var(--ink-900);
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
small, .muted { color: var(--ink-500); font-size: .9rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.main      { min-height: 60vh; padding: 28px 0 60px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-900);
}
.brand:hover { color: var(--pink-700); }
.brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--pink-600), var(--pink-800));
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(194,24,91,.32);
}
.brand-name { letter-spacing: -.01em; }

.nav-links {
  display: flex; align-items: center; gap: 22px;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links .link-admin {
  color: var(--pink-700);
}
.nav-links .link-admin {
  background: var(--pink-50);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.nav-user { color: var(--ink-500); font-size: .9rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-900);
  margin: 5px auto;
  transition: .25s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--pink-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(194,24,91,.32);
}
.btn-primary:hover { background: var(--pink-700); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--pink-700);
  border-color: var(--pink-200);
}
.btn-ghost:hover { background: var(--pink-50); }
.btn-danger { background: #b91c4a; color: #fff; }
.btn-danger:hover { background: #8b0e36; }
.btn-sm   { padding: 8px 14px; font-size: .9rem; }
.btn-lg   { padding: 14px 26px; font-size: 1.05rem; }
.btn-block{ display: flex; width: 100%; }

/* ---------- flash ---------- */
.flash-wrap { margin: 14px auto; }
.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  font-size: .95rem;
}
.flash-success { background: #f0fff5; color: #075f31; border-color: #b9eccd; }
.flash-error   { background: #fff0f4; color: #8b0e36; border-color: #f4c1d8; }
.flash-info    { background: var(--pink-50); color: var(--pink-800); border-color: var(--border); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at -10% -20%, rgba(216,27,96,.20), transparent 60%),
    radial-gradient(900px 380px at 110% 0%, rgba(216,27,96,.18), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--pink-50) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
  overflow: hidden;
}
.hero h1 {
  max-width: 760px;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--pink-700);
}
.hero p.lead {
  max-width: 580px;
  font-size: 1.1rem;
  color: var(--ink-700);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.hero-search {
  margin-top: 26px;
  display: flex; gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--r-xl);
  max-width: 640px;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1; border: none; outline: none;
  padding: 12px 14px;
  font-size: 1rem; color: var(--ink-900);
  background: transparent;
  font-family: var(--font-body);
}

/* ---------- ad grid ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 36px 0 18px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .muted { font-size: .95rem; }

.ad-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ad-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-200);
}
.ad-card .thumb {
  aspect-ratio: 4/3;
  background: var(--pink-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23ec94bb' stroke-width='1.5'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8.5' cy='10.5' r='1.5'/><path d='m21 15-5-5L5 21'/></svg>") center / 60px no-repeat;
  overflow: hidden;
}
.ad-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.ad-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.ad-card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-900);
  margin: 0 0 6px;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-card .price {
  color: var(--pink-700);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.ad-card .meta {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--ink-500);
  margin-top: auto;
}
.ad-card .badge-promoted {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--pink-700);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(194,24,91,.35);
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--ink-500);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

/* ---------- forms ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-narrow { max-width: 480px; margin: 30px auto; }
.card-mid    { max-width: 720px; margin: 30px auto; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .95rem;
  color: var(--ink-700);
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=password],
.form-row input[type=number],
.form-row input[type=tel],
.form-row input[type=file],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(216,27,96,.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid .form-row { margin-bottom: 0; }

.form-help { font-size: .85rem; color: var(--ink-500); margin-top: 6px; }
.form-error { color: #b91c4a; font-size: .9rem; margin-top: 6px; }

.divider {
  height: 1px; background: var(--border);
  margin: 22px 0; border: 0;
}

/* ---------- single ad page ---------- */
.ad-detail {
  display: grid; gap: 26px;
  grid-template-columns: 2fr 1fr;
}
.ad-gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ad-gallery .main-img {
  aspect-ratio: 4/3;
  background: var(--pink-50);
}
.ad-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-gallery .thumbs {
  display: flex; gap: 8px; padding: 10px;
}
.ad-gallery .thumbs img {
  width: 80px; height: 60px; object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  opacity: .85;
  transition: .15s;
}
.ad-gallery .thumbs img:hover { opacity: 1; }
.ad-gallery .thumbs img.active {
  border-color: var(--pink-600);
  opacity: 1;
}
.ad-side { display: flex; flex-direction: column; gap: 18px; }
.ad-side .price-big {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pink-700);
  font-weight: 700;
}
.ad-side ul.facts {
  list-style: none; padding: 0; margin: 0;
}
.ad-side ul.facts li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.ad-side ul.facts li:last-child { border-bottom: 0; }
.ad-side ul.facts li span:first-child { color: var(--ink-500); }
.ad-side ul.facts li span:last-child  { color: var(--ink-900); font-weight: 600; }

/* ---------- table (admin) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
table.data {
  width: 100%; border-collapse: collapse;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  background: var(--pink-50);
  color: var(--pink-800);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .78rem;
}
table.data tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.tag-pending  { background: #fff3cd; color: #7a5800; }
.tag-active   { background: #d4f5e0; color: #075f31; }
.tag-expired  { background: #ececec; color: #555; }
.tag-rejected { background: #ffd6e0; color: #8b0e36; }
.tag-approved { background: #d4f5e0; color: #075f31; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- admin sidebar layout ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  margin-top: 10px;
}
.admin-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  height: fit-content;
  position: sticky; top: 80px;
}
.admin-side a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 500;
  font-size: .95rem;
}
.admin-side a:hover { background: var(--pink-50); color: var(--pink-700); }
.admin-side a.active {
  background: var(--pink-600); color: #fff;
}

/* ---------- footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 36px 0 14px;
  color: var(--ink-700);
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 24px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink-700);
  margin-bottom: 10px;
}
.footer-grid a {
  display: block;
  padding: 4px 0;
  color: var(--ink-700);
  font-size: .92rem;
}
.footer-grid a:hover { color: var(--pink-700); }
.footer-base {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: .85rem;
  color: var(--ink-500);
  text-align: center;
}
.brand-footer { margin-bottom: 8px; }

/* ---------- bank info card ---------- */
.bank-card {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-900));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
}
.bank-card h3 { color: #fff; margin-top: 0; }
.bank-card ul { list-style: none; padding: 0; margin: 0; }
.bank-card li {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: .95rem;
}
.bank-card li:last-child { border-bottom: 0; }
.bank-card li span:first-child { opacity: .8; }
.bank-card li span:last-child  { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .ad-detail   { grid-template-columns: 1fr; }
  .form-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side  { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a, .nav-links .nav-user {
    padding: 10px 0;
    border-bottom: 1px solid var(--pink-50);
  }
  .hero { padding: 36px 0 28px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .ad-card .body { padding: 10px 12px 12px; }
  .ad-card .title { font-size: .95rem; }
  .card { padding: 18px; }
  .container { padding: 0 16px; }
}


/* ============ Ad detail action buttons ============ */

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.cta-btn {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.15;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cta-call {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}
.cta-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}
.cta-call:hover { box-shadow: 0 12px 24px rgba(22,163,74,.35); transform: translateY(-2px); filter: brightness(1.05); }
.cta-wa:hover   { box-shadow: 0 12px 24px rgba(37,211,102,.35); transform: translateY(-2px); filter: brightness(1.05); }
.cta-btn:active { transform: translateY(0); }

.cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  flex-shrink: 0;
}
.cta-ic svg { display: block; color: #fff; }

.cta-tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.cta-tx strong {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .01em;
}
.cta-tx small {
  font-size: .76rem;
  font-weight: 500;
  opacity: .92;
  color: #fff;
  margin-top: 2px;
}

@media (max-width: 540px) {
  .contact-actions { grid-template-columns: 1fr; }
}

/* ---- Save / Like / Share pills ---- */

.social-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pill-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--ink-700);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .18s ease;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.pill-btn .pill-ic {
  display: inline-block !important;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pill-btn span { line-height: 1; }

.pill-btn:hover {
  border-color: var(--pink-700);
  color: var(--pink-700);
  background: #fff5f8;
  transform: translateY(-1px);
}

/* pressed → filled icon (bookmark style) */
.pill-btn[aria-pressed="true"] {
  background: var(--pink-700);
  border-color: var(--pink-700);
  color: #fff;
}
.pill-btn[aria-pressed="true"] .pill-ic {
  fill: currentColor;
}

/* like → red when pressed */
.pill-btn.pill-like[aria-pressed="true"] {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

/* pop animation */
.pill-btn.pop .pill-ic {
  animation: pillPop .42s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pillPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}

@media (max-width: 380px) {
  .pill-btn { padding: 12px 8px; font-size: 0; gap: 0; }
  .pill-btn span { display: none; }
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  background: #1a1a1a;
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =================================================================
   Categories & Location browser  (v4 - bulletproof)
   ================================================================= */

/* --- Hero search bar (split fields) --- */
form.hero-search-rich {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #f3d4e1;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  max-width: 760px;
  margin: 18px auto 22px;
}
form.hero-search-rich .hs-field { flex: 1 1 200px; min-width: 0; }
form.hero-search-rich button    { flex: 0 0 auto; }

.hs-field {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #f3d4e1;
  border-radius: 10px;
  padding: 0 12px;
  min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hs-field:focus-within {
  border-color: #ad1457;
  box-shadow: 0 0 0 3px rgba(194,24,91,.12);
}
.hs-field > svg { color: #7a5063; flex-shrink: 0; }
.hs-field > input,
.hs-field > select {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 11px 4px !important;
  font: inherit !important;
  color: #1f0a14 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.hs-field > select {
  cursor: pointer;
  padding-right: 24px !important;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a5063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 4px center !important;
}

/* --- Filter bar (search & category page) --- */
form.filter-bar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px !important;
}
form.filter-bar .hs-field { flex: 1 1 180px; min-width: 0; }
form.filter-bar button,
form.filter-bar a.btn { flex: 0 0 auto; }

/* --- Category grid (homepage) --- */
.container .cat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  margin: 8px 0 36px !important;
  list-style: none;
  padding: 0;
}
.container a.cat-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 22px 12px 16px !important;
  background: #fff !important;
  border: 1px solid #f3d4e1 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #1f0a14 !important;
  text-align: center !important;
  min-height: 130px !important;
  transition: all .2s ease !important;
}
.container a.cat-tile:hover {
  border-color: #ad1457 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(194,24,91,.14) !important;
  color: #1f0a14 !important;
}
.container a.cat-tile .cat-tile-ic {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fdf2f7, #fbe4ee) !important;
  color: #ad1457 !important;
  flex-shrink: 0 !important;
  transition: all .2s ease !important;
}
.container a.cat-tile .cat-tile-ic svg {
  width: 26px !important;
  height: 26px !important;
}
.container a.cat-tile:hover .cat-tile-ic {
  background: #ad1457 !important;
  color: #fff !important;
  transform: scale(1.08) !important;
}
.container a.cat-tile .cat-tile-name {
  font-weight: 600 !important;
  font-size: .95rem !important;
  line-height: 1.25 !important;
  color: #1f0a14 !important;
}
.container a.cat-tile .cat-tile-count {
  font-size: .76rem !important;
  color: #7a5063 !important;
  font-weight: 500 !important;
}

/* --- Category page header --- */
.cat-head {
  display: flex !important;
  align-items: center;
  gap: 16px;
  margin: 4px 0 22px;
}
.cat-head-ic {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ad1457, #560930) !important;
  color: #fff;
  flex-shrink: 0;
}
.cat-head-ic svg { width: 30px; height: 30px; color: #fff; }

/* --- Location chip grid --- */
.container .loc-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 8px 0 36px !important;
  padding: 0 !important;
  list-style: none;
}
.container a.loc-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 14px !important;
  background: #fff !important;
  border: 1px solid #f3d4e1 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  color: #4a2a3a !important;
  font-size: .87rem !important;
  font-weight: 500 !important;
  transition: all .15s ease !important;
  white-space: nowrap;
}
.container a.loc-chip:hover {
  background: #ad1457 !important;
  border-color: #ad1457 !important;
  color: #fff !important;
}
.container a.loc-chip svg { color: inherit !important; flex-shrink: 0; }

/* --- Form selects (post-ad / edit-ad) --- */
.form-row > select {
  display: block;
  width: 100%;
  padding: 11px 38px 11px 12px;
  border: 1px solid #f3d4e1;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a5063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  color: #1f0a14;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row > select:focus {
  outline: none;
  border-color: #ad1457;
  box-shadow: 0 0 0 3px rgba(194,24,91,.12);
}

/* --- Category chip on ad cards --- */
.cat-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fdf2f7;
  color: #ad1457 !important;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .01em;
  text-decoration: none !important;
}
.cat-chip svg { width: 12px; height: 12px; }

/* --- Card meta location --- */
.meta-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meta-loc svg { color: #7a5063; flex-shrink: 0; }

@media (max-width: 540px) {
  .container .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 8px !important; }
  .container a.cat-tile { padding: 16px 8px 12px !important; min-height: 110px !important; }
  .container a.cat-tile .cat-tile-ic { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
  .container a.cat-tile .cat-tile-ic svg { width: 20px !important; height: 20px !important; }
  .container a.cat-tile .cat-tile-name { font-size: .82rem !important; }
  .cat-head-ic { width: 52px; height: 52px; }
  .cat-head-ic svg { width: 24px; height: 24px; }
  form.hero-search-rich .hs-field { flex: 1 1 100% !important; }
}

/* =================================================================
   v5 — Sidebar layout, hero banner, tier badges, new pages
   ================================================================= */

/* --- Layout: sidebar + main --- */
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.layout-main { min-width: 0; }
.layout-main > .container,
.layout-main .container { padding: 0; max-width: none; }

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
}

/* --- Sidebar --- */
.sb { display: flex; flex-direction: column; gap: 14px; }
.sb-card {
  background: #fff;
  border: 1px solid #f3d4e1;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.sb-title {
  background: #b91c4a;
  color: #fff;
  margin: -14px -14px 12px;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
  text-align: center;
}
.sb-search {
  display: flex;
  gap: 6px;
}
.sb-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #f3d4e1;
  border-radius: 8px;
  font: inherit;
  outline: none;
}
.sb-search input:focus { border-color: #ad1457; }
.sb-search button {
  background: #1a1a1a;
  color: #fff;
  border: 0;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sb-search button::after { content: 'Search'; }

.sb-card .sb-btn,
.sb-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none !important;
  color: #fff !important;
  border: 0;
  transition: filter .15s, transform .15s;
}
.sb-btn:last-child { margin-bottom: 0; }
.sb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sb-btn-pink   { background: #c2185b; }
.sb-btn-yellow { background: #ffc107; color: #1a1a1a !important; }
.sb-btn-dark   { background: #1f2a3a; }
.sb-btn-red    { background: #d12727; }
.sb-btn-teal   { background: #0e8aa1; }

.sb-heading {
  font-weight: 700;
  font-size: .95rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #c2185b;
  margin-bottom: 10px;
  display: inline-block;
}
.sb-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-cats li { margin: 0; }
.sb-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  color: #1f0a14;
  text-decoration: none;
  font-size: .88rem;
  border-bottom: 1px dashed #f3d4e1;
}
.sb-cats li:last-child a { border-bottom: 0; }
.sb-cats a:hover { color: #c2185b; }
.sb-cat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #c2185b;
  flex-shrink: 0;
}
.sb-cat-ic svg { width: 16px; height: 16px; }

.sb-card-help { background: linear-gradient(135deg, #fdf2f7, #fff); }
.sb-help-p { font-size: .85rem; color: #4a2a3a; margin: 0 0 12px; }

/* --- Hero banner --- */
.hero-banner {
  background: linear-gradient(135deg, #2a0a4a 0%, #6b1b8a 50%, #c2185b 100%);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 36px 24px;
  margin-bottom: 18px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 200px at 80% 100%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(400px 200px at 20% 0%, rgba(255,255,255,.12), transparent 60%);
  pointer-events: none;
}
.hero-banner-inner { position: relative; z-index: 1; }
.hero-banner h1 {
  font-family: inherit;
  font-size: 1.8rem;
  margin: 0 0 6px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-banner p {
  margin: 0;
  font-size: 1.05rem;
  opacity: .95;
}
@media (max-width: 540px) {
  .hero-banner { padding: 24px 16px; }
  .hero-banner h1 { font-size: 1.3rem; }
  .hero-banner p { font-size: .9rem; }
}

/* --- Quick buttons row --- */
.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 16px;
}
.qb {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  font-size: .92rem;
  transition: transform .15s ease, filter .15s ease;
}
.qb:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.qb-pink { background: #c2185b; }
.qb-red  { background: #c0392b; }

.quick-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.qt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: filter .15s, transform .15s;
}
.qt:hover { transform: translateY(-2px); filter: brightness(1.05); }
.qt-yellow { background: #ffc107; color: #1f2a3a; box-shadow: 0 4px 14px rgba(255,193,7,.4); }
.qt-blue   { background: #fff; color: #2196f3; border-color: #2196f3; }
.qt-orange { background: #f97316; color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.qt-yellow:hover, .qt-orange:hover { color: inherit; }
.qt-blue:hover { background: #2196f3; color: #fff; }

/* --- Tier badges on ad cards --- */
.tier-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tier-super { background: linear-gradient(135deg, #ffc107, #ff9800); color: #1f2a3a; }
.tier-vip   { background: linear-gradient(135deg, #f44336, #d32f2f); }
.tier-featured { background: #c2185b; }

.ad-card-super { border: 2px solid #ffc107; }
.ad-card-vip   { border: 2px solid #f44336; }

/* --- Wide ad cards (homepage list) --- */
.ad-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.ad-wide {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  background: #fff;
  border: 2px solid #f3d4e1;
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.ad-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  color: inherit;
}
.ad-wide-super { border-color: #ffc107; }
.ad-wide-vip   { border-color: #f44336; }

.aw-trust {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #16a34a;
  color: #fff;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .01em;
  z-index: 2;
}
.ad-wide .tier-badge {
  top: -10px;
  right: 14px;
  border-radius: 4px;
}

.aw-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fdf2f7;
  position: relative;
}
.aw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aw-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #b59aa9; font-size: .85rem;
}

.aw-body { display: flex; flex-direction: column; min-width: 0; padding: 4px 0; }
.aw-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.aw-cat {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  color: #c2185b; flex-shrink: 0;
}
.aw-cat svg { width: 16px; height: 16px; }
.aw-desc {
  margin: 0 0 10px;
  color: #4a2a3a;
  font-size: .9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aw-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: #2196f3;
  align-items: center;
}
.aw-likes, .aw-views, .aw-time { display: inline-flex; align-items: center; gap: 4px; }
.aw-likes { color: #2196f3; }
.aw-likes svg { color: #2196f3; }
.aw-time { color: #7a5063; margin-left: auto; }
.aw-price { font-weight: 700; color: #c2185b; font-size: 1rem; }

@media (max-width: 540px) {
  .ad-wide { grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; }
  .aw-title { font-size: .95rem; }
  .aw-desc { -webkit-line-clamp: 2; font-size: .82rem; }
  .aw-meta { gap: 10px; font-size: .75rem; }
}

/* --- Page heads --- */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }

/* --- Agents page --- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.agent-card {
  background: #fff;
  border: 1px solid #f3d4e1;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.agent-photo {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf2f7;
}
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-photo-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ad1457, #560930);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.agent-verified {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2196f3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.agent-name { font-weight: 700; font-size: 1rem; }
.agent-loc {
  display: inline-flex; align-items: center; gap: 4px;
  color: #7a5063; font-size: .82rem; margin: 4px 0 8px;
}
.agent-bio { color: #4a2a3a; font-size: .85rem; line-height: 1.45; }
.agent-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.blog-card {
  background: #fff;
  border: 1px solid #f3d4e1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.08); color: inherit; }
.blog-card-cover {
  height: 160px;
  background: #fdf2f7 center/cover no-repeat;
}
.blog-card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f7, #fbe4ee);
  color: #c2185b;
}
.blog-card-body { padding: 16px; }
.blog-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.blog-card-body p { margin: 0 0 10px; color: #4a2a3a; font-size: .88rem; line-height: 1.45; }

.blog-post .blog-body { line-height: 1.7; font-size: 1rem; }
.blog-post .blog-body p { margin: 0 0 14px; }

/* --- Help / FAQ --- */
.help-actions { margin-bottom: 18px; }
.faq-list h2 { margin: 24px 0 12px; }
.faq-item {
  background: #fff;
  border: 1px solid #f3d4e1;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::after {
  content: '+';
  color: #c2185b;
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 12px 0 4px; color: #4a2a3a; line-height: 1.55; }

.warn-card {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fffaeb, #fff);
}

/* --- Report link on ad detail --- */
.ad-report-link {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3d4e1;
  text-align: center;
}
.ad-report-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b91c4a;
  font-size: .82rem;
  text-decoration: none;
}
.ad-report-link a:hover { text-decoration: underline; }
