/**
 * 교회 찾기 디자인 리폼
 * design/church-search-full.html 샘플 기준
 */
:root {
  --jmp-gold: #C4A265;
  --jmp-gold-light: #D4B87A;
  --jmp-gold-dark: #A8864E;
  --jmp-navy: #1A1F3A;
  --jmp-navy-light: #252B4D;
  --jmp-cream: #FAF7F2;
  --jmp-cream-dark: #F0EBE3;
  --jmp-text-primary: #1A1F3A;
  --jmp-text-secondary: #5A6178;
  --jmp-text-muted: #8B90A3;
  --jmp-white: #FFFFFF;
  --jmp-green: #2E7D5B;
  --jmp-green-bg: rgba(46,125,91,0.08);
  --jmp-orange: #C47A25;
  --jmp-orange-bg: rgba(196,122,37,0.08);
  --jmp-red: #B04A4A;
  --jmp-red-bg: rgba(176,74,74,0.08);
  --jmp-shadow-sm: 0 2px 8px rgba(26,31,58,0.05);
  --jmp-shadow-md: 0 8px 32px rgba(26,31,58,0.07);
  --jmp-shadow-lg: 0 16px 48px rgba(26,31,58,0.1);
  --jmp-shadow-gold: 0 8px 32px rgba(196,162,101,0.2);
}

.jmp-church-search-reform {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--jmp-text-primary);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.jmp-church-search-reform .header {
  text-align: center;
  margin-bottom: 40px;
}

.jmp-church-search-reform .header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  position: relative;
}

.jmp-church-search-reform .header-icon svg,
.jmp-church-search-reform .header-icon i {
  width: 36px;
  height: 36px;
  font-size: 2.25rem;
  color: var(--jmp-gold);
  filter: drop-shadow(0 2px 8px rgba(196,162,101,0.3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jmp-church-search-reform .header-icon i {
  width: auto;
  height: auto;
}

.jmp-church-search-reform .header-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196,162,101,0.12), rgba(196,162,101,0.04));
  border: 1px solid rgba(196,162,101,0.15);
}

.jmp-church-search-reform .header h1 {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--jmp-navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.jmp-church-search-reform .header-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jmp-gold), transparent);
  margin: 0 auto 16px;
}

.jmp-church-search-reform .header p {
  font-size: 1rem;
  color: var(--jmp-text-secondary);
  line-height: 1.7;
}

.jmp-church-search-reform .denominations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.jmp-church-search-reform .denomination-tag {
  font-size: 0.8rem;
  color: var(--jmp-gold-dark);
  background: linear-gradient(135deg, rgba(196,162,101,0.1), rgba(196,162,101,0.04));
  border: 1px solid rgba(196,162,101,0.18);
  padding: 4px 13px;
  border-radius: 20px;
  font-weight: 500;
}

/* Search Card */
.jmp-church-search-reform .search-card {
  background: var(--jmp-white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--jmp-shadow-md);
  border: 1px solid rgba(196,162,101,0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.jmp-church-search-reform .search-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jmp-gold-dark), var(--jmp-gold-light), var(--jmp-gold-dark));
}

.jmp-church-search-reform .search-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.jmp-church-search-reform .select-wrapper {
  position: relative;
  flex-shrink: 0;
}

.jmp-church-search-reform .select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--jmp-text-primary);
  background: var(--jmp-cream);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 42px 13px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  min-width: 130px;
}

.jmp-church-search-reform .select-wrapper select:hover { border-color: rgba(196,162,101,0.3); }
.jmp-church-search-reform .select-wrapper select:focus { outline: none; border-color: var(--jmp-gold); box-shadow: 0 0 0 4px rgba(196,162,101,0.1); }

.jmp-church-search-reform .select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--jmp-gold);
  pointer-events: none;
}

.jmp-church-search-reform .input-wrapper {
  flex: 1;
  position: relative;
}

.jmp-church-search-reform .input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  font-size: 1rem;
  color: var(--jmp-text-muted);
  pointer-events: none;
}

.jmp-church-search-reform .input-wrapper input {
  width: 100%;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--jmp-text-primary);
  background: var(--jmp-cream);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 16px 13px 44px;
  transition: all 0.3s ease;
}

