/* ============================================================
   행정동 → 법정동 변환기 스타일시트
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
}

/* ============================================================ Header */
.app-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo > i {
  font-size: 2.2rem;
  opacity: 0.9;
}
.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.logo .subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}
.header-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-blue { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); }
.badge-green { background: rgba(16,185,129,0.3); border: 1px solid rgba(16,185,129,0.5); }

/* ============================================================ Main */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ============================================================ Tabs */
.tab-container {
  display: flex;
  gap: 4px;
  background: white;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  white-space: nowrap;
}
.tab-btn:hover { background: #f1f5f9; color: #334155; }
.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  box-shadow: 0 2px 10px rgba(37,99,235,0.35);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================ Cards */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-header {
  background: linear-gradient(to right, #f8faff, #f0f7ff);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.card-header > i {
  font-size: 1.2rem;
  color: #2563eb;
}
.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}
.card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-left: auto;
}
.card-body { padding: 24px; }

/* ============================================================ Search Area */
.search-area { position: relative; }
.search-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.select-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}
.select-group label i { margin-right: 4px; color: #2563eb; }
.select-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.88rem;
  background: white;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}
.select-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.select-group select:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
  color: #94a3b8;
}

.search-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.address-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  color: #334155;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.address-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.address-input::placeholder { color: #94a3b8; }

