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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 30px 0;
}

.header h1 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 5px;
}

.header h1 span {
  background: #333;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.header .light {
  color: #00bcd4;
  font-size: 18px;
}

.header p {
  color: #666;
  font-size: 16px;
  margin-top: 10px;
}

.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  overflow: hidden;
}

.filter-section {
  padding: 20px;
}

.filter-section h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 15px;
}

.filter-section p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.filter-section input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.filter-section input:focus {
  outline: none;
  border-color: #00bcd4;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-btn {
  padding: 7px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  border-color: #00bcd4;
  color: #00bcd4;
}

.filter-btn.active {
  background: #00bcd4;
  color: #fff;
  border-color: #00bcd4;
}

.filter-btn.active:hover {
  background: #0097a7;
  border-color: #0097a7;
}

.group-header {
  background: #fafafa;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
}

.data-item {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
}

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

.data-item.hidden {
  display: none;
}

.thumbnail {
  width: 150px;
  height: 150px;
  background: #eee;
  border: 1px solid #ddd;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* ========== 縮圖設定 ========== */

/* 台灣縮圖（單張 tile） */
.thumbnail img.taiwan {
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  margin-top: -60px;   /* 負數=往上, 正數=往下 */
  margin-left: 0px;    /* 負數=往左, 正數=往右 */
}

/* 澎湖縮圖容器（兩張 tile 拼接） */
.thumbnail-penghu {
  display: flex;
  flex-direction: row;
  margin-top: 0px;     /* 負數=往上, 正數=往下 */
  margin-left: 0px;    /* 負數=往左, 正數=往右 */
}

.thumbnail-penghu img {
  width: 128px;   /* 每張 tile 寬度 */
  height: 128px;  /* 每張 tile 高度 */
  object-fit: cover;
}

/* ============================== */

.data-info {
  flex: 1;
}

.data-info h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.data-info .meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

.data-info .meta strong {
  color: #00bcd4;
}

.data-info .services {
  font-size: 13px;
  color: #666;
}

.data-info .services a {
  color: #00bcd4;
  text-decoration: none;
}

.data-info .services a:hover {
  text-decoration: underline;
}

.xyz-tooltip {
  display: inline-block;
  position: relative;
}

.xyz-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
  margin-bottom: 5px;
}

.xyz-popup.show {
  display: block;
}

.view-btn {
  background: #4fc3f7;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.view-btn:hover {
  background: #29b6f6;
}

.group-section {
  margin-bottom: 0;
}

.group-section.hidden {
  display: none;
}

.no-results {
  padding: 40px;
  text-align: center;
  color: #999;
  display: none;
}

.no-results.show {
  display: block;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}