.jmp-church-search-reform .input-wrapper input::placeholder { color: var(--jmp-text-muted); }
.jmp-church-search-reform .input-wrapper input:hover { border-color: rgba(196,162,101,0.2); }
.jmp-church-search-reform .input-wrapper input:focus { outline: none; border-color: var(--jmp-gold); background: var(--jmp-white); box-shadow: 0 0 0 4px rgba(196,162,101,0.1); }

.jmp-church-search-reform .search-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jmp-white);
  background: linear-gradient(135deg, var(--jmp-navy), var(--jmp-navy-light));
  border: none;
  border-radius: 12px;
  padding: 13px 32px;
  cursor: pointer;
  transition: all 0.35s ease;
  letter-spacing: 0.04em;
}

.jmp-church-search-reform .search-btn:hover { transform: translateY(-2px); box-shadow: var(--jmp-shadow-gold); }

/* Action Buttons */
.jmp-church-search-reform .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
}

.jmp-church-search-reform .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
}

.jmp-church-search-reform .action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.jmp-church-search-reform .action-btn.register {
  color: var(--jmp-white);
  background: linear-gradient(135deg, var(--jmp-gold-dark), var(--jmp-gold));
  box-shadow: 0 4px 16px rgba(196,162,101,0.25);
}
.jmp-church-search-reform .action-btn.register:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,162,101,0.35); }

.jmp-church-search-reform .action-btn.edit {
  color: var(--jmp-navy);
  background: var(--jmp-white);
  border: 2px solid rgba(26,31,58,0.1);
  box-shadow: var(--jmp-shadow-sm);
}
.jmp-church-search-reform .action-btn.edit:hover { border-color: var(--jmp-gold); color: var(--jmp-gold-dark); transform: translateY(-2px); box-shadow: var(--jmp-shadow-md); }

/* Results Section */
.jmp-church-search-reform .results-section { margin-top: 0; }

.jmp-church-search-reform .region-filter {
  background: var(--jmp-white);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: var(--jmp-shadow-sm);
  border: 1px solid rgba(26,31,58,0.04);
  margin-bottom: 24px;
}

.jmp-church-search-reform .region-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jmp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jmp-church-search-reform .region-filter-label svg,
.jmp-church-search-reform .region-filter-label i { width: 14px; font-size: 0.875rem; }

.jmp-church-search-reform .region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jmp-church-search-reform .region-tab {
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--jmp-text-secondary);
  background: var(--jmp-cream);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 7px 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.jmp-church-search-reform .region-tab:hover {
  color: var(--jmp-gold-dark);
  border-color: rgba(196,162,101,0.3);
  background: rgba(196,162,101,0.06);
}

.jmp-church-search-reform .region-tab.active {
  color: var(--jmp-white);
  background: linear-gradient(135deg, var(--jmp-navy), var(--jmp-navy-light));
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(26,31,58,0.15);
}

/* Results Header */
.jmp-church-search-reform .results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.jmp-church-search-reform .results-count {
  font-size: 0.9rem;
  color: var(--jmp-text-secondary);
  font-weight: 400;
}

.jmp-church-search-reform .results-count strong {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--jmp-navy);
  margin-right: 2px;
}

.jmp-church-search-reform .results-sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jmp-church-search-reform .sort-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--jmp-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.jmp-church-search-reform .sort-btn:hover,
.jmp-church-search-reform .sort-btn.active {
  color: var(--jmp-gold-dark);
  background: rgba(196,162,101,0.08);
}

.jmp-church-search-reform .sort-divider {
  width: 1px;
  height: 12px;
  background: rgba(26,31,58,0.1);
}

/* Church List */
.jmp-church-search-reform .church-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jmp-church-search-reform .church-card {
  background: var(--jmp-white);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--jmp-shadow-sm);
  border: 1px solid rgba(26,31,58,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.jmp-church-search-reform .church-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--jmp-gold-light), var(--jmp-gold-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jmp-church-search-reform .church-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--jmp-shadow-md);
  border-color: rgba(196,162,101,0.12);
}

.jmp-church-search-reform .church-card:hover::before { opacity: 1; }

.jmp-church-search-reform .church-info { flex: 1; min-width: 0; }

