/* 기본 스타일 리셋 및 공통 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background-color: #f8f9fa;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  min-height: 44px;
  /* 터치 친화적 최소 크기 */
  min-width: 44px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* 접근성: 스크린 리더 전용 텍스트 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 스킵 링크 (접근성) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0077cc;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* 헤더 스타일 */
.main-header {
  background: #ffffff;
  color: #1e293b;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo a {
  display: flex;
  align-items: center;
  color: #0f172a;
  text-decoration: none;
  gap: 10px;
  white-space: nowrap;
}

.logo a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo i {
  font-size: 1.2rem;
  color: #fff;
  background: #0077cc;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: #0f172a;
}

/* 네비게이션 */
nav {
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

nav ul li {
  margin-left: 0;
}

nav ul li a {
  color: #64748b;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 12px;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 8px;
}

nav ul li a i {
  font-size: 0.82rem;
}

nav ul li a:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}

nav ul li a.active {
  background: #eff6ff;
  color: #0077cc;
  font-weight: 600;
  text-decoration: none;
}

/* 모바일 햄버거 메뉴 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #334155;
  font-size: 1.3rem;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
  background-color: #f1f5f9;
}

/* 검색 및 필터 섹션 */
.search-filter-container {
  background: #fff;
  padding: 10px 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 60px;
  z-index: 999;
}

.search-filter-container .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 검색창 영역 */
.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* 지역 필터 바 */
.region-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 10px 0;
  align-items: center;
  border-top: 1px solid #f1f5f9;
}

.region-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 10px 0;
  align-items: center;
  border-top: 1px solid #f1f5f9;
}

.region-chip {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s;
  min-height: 30px;
  min-width: unset;
  white-space: nowrap;
}

.region-chip:hover {
  background: #e0f0ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.region-chip.active {
  background: linear-gradient(135deg, #0a4a8a, #0369a1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.3);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #666;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 35px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
  /* iOS 줌 방지를 위한 16px */
  transition: border-color 0.3s, box-shadow 0.3s;
  min-height: 44px;
}

.search-input:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
  outline: none;
}

.clear-icon {
  position: absolute;
  right: 12px;
  color: #666;
  cursor: pointer;
  display: none;
  z-index: 2;
  padding: 5px;
}

.search-input:not(:placeholder-shown)+.search-results+.clear-icon {
  display: block;
}

/* 검색 결과 */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.search-result-info {
  font-size: 13px;
  color: #666;
}

/* 필터 컨테이너 */
.filter-container {
  position: relative;
}

.filter-toggle {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.filter-toggle:hover {
  background-color: #e9ecef;
}

.filter-toggle.active {
  background-color: #0077cc;
  color: white;
  border-color: #0077cc;
}

.filter-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  min-width: 250px;
  z-index: 1000;
  display: none;
}

.filter-options.show {
  display: block;
}

.filter-option {
  margin-bottom: 15px;
}

.filter-option:last-child {
  margin-bottom: 0;
}

.filter-option label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.filter-option select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  min-height: 44px;
}

/* 지도 컨테이너 */
.map-container {
  position: relative;
  height: calc(100vh - 140px);
  min-height: 400px;
}

#map {
  width: 100%;
  height: 100%;
}

/* 지도 컨트롤 */
.map-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.map-controls button {
  width: 44px;
  height: 44px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  font-size: 16px;
  color: #333;
}

.map-controls button:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.map-controls button:active {
  transform: translateY(0);
}

/* 푸터 */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.contact-info a:hover {
  opacity: 1;
  text-decoration: none;
}

.contact-info i {
  margin-right: 8px;
}

/* 마커 스타일 */
.marker-container {
  position: relative;
  display: inline-block;
}

.marker-content {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: white;
  border: 1px solid #0080ff;
  border-radius: 19px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}

.icon-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: #0080ff;
  border-radius: 50%;
}

.marker-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
}

.marker-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.marker-pointer {
  position: absolute;
  bottom: -4px;
  left: 18px;
  width: 8px;
  height: 8px;
  background: white;
  border-right: 1px solid #0080ff;
  border-bottom: 1px solid #0080ff;
  transform: rotate(45deg);
}

