@charset "utf-8";
/* ============================================================
   fun100-ilanbnb 現代化 RWD 整合樣式表
   電腦版 (>=992px): 保持原始經典入口排版，100% 像素精準
   行動版 (<=991px): 啟用全新輕量流式行動版 UI，觸控友善、無橫向溢出
   ============================================================ */

/* 1. 斷點切換控制 */
.fun100-mobile-wrapper {
  display: none;
}
table.fun100-desktop-wrapper,
.fun100-desktop-wrapper {
  display: table;
  width: 990px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media screen and (min-width: 992px) {
  .fun100-mobile-wrapper {
    display: none !important;
  }
  table.fun100-desktop-wrapper,
  .fun100-desktop-wrapper {
    display: table !important;
    width: 990px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 991px) {
  body:not(.force-desktop) {
    background-image: none !important;
    background-color: #f5f5f5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:not(.force-desktop) table.fun100-desktop-wrapper,
  body:not(.force-desktop) .fun100-desktop-wrapper {
    display: none !important;
  }
  body:not(.force-desktop) .fun100-mobile-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

body.force-desktop table.fun100-desktop-wrapper,
body.force-desktop .fun100-desktop-wrapper {
  display: table !important;
  width: 990px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.force-desktop .fun100-mobile-wrapper {
  display: none !important;
}

body.force-mobile table.fun100-desktop-wrapper,
body.force-mobile .fun100-desktop-wrapper {
  display: none !important;
}
body.force-mobile .fun100-mobile-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
body.force-mobile {
  background-image: none !important;
  background-color: #f5f5f5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   2. 行動版專屬樣式 (全部嚴格作用於 .fun100-mobile-wrapper 下)
   ============================================================ */
.fun100-mobile-wrapper * {
  box-sizing: border-box;
}

.fun100-mobile-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: #333;
  line-height: 1.5;
  background-color: #f5f5f5;
}

.fun100-mobile-wrapper a {
  text-decoration: none;
}

.fun100-mobile-wrapper img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 行動版頁首 */
/* 行動版頁首 */
.fun100-mobile-wrapper .mobile-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fun100-mobile-wrapper .header-banner-area {
  position: relative;
  width: 100%;
  aspect-ratio: 670 / 184;
  background: url('../img/mobile_header_banner.jpg?v=20260914_2245') no-repeat center center;
  background-size: 100% 100%;
  overflow: hidden;
}

@supports not (aspect-ratio: 670 / 184) {
  .fun100-mobile-wrapper .header-banner-area {
    height: 0;
    padding-top: 27.4626%; /* 184 / 670 = 27.4626% 精準比例 */
  }
}

.fun100-mobile-wrapper .brand-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 100%;
  display: block;
  text-decoration: none;
  z-index: 2;
}

.fun100-mobile-wrapper .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fun100-mobile-wrapper .menu-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e70bf;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fun100-mobile-wrapper .menu-toggle .icon-hamburger,
.fun100-mobile-wrapper .menu-toggle .icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.fun100-mobile-wrapper .menu-toggle .icon-close {
  display: none;
}

/* 選單展開狀態：圖示平滑轉變為醒目精緻的 ✕ 關閉圖示 */
.fun100-mobile-wrapper .menu-toggle.active {
  background: #ffffff;
  color: #e53e3e;
  border-color: rgba(229, 62, 62, 0.35);
  box-shadow: 0 3px 10px rgba(229, 62, 62, 0.25);
  transform: rotate(90deg);
}

.fun100-mobile-wrapper .menu-toggle.active .icon-hamburger {
  display: none;
}

.fun100-mobile-wrapper .menu-toggle.active .icon-close {
  display: flex;
  transform: rotate(-90deg);
}

.fun100-mobile-wrapper .menu-toggle:active {
  transform: scale(0.92);
}

.fun100-mobile-wrapper .menu-toggle.active:active {
  transform: scale(0.92) rotate(90deg);
}

/* 搜尋列 */
.fun100-mobile-wrapper .search-bar {
  padding: 8px 12px 10px;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.fun100-mobile-wrapper .search-bar form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fun100-mobile-wrapper .search-bar input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid #d0e1f9;
  border-radius: 20px;
  font-size: 13.5px;
  background-color: #f4f8fd;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  outline: none;
  color: #334155;
  transition: border-color 0.2s, background-color 0.2s;
}

.fun100-mobile-wrapper .search-bar input:focus {
  border-color: #2196f3;
  background-color: #ffffff;
}

.fun100-mobile-wrapper .search-bar button {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #ff7a18 0%, #f55b00 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 91, 0, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fun100-mobile-wrapper .search-bar button:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* 導覽抽屜選單 */
.fun100-mobile-wrapper .mobile-nav {
  display: none;
  background: #1c3144;
  padding: 12px 15px;
  border-bottom: 3px solid #ff8c00;
}

.fun100-mobile-wrapper .mobile-nav.active {
  display: block;
}

.fun100-mobile-wrapper .mobile-nav a.category-title {
  display: block;
  font-size: 13px;
  color: #ff9800;
  font-weight: bold;
  margin: 10px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.fun100-mobile-wrapper .mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.fun100-mobile-wrapper .mobile-nav-grid a {
  display: block;
  background: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s;
}

.fun100-mobile-wrapper .mobile-nav-grid a:hover {
  background: rgba(255,255,255,0.25);
}

/* 快速鄉鎮橫向滑動列 */
.fun100-mobile-wrapper .quick-filter {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #f0f7ff;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #d5e8fc;
}

.fun100-mobile-wrapper .quick-filter::-webkit-scrollbar {
  display: none;
}

.fun100-mobile-wrapper .quick-filter a {
  display: inline-block;
  padding: 5px 12px;
  background: white;
  color: #1f6fd2;
  border: 1px solid #b3d7ff;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.fun100-mobile-wrapper .quick-filter a:hover {
  background: #1f6fd2;
  color: white;
}

/* 主要內容容器 */
.fun100-mobile-wrapper .mobile-container {
  padding: 10px;
}

/* 宜蘭民宿之星 (一列兩個、外框拿掉、名字置中、最大比例呈現) */
.fun100-mobile-wrapper .mobile-ad-section-b {
  background: #ffffff;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fun100-mobile-wrapper .b-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 8px 12px;
}

.fun100-mobile-wrapper .b-zone-item {
  background: transparent;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fun100-mobile-wrapper .b-zone-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* 圖片一列兩個，最大比例零裁切呈現 */
.fun100-mobile-wrapper .b-zone-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 362 / 172;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* 宜蘭民宿之星名稱置中 */
.fun100-mobile-wrapper .b-zone-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #1e293b;
  padding: 6px 2px 2px;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.fun100-mobile-wrapper .b-zone-item:hover .b-zone-title,
.fun100-mobile-wrapper .b-zone-item:active .b-zone-title {
  color: #c0392b;
}

/* 主題專區 (維持原本五個：上方親子、包棟2個較大，下方風格、夜市、國旅卡3個較小) */
.fun100-mobile-wrapper .mobile-theme-section {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fun100-mobile-wrapper .theme-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fun100-mobile-wrapper .theme-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.fun100-mobile-wrapper .mobile-theme-section a {
  display: block;
}

.fun100-mobile-wrapper .mobile-theme-section img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  display: block;
}

/* A 區精選優宿觸控輪播 (原比例不裁切，345:300) */
.fun100-mobile-wrapper .mobile-carousel-card {
  background: white;
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fun100-mobile-wrapper .carousel-header {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fun100-mobile-wrapper .carousel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fun100-mobile-wrapper .carousel-counter {
  font-size: 12px;
  background: rgba(0,0,0,0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: normal;
  letter-spacing: 1px;
}

.fun100-mobile-wrapper .carousel-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 86.956%; /* 300 / 345 = 86.956% 精準原比例 */
  height: 0;
  overflow: hidden;
  background: #f0f0f0;
}

@supports (aspect-ratio: 345 / 300) {
  .fun100-mobile-wrapper .carousel-viewport {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 345 / 300;
  }
}

.fun100-mobile-wrapper .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fun100-mobile-wrapper .carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.fun100-mobile-wrapper .carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.fun100-mobile-wrapper .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fun100-mobile-wrapper .carousel-slide-caption {
  display: none !important;
}

.fun100-mobile-wrapper .carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.fun100-mobile-wrapper .carousel-nav-btn.prev {
  left: 10px;
}

.fun100-mobile-wrapper .carousel-nav-btn.next {
  right: 10px;
}

.fun100-mobile-wrapper .quick-bnb-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.fun100-mobile-wrapper .quick-bnb-list::-webkit-scrollbar {
  display: none;
}

.fun100-mobile-wrapper .quick-bnb-item {
  font-size: 11.5px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.fun100-mobile-wrapper .quick-bnb-item.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: bold;
}

/* 區塊卡片共通樣式 */
.fun100-mobile-wrapper .section-card {
  background: white;
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.fun100-mobile-wrapper .section-header {
  padding: 10px 14px;
  color: white;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fun100-mobile-wrapper .section-header.blue {
  background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
}

.fun100-mobile-wrapper .section-header.green {
  background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}

.fun100-mobile-wrapper .section-header.orange {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
}

.fun100-mobile-wrapper .section-header.purple {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

.fun100-mobile-wrapper .section-header.gold {
  background: linear-gradient(135deg, #c58c27 0%, #e8b958 35%, #f6dc88 55%, #d89c2c 75%, #a66a0e 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(80, 45, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

/* 跑馬燈 (速度與體驗統一採用 scrollamount=4 平穩滾動) */
.fun100-mobile-wrapper .mobile-marquee-wrap {
  background: #edf5fc;
  padding: 8px 12px;
  border-bottom: 1px solid #e0ecf7;
  overflow: hidden;
}

.fun100-mobile-wrapper .mobile-marquee-wrap marquee,
.fun100-mobile-wrapper .mobile-marquee-wrap .marquee-track {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}

.fun100-mobile-wrapper .mobile-marquee-wrap a {
  color: #c0392b;
  text-decoration: none;
  font-weight: bold;
}

/* 新進民宿網格 */
.fun100-mobile-wrapper .new-minsu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.fun100-mobile-wrapper .new-minsu-item {
  text-align: center;
}

.fun100-mobile-wrapper .new-minsu-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  margin-bottom: 4px;
  display: block;
}

.fun100-mobile-wrapper .new-minsu-name {
  font-size: 11px;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 民宿卡片雙欄網格 (C/D/E 區：t5 宜蘭精選優質民宿、t6 宜蘭超人氣民宿精選、t7 宜蘭讚選民宿特搜) */
.fun100-mobile-wrapper .minsu-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  align-items: stretch;
}

.fun100-mobile-wrapper .minsu-card {
  border: 1px solid #eef2f5;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fun100-mobile-wrapper .minsu-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* 【全站鐵則】圖片照原始比例呈現，嚴禁裁切任何廣告或民宿圖片 (Zero Crop) */
.fun100-mobile-wrapper .minsu-card-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background-color: #f8fafc;
}

.fun100-mobile-wrapper .minsu-card-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #1e293b;
  padding: 6px 8px 3px 8px;
  line-height: 1.35;
  word-break: break-word;
}

/* 下方描述文字完全出現，不作 -webkit-line-clamp 裁切 */
.fun100-mobile-wrapper .minsu-card-desc {
  font-size: 11.5px;
  color: #64748b;
  padding: 0 8px 8px 8px;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
  margin-top: auto;
}

/* 巨幅橫幅廣告 (t12) */
.fun100-mobile-wrapper .mobile-t12-wrap {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fun100-mobile-wrapper .mobile-t12-wrap img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* 5大服務快速推薦按鈕 (就跟主題專區一樣：上方2個大，下方3個小並排) */
.fun100-mobile-wrapper .mobile-services-section {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fun100-mobile-wrapper .services-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fun100-mobile-wrapper .services-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.fun100-mobile-wrapper .mobile-services-section a {
  display: block;
}

.fun100-mobile-wrapper .mobile-services-section img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: block;
}

.fun100-mobile-wrapper .mobile-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.fun100-mobile-wrapper .mobile-services-grid a {
  display: block;
}

.fun100-mobile-wrapper .mobile-services-grid img {
  width: 100%;
  border-radius: 4px;
}

/* 部落客推薦列表 */
.fun100-mobile-wrapper .blogger-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fun100-mobile-wrapper .blogger-item {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.fun100-mobile-wrapper .blogger-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fun100-mobile-wrapper .blogger-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.fun100-mobile-wrapper .blogger-info {
  flex: 1;
  min-width: 0;
}

.fun100-mobile-wrapper .blogger-title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.fun100-mobile-wrapper .blogger-meta {
  font-size: 11px;
  color: #999;
}

/* 宜蘭勁報新聞 */
.fun100-mobile-wrapper .news-list {
  padding: 8px 12px;
  list-style: none;
  margin: 0;
}

.fun100-mobile-wrapper .news-item {
  padding: 6px 0;
  border-bottom: 1px dashed #e8e8e8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fun100-mobile-wrapper .news-item a {
  color: #333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 鄉鎮民宿總覽網格 */
/* 鄉鎮民宿總覽網格 (嚴格 50%/50% 平均等寬，長名稱自然折行不破版) */
.fun100-mobile-wrapper .town-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  align-items: stretch;
}

.fun100-mobile-wrapper .town-dir-card {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fun100-mobile-wrapper .town-dir-name {
  font-weight: bold;
  color: #1f6fd2;
  font-size: 13px;
  border-bottom: 2px solid #b3d7ff;
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.fun100-mobile-wrapper .town-badge {
  font-size: 10px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: normal;
  flex-shrink: 0;
}

.fun100-mobile-wrapper .town-dir-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

/* 若民宿名字太長自然折行掉到下一行，保持卡片寬度絕對平均 */
.fun100-mobile-wrapper .town-dir-links li {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 5px;
}

.fun100-mobile-wrapper .town-dir-links a {
  color: #475569;
  text-decoration: none;
  word-break: break-word;
  white-space: normal;
  display: inline;
}

.fun100-mobile-wrapper .town-dir-links a:hover,
.fun100-mobile-wrapper .town-dir-links a:active {
  color: #0284c7;
  text-decoration: underline;
}

.fun100-mobile-wrapper .town-expand-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  margin: 6px 0;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-weight: 500;
  transition: all 0.2s;
}

.fun100-mobile-wrapper .town-expand-btn:active,
.fun100-mobile-wrapper .town-expand-btn.expanded {
  background: #e2e8f0;
  color: #0f172a;
}

.fun100-mobile-wrapper .town-card-footer {
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11px;
  text-align: right;
}

.fun100-mobile-wrapper .town-card-footer a {
  color: #1f6fd2;
  font-weight: bold;
}

/* 行動版頁尾 */
.fun100-mobile-wrapper .mobile-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px 15px;
  margin-top: 20px;
  border-top: 3px solid #3498DB;
  font-size: 13px;
  text-align: center;
}

.fun100-mobile-wrapper .mobile-footer-contact {
  font-size: 15px;
  font-weight: bold;
  color: #4ade80;
  margin-bottom: 8px;
}

.fun100-mobile-wrapper .mobile-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 12px 0;
}

.fun100-mobile-wrapper .mobile-footer-links a {
  color: #cbd5e1;
}

.fun100-mobile-wrapper .mobile-footer-copy {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
}

/* 行動版專屬 toTop 按鈕 (與電腦版相同的 top.png 圖示) */
.fun100-mobile-wrapper .mobile-to-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: url("../img/top.png") no-repeat center center;
  background-size: contain;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  transform: translateY(12px);
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.28));
  display: block;
}

.fun100-mobile-wrapper .mobile-to-top.show {
  opacity: 0.95;
  visibility: visible;
  transform: translateY(0);
}

.fun100-mobile-wrapper .mobile-to-top:active {
  transform: scale(0.92);
  opacity: 1;
}

@media screen and (max-width: 991px) {
  /* 隱藏桌機版的大 toTop，避免在行動版重疊 */
  #toTop {
    display: none !important;
  }
}

