/* ترتيب الصفحة: الاكتشاف ثم النتائج ثم الملخص ثم الخريطة */

.home-insights-section {
  padding: 26px 0 12px;
}

.home-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: stretch;
}

.home-insights-grid > article {
  height: 100%;
  margin: 0;
}

.results-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.closed-filter-badge,
.home-summary-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(11, 148, 84, .2);
  border-radius: 999px;
  color: var(--brand, #0b9454);
  background: rgba(11, 148, 84, .08);
  font-size: .78rem;
  font-weight: 900;
}

.home-summary-section {
  padding: 36px 0 16px;
}

.home-summary-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-summary-heading h2 {
  margin: 4px 0 0;
  color: var(--text, #17201c);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
}

.home-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.home-summary-grid .stat-card {
  min-height: 118px;
}

.map-bottom-section {
  padding: 0 0 56px;
}

.map-bottom-section .map-card {
  width: 100%;
  margin: 0;
}

.map-bottom-section .places-map {
  min-height: 520px;
}

.map-bottom-section .map-toolbar h2 {
  margin: 4px 0 0;
  color: var(--text, #17201c);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
}

html[data-theme="dark"] .closed-filter-badge,
html[data-theme="dark"] .home-summary-note {
  border-color: rgba(74, 222, 128, .22);
  color: #76e5a8;
  background: rgba(74, 222, 128, .08);
}

@media (max-width: 991px) {
  .home-insights-grid {
    grid-template-columns: 1fr;
  }

  .home-summary-grid {
    grid-template-columns: 1fr;
  }

  .map-bottom-section .places-map {
    min-height: 460px;
  }
}

@media (max-width: 575px) {
  .home-insights-section {
    padding-top: 18px;
  }

  .home-summary-section {
    padding-top: 28px;
  }

  .home-summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-heading-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .map-bottom-section {
    padding-bottom: 38px;
  }

  .map-bottom-section .places-map {
    min-height: 410px;
  }
}
