/* =============================================
   HoodBG — app.css
   ============================================= */

:root {
  --hb-green:       #3B6D11;
  --hb-green-mid:   #639922;
  --hb-green-light: #EAF3DE;
  --hb-green-border:#C0DD97;
  --hb-dark:        #0a1a0a;
  --hb-bg:          #f5f7f4;
  --hb-hero-bg:     #f0f7eb;
  --hb-border:      #e4ebe0;
  --hb-text:        #0a1a0a;
  --hb-text-muted:  #666;

  /* Alert цветове */
  --hb-red:         #E24B4A;
  --hb-red-bg:      #FCEBEB;
  --hb-red-text:    #A32D2D;
  --hb-blue:        #378ADD;
  --hb-blue-bg:     #E6F1FB;
  --hb-blue-text:   #185FA5;
  --hb-amber:       #EF9F27;
  --hb-amber-bg:    #FAEEDA;
  --hb-amber-text:  #854F0B;
  --hb-purple:      #534AB7;
  --hb-purple-bg:   #EEEDFE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--hb-bg);
  color: var(--hb-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ─── NAVBAR ─────────────────────────────────── */

.hb-nav {
  width: 100%;
  background: #fff;
  border-bottom: 0.5px solid var(--hb-border);
  height: 52px;
}

.hb-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hb-logo-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--hb-green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-green);
  font-size: 14px;
}

.hb-logo-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--hb-dark);
  letter-spacing: -0.3px;
}

.hb-logo-accent { color: var(--hb-green); }

.hb-login {
  color: var(--hb-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.hb-login:hover { color: var(--hb-dark); }

/* ─── HERO ───────────────────────────────────── */

.hb-hero {
  background: var(--hb-hero-bg);
  border-bottom: 0.5px solid var(--hb-green-border);
  padding: 48px 24px 0;
}

.hb-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
}

.hb-hero-left { padding-bottom: 48px; }

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hb-green-light);
  border: 0.5px solid var(--hb-green-border);
  color: var(--hb-green);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hb-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hb-green);
}

