/* ===== VILLES-EGLISES.CSS ===== */
.churches-hero {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-top: var(--header-height);
}
.map-container {
  position: relative;
}
.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.search-box {
  display: flex;
}
.search-box input {
  padding: 0.6rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  width: 100%;
  min-width: 180px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
}
.search-box button {
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: background 0.2s;
  min-height: unset;
}
.search-box button:hover {
  background: var(--primary-dark);
}
.cities-tabs {
  margin-top: 2rem;
}
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--light-gray);
  gap: 0.5rem;
}
.tab-btn {
  background: none;
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
  min-height: unset;
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.tab-pane          { display: none; padding: 2rem 0; }
.tab-pane.active   { display: block; }
.churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.church-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.church-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.church-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.church-info {
  padding: 1rem 1.25rem 1.25rem;
}
.church-info h3 {
  margin-bottom: 0.4rem;
  color: var(--primary);
}
.church-info p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}
.add-church-card {
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: 16px;
  padding: 2rem;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .add-church-card    { flex-direction: column; }
  .church-card img    { height: 180px; }
  .map-controls {
    position: static;
    margin-top: 1rem;
  }
  .search-box input   { min-width: 130px; }
  .churches-grid {
    grid-template-columns: 1fr;
  }
}
