.map-region {
  cursor: pointer;
  transition: fill 0.3s;
}

.map-region:hover {
  fill: #ff9900; /* 滑鼠懸停顏色 */
}

.map-region.active {
  fill: #cc3300; /* 被點選後的顏色 */
}

.taiwan-map-container {
  width: 120%;
  margin-left: -10%;
}

.taiwan-map-container svg {
  width: 100%;
  height: auto;
}

/* === 右側區域統計面板 === */
.stats-col .column-inner {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.region-stats-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang TC", "Noto Sans TC", sans-serif;
  margin-top: 200px;
}

/* Header */
.region-stats-panel .stats-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.stats-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.stats-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

/* Content */
.stats-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-label {
  font-size: 14px;
  color: #374151;
}

.stats-value {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
}

.stats-unit {
  font-size: 14px;
  margin-left: 4px;
  color: #6b7280;
}

/* Footer */
.stats-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
}

/* Loading 狀態（JS 可加 class） */
.region-stats-panel.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 分隔線 */
.stats-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 2px 0;
}

/* 總筆數特別樣式 */
.stats-item.stats-total .stats-label {
  font-weight: 600;
  font-size: 15px;
}

.stats-item.stats-total .stats-value {
  font-size: 28px;
}

/* 查看更多按鈕 */
.stats-more-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.stats-more-btn:hover {
  background: #1d4ed8;
}

.stats-hint {
  display: block;
  margin-top: 8px;
}

/* Gavias Views 載入中狀態 */
div#index_listing_content_block {
    margin-top: 100px;
}

.gva-view.is-loading {
  position: relative;
  min-height: 200px;
}

.gva-view.is-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 100;
}

.gva-view.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  z-index: 101;
  animation: spin 1s linear infinite;
}

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

.gva-view.is-loading .owl-carousel,
.gva-view.is-loading .view-content-2 {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}