/* 마커 클러스터링 스타일 */
.cluster-marker {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: 'Noto Sans KR', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cluster-marker:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.cluster-marker-1 {
  background-color: rgba(0, 119, 204, 0.85);
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.cluster-marker-2 {
  background-color: rgba(0, 119, 204, 0.85);
  width: 50px;
  height: 50px;
  font-size: 15px;
}

.cluster-marker-3 {
  background-color: rgba(0, 119, 204, 0.85);
  width: 60px;
  height: 60px;
  font-size: 17px;
}

.cluster-marker-4 {
  background-color: rgba(0, 119, 204, 0.85);
  width: 70px;
  height: 70px;
  font-size: 19px;
}

.cluster-marker-5 {
  background-color: rgba(0, 119, 204, 0.85);
  width: 80px;
  height: 80px;
  font-size: 21px;
}

/* 정보창 스타일 */
.info-window {
  padding: 15px;
  max-width: 320px;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.5;
}

.info-window-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.info-window-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  margin-right: 10px;
}

.info-window-branch {
  font-size: 13px;
  color: #0077cc;
  font-weight: 500;
  margin-bottom: 8px;
}

.info-window-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.info-window-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.info-window-buttons a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
  text-decoration: none;
  min-height: 44px;
}

.directions-button {
  background-color: #0077cc;
  color: white;
}

.directions-button:hover {
  background-color: #0066b3;
  text-decoration: none;
}

.search-button {
  background-color: #e9ecef;
  color: #495057;
}

.search-button:hover {
  background-color: #dee2e6;
  text-decoration: none;
}

.directions-button i,
.search-button i {
  margin-right: 5px;
}

.info-window-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.info-window-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.info-window-close i {
  font-size: 14px;
  color: red;
}

/* 센터 목록 페이지 스타일 */
.page-content {
  padding: 30px 0;
}

.stats-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stats-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.stats-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  min-width: 170px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 150px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.search-sort-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.centers-table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.centers-table table {
  width: 100%;
  border-collapse: collapse;
}

.centers-table th,
.centers-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.centers-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.centers-table tr:hover {
  background-color: #f8f9fa;
}

/* 카드 레이아웃 (모바일용) */
.centers-cards {
  display: none;
  gap: 15px;
}

.center-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.center-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.center-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.center-card-branch {
  font-size: 13px;
  color: #0077cc;
  font-weight: 500;
}

.center-card-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.center-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.center-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.center-card-actions a {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.btn-directions {
  background-color: #28a745;
  color: white;
}

.btn-directions:hover {
  background-color: #45a049;
}

.detail-btn {
  background-color: #f44336;
  color: white;
}

.detail-btn:hover {
  background-color: #d32f2f;
}

.capacity-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 50px;
  font-size: 12px;
  background-color: #E3F2FD;
  color: #1565C0;
}

.region-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  background-color: #EEEEEE;
  color: #424242;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  background-color: #f2f2f2;
  color: #666;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 14px;
}

.pagination-btn:hover:not(.disabled) {
  background-color: #e0e0e0;
  text-decoration: none;
}

.pagination-btn.active {
  background-color: #0077cc;
  color: white;
}

.pagination-btn.disabled {
  background-color: #f9f9f9;
  color: #ccc;
  cursor: not-allowed;
}

