/* AdzCity Theme v1.1 — matches uploaded design */
:root {
  --blue: #1a53d6;
  --blue-light: #eaf0ff;
  --blue-dark: #1340a8;
  --green: #16a34a;
  --red: #dc2626;
  --soft: #f6f6f6;
  --muted: #888;
  --card-border: #e6e6e6;
  --hdr: 60px;
  --strip: 52px;
  --filters-w: 230px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; background: #fff; color: #222; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Header ──────────────────────────────────────────────────────── */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hdr);
  background: #fafafa; border-bottom: 1px solid var(--card-border);
  z-index: 1200; display: flex; align-items: center;
}
.header-inner {
  width: 100%; display: flex; align-items: center;
  gap: 10px; padding: 0 12px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.logo-peace {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, #6a2fb6, #582a93);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 16px; flex-shrink: 0;
}
.logo-name { font-size: 18px; font-weight: 700; color: #222; letter-spacing: -.3px; }

/* Location/Category dropdowns */
.header-controls { display: flex; gap: 8px; align-items: center; }
.hc-dropdown { position: relative; }
.hc-btn {
  background: #fff; border: 1px solid #ddd; padding: 7px 12px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  min-width: 110px;
}
.hc-btn:hover { border-color: var(--blue); color: var(--blue); }
.hc-arrow { font-size: 10px; margin-left: auto; }
.hc-drop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 180px; background: #fff; border: 1px solid #ddd;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 2000; max-height: 280px; overflow-y: auto;
}
.hc-drop.open { display: block; }
.hc-drop a {
  display: block; padding: 10px 14px; font-size: 13px; color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.hc-drop a:last-child { border-bottom: none; }
.hc-drop a:hover { background: var(--blue-light); color: var(--blue); }

/* Header right */
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: 11px; color: #333; padding: 4px 8px;
  border-radius: 6px; text-decoration: none; position: relative;
  cursor: pointer;
}
.icon-stack:hover { background: #f0f0f0; color: var(--blue); }
.icon-stack i { font-size: 18px; }
.icon-stack div { line-height: 1; font-size: 11px; }
.hdr-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hdr-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff; font-size: 9px;
  font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 0 2px;
}
.post-ad-btn {
  background: var(--blue); color: #fff; border: none;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 600; display: flex; align-items: center; gap: 6px;
  text-decoration: none; transition: background .15s;
}
.post-ad-btn:hover { background: var(--blue-dark); color: #fff; }
.mob-toggle { display: none; background: none; border: none; font-size: 22px; color: #444; }

/* Mobile nav drawer */
.mob-nav {
  display: none; position: absolute; top: var(--hdr); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid #eee;
  flex-direction: column; z-index: 1100; box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.mob-nav.open { display: flex; }
.mob-nav a { padding: 13px 18px; border-bottom: 1px solid #f4f4f4; display: flex; align-items: center; gap: 10px; color: #333; font-size: 14px; }
.mob-nav a:hover { background: var(--soft); color: var(--blue); }
.mob-nav a i { width: 18px; text-align: center; }

/* ── Top Strip ─────────────────────────────────────────────────────────── */
.top-strip {
  position: fixed; top: var(--hdr); left: 0; right: var(--filters-w);
  background: #fff; border-bottom: 1px solid #eee;
  z-index: 1100; padding: 6px 0;
}
.wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px; flex-wrap: nowrap;
}
.chips { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.chip {
  border: 1px solid #ddd; padding: 7px 12px; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13px;
  color: #333; text-decoration: none; white-space: nowrap;
  transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue); font-weight: 600; }

.strip-search { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; }
.strip-input {
  flex: 1; padding: 7px 10px; border: 1px solid #ddd;
  border-right: none; border-radius: 8px 0 0 8px;
  font-size: 13px; outline: none; min-width: 0;
}
.strip-input:focus { border-color: var(--blue); }
.strip-btn-search {
  background: var(--blue); color: #fff; border: none;
  padding: 7px 14px; border-radius: 0 8px 8px 0;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.strip-btn-search:hover { background: var(--blue-dark); }

.views { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.view-btn { background: #fff; border: none; padding: 7px 10px; font-size: 15px; color: #666; transition: all .15s; }
.view-btn:hover { color: var(--blue); }
.view-btn.active { background: var(--blue-light); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.sort select { padding: 7px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; outline: none; background: #fff; cursor: pointer; }
.result-count { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ── Right Filters Panel ────────────────────────────────────────────────── */
.filters {
  position: fixed; top: var(--hdr); right: 0;
  width: var(--filters-w); background: #fff;
  z-index: 1000; padding: 12px;
  border-left: 1px solid #ddd;
  height: calc(100vh - var(--hdr)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.filter-close { display: none; }
.filter-group {}
.fg-label { display: block; font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.fg-select {
  width: 100%; padding: 8px 10px; border: 1px solid #ddd;
  border-radius: 8px; font-size: 13px; outline: none;
  background: #fff; cursor: pointer;
}
.fg-select:focus { border-color: var(--blue); }
.fg-row { display: flex; gap: 6px; }
.fg-input {
  padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 13px; outline: none; background: #fff;
}
.fg-input.half { width: calc(50% - 3px); }
.fg-input:focus { border-color: var(--blue); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.fcond-btn {
  border: 1px solid #ddd; padding: 5px 10px; background: #fff;
  border-radius: 6px; font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.fcond-btn:hover, .fcond-btn.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.apply-btn {
  width: 100%; background: var(--blue); color: #fff; border: none;
  padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.apply-btn:hover { background: var(--blue-dark); }
.clear-btn {
  display: block; text-align: center; font-size: 12px;
  color: var(--muted); padding: 6px 0; text-decoration: underline;
}
.clear-btn:hover { color: var(--blue); }
.alert-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue);
  padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none;
}
.alert-btn:hover { background: var(--blue); color: #fff; }

/* ── Main Content ───────────────────────────────────────────────────────── */
.main {
  margin-right: var(--filters-w);
  margin-top: calc(var(--hdr) + var(--strip));
  padding: 12px;
  min-height: calc(100vh - var(--hdr) - var(--strip));
}
.mob-filter-row { display: none; }

/* ── Card Grid ──────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.card {
  background: #fff; border: 1px solid var(--card-border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-1px); }
.thumb {
  height: 180px; background: #f2f2f2;
  display: block; overflow: hidden; position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.content { padding: 10px; display: flex; flex-direction: column; }
.card-title-link { text-decoration: none; color: inherit; }
.card-title-link:hover h4 { color: var(--blue); }
h4 {
  margin: 0 0 4px; font-size: 14px; font-weight: 600;
  line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-info {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-top: 8px;
}
.card-price { font-size: 16px; font-weight: bold; color: var(--blue); }
.price-free  { font-size: 16px; font-weight: bold; color: var(--green); }
.location-date { display: flex; flex-direction: column; align-items: flex-end; }
.location { color: #777; font-size: 12px; margin-bottom: 2px; }
.location i { font-size: 10px; }
.date { color: #888; font-size: 11px; }
.bookmark-icon {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,.9); width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: none; font-size: 13px; color: #666; z-index: 2;
  transition: all .15s;
}
.bookmark-icon:hover, .bookmark-icon.saved { color: var(--blue); background: var(--blue-light); }
.badge-feat {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: #ea580c; color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px;
}

/* ── Compact view (row + small image) ──────────────────────────────────── */
.view-compact .grid { display: block; }
.view-compact .card {
  display: flex; flex-direction: row; gap: 12px;
  padding: 8px 0; margin-bottom: 8px; border: none;
  border-bottom: 1px solid #eee; border-radius: 0;
  transform: none !important; box-shadow: none !important;
}
.view-compact .thumb { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 6px; }
.view-compact .content { padding: 0; }
.view-compact .card-price, .view-compact .price-free { font-size: 14px; }

/* ── List view (no image) ───────────────────────────────────────────────── */
.view-list .grid { display: block; }
.view-list .card {
  display: flex; flex-direction: column; padding: 10px 0;
  border: none; border-bottom: 1px solid #eee; border-radius: 0;
  transform: none !important; box-shadow: none !important;
}
.view-list .thumb { display: none; }
.view-list .content { padding: 0; }
.view-list .card-price, .view-list .price-free { font-size: 14px; }
.view-list .bookmark-icon { position: static; background: none; width: auto; height: auto; }

/* ── Gallery view (taller images) ──────────────────────────────────────── */
.view-gallery .thumb { height: 260px; }

/* ── No results ─────────────────────────────────────────────────────────── */
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; }
.no-results i { margin-bottom: 12px; display: block; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.adzcity-pagination { margin: 24px 0; }
.adzcity-pagination .page-numbers { display: inline-flex; }
.adzcity-pagination ul { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.adzcity-pagination ul li a,
.adzcity-pagination ul li span {
  display: block; padding: 7px 13px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 13px; color: #333; transition: all .15s;
}
.adzcity-pagination ul li span.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.adzcity-pagination ul li a:hover { border-color: var(--blue); color: var(--blue); }

/* ── Inner pages (non-home) ─────────────────────────────────────────────── */
.inner-page-wrap { padding-top: calc(var(--hdr) + 24px); padding-bottom: 48px; min-height: 80vh; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
.page-wrap-listing { padding-top: calc(var(--hdr) + 12px); padding-bottom: 48px; }
.plain-page { padding-top: calc(var(--hdr) + 24px); padding-bottom: 48px; }

/* ── Single Listing ─────────────────────────────────────────────────────── */
.single-listing-page { padding-top: calc(var(--hdr) + 24px); padding-bottom: 60px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }
.listing-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.listing-image-wrap { border-radius: 12px; overflow: hidden; background: #f5f5f5; margin-bottom: 18px; position: relative; }
.listing-main-img { width: 100%; max-height: 460px; object-fit: cover; }
.save-btn-large {
  position: absolute; top: 12px; right: 12px;
  background: #fff; border: none; padding: 7px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: all .15s; color: #444;
}
.save-btn-large:hover, .save-btn-large.saved { background: var(--blue); color: #fff; }
.listing-details-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 22px; }
.listing-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.listing-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge-cat, .badge-type, .badge-cond { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-cat  { background: var(--blue-light); color: var(--blue); }
.badge-sale { background: #dcfce7; color: var(--green); }
.badge-rent { background: #fef3c7; color: #d97706; }
.badge-free { background: #dbeafe; color: var(--blue); }
.badge-cond { background: #f3f4f6; color: #374151; text-transform: capitalize; }
.price-big  { font-size: 1.8rem; font-weight: 800; color: var(--blue); }
.listing-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 20px; padding: 14px; background: var(--soft); border-radius: 8px; }
.info-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #444; }
.info-item i { color: var(--blue); width: 14px; text-align: center; }
.listing-description h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.desc-content { font-size: 13px; color: #555; line-height: 1.8; white-space: pre-line; }
.listing-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-price-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-price { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.seller-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 18px; }
.seller-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.seller-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.seller-name { font-weight: 700; font-size: 14px; }
.seller-name:hover { color: var(--blue); }
.seller-since, .seller-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.seller-bio { font-size: 12px; color: #555; margin-bottom: 10px; }
.safety-card { background: var(--soft); border: 1px solid var(--card-border); border-radius: 10px; padding: 14px; }
.safety-card h4 { font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--green); }
.safety-card ul li { font-size: 12px; color: #555; padding: 3px 0 3px 14px; position: relative; }
.safety-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.related-listings { margin-top: 36px; }
.related-listings h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* Buttons general */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; border: none; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--blue); border: 1px solid var(--blue); padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; }
.btn-outline:hover { background: var(--blue-light); }
.btn-danger { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; border: none; padding: 7px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; }
.full-width { width: 100%; }
.call-btn { background: var(--green) !important; }
.call-btn:hover { background: #15803d !important; }

/* Forms */
.adzcity-form-wrap { max-width: 680px; margin: 0 auto; }
.form-section { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 22px; margin-bottom: 14px; }
.form-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.form-input { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; transition: border .15s; color: #222; background: #fff; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,83,214,.08); }
textarea.form-input { resize: vertical; min-height: 90px; }
.form-row { display: flex; gap: 10px; }
.form-group.half { flex: 1; }
.form-message { padding: 9px 12px; border-radius: 7px; font-size: 13px; margin-top: 8px; }
.form-message.success { background: #dcfce7; color: var(--green); }
.form-message.error   { background: #fee2e2; color: var(--red); }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #444; cursor: pointer; margin-bottom: 10px; }
.image-upload-area { border: 2px dashed #ccc; border-radius: 8px; padding: 28px; text-align: center; cursor: pointer; color: var(--muted); transition: all .15s; }
.image-upload-area:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.image-upload-area i { font-size: 28px; margin-bottom: 6px; display: block; }

/* Auth */
.adzcity-auth-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }
.auth-card { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 38px; width: 100%; max-width: 420px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-card h2 { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 13px; color: #555; }
.auth-footer a { color: var(--blue); font-weight: 600; }
.auth-footer p { margin-bottom: 5px; }

/* Dashboard */
.adzcity-dashboard { max-width: 1100px; margin: 0 auto; }
.dashboard-welcome { display: flex; align-items: center; gap: 14px; background: var(--blue); color: #fff; border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.dashboard-welcome h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.dashboard-welcome p { font-size: 12px; opacity: .85; }
.profile-avatar-sm { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 18px; text-align: center; position: relative; }
.stat-card i { font-size: 22px; color: var(--blue); margin-bottom: 6px; display: block; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: #222; line-height: 1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-card.has-badge::before { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.dashboard-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 8px; margin-bottom: 28px; }
.quick-link { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #fff; border: 1px solid var(--card-border); border-radius: 10px; font-size: 13px; font-weight: 600; color: #222; transition: all .15s; text-decoration: none; }
.quick-link:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.quick-link.danger:hover { border-color: var(--red); background: #fee2e2; color: var(--red); }
.quick-link i { color: var(--blue); }
.quick-link.danger i { color: var(--red); }

/* Profile */
.adzcity-profile-edit { max-width: 1100px; margin: 0 auto; }
.profile-edit-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 24px; margin-bottom: 20px; display: flex; gap: 20px; align-items: flex-start; }
.profile-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-edit-card form { flex: 1; }
.adzcity-profile-public { max-width: 1100px; margin: 0 auto; }
.profile-header { display: flex; align-items: flex-start; gap: 18px; background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.profile-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.profile-location, .profile-joined { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.profile-bio { font-size: 13px; color: #555; margin-top: 6px; }

/* Messages */
.adzcity-messages-wrap { display: flex; height: calc(100vh - 124px); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.conversations-panel { width: 280px; flex-shrink: 0; border-right: 1px solid var(--card-border); display: flex; flex-direction: column; }
.conversations-header { padding: 14px; border-bottom: 1px solid #eee; font-weight: 700; font-size: 15px; }
.conversations-list { flex: 1; overflow-y: auto; }
.convo-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background .15s; }
.convo-item:hover, .convo-item.active { background: var(--blue-light); }
.convo-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-last { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-unread { background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.chat-panel { flex: 1; display: flex; flex-direction: column; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: 8px; }
.chat-empty i { font-size: 40px; }
.chat-window { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 12px 18px; border-bottom: 1px solid #eee; font-weight: 700; background: var(--soft); font-size: 14px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 68%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg-bubble.sent { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg-bubble.received { background: #f0f0f0; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-time { font-size: 10px; opacity: .65; margin-top: 2px; }
.chat-input-row { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #eee; }
.chat-input-row .form-input { flex: 1; }

/* Chat quick modal */
.chat-modal { position: fixed; bottom: 20px; right: 20px; width: 320px; background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: 0 6px 28px rgba(0,0,0,.14); z-index: 9999; overflow: hidden; }
.cm-inner { display: flex; flex-direction: column; height: 390px; }
.cm-head { background: var(--blue); color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; flex-shrink: 0; }
.cm-head button { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; }
.cm-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.cm-form { display: flex; gap: 7px; padding: 9px; border-top: 1px solid #eee; flex-shrink: 0; }
.cm-form input { flex: 1; padding: 7px 10px; border: 1px solid #ddd; border-radius: 7px; font-size: 13px; outline: none; }
.cm-form input:focus { border-color: var(--blue); }
.cm-form button { background: var(--blue); color: #fff; border: none; padding: 7px 12px; border-radius: 7px; }
.chat-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 9998; }

/* Alerts */
.adzcity-alerts-wrap { max-width: 760px; margin: 0 auto; }
.alerts-form-card { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 22px; margin-bottom: 20px; }
.alerts-form-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.alerts-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--card-border); border-radius: 8px; padding: 10px 14px; }
.alert-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; }
.alert-tag { background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.alert-date { font-size: 11px; color: var(--muted); margin-left: 6px; }
.adzcity-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.adzcity-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.adzcity-notice { text-align: center; padding: 28px; background: var(--blue-light); border-radius: 10px; font-size: 14px; }
.adzcity-notice a { color: var(--blue); font-weight: 700; }
.loading { text-align: center; padding: 28px; color: var(--muted); }

/* Mobile filter button row */
.mob-filter-row { display: none; gap: 8px; margin-bottom: 12px; }
.mob-filter-btn, .mob-post-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mob-filter-btn { background: #fff; border: 1px solid #ddd; color: #333; }
.mob-post-btn { background: var(--blue); color: #fff; border: none; text-decoration: none; }

/* Footer */
.site-footer { background: #111; color: #aaa; margin-top: 48px; }
.footer-wrap { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
.footer-top { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 44px 0 32px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.7; max-width: 220px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.fc h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.fc a { display: block; font-size: 12px; color: #777; margin-bottom: 7px; transition: color .15s; }
.fc a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #222; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #555; }
.footer-bottom div { display: flex; gap: 14px; }
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #aaa; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:1100px) { .grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:800px)  { .grid { grid-template-columns: repeat(2,1fr); } .dashboard-stats { grid-template-columns: repeat(2,1fr); } }

@media(max-width:768px) {
  /* Header */
  .header-controls { display: none; }
  .header-right .icon-stack span:not(.hdr-badge) { display: none; }
  .mob-toggle { display: block; margin-left: auto; }
  .post-ad-btn span { display: none; }
  /* Top strip — static on mobile */
  .top-strip { position: static; margin-top: var(--hdr); left: auto; right: auto; }
  .wrap { flex-wrap: wrap; gap: 6px; }
  .chips { width: 100%; order: 1; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; }
  .chip { flex-shrink: 0; }
  .strip-search { order: 2; width: 100%; }
  .views { order: 3; margin-left: auto; }
  .sort { order: 4; }
  .result-count { display: none; }
  /* Filters — fullscreen drawer */
  .filters {
    position: fixed; top: 0; right: -100%; width: 100%;
    height: 100vh; z-index: 2000; transition: right .25s ease;
    padding-top: 56px;
  }
  .filters.open { right: 0; }
  .filter-close { display: block; position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 20px; color: #555; cursor: pointer; }
  /* Main — no right margin */
  .main { margin-right: 0; margin-top: 0; }
  .mob-filter-row { display: flex; }
  /* Single listing */
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  /* Profile */
  .profile-edit-card { flex-direction: column; align-items: center; }
  .form-row { flex-direction: column; }
  /* Messages */
  .adzcity-messages-wrap { height: calc(100vh - 60px); border-radius: 0; border: none; }
  .conversations-panel { width: 100%; }
  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: repeat(2,1fr); }
  /* Chat modal */
  .chat-modal { right: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; }
  /* Dashboard */
  .dashboard-quick { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px) {
  .grid { grid-template-columns: repeat(1,1fr); }
  .view-btn { padding: 6px 8px; }
  .listing-sidebar { grid-template-columns: 1fr; }
  .alerts-form-card .form-row { flex-direction: column; }
}