/* ============================================================ Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-info {
  padding: 10px 18px;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover { background: #e2e8f0; }
.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}
.btn-success:hover { transform: translateY(-1px); }
.btn-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: white;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.btn-warning:hover { transform: translateY(-1px); }
.btn-info {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: white;
  box-shadow: 0 2px 8px rgba(2,132,199,0.3);
}
.btn-info:hover { transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.btn-outline:hover { background: #eff6ff; }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ============================================================ Autocomplete */
.autocomplete-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 4px;
}
.autocomplete-item {
  padding: 10px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  color: #334155;
}
.autocomplete-item:hover { background: #eff6ff; color: #2563eb; }
.hidden { display: none !important; }

/* ============================================================ Result Area (단건) */
.result-area {
  margin-top: 20px;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  overflow: hidden;
}
.result-header {
  background: #eff6ff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1d4ed8;
}
.text-green { color: #059669; }
.result-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
/* 세부주소 자동제거 알림 */
.cleaned-notice {
  grid-column: 1 / -1;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #713f12;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cleaned-notice .removed-text {
  text-decoration: line-through;
  color: #dc2626;
  font-family: monospace;
}
.cleaned-notice .cleaned-text {
  color: #059669;
  font-weight: 600;
  font-family: monospace;
}
.result-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  transition: box-shadow 0.2s;
}
.result-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.result-card-primary {
  border-color: #93c5fd;
  background: #eff6ff;
}
.rc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: #dbeafe;
  color: #1d4ed8;
}
.result-card-primary .rc-badge { background: #bfdbfe; }
.rc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.rc-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.code-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}
.code-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}
.copy-btn {
  margin-left: auto;
  background: #eff6ff;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.copy-btn:hover { background: #dbeafe; }
.rc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rc-detail-label {
  font-size: 0.73rem;
  color: #94a3b8;
  font-weight: 600;
}
.rc-detail-label i { margin-right: 3px; }
.rc-detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
.notfound-area {
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #c2410c;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================ 대량 변환 */
.input-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mode-btn {
  padding: 9px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  background: white;
  color: #64748b;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.mode-btn:hover { border-color: #93c5fd; color: #2563eb; }
.mode-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}
.input-mode-content { display: none; }
.input-mode-content.active { display: block; }

.textarea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.textarea-header label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #475569;
}
.bulk-textarea {
  width: 100%;
  height: 200px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.87rem;
  font-family: inherit;
  resize: vertical;
  color: #334155;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.bulk-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.bulk-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
#line-count {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================================================ Upload Zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}
.upload-icon {
  font-size: 3rem;
  color: #93c5fd;
  margin-bottom: 12px;
  display: block;
}
.upload-title {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}
.upload-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 10px;
}
.upload-btn { cursor: pointer; }

/* ============================================================ CSV Preview */
.csv-preview { margin-top: 16px; }
.csv-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.csv-preview-header span {
  font-size: 0.87rem;
  font-weight: 600;
  color: #475569;
}
.column-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}
.column-selector label { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.column-selector select {
  padding: 6px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.83rem;
  font-family: inherit;
  color: #334155;
  background: white;
}
.table-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid #e2e8f0; }
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.preview-table th {
  background: #f1f5f9;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.preview-table td {
  padding: 7px 12px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-more {
  text-align: center !important;
  color: #94a3b8;
  font-style: italic;
  padding: 10px;
}
.csv-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.info-text { font-size: 0.83rem; color: #64748b; font-weight: 500; }

/* ============================================================ Progress */
.progress-area {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 10px;
}
.progress-bar-wrap {
  background: #e0f2fe;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 10px;
  width: 0%;
  transition: width 0.2s;
}

/* ============================================================ Summary */
.result-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.summary-card {
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-card > i { font-size: 1.5rem; opacity: 0.8; }
.summary-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}
.summary-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.8;
}
.summary-total  { background: linear-gradient(135deg,#e0f2fe,#f0f9ff); color: #0369a1; }
.summary-success{ background: linear-gradient(135deg,#d1fae5,#f0fdf4); color: #065f46; }
.summary-fail   { background: linear-gradient(135deg,#fee2e2,#fff1f2); color: #991b1b; }
.summary-rate   { background: linear-gradient(135deg,#fef3c7,#fffbeb); color: #92400e; }

/* ============================================================ Result Actions */
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.filter-btns {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.filter-btn {
  padding: 7px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: #93c5fd; color: #2563eb; }
.filter-btn.active { background: #2563eb; color: white; border-color: #2563eb; }

/* ============================================================ Result Table */
.result-table-wrap {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  overflow-x: auto;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 900px;
}
.result-table thead th {
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
  font-size: 0.8rem;
}
.result-table tbody tr {
  border-top: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.result-table tbody tr:hover { background: #f8fafc; }
.result-table td {
  padding: 10px 14px;
  color: #334155;
  vertical-align: middle;
}
.row-success { }
.row-fail { background: #fef9f9; }
.td-addr { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-code { min-width: 130px; }
.code-badge {
  font-family: 'Courier New', monospace;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-ok   { background: #d1fae5; color: #065f46; }
.status-fail { background: #fee2e2; color: #991b1b; }

/* ============================================================ Guide */
.guide-body { padding: 24px; }
.guide-section {
  margin-bottom: 28px;
}
.guide-section h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-section h3 i { color: #2563eb; }
.guide-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e2e8f0; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.guide-table th {
  background: #f1f5f9;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #475569;
}
.guide-table td {
  padding: 10px 14px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
}
.guide-code {
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #0f172a;
}
.code-header span { color: #94a3b8; font-size: 0.8rem; }
.code-header button {
  background: #334155;
  border: none;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: background 0.15s;
}
.code-header button:hover { background: #475569; color: white; }
.guide-code pre {
  padding: 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #7dd3fc;
  line-height: 1.7;
  overflow-x: auto;
}
.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guide-list li {
  font-size: 0.86rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 7px;
}
.text-green { color: #059669; }
.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.example-card {
  border-radius: 10px;
  padding: 14px 16px;
}
.example-card.ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.example-card.road {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.example-card.fail {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.example-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.example-card.ok .example-label { color: #065f46; }
.example-card.road .example-label { color: #1d4ed8; }
.example-card.fail .example-label { color: #9a3412; }
.example-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.example-card li {
  font-size: 0.83rem;
  color: #374151;
  padding: 3px 0;
}
.guide-note {
  margin-top: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #0c4a6e;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.guide-note i { margin-top: 2px; flex-shrink: 0; }

/* ============================================================ Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { background: #065f46; }
.toast-warning { background: #92400e; }
.toast-error   { background: #991b1b; }
.toast-info    { background: #1e40af; }

/* ============================================================ Footer */
.app-footer {
  background: white;
  border-top: 2px solid #e2e8f0;
  font-size: 0.82rem;
  color: #64748b;
}

/* SEO 콘텐츠 블록 (시각적으로 숨기지 않고 자연스럽게 표시) */
.footer-seo-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 16px;
}

.footer-about h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.footer-about p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #475569;
}

.footer-nav h3,
.footer-keywords h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 4px;
}

.footer-nav ul li a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.footer-keywords p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #64748b;
}

.footer-bottom {
  text-align: center;
  padding: 14px 20px 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-copy {
  font-size: 0.72rem;
  color: #b0bec5;
}

/* ============================================================ Google AdSense (자동 광고) */
/* 자동 광고는 구글이 직접 삽입 - 별도 스타일 불필요 */

/* ============================================================ Responsive */
@media (max-width: 1100px) {
  .examples-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .result-summary { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .logo h1 { font-size: 1.2rem; }
  .search-row { grid-template-columns: 1fr; }
  .search-input-row { flex-direction: column; }
  .address-input { width: 100%; }
  .card-desc { display: none; }
  .result-summary { grid-template-columns: repeat(2, 1fr); }
  .result-actions { flex-direction: column; align-items: stretch; }
  .filter-btns { margin-left: 0; justify-content: center; }
  .tab-btn { min-width: 90px; font-size: 0.82rem; padding: 9px 12px; }
}
@media (max-width: 480px) {
  .header-badges { display: none; }
  .result-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .summary-num { font-size: 1.3rem; }
  .card-body { padding: 16px; }
  .bulk-textarea { height: 160px; }
}

/* ============================================================ Footer 반응형 */
@media (max-width: 900px) {
  .footer-seo-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-seo-content {
    grid-template-columns: 1fr;
    padding: 20px 16px 12px;
  }
}