.jmp-church-search-reform .church-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.jmp-church-search-reform .church-name {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--jmp-navy);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.jmp-church-search-reform .church-card:hover .church-name { color: var(--jmp-gold-dark); }

.jmp-church-search-reform .church-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jmp-text-muted);
  background: var(--jmp-cream);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Menlo', 'Consolas', monospace;
  letter-spacing: 0.03em;
}

.jmp-church-search-reform .church-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.jmp-church-search-reform .church-status.approved,
.jmp-church-search-reform .church-status.active { color: var(--jmp-green); background: var(--jmp-green-bg); }
.jmp-church-search-reform .church-status.pending { color: var(--jmp-orange); background: var(--jmp-orange-bg); }
.jmp-church-search-reform .church-status.rejected,
.jmp-church-search-reform .church-status.suspended { color: var(--jmp-red); background: var(--jmp-red-bg); }

.jmp-church-search-reform .church-details { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.jmp-church-search-reform .church-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--jmp-text-secondary);
  line-height: 1.5;
}

.jmp-church-search-reform .church-detail svg,
.jmp-church-search-reform .church-detail i {
  width: 14px;
  font-size: 0.875rem;
  color: var(--jmp-text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.jmp-church-search-reform .church-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--jmp-cream);
  color: var(--jmp-text-muted);
  transition: all 0.3s ease;
  margin-top: 6px;
}

.jmp-church-search-reform .church-arrow svg,
.jmp-church-search-reform .church-arrow i { width: 16px; font-size: 1rem; }

.jmp-church-search-reform .church-card:hover .church-arrow {
  background: linear-gradient(135deg, var(--jmp-gold), var(--jmp-gold-light));
  color: var(--jmp-white);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(196,162,101,0.3);
}

/* Pagination */
.jmp-church-search-reform .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.jmp-church-search-reform .page-btn,
.jmp-church-search-reform .page-link {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--jmp-text-secondary);
  background: var(--jmp-white);
  box-shadow: var(--jmp-shadow-sm);
  text-decoration: none;
}

.jmp-church-search-reform .page-link:hover,
.jmp-church-search-reform .page-btn:hover {
  color: var(--jmp-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--jmp-shadow-md);
}

.jmp-church-search-reform .page-link.current,
.jmp-church-search-reform .page-btn.active {
  color: var(--jmp-white);
  background: linear-gradient(135deg, var(--jmp-navy), var(--jmp-navy-light));
  box-shadow: 0 4px 12px rgba(26,31,58,0.2);
}

.jmp-church-search-reform .page-nav {
  background: var(--jmp-cream);
  box-shadow: none;
}

.jmp-church-search-reform .page-nav:hover { background: var(--jmp-white); box-shadow: var(--jmp-shadow-sm); }

.jmp-church-search-reform .page-dots {
  color: var(--jmp-text-muted);
  font-size: 0.85rem;
  padding: 0 4px;
}

.jmp-church-search-reform .search-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--jmp-text-secondary);
  background: var(--jmp-white);
  border-radius: 16px;
  box-shadow: var(--jmp-shadow-sm);
}

@media (max-width: 640px) {
  .jmp-church-search-reform { padding: 0 14px 60px; }
  .jmp-church-search-reform .header h1 { font-size: 1.9rem; }
  .jmp-church-search-reform .search-card { padding: 22px 18px; border-radius: 16px; }
  .jmp-church-search-reform .search-form { flex-direction: column; }
  .jmp-church-search-reform .select-wrapper select { width: 100%; min-width: unset; }
  .jmp-church-search-reform .search-btn { width: 100%; text-align: center; }
  .jmp-church-search-reform .actions { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 10px; }
  .jmp-church-search-reform .action-btn { justify-content: center; flex: 1 1 0; min-width: 0; }
  .jmp-church-search-reform .region-filter { padding: 18px 16px 14px; }
  .jmp-church-search-reform .region-tabs { gap: 6px; }
  .jmp-church-search-reform .region-tab { padding: 6px 12px; font-size: 0.78rem; }
  .jmp-church-search-reform .church-card { padding: 18px 16px; gap: 12px; }
  .jmp-church-search-reform .church-name { font-size: 0.98rem; }
  .jmp-church-search-reform .results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .jmp-church-search-reform .church-arrow { display: none; }
}
