/* ===== CHURCHES HERO SECTION ===== */
.churches-hero {
  background: linear-gradient(rgba(13, 43, 123, 0.8), rgba(13, 43, 123, 0.9)), 
              url('../images/churches-banner.jpg') center/cover;
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
}

.churches-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.churches-hero .subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== MAP SECTION ===== */
.map-section {
  padding: 4rem 0;
}

.map-container {
  position: relative;
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-box {
  flex: 1;
  min-width: 250px;
  display: flex;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--primary-dark);
}

.map-filters {
  background: white;
  border-radius: 30px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

/* ===== CITIES SECTION ===== */
.cities-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.cities-tabs {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--light-gray);
  background: var(--light);
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--gray);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.tab-btn:hover:not(.active) {
  background: rgba(13, 43, 123, 0.05);
}

.tabs-content {
  padding: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.church-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.church-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.church-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: var(--light);
  border-bottom: 1px solid var(--light-gray);
}

.church-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.open {
  background: #e6f7ee;
  color: #0d8a4a;
}

.status-badge.closed {
  background: #fde8e8;
  color: #c53030;
}

.church-info {
  padding: 1.5rem;
}

.info-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item svg {
  flex: 0 0 24px;
  color: var(--primary);
}

.church-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.8rem;
}

/* ===== ADD CHURCH SECTION ===== */
.add-church-section {
  padding: 4rem 0;
}

.add-church-card {
  display: flex;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: white;
  box-shadow: var(--shadow-lg);
}

.add-church-content {
  flex: 1;
  padding: 3rem;
}

.add-church-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.add-church-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.add-church-image {
  flex: 1;
  min-width: 300px;
}

.add-church-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
  .map-controls {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 1rem;
  }
  
  .add-church-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .churches-hero h1 {
    font-size: 2.2rem;
  }
  
  .churches-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1px;
  }
}

@media (max-width: 576px) {
  .map-controls {
    flex-direction: column;
  }
  
  .search-box, .map-filters {
    width: 100%;
  }
}