/* 로딩 및 빈 상태 */
.loading,
.no-centers {
  text-align: center;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  color: #999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* centers-list 페이지 전용 스타일 */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.view-toggle-btn,
.export-btn,
.print-btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.view-toggle-btn:hover,
.export-btn:hover,
.print-btn:hover {
  background: #f8f9fa;
  border-color: #0077cc;
}

.export-btn {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.export-btn:hover {
  background: #218838;
  border-color: #1e7e34;
}

.print-btn {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.print-btn:hover {
  background: #5a6268;
  border-color: #545b62;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0077cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  display: none;
  z-index: 2;
}

.clear-search:hover {
  color: #333;
}

.center-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.center-branch {
  font-size: 13px;
  color: #0077cc;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
}

.action-btn:hover {
  background: #f8f9fa;
  text-decoration: none;
}

.view-btn {
  background: #0077cc;
  color: white;
  border-color: #0077cc;
}

.view-btn:hover {
  background: #0066b3;
}

.detail-btn {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.detail-btn:hover {
  background: #218838;
}

.share-btn {
  background: #17a2b8;
  color: white;
  border-color: #17a2b8;
  padding: 6px 10px;
}

.share-btn:hover {
  background: #138496;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.no-data {
  color: #adb5bd;
  font-size: 14px;
}

/* 카드 그리드 레이아웃 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 연수원 카드 스타일 (centers-list 전용) */
.center-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.center-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.card-branch {
  font-size: 14px;
  color: #0077cc;
  font-weight: 500;
  margin-left: 6px;
}

.card-body {
  flex: 1;
  margin-bottom: 15px;
}

.card-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.card-info i {
  color: #0077cc;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

.card-footer {
  display: flex;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.card-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

.card-btn:hover {
  background: #f8f9fa;
  border-color: #0077cc;
  text-decoration: none;
}

.card-btn i {
  font-size: 13px;
}

/* 테이블 반응형 래퍼 */
.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 테이블 정렬 헤더 */
.centers-table th[data-sort] {
  user-select: none;
  position: relative;
  padding-right: 30px;
}

.centers-table th[data-sort]:hover {
  background-color: #e9ecef;
}

.centers-table th[data-sort].active {
  background-color: #e3f2fd;
  color: #0077cc;
}

.sort-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #999;
}

.centers-table th[data-sort].active .sort-icon {
  color: #0077cc;
}

/* 테이블 셀 특정 스타일 */
.name-cell {
  font-weight: 600;
  color: #333;
}

.address-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capacity-cell {
  font-weight: 500;
  color: #0077cc;
}

.action-column {
  white-space: nowrap;
}

/* 페이지네이션 컨트롤 */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #666;
  font-size: 14px;
}

/* 결과 카운트 */
#results-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 15px;
}

/* 로딩 스피너 개선 */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10000;
}

.loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0077cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-spinner p {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 토스트 알림 */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background-color: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid #0077cc;
  min-width: 300px;
}

.toast.success {
  border-left-color: #28a745;
}

.toast.warning {
  border-left-color: #ffc107;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast.info {
  border-left-color: #17a2b8;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #28a745;
}

.toast.warning .toast-icon {
  color: #ffc107;
}

.toast.error .toast-icon {
  color: #dc3545;
}

.toast.info .toast-icon {
  color: #17a2b8;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
}

.toast-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #333;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.closing {
  animation: slideOutRight 0.3s ease-in;
}

/* 모바일 토스트 */
@media (max-width: 600px) {
  .toast-container {
    top: 60px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    padding: 12px 15px;
  }

  .toast-title {
    font-size: 13px;
  }

  .toast-message {
    font-size: 12px;
  }
}

/* ================== 반응형 스타일 ================== */

/* 큰 태블릿 (768px 이하) */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  /* 헤더 */
  .main-header .container {
    flex-direction: row;
    height: 56px;
  }

  nav ul {
    gap: 2px;
  }

  nav ul li {
    margin: 0;
  }

  /* 검색 필터 */
  .search-filter-container {
    top: 106px;
  }

  .search-filter-container .container {
    flex-direction: column;
    gap: 15px;
  }

  .search-container {
    max-width: 100%;
  }

  .filter-options {
    right: 0;
    left: 0;
    min-width: auto;
  }

  /* 지도 */
  .map-container {
    height: calc(100vh - 200px);
    min-height: 300px;
  }

  .map-controls {
    bottom: 15px;
    right: 15px;
  }

  .map-controls button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* 푸터 */
  footer .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .contact-info {
    justify-content: center;
    gap: 15px;
  }

  /* 센터 목록 */
  .stats-cards {
    gap: 15px;
  }

  .stat-card {
    min-width: calc(50% - 7.5px);
  }

  .list-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-sort-container {
    justify-content: space-between;
  }

  /* 테이블을 카드로 변경 */
  .centers-table {
    display: none;
  }

  .centers-cards {
    display: flex;
    flex-direction: column;
  }

  /* 페이지네이션 */
  .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }

  .pagination-btn {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

/* 작은 태블릿 (600px 이하) */
@media (max-width: 600px) {

  /* 헤더 */
  .logo h1 {
    font-size: 1.2rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  /* 헤더 컨테이너 롤백 (로고 중앙 정렬 복구) */
  .main-header .container {
    flex-direction: row;
    height: 56px;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* 네비게이션을 햄버거 메뉴로 변경 */
  nav ul {
    position: fixed;
    top: 56px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 56px);
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px;
    transition: left 0.3s ease;
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    left: 0;
  }

  nav ul li {
    margin: 0 0 4px 0;
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    justify-content: flex-start;
    font-size: 0.95rem;
    color: #334155;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: #f1f5f9;
    color: #0077cc;
  }

  /* 검색 */
  .search-input {
    font-size: 16px;
    padding: 14px 40px 14px 35px;
  }

  /* 지도 컨트롤 */
  .map-controls {
    bottom: 10px;
    right: 10px;
    gap: 8px;
  }

  .map-controls button {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* 통계 카드 */
  .stat-card {
    min-width: 100%;
  }

  /* 센터 카드 */
  .center-card-actions {
    justify-content: space-between;
  }

  .center-card-actions a {
    flex: 1;
    justify-content: center;
    min-width: calc(50% - 4px);
  }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }

  /* 헤더 */
  .main-header {
    padding: 0;
  }

  .logo h1 {
    font-size: 1.05rem;
  }

  .logo i {
    font-size: 1.3rem;
    margin-right: 8px;
  }

  /* 검색 필터 */
  .search-filter-container {
    padding: 12px 0;
  }

  .search-input {
    padding: 12px 35px 12px 30px;
  }

  .search-icon {
    left: 10px;
  }

  .clear-icon {
    right: 10px;
  }

  /* 필터 토글 */
  .filter-toggle {
    padding: 12px;
    font-size: 13px;
  }

  /* 지도 */
  .map-container {
    height: calc(100vh - 180px);
  }

  /* 정보창 */
  .info-window {
    padding: 12px;
    max-width: 280px;
  }

  .info-window-title {
    font-size: 15px;
  }

  .info-window-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .info-window-buttons a {
    padding: 10px;
    font-size: 13px;
  }

  /* 센터 카드 */
  .center-card {
    padding: 12px;
  }

  .center-card-title {
    font-size: 15px;
  }

  .center-card-actions a {
    padding: 10px 8px;
    font-size: 12px;
  }

  /* 푸터 */
  footer {
    padding: 15px 0;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  /* 페이지네이션 */
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

/* 초소형 모바일 (360px 이하) */
@media (max-width: 360px) {
  .container {
    padding: 0 5px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .search-input {
    padding: 10px 30px 10px 25px;
  }

  .map-controls button {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .center-card-actions {
    flex-direction: column;
  }

  .center-card-actions a {
    min-width: 100%;
  }

  /* 카드 그리드 모바일 */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-info {
    font-size: 13px;
  }

  .card-footer {
    flex-direction: column;
  }

  .card-btn {
    width: 100%;
  }

  /* 페이지네이션 모바일 */
  .pagination-controls {
    gap: 4px;
    margin: 20px 0;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .pagination-ellipsis {
    padding: 0 4px;
    font-size: 12px;
  }

  /* 테이블 모바일 */
  .table-responsive {
    margin-top: 15px;
  }

  .centers-table th,
  .centers-table td {
    padding: 8px;
    font-size: 12px;
  }

  .address-cell {
    max-width: 150px;
  }

  .action-btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
    min-height: 32px;
  }

  /* 버튼 모바일 */
  .view-toggle-btn,
  .export-btn,
  .print-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
  }
}

/* 가로 모드 최적화 */
@media (max-height: 600px) and (orientation: landscape) {
  .map-container {
    height: calc(100vh - 120px);
  }

  nav ul {
    height: calc(100vh - 76px);
    overflow-y: auto;
  }
}

/* 터치 디바이스 최적화 */
@media (pointer: coarse) {

  button,
  a,
  .clickable {
    min-height: 44px;
    min-width: 44px;
  }

  .search-result-item {
    padding: 15px;
  }

  .filter-option select {
    padding: 12px;
  }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .marker-content {
    border-width: 0.5px;
  }

  .cluster-marker {
    border: 0.5px solid rgba(255, 255, 255, 0.3);
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .main-header {
    background-color: #0066aa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .search-filter-container {
    background-color: #2a2a2a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .search-input {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
  }

  .search-input::placeholder {
    color: #999;
  }

  .search-input:focus {
    background-color: #3a3a3a;
    border-color: #0077cc;
  }

  .search-results {
    background-color: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  .search-result-item {
    border-bottom-color: #3a3a3a;
  }

  .search-result-item:hover {
    background-color: #333;
  }

  .search-result-name {
    color: #e0e0e0;
  }

  .search-result-info {
    color: #999;
  }

  .filter-toggle {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  .filter-toggle:hover {
    background-color: #3a3a3a;
  }

  .filter-toggle.active {
    background-color: #0077cc;
    border-color: #0077cc;
  }

  .filter-options {
    background-color: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  .filter-option select {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
  }

  .filter-option label {
    color: #e0e0e0;
  }

  .map-controls button {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }

  .map-controls button:hover {
    background-color: #333;
  }

  .results-summary {
    background-color: #2a2a2a;
    border-top-color: #444;
  }

  .results-text {
    color: #999;
  }

  footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .contact-info a {
    color: #e0e0e0;
  }

  /* 정보창 다크모드 */
  .info-window {
    background-color: #2a2a2a;
    color: #e0e0e0;
  }

  .info-window-title {
    color: #e0e0e0;
  }

  .info-window-branch {
    color: #4da6ff;
  }

  .info-window-info {
    color: #b0b0b0;
  }

  .search-button {
    background-color: #3a3a3a;
    color: #e0e0e0;
  }

  .search-button:hover {
    background-color: #444;
  }

  /* 센터 목록 다크모드 */
  .stats-container {
    background-color: #2a2a2a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .stats-title {
    color: #e0e0e0;
  }

  .stat-card {
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .stat-label {
    color: #999;
  }

  .centers-table {
    background-color: #2a2a2a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .centers-table th {
    background-color: #333;
    color: #e0e0e0;
  }

  .centers-table td {
    color: #e0e0e0;
    border-bottom-color: #3a3a3a;
  }

  .centers-table tr:hover {
    background-color: #333;
  }

  .center-card {
    background-color: #2a2a2a;
    border-color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .center-card-title {
    color: #e0e0e0;
  }

  .center-card-branch {
    color: #4da6ff;
  }

  .center-card-info {
    color: #b0b0b0;
  }

  .capacity-badge {
    background-color: #1a3a52;
    color: #66b3ff;
  }

  .region-badge {
    background-color: #3a3a3a;
    color: #b0b0b0;
  }

  .pagination-btn {
    background-color: #333;
    color: #e0e0e0;
  }

  .pagination-btn:hover:not(.disabled) {
    background-color: #3a3a3a;
  }

  .pagination-btn.disabled {
    background-color: #2a2a2a;
    color: #666;
  }

  .loading,
  .no-centers {
    background-color: #2a2a2a;
    color: #999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  /* 마커 다크모드 */
  .marker-content {
    background-color: #2a2a2a;
    border-color: #0077cc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  }

  .marker-text {
    color: #e0e0e0;
  }

  .marker-pointer {
    background-color: #2a2a2a;
    border-right-color: #0077cc;
    border-bottom-color: #0077cc;
  }

  /* 카드 뷰 다크 모드 */
  .center-card {
    background-color: #2a2a2a;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .center-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .card-title {
    color: #e0e0e0;
  }

  .card-branch {
    color: #4da6ff;
  }

  .card-info {
    color: #b0b0b0;
  }

  .card-info i {
    color: #4da6ff;
  }

  .card-footer {
    border-top-color: #3a3a3a;
  }

  .card-btn {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  .card-btn:hover {
    background-color: #3a3a3a;
    border-color: #0077cc;
  }

  /* 테이블 다크 모드 */
  .table-responsive {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .centers-table th[data-sort]:hover {
    background-color: #3a3a3a;
  }

  .centers-table th[data-sort].active {
    background-color: #1a3a52;
    color: #4da6ff;
  }

  .sort-icon {
    color: #999;
  }

  .centers-table th[data-sort].active .sort-icon {
    color: #4da6ff;
  }

  .name-cell {
    color: #e0e0e0;
  }

  .capacity-cell {
    color: #4da6ff;
  }

  /* 페이지네이션 다크 모드 */
  .pagination-ellipsis {
    color: #999;
  }

  #results-count {
    color: #b0b0b0;
  }

  /* 로딩 스피너 다크 모드 */
  .loading-spinner {
    background: rgba(26, 26, 26, 0.95);
  }

  .loading-spinner .spinner {
    border-color: #333;
    border-top-color: #0077cc;
  }

  .loading-spinner p {
    color: #e0e0e0;
  }

  /* 버튼 다크 모드 */
  .view-toggle-btn,
  .print-btn {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  .view-toggle-btn:hover,
  .print-btn:hover {
    background-color: #3a3a3a;
    border-color: #0077cc;
  }

  .export-btn {
    background-color: #1e7e34;
    border-color: #1c7430;
  }

  .export-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
  }

  .action-btn {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  .action-btn:hover {
    background-color: #3a3a3a;
  }
}

/* 애니메이션 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {

  .search-input,
  .filter-toggle,
  .filter-option select {
    border-width: 2px;
  }

  .map-controls button {
    border-width: 2px;
  }
}

/* ==================== 연수원 추가 모달 ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 8px;
  transition: color 0.2s, transform 0.2s;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
  background-color: #f5f5f5;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group .required {
  color: #e74c3c;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #666;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-actions .btn-primary {
  background-color: #0077cc;
  color: #fff;
}

.form-actions .btn-primary:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.3);
}

.form-actions .btn-secondary {
  background-color: #fff;
  color: #666;
  border: 2px solid #ddd;
}

.form-actions .btn-secondary:hover {
  background-color: #f5f5f5;
  border-color: #bbb;
  color: #333;
}

/* 모달 반응형 */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .modal-header {
    border-bottom-color: #444;
  }

  .modal-header h2 {
    color: #e0e0e0;
  }

  .modal-close {
    color: #aaa;
  }

  .modal-close:hover {
    color: #fff;
    background-color: #444;
  }

  .form-group label {
    color: #e0e0e0;
  }

  .form-group input,
  .form-group textarea {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #0088dd;
    box-shadow: 0 0 0 3px rgba(0, 136, 221, 0.2);
  }

  .form-help {
    color: #aaa;
  }

  .form-actions {
    border-top-color: #444;
  }

  .form-actions .btn-secondary {
    background-color: #3d3d3d;
    border-color: #555;
    color: #aaa;
  }

  .form-actions .btn-secondary:hover {
    background-color: #4d4d4d;
    border-color: #666;
    color: #e0e0e0;
  }
}

/* 주소 검색 자동완성 */
.address-search-wrapper {
  position: relative;
}

.address-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #0077cc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: -2px;
}

.address-suggestions.active {
  display: block;
}

.address-suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover {
  background-color: #f8f9fa;
}

.address-suggestion-item.selected {
  background-color: #e3f2fd;
}

.address-suggestion-main {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.address-suggestion-sub {
  font-size: 0.85rem;
  color: #666;
}

.address-suggestion-loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

.address-suggestion-empty {
  padding: 20px;
  text-align: center;
  color: #999;
}

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
  .address-suggestions {
    background: #3d3d3d;
    border-color: #0088dd;
  }

  .address-suggestion-item {
    border-bottom-color: #555;
  }

  .address-suggestion-item:hover {
    background-color: #4d4d4d;
  }

  .address-suggestion-item.selected {
    background-color: #1a4d6d;
  }

  .address-suggestion-main {
    color: #e0e0e0;
  }

  .address-suggestion-sub {
    color: #aaa;
  }

  .address-suggestion-loading,
  .address-suggestion-empty {
    color: #999;
  }
}

/* 정보창 버튼 레이아웃 */
.info-window-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}