/* ====================
   About Page Styles
   ==================== */

/* Lead text */
.about-lead {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Map */
.about-map {
  height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 0;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-blue {
  background: #3b82f6;
  border: 2px solid #1d4ed8;
}

.legend-green {
  background: #22c55e;
  border: 2px solid #15803d;
}

.legend-orange {
  background: #f97316;
  border: 2px solid #c2410c;
}

/* Village cards grid */
.village-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.village-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  overflow: hidden;
}

.village-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(56, 189, 248, 0.15);
}

.village-card.highlight {
  border-color: var(--color-primary-lighter);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-md);
}

.village-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}

.village-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.village-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.tag-sale {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.tag-rent {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.village-body {
  padding: 0 18px 16px;
}

.village-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.85rem;
}

.village-detail:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.detail-value {
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
}

/* Highlight animation for page-item (facilities) */
.page-item.highlight {
  border-color: var(--color-primary-lighter);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-md);
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-map {
    height: 300px;
  }

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

  .map-legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .about-map {
    height: 250px;
  }
}
