/* Version: 1.0171 */
/* WhereNoBiz — стилове. Чисто, иконно. Минимум текст. */
:root {
  --bg: #0f1b2d;
  --bg2: #14253c;
  --panel: #ffffff;
  --ink: #1d2a3a;
  --muted: #6b7886;
  --line: #d9e0e8;
  --accent: #1f8a70;
  --accent2: #2f6fb0;
  --warn-bg: #fff4e0;
  --warn-line: #f0c97a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", Arial, sans-serif; background: #f3f6fa; color: var(--ink); }

/* ── Навигация ─────────────────────────────────────────────── */
.wnb-nav {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); color: #fff; padding: 8px 16px; gap: 12px; flex-wrap: wrap;
}
.wnb-nav .nav-left, .wnb-nav .nav-right { display: flex; align-items: center; gap: 6px; }
.wnb-nav .nav-link { color: #fff; text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.wnb-nav .nav-link:hover { background: rgba(255,255,255,.14); }
.wnb-nav .nav-link.on { background: rgba(255,255,255,.24); font-weight: 600; }
.wnb-nav .nav-user { font-size: 13px; opacity: .85; }
.wnb-nav .wnb-lang {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; padding: 5px 8px; border-radius: 6px; cursor: pointer; margin-right: 4px;
}
.wnb-nav .wnb-lang option { color: #111; }

/* ── Hero / заглавия ───────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%); color: #fff; padding: 30px 20px; text-align: center; }
.hero.small { padding: 18px 20px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; }
.hero.small h1 { font-size: 20px; }
.hero p { margin: 0; opacity: .9; font-size: 15px; }

/* ── Начало: карта + бутони ────────────────────────────────── */
.home-wrap { max-width: 1000px; margin: 0 auto; padding: 20px; }
.map-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.world-map { width: 100%; height: auto; display: block; border-radius: 12px; overflow: hidden; }
/* Лек воал върху снимката — за да изпъкват етикетите/баджовете. */
.map-veil { fill: rgba(8, 22, 38, .18); pointer-events: none; }
/* Кликаемите зони са невидими върху снимката; светват само при посочване. */
.map-region path { fill: rgba(255,255,255,0); stroke: rgba(255,255,255,0); stroke-width: 1.5; cursor: pointer; transition: fill .15s, stroke .15s; }
.map-region:hover path, .map-region:focus path { fill: rgba(46,204,140,.40); stroke: rgba(255,255,255,.8); outline: none; }
/* Бял етикет с тъмен кант — четим върху всяка част от снимката. */
.map-label { fill: #fff; font-size: 17px; font-weight: 700; pointer-events: none; font-family: system-ui, Arial;
  paint-order: stroke; stroke: #07243f; stroke-width: 3px; stroke-linejoin: round; }
.map-badge circle { fill: #e8543b; stroke: #fff; stroke-width: 1.5; }
.map-badge text { fill: #fff; font-size: 13px; font-weight: 700; font-family: system-ui, Arial; }

.home-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 700px) { .home-cta { grid-template-columns: 1fr; } }
.cta {
  display: block; text-decoration: none; border-radius: 12px; padding: 16px 18px; font-size: 17px; font-weight: 600;
  text-align: center; color: #fff; line-height: 1.3;
}
.cta small { display: block; font-size: 12px; font-weight: 400; opacity: .9; margin-top: 4px; }
.cta-primary { background: var(--accent); }
.cta-secondary { background: var(--accent2); }
.cta:hover { filter: brightness(1.06); }

/* ── Листване: държави ─────────────────────────────────────── */
.country-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.country-row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.country-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: none; border: 0; cursor: pointer; font-size: 15px; text-align: left;
}
.country-head .flag { font-size: 22px; }
.country-head .cname { flex: 1; font-weight: 600; color: var(--ink); }
.country-head .cbadge { font-size: 12px; color: var(--muted); }
.country-head .chev { color: var(--muted); transition: transform .15s; }
.country-row.open .chev { transform: rotate(180deg); }
.country-posts { border-top: 1px solid var(--line); padding: 6px 10px 10px; }
.loading, .empty-line { color: var(--muted); font-size: 13px; padding: 8px; }
.biz-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid #eef2f6;
}
.biz-row:last-child { border-bottom: 0; }
.biz-row:hover { background: #f4faf8; }
.biz-rank { color: var(--accent); font-weight: 700; min-width: 32px; }
.biz-title { flex: 1; }
.biz-votes { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Секция „моите публикации" (вкл. чакащи) */
.mine-head { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; padding: 8px 8px 4px; }
.biz-mine { background: #fbfdff; border-left: 3px solid var(--accent); }
.biz-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.biz-status.st-pending_moderation { background: #fff3cd; color: #8a6d00; }
.biz-status.st-approved { background: #d6f3e3; color: #1d7a4d; }
.biz-status.st-rejected { background: #fde2e2; color: #b3261e; }
.biz-status.st-removed { background: #e9ecef; color: #555; }

/* ── Панели/форми ──────────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.notice { color: var(--muted); font-size: 14px; }
.form-wrap, .post-wrap { max-width: 640px; margin: 0 auto; padding: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.counter { float: right; color: var(--muted); }
.actions { display: flex; gap: 10px; margin-top: 6px; }
button {
  font-size: 14px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #fff;
}
button.ghost { background: #fff; color: var(--accent); }
button:hover { filter: brightness(1.05); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; background: #eef2f7; color: var(--ink); border: 1px solid var(--line); }
.tab.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.auth-card { max-width: 420px; margin: 24px auto; }

.ack { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); margin: -4px 0 14px; }
.ack input { margin-top: 2px; }
.warn-box { background: var(--warn-bg); border-color: var(--warn-line); color: #7a4d11; font-size: 14px; margin-bottom: 14px; }
.fee-note { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

/* ── Съобщения ─────────────────────────────────────────────── */
.msg { font-size: 13px; padding: 9px 11px; border-radius: 8px; margin-top: 10px; }
.msg.ok { background: #e7f6ec; border: 1px solid #b7e0c4; color: #1d6b39; }
.msg.err { background: #fdeaea; border: 1px solid #f2c3c3; color: #9b2c2c; }

/* ── Детайл на пост ────────────────────────────────────────── */
.back { display: inline-block; margin-bottom: 12px; color: var(--accent2); text-decoration: none; font-size: 14px; }
.post-card { }
.post-country { font-size: 14px; color: var(--muted); }
.post-title { margin: 4px 0 6px; font-size: 22px; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.status-badge { display: inline-block; background: #fff4e0; border: 1px solid var(--warn-line); color: #7a4d11; font-size: 12px; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.post-desc { white-space: pre-wrap; line-height: 1.5; }
.post-section { margin-top: 16px; }
.post-section h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.link-list { margin: 0; padding-left: 18px; }
.link-list a { color: var(--accent2); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.img-grid img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.phone-box { margin-top: 14px; background: #eef7f3; border: 1px solid #bfe3d4; border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.post-actions { display: flex; gap: 10px; margin-top: 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 0; }