.hb-hero h1 {
  font-size: 32px;
  font-weight: 500;
  color: var(--hb-dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hb-hero h1 em {
  color: var(--hb-green);
  font-style: normal;
}

.hb-hero-p {
  font-size: 15px;
  color: var(--hb-text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 380px;
}

.hb-search {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.hb-search input {
  flex: 1;
  background: #fff;
  border: 0.5px solid var(--hb-green-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--hb-text);
  outline: none;
  transition: border-color 0.15s;
}

.hb-search input:focus { border-color: var(--hb-green); }

.hb-search button {
  background: var(--hb-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.hb-search button:hover { background: #2d5409; }

/* ─── MAIN CONTAINER ─────────────────────────── */

.hb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ─── SECTION LABEL ──────────────────────────── */

.hb-sec-label {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ─── КНОПКИ ─────────────────────────────────── */

.hb-btn {
  background: var(--hb-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.hb-btn:hover { background: #2d5409; color: #fff; }

.hb-btn-outline {
  background: transparent;
  color: var(--hb-green);
  border: 0.5px solid var(--hb-green);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.hb-btn-outline:hover {
  background: var(--hb-green-light);
  color: var(--hb-green);
}

/* ─── КАРТИ НА КВАРТАЛИ ──────────────────────── */

.hb-hoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.hb-hood-card {
  background: #fff;
  border: 0.5px solid var(--hb-border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.hb-hood-card:hover {
  border-color: var(--hb-green);
  transform: translateY(-2px);
}

.hb-hood-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--hb-dark);
  margin-bottom: 4px;
}

.hb-hood-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
}

.hb-pulse-bar {
  height: 3px;
  background: #e4ebe0;
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.hb-pulse-fill { height: 100%; border-radius: 2px; }

/* ─── ALERT КАРТИ ────────────────────────────── */

.hb-alert-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 0.5px solid var(--hb-border);
  border-left: 3px solid;
}

.hb-alert-type {
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hb-alert-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-dark);
  margin-bottom: 2px;
  line-height: 1.4;
}

.hb-alert-time { font-size: 11px; }
.hb-alert-src  { font-size: 10px; color: #aaa; margin-top: 3px; }

/* ─── NEWS ITEMS ─────────────────────────────── */

.hb-news-item {
  background: #fff;
  border: 0.5px solid var(--hb-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.hb-news-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.hb-news-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-dark);
  line-height: 1.4;
  margin-bottom: 3px;
}

.hb-news-meta { font-size: 11px; color: #888; }

.hb-news-votes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--hb-green);
  margin-top: 4px;
}

/* ─── BADGE ──────────────────────────────────── */

.hb-badge-sm {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}

/* ─── EVENTS ─────────────────────────────────── */

.hb-event-item {
  background: #fff;
  border: 0.5px solid var(--hb-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hb-event-date {
  background: var(--hb-green-light);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 44px;
}

.hb-event-day  { font-size: 18px; font-weight: 500; color: var(--hb-green); }
.hb-event-mon  { font-size: 10px; color: var(--hb-green); }
.hb-event-title { font-size: 13px; font-weight: 500; color: var(--hb-dark); margin-bottom: 3px; }
.hb-event-meta  { font-size: 11px; color: #888; }

/* ─── SUBSCRIBE BOX ──────────────────────────── */

.hb-sub-box {
  background: var(--hb-green-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hb-sub-box h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--hb-dark);
  margin-bottom: 4px;
}
.hb-sub-box p {
  font-size: 13px;
  color: var(--hb-green);
  margin-bottom: 12px;
}
.hb-sub-row { display: flex; gap: 8px; flex-shrink: 1; min-width: 200px; }

.hb-sub-input {
  flex: 1;
  background: #fff;
  border: 0.5px solid var(--hb-green-border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.hb-sub-btn {
  background: var(--hb-green);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* ─── HOOD HEADER ────────────────────────────── */

.hb-hood-header {
  background: var(--hb-hero-bg);
  border-bottom: 0.5px solid var(--hb-green-border);
  padding: 24px;
}

.hb-hood-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hb-hood-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--hb-dark);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hb-hood-meta-row {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hb-pulse-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hb-pulse-label { font-size: 12px; color: #888; }

.hb-pulse-bar-wide {
  width: 120px;
  height: 4px;
  background: var(--hb-green-border);
  border-radius: 2px;
  overflow: hidden;
}

.hb-hood-stats { display: flex; gap: 24px; flex-shrink: 0; }

.hb-hstat { text-align: center; }
.hb-hstat-val { font-size: 22px; font-weight: 500; color: var(--hb-dark); }
.hb-hstat-lbl { font-size: 11px; color: #888; }

/* ─── BREADCRUMB ─────────────────────────────── */

.hb-breadcrumb {
  background: var(--hb-bg);
  border-bottom: 0.5px solid var(--hb-border);
  padding: 10px 24px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hb-breadcrumb a { color: var(--hb-green); text-decoration: none; }

/* ─── LAYOUT HOOD PAGE ───────────────────────── */

.hb-hood-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hb-hood-content { padding: 24px; }

.hb-hood-sidebar {
  padding: 20px;
  background: #fff;
  border-left: 0.5px solid var(--hb-border);
}

/* ─── BEST PICKS ─────────────────────────────── */

.hb-best-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--hb-bg);
  border-radius: 8px;
  margin-bottom: 6px;
}

.hb-best-rank { font-size: 11px; font-weight: 500; color: #888; width: 16px; }
.hb-best-name { font-size: 12px; font-weight: 500; color: var(--hb-dark); }
.hb-best-cat  { font-size: 10px; color: #888; }

/* ─── FORM ───────────────────────────────────── */

.hb-form-card {
  background: #fff;
  border: 0.5px solid var(--hb-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.hb-input {
  width: 100%;
  background: var(--hb-bg);
  border: 0.5px solid var(--hb-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--hb-text);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 8px;
}

.hb-input:focus { border-color: var(--hb-green); background: #fff; }

/* ─── FOOTER ─────────────────────────────────── */

.hb-footer {
  width: 100%;
  background: #fff;
  border-top: 0.5px solid var(--hb-border);
  padding: 20px 24px;
}

.hb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hb-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.hb-footer-links a { color: #888; font-size: 12px; text-decoration: none; }
.hb-footer-links a:hover { color: var(--hb-green); }
.hb-footer-copy { font-size: 12px; color: #aaa; }

/* ─── MAP ────────────────────────────────────── */

.hb-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--hb-border);
  margin-bottom: 20px;
}

/* ─── HOW IT WORKS ───────────────────────────── */

.hb-how-section {
  background: var(--hb-dark);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
}

.hb-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.hb-how-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0 auto 10px;
}

.hb-how-title { font-size: 13px; font-weight: 500; color: #0a1a0a; margin-bottom: 4px; text-align: center; }
.hb-how-p     { font-size: 12px; color: #888; line-height: 1.5; text-align: center; }

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 991px) {
  .hb-hero-inner       { grid-template-columns: 1fr; }
  .hb-hero-right       { display: none; }
  .hb-hoods-grid       { grid-template-columns: repeat(2, 1fr); }
  .hb-hood-layout      { grid-template-columns: 1fr; }
  .hb-hood-sidebar     { border-left: none; border-top: 0.5px solid var(--hb-border); }
  .hb-how-grid         { grid-template-columns: 1fr; }
  .hb-hood-header-inner{ flex-direction: column; align-items: flex-start; }
}

.hb-latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }

@media (max-width: 768px) {
  .hb-latest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .hb-hoods-grid { grid-template-columns: 1fr; }
  .hb-hero h1    { font-size: 24px; }
  .hb-sub-box    { flex-direction: column; align-items: stretch; text-align: center; }
  .hb-sub-row    { flex-direction: column; }
  .hb-sub-input  { width: 100%; }
}

.hb-dash-grid{display:grid;grid-template-columns:1fr 300px;gap:20px}
@media(max-width:768px){.hb-dash-grid{grid-template-columns:1fr}}

/* ─── MAPBOX POPUP OVERRIDE ──────────────────── */
.mapboxgl-popup-content {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
  overflow: hidden;
  background: transparent !important;
}
.mapboxgl-popup-tip {
  display: none !important;
}

/* ─── HOOD ACTION BUTTONS ────────────────────── */
.hb-hood-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 576px) {
  .hb-hood-actions { gap: 8px; }
  .hb-hood-actions > *:nth-child(-n+2) { flex: 1 1 calc(50% - 4px); }
  .hb-hood-actions > *:nth-child(n+3) { flex: 1 1 calc(50% - 4px); }
}

@font-face {
  font-family: 'tabler-icons';
  font-display: swap;
}
