:root {
  --primary: #0A7EA4;
  --primary-dark: #065F7E;
  --primary-light: #E0F4FA;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #CCFBF1;
  --navy: #0C2D3F;
  --navy-mid: #164560;
  --sky: #38BDF8;
  --surface: #F4FAFD;
  --surface-card: #FFFFFF;
  --border: #C7E8F5;
  --border-strong: #7EC8E3;
  --text-main: #0C2D3F;
  --text-muted: #4A7C8F;
  --text-light: #84B5C7;
  --status-reg: #0A7EA4;
  --status-proc: #D97706;
  --status-done: #059669;
  --alice-blue: #eef5ff;
  --icy-blue: #b4d4ff;
  --glaucous: #5a7496;
  --amber-earth: #d38116;
}

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


body {
  font-family: 'Onest', sans-serif;
  background: var(--surface);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ── NAV ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
}

.navmenu {
  display: contents;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 65px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-text {
  font-family: 'Unbounded', sans-serif;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.logo-text span {
  color: var(--sky);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── MUNICIPALITY SELECTOR ── */
.municipality-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px 8px 12px;
  transition: all 0.25s ease;
  min-width: 140px;
}

.municipality-selector:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.municipality-selector svg {
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.municipality-selector:hover svg {
  color: rgba(255, 255, 255, 0.95);
}

.municipality-selector select {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  padding: 2px 6px 2px 0;
  flex: 1;
  min-width: 90px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px;
  padding-right: 24px;
}

.municipality-selector select:focus {
  color: #fff;
}

.municipality-selector select:hover {
  color: #fff;
}

.municipality-selector select:focus {
  outline: none;
}

.municipality-selector select option {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  border: none;
  margin: 4px 0;
}

.municipality-selector select option:hover {
  background: var(--primary);
}

.municipality-selector select option:checked {
  background: linear-gradient(var(--primary), var(--primary));
  color: #fff;
}

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
}

.filter-inner input[type="text"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  outline: none;
}

.filter-inner input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-inner input:focus {
  border-color: var(--sky);
}

.filter-inner select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff80' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-inner select:focus {
  border-color: var(--sky);
}

.filter-inner select option {
  background: #164560;
  color: #fff;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(10, 126, 164, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 126, 164, 0.2);
  border: 1px solid rgba(10, 126, 164, 0.4);
  color: var(--sky);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 .accent {
  color: var(--sky);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn-hero {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero:hover {
  background: #0990BF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 126, 164, 0.4);
}

.btn-hero-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 36px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  min-width: 160px;
}

.stat-card:hover {
  background: rgba(10, 126, 164, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-card.s-proc .stat-num {
  color: #FCD34D;
}

.stat-card.s-done .stat-num {
  color: #6EE7B7;
}

/* ── SECTION COMMON ── */
section {
  padding: 72px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--teal-dark) 100%);
  padding: 56px 24px;
}

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

.cta-text h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 480px;
}

.cta-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.pill svg {
  opacity: 0.7;
}

.btn-cta {
  background: #fff;
  color: var(--primary-dark);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── SIGNALS GRID ── */
.signals-section {
  background: #fff;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.signal-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: var(--surface-card);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.signal-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(10, 126, 164, 0.12);
  transform: translateY(-2px);
}

.signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.signal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-reg {
  background: #E0F4FA;
  color: var(--status-reg);
}

.status-proc {
  background: #FEF3C7;
  color: #92400E;
}

.status-done {
  background: #D1FAE5;
  color: #065F46;
}

.signal-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.signal-id {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}

.signal-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

.signal-city {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--teal-light);
  color: var(--teal-dark);
  margin-left: 8px;
}

.view-all-row {
  text-align: center;
  margin-top: 32px;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 28px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;


  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ── FAQ ── */
.faq-section {
  background: var(--surface);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 22px 18px;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 18, 30, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(30px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.modal-close {
  background: var(--surface);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-body {
  padding: 24px 28px 28px;
}

.form-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.step-dot.active {
  background: var(--primary);
}

.step-dot.done {
  background: var(--teal);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-label .req {
  color: var(--primary);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-report-text {
  white-space: pre-wrap;
  /* пази \n и пренася */
  overflow-wrap: break-word;
  /* чупи дълги токени */
  word-break: break-word;
  /* fallback */
  hyphens: auto;
  /* по-естествен пренос при нормални думи */
  overflow-x: hidden;
  /* без хоризонтален скрол */
}

/* ── AI TEXTAREA ── */
.ai-textarea-wrap {
  position: relative;
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  padding-bottom: 52px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--surface);
  outline: none;
  resize: vertical;
  min-height: 130px;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

.ai-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 10px;
}

.ai-hint {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.ai-hint strong {
  font-weight: 700;
}

.btn-ai {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ai:hover {
  background: var(--primary-dark);
}

.btn-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ai .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-result {
  display: none;
  margin-top: 10px;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px 16px;
}

.ai-result.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-result-text {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.65;
}

.ai-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-accept {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept:hover {
  background: var(--teal-dark);
}

.btn-discard {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 7px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-discard:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.map-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #f0f9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.map-placeholder:hover {
  border-color: var(--primary);
}

.map-icon {
  font-size: 32px;
}

.city-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.city-tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.city-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.modal-footer {
  padding: 0 28px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  padding: 11px 18px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 2px solid var(--primary);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-logo-text span {
  color: var(--sky);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-contact {
  margin-top: 20px;
}

.footer-contact a {
  color: var(--sky);
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.cities-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.cities-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

/* ── AI FEATURE CALLOUT ── */
.ai-feature-section {
  background: var(--navy);
  padding: 72px 24px;
}

.ai-feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-feature-text .section-title {
  color: #fff;
}

.ai-feature-text .section-desc {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.ai-feature-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ai-point-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ai-point-icon.blue {
  background: rgba(10, 126, 164, 0.2);
}

.ai-point-icon.teal {
  background: rgba(13, 148, 136, 0.2);
}

.ai-point-icon.sky {
  background: rgba(56, 189, 248, 0.15);
}

.ai-point-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.ai-point-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.demo-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px;
}

.demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.demo-before,
.demo-after {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.demo-before {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.demo-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-arrow-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-arrow-pill {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-after {
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
  }

  .navmenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 24px;
    z-index: 100;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-active .navmenu {
    display: flex;
  }

  .nav-inner {
    padding: 12px 16px;
    justify-content: space-between;
    position: relative;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-feature-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 10px;
  }

  .stat-card {
    padding: 18px 24px;
    min-width: 130px;
    flex: 1 1 45%;
  }

  .stat-num {
    font-size: 26px;
  }

  .signals-grid {
    grid-template-columns: 1fr;
  }

  .signal-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    flex-direction: column;
    gap: 12px;
  }

  .nav-actions a {
    width: 100%;
    justify-content: center;
  }

  .stat-card {
    flex: 1 1 100%;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row a {
    width: 100%;
    justify-content: center;
  }

  .btn-ghost,
  .btn-primary,
  .btn-hero,
  .btn-hero-outline,
  .btn-cta,
  .btn-outline {
    text-align: center;
    justify-content: center;
  }
}


/* ── HOMEPAGE LATEST REPORTS SCROLL ── */
.signals-scroll-row {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  gap: 16px;

  padding: 8px 8px 14px;

  margin: -8px -8px 0;

  scroll-padding-top: 8px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: calc(100% + 16px);
  max-width: 100vw;
  box-sizing: border-box;
}

.signals-scroll-row::-webkit-scrollbar {
  height: 8px;
}

.signals-scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.index-report-card {
  min-width: clamp(300px, 48vw, 360px);
  max-width: clamp(340px, 52vw, 420px);
  min-height: 220px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.index-report-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.index-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.index-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.index-card-date {
  font-size: 11px;
  color: var(--text-light);
}

.index-card-desc {
  flex: 1 1 auto;
  min-height: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;

  font-size: 14px;
  line-height: 1.5;
  color: var(--text);

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}


/* Rich text inside - normalised distances */
.index-card-desc>*:first-child,
.inner-card-desc>*:first-child {
  margin-top: 0;
}

.index-card-desc>*:last-child,
.inner-card-desc>*:last-child {
  margin-bottom: 0;
}

.index-card-desc p,
.inner-card-desc p {
  margin: 0 0 0.6em;
}

.index-card-desc h1,
.index-card-desc h2,
.index-card-desc h3,
.inner-card-desc h1,
.inner-card-desc h2,
.inner-card-desc h3 {
  margin: 0.2em 0 0.4em;
  line-height: 1.3;
  font-weight: 700;
  font-size: 1.05em;
}

.index-card-desc ul,
.index-card-desc ol,
.inner-card-desc ul,
.inner-card-desc ol {
  margin: 0 0 0.6em 1.2em;
  padding: 0;
}


.index-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .signals-scroll-row {
    gap: 10px;
    padding: 6px 4px 10px;
    width: 100%;
    max-width: 100vw;
    margin: -6px 0 0;
  }

  .index-report-card {
    min-width: min(300px, 94vw);
    max-width: min(360px, 94vw);
    padding: 18px;
  }

}

/* All Reports Page*/

#reportsList p:nth-child(4) {
  position: relative;
  margin-top: 10px;
  padding-top: 10px;
}


#reportsList p:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 0;
  /* точно над описанието */
  left: 0;
  right: 0;
  height: 2px;
  background: #97b5d3;
  /* същият светлосин цвят */
  opacity: 0.8;
  /* леко полупрозрачна */
  border-radius: 100px;
  /* за по-мек вид */
}



#reportsList p,
#reportsList p * {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  line-height: 1.55;
  /* прави пренасянето по-естествено */
}


/* STOP selection of whole card */
.index-report-card {
  user-select: none;
  -webkit-user-select: none;
  /* Safari/iOS/Chrome iOS */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* legacy Edge */
}

/* Allow selection only in specific text blocks */
.index-report-card .index-card-desc,
.index-report-card .index-card-cat,
.index-report-card .index-card-date,
.index-report-card .index-card-footer {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Stop possible global ::selection */
.index-report-card::selection {
  background: transparent;
}

.index-report-card *::selection {
  background: rgba(0, 160, 170, 0.20);
  /* по-мек тийл */
  color: inherit;
}

/* Remove type-highlight on iOS/Android on tap */
.index-report-card {
  -webkit-tap-highlight-color: transparent;
}



/* Modal Global Classes */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active,
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal,
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-family: 'Unbounded', sans-serif;
  color: var(--navy);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Autocomplete style overrides */
.auto-search-wrapper {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.auto-search-wrapper input {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  padding: 10px 40px 10px 12px;
  box-shadow: none;
}

.auto-search-wrapper input:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.15);
}

.auto-results-wrapper {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1200px;
  max-height: 280px;
  overflow-y: auto;
  background-color: #fff;
  border: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  box-shadow: 0 10px 25px rgba(8, 18, 32, 0.15);
  z-index: 9999;
}

.auto-results-wrapper.auto-is-active {
  display: block;
}

.auto-results-wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-results-wrapper ul li {
  padding: 10px 12px;
  min-height: 44px;
  border-top: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-main);
}

.auto-results-wrapper ul li:last-child {
  border-bottom: none;
}

.auto-selected,
.auto-results-wrapper ul li:hover {
  background-color: var(--primary-light);
  color: var(--text-main);
  border-color: transparent;
}

.auto-clear {
  color: var(--text-muted);
  transform: translateY(-10%);
}


/* GLOBAL: remove underline from every button and button-related links */
button,
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-hero,
.btn-hero-outline,
.btn-cta,
a.btn-primary,
a.btn-outline,
a.btn-ghost,
a.btn-hero,
a.btn-hero-outline,
a.btn-cta {
  text-decoration: none !important;
}

/* If the browser adds underline on hover somewhere we stop it */
button:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-ghost:hover,
.btn-hero:hover,
.btn-hero-outline:hover,
.btn-cta:hover,
a.btn-primary:hover,
a.btn-outline:hover,
a.btn-ghost:hover,
a.btn-hero:hover,
a.btn-hero-outline:hover,
a.btn-cta:hover {
  text-decoration: none !important;
}


.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
}
.btn-google:hover {
    background:#dc2626;
    color:#fff;
}
