/* 全域 */
:root {
  --primary-900: #070a75;
  --primary-800: #0c2187;
  --primary-700: #053987;
  --primary-600: #034887;
  --primary-500: #00589d;
  --primary-400: #5586b7;
  --primary-300: #559cc9;
  --primary-200: #81bee1;
  --primary-100: #a4d4ef;
  --primary-50: #d5ebff;

  --secondary-900: #295457;
  --secondary-800: #3a6f74;
  --secondary-700: #4e8a8f;
  --secondary-600: #64a5aa;
  --secondary-500: #7fc1c7;
  --secondary-400: #8dcfd0;
  --secondary-300: #a5dadc;
  --secondary-200: #bee6e9;
  --secondary-100: #d6f0f2;
  --secondary-50: #eff9fa;

  --highlight-900: #713f0f;
  --highlight-800: #935313;
  --highlight-700: #b56717;
  --highlight-600: #d77b1b;
  --highlight-500: #f68a1f;
  --highlight-400: #ffa12d;
  --highlight-300: #ffb653;
  --highlight-200: #ffcc8a;
  --highlight-100: #ffe2bf;
  --highlight-50: #fff4e7;

  --gray-900: #131927;
  --gray-800: #212936;
  --gray-700: #394050;
  --gray-600: #4d5461;
  --gray-500: #6d717f;
  --gray-400: #9ea2ae;
  --gray-300: #d2d5db;
  --gray-200: #e5e7ea;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --white-100: rgba(255, 255, 255, 1);
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);

  --black-100: rgba(0, 0, 0, 1);
  --black-90: rgba(0, 0, 0, 0.9);
  --black-80: rgba(0, 0, 0, 0.8);
  --black-70: rgba(0, 0, 0, 0.7);
  --black-60: rgba(0, 0, 0, 0.6);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-40: rgba(0, 0, 0, 0.4);
  --black-30: rgba(0, 0, 0, 0.3);
  --black-20: rgba(0, 0, 0, 0.2);
  --black-10: rgba(0, 0, 0, 0.1);

  --warning: #eeaf00;
  --danger: #ea003e;
  --info: #71d1fe;
  --max-container: 1800px;
}

html {
  font-size: 110%;
  /* 基礎字體放大為 110%，此時 1rem = 17.6px */
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

button,
a {
  -o-transition: all 0.2s linear;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  transition: all 0.2s linear;
  color: var(--gray-900);
}

a:hover {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
}

.form-set {
  background-image: url("../img/arrow.png") !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px !important;
}

/* ==========================================================================
   大型標題 (Hero Section / H1) - 到 1440px 才達最大值，全流體縮放
   ========================================================================== */
.text-15 {
  /* 手機 3.25rem (約57.2px) ~ 桌機 4.5rem (約79.2px) */
  font-size: clamp(3.25rem, calc(2.75rem + 1.9vw), 4.5rem);
}

.text-14 {
  /* 手機 3rem (約52.8px) ~ 桌機 4rem (約70.4px) */
  font-size: clamp(3rem, calc(2.6rem + 1.5vw), 4rem);
}

.text-13,
.hero-section .main-title {
  /* 手機 2.75rem (約48.4px) ~ 桌機 3.5rem (約61.6px) */
  font-size: clamp(2.75rem, calc(2.4rem + 1.2vw), 3.5rem);
}

/* ==========================================================================
     中型標題 (H2 / H3)
     ========================================================================== */
.text-12 {
  /* 手機 2.25rem (約39.6px) ~ 桌機 3rem (約52.8px) */
  font-size: clamp(2.25rem, calc(2rem + 1.15vw), 3rem);
}

.text-11,
.video-section .video-title {
  /* 手機 2rem (約35.2px) ~ 桌機 2.75rem (約48.4px) */
  font-size: clamp(2rem, calc(1.75rem + 0.8vw), 2.75rem);
}

.text-10,
.phone-text,
.page-banner .banner-title {
  /* 手機 1.85rem (約32.6px) ~ 桌機 2.5rem (44.0px) */
  font-size: clamp(1.85rem, calc(1.6rem + 0.7vw), 2.5rem);
}

.text-9,
.tour-page-wrapper .main-title,
.big-section .card-content .title {
  /* 手機 1.75rem (約30.8px) ~ 桌機 2.25rem (約39.6px) */
  font-size: clamp(1.75rem, calc(1.5rem + 0.5vw), 2.25rem);
}

.text-8,
.section-header .title,
.news-header .title,
.edit-detail h3,
.sitmap-detail h3,
.tour-page-wrapper .price-box .amount,
.main-detail .title {
  /* 手機 1.6rem (約28.2px) ~ 桌機 2rem (約35.2px) */
  font-size: clamp(1.6rem, calc(1.4rem + 0.4vw), 2rem);
}

/* ==========================================================================
     小型標題 / 副標題
     ========================================================================== */
.text-7,
.subject-swiper .swiper-slide a .subject-title {
  /* 手機 1.4rem (約24.6px) ~ 桌機 1.75rem (約30.8px) */
  font-size: clamp(1.4rem, calc(1.2rem + 0.35vw), 1.75rem);
}

.text-6,
.tour-page-wrapper .tab-active {
  /* 手機 1.25rem (22.0px) ~ 桌機 1.5rem (約26.4px) */
  font-size: clamp(1.25rem, calc(1.1rem + 0.25vw), 1.5rem);
}

/* ==========================================================================
     標準內文與小字 (Text-5 以下) - 保持微幅變化即可
     ========================================================================== */
.text-5,
.main-nav .nav-link,
.partners-title,
.hero-section .sub-title,
.hero-section .search-form .input-group,
.card-body .card-title,
.explore-section .tabs-wrapper .custom-tabs .nav-link,
.news-card .title,
.area-box,
.qa-box .custom-accordion-button,
.search-box .search-left .title {
  /* 手機 1rem (17.6px) ~ 桌機 1.2rem (約21.1px) */
  font-size: clamp(1rem, calc(0.95rem + 0.2vw), 1.2rem);
}

.text-5_5,
.info-title,
.section-header .subtitle {
  /* 手機 1rem (17.6px) ~ 桌機 1.125rem (約19.8px) */
  font-size: clamp(1rem, calc(0.925rem + 0.2vw), 1.125rem);
}

.text-4,
.card-body .card-desc,
.news-card .description,
.video-section .video-desc {
  /* 手機 0.95rem (約16.7px) ~ 桌機 1.05rem (約18.5px) */
  font-size: clamp(0.95rem, calc(0.9rem + 0.1vw), 1.05rem);
}

.text-3,
.copyright-text,
.footer-links a,
.breadcrumb-item {
  /* 手機 0.9rem (約15.8px) ~ 桌機 0.95rem (約16.7px) */
  font-size: clamp(0.9rem, calc(0.85rem + 0.1vw), 0.95rem);
}

.text-2,
.location-tag,
.card-header .tag,
.tour-page-wrapper .collab-text {
  /* 手機 0.85rem (約15.0px) ~ 桌機 0.9rem (約15.8px) */
  font-size: clamp(0.85rem, calc(0.83rem + 0.05vw), 0.9rem);
}

.text-1 {
  /* 輔助極小字：固定在 0.8rem (約14.1px) ~ 0.85rem (約15.0px) 之間 */
  font-size: clamp(0.8rem, calc(0.78rem + 0.05vw), 0.85rem);
}

.main_container {
  flex-grow: 1;
  position: relative;
}

body.detail .main_container {
  padding-bottom: 60px;
}

body.detail .main_container:has(.sitmap-detail),
body.detail .main_container:has(.tour-page-wrapper),
body.detail .main_container:has(.popular-section) {
  padding-bottom: 0;
}

.gap_set {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 4rem;
}

.container-fluid {
  max-width: var(--max-container);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header .tag {
  padding: 2px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.card-header .tag-new {
  background-color: var(--warning);
  color: black;
}

.card-header .tag-hot {
  background-color: var(--danger);
  color: white;
}

.card-header .date {
  color: var(--gray-700);
}

/* swiper  全域*/
.carousel-controls {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.carousel-controls .ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white-50);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

.carousel-controls .ctrl-btn svg {
  font-size: 1.25rem;
}

.carousel-controls .ctrl-btn .state-pause {
  transform: translate(0, -2px);
}
.carousel-controls .ctrl-btn .state-play {
  transform: translate(1px, -2px);
}

.carousel-controls .ctrl-btn:hover {
  background: var(--white-80);
}

.carousel-controls .ctrl-btn .state-play {
  display: none;
}

.carousel-controls .ctrl-btn.is-paused .state-pause {
  display: none;
}

.carousel-controls .ctrl-btn.is-paused .state-play {
  display: inline-block;
}

/* 無障礙 全域*/
noscript {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
  color: red;
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  padding: 20px 20px;
}

.swiper-slide a {
  display: block;
}

.fa-sr-only,
.fa-sr-only-focusable:not(:focus),
.sr-only,
.sr-only-focusable:not(:focus) {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  z-index: 99999;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

a.sr-only:focus {
  position: absolute;
  left: 0px;
  top: 0px;
  outline-color: transparent;
  -webkit-transition: top 0.1s ease-in;
  transition: top 0.1s ease-in;
  border: #ffbf47 solid 0.4em;
  background: #ffbf47;
  color: #000000;
  font-weight: 700;
}

a[accesskey] {
  display: flex;
  opacity: 0;
  position: absolute;
  z-index: 99999;
  top: 0px;
  align-items: center;
  color: #000;
}

a[accesskey]:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  opacity: 1;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  color: #000;
}

a#header-menu {
  left: 100px;
}

a#main_content:focus,
a#footer_ctn:focus {
  outline: none !important;
  background: none;
}

a#main_content:after,
a#footer_ctn:after {
  width: 100%;
  height: 28px;
  content: "";
  display: block;
  left: 0;
  bottom: 0;
  position: absolute;
  outline: 4px dashed #f5a552 !important;
  background: rgba(255, 255, 255, 0.8);
  z-index: -1;
}

:focus,
a:focus,
.swiper-slide:focus,
.swiper-pagination-bullet:focus {
  outline: 4px dashed #f5a552 !important;
  box-shadow: none !important;
  transition: none;
  outline-offset: -3px;
}

/* 選單 全域*/
.custom-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
  transition: all 0.2s linear;
  background: white;
}

.main_menu {
  display: flex;
}

.header-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.2s linear;
}

.custom-header.header-scrolled {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.custom-header.header-scrolled .header-logo {
  height: 40px;
}

/* .header-container {
  padding: 0 1rem;
} */

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

.mobile-toggle-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-500);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.mobile-toggle-btn:focus {
  outline: none;
}

.mobile-toggle-btn:active {
  background-color: var(--primary-700);
}

/* =========================================
   Mega Menu 下拉選單基本與無障礙樣式
   ========================================= */

/* 手機版 / Offcanvas 預設隱藏或展平處理 */
.mega-dropdown {
  position: relative;
}

/* =========================================
         [小版預設樣式] 手機展開選單 (小於 1200px)
   ========================================= */
.unified-menu.offcanvas {
  width: 100vw !important;
  background: url(../img/menu_bg.png);
  background-size: cover;
  background-position: center bottom;
  border: none;
}

.mobile-menu-header {
  height: 50px;
  display: flex;
  justify-content: space-between;
}

.header-logo-mobile {
  height: 35px;
  filter: brightness(0) invert(1);
}

.btn-close-custom {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
}

.btn-close-custom:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.unified-menu-body {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.5rem 1.5rem 0rem 1.5rem;
}

.main-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-nav .nav-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.main-nav .active-link::after {
  display: none;
}

.sub-nav-wrapper {
  margin-top: auto;
}

.lang-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  background-color: var(--primary-800);
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
}

.lang-btn:hover {
  background-color: var(--primary-900);
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
}

.sub-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
}

/* footer 全域*/
footer {
  position: relative;
}

.partners-section {
  padding: 40px 0;
  text-align: center;
  background-color: var(--gray-50);
  border-top: 3px solid var(--primary-500);
}

.partners-title {
  color: black;
  margin-bottom: 25px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 60px;
}

.partners-logos img {
  max-height: 50px;
}

.main-footer {
  background: linear-gradient(
    90deg,
    var(--primary-500) 0%,
    var(--primary-700) 100%
  );
  color: white;
  padding: 40px 0 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}

/* .main-footer > div {
  padding: 0 10rem;
} */

.footer-info-grid {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info-grid ul {
  display: flex;
  flex-direction: row;
  gap: 20px 80px;

  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-block {
  border-left: 2px solid white;
  padding-left: 16px;
}

.info-title {
  margin-bottom: 6px;
  line-height: 1.2;
}

.info-content a {
  color: white;
  text-decoration: none;
}

.phone-text {
  font-weight: bold;
  white-space: nowrap;
}

.tra-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

.footer-divider {
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  margin: 20px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright-text {
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 16px 28px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.accessibility-badge img {
  height: 50px;
  width: auto;
}

.go_to_top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.go_to_top a {
  border: 1px solid #ccc;
  color: #000 !important;
  background: var(--white-80);
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  display: flex;
  border-radius: 50%;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-size: 1.5rem;
}

.go_to_top.is-visible {
  opacity: 1;
  visibility: visible;
}

.go_to_top a:hover {
  background: var(--primary-50);
}

/* 首頁主要橫幅與行程搜尋 */
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-section .hero-swiper {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section .swiper-slide {
  background-size: cover;
  background-position: center center;
  padding: 100px 30px 30px 30px;
}

.hero-section .carousel-controls {
  position: absolute;
  left: 0;
  padding: 0 30px;
  top: 30px;
  width: 100%;
}

.hero-section .hero-ui-layer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0px;
  border-radius: 50px;
  overflow: hidden;
  padding: 250px 30px 15px 30px;
  gap: 15px;
}

.hero-section .hero-titles {
  text-align: center;

  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
}

.hero-section .main-title {
  color: var(--primary-500);
  letter-spacing: 5px;
  margin-bottom: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

*[lang="en"] .hero-section .main-title {
  letter-spacing: 0px;
}

.hero-section .sub-title {
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.hero-section .search-form {
  width: 100%;
  max-width: var(--max-container);
  margin: 0 auto;
  position: relative;
}

.hero-section .search-form .form-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.hero-section .search-form .input-group {
  display: flex;
  flex-direction: column;
  background: var(--white-50);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  gap: 5px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero-section .search-form .input-group label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-section .search-form .input-group label svg {
  color: var(--primary-500);
  font-weight: bolder;
}

.hero-section .search-form .input-group select,
.hero-section .search-form .input-group input {
  border: none;
  outline: none;

  background: var(--white-100);
  min-height: 50px;
  border-radius: 8px !important;
  padding: 0 15px;
}

.hero-section .search-form .btn-submit {
  background: var(--primary-500);
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.hero-section .search-form .btn-submit:hover {
  background: var(--primary-600);
}

.hero-section .announcement-bar {
  background: var(--white-80);
  max-width: var(--max-container);
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px;
  align-items: center;
  gap: 20px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 8px;
  display: flex;
}

.hero-section .announcement-bar .tag {
  border-right: 1px solid #aaa;
  padding: 0 20px 0 0;
  white-space: nowrap;
}

.hero-section .announcement-bar .text {
  flex: 1;
}

.hero-section .announcement-bar .btn-close {
  background: transparent;
  border: none;
  color: #666;
  border-radius: 50%;
  background: var(--white-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-100);
  width: 36px;
  height: 36px;
}

.hero-section .bottom-nav {
  margin: -50px auto 0 auto;
  padding: 70px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: url(../img/banner_bg.png);
  width: 100%;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.hero-section .bottom-nav .ctn {
  width: 100%;
  max-width: var(--max-container);
  display: flex;
  align-items: center;
  gap: 10px 30px;
}

.hero-section .brand {
  display: flex;
  align-items: center;
  gap: 0px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-500);
}

.hero-section .brand img {
  height: 60px;
  width: auto;
}

.hero-section .brand .brand-name {
  display: flex;
  flex-direction: column;
}

.hero-section .brand .brand-name span {
  white-space: nowrap;
}

.hero-section .nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 0;
}

.hero-section .nav-links a {
  text-decoration: none;
  padding: 0 24px;
  border-right: 1px solid #ccc;
  color: var(--back-100);
}

.hero-section .nav-links a:hover {
  color: var(--primary-500);
}

.hero-section .nav-links li:last-child a {
  border-right: none;
}

.hero-section .mobile-expand-btn {
  background: transparent;
  border: none;
  color: var(--primary-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
  display: none;
}

/* --- 首頁假期漫漫玩 展開/收合按鈕切換 --- */
#mobile-expand-btn .text-collapse,
#mobile-expand-btn .icon-collapse {
  display: none;
}

#mobile-expand-btn.is-expanded .text-expand,
#mobile-expand-btn.is-expanded .icon-expand {
  display: none;
}

#mobile-expand-btn.is-expanded .text-collapse,
#mobile-expand-btn.is-expanded .icon-collapse {
  display: inline-block;
}

/* ---  主題輪播區塊外觀 --- */

.subject-section .subject-container {
  margin: 0 auto;
  position: relative;
  padding: 0 50px;
}

.subject-swiper .swiper-slide {
  padding: 0 0px 0px 0;
  height: auto;
}

.subject-swiper .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  gap: 10px;
  min-height: 140px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;

  background-size: cover, cover;
  background-position: right center, center center;
  background-repeat: no-repeat, no-repeat;
  height: 100%;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.subject-swiper .swiper-slide a:hover {
  text-shadow: none;
  opacity: 0.85;
}

.subject-swiper .swiper-slide a .subject-title {
  margin: 0;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.subject-swiper .swiper-slide a .subject-icon {
  height: 60px;
  width: auto;
}

.card-red {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #ff7eb3, #ff416c);
  box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}

.card-orange {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #ffbc52, #ff7a29);
  box-shadow: 0 10px 20px rgba(255, 122, 41, 0.3);
}

.card-yellow {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #ffea61, #f1c200);
  box-shadow: 0 10px 20px rgba(241, 194, 0, 0.3);
}

.card-green {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #4ef2a9, #0dc2e1);
  box-shadow: 0 10px 20px rgba(13, 194, 225, 0.3);
}

.card-blue {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #38c8e6, #418cf5);
  box-shadow: 0 10px 20px rgba(65, 140, 245, 0.3);
}

.card-indigo {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #9d78ff, #5a57f5);
  box-shadow: 0 10px 20px rgba(90, 87, 245, 0.3);
}

.card-violet {
  background-image: url("/assets/img/subject_bg.png"),
    linear-gradient(135deg, #f574ea, #8a7df5);
  box-shadow: 0 10px 20px rgba(138, 125, 245, 0.3);
}

.subject-section .carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.subject-section .ctrl-btn {
  pointer-events: auto;
  position: absolute;
  background-color: var(--primary-500);
  color: #fff;
}

.subject-section .ctrl-btn.swiper-button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subject-section .ctrl-btn:hover {
  background-color: var(--primary-800);
}

.subject-section #btn-pause {
  left: 0px;
  top: 0;
}

.subject-section #btn-prev {
  left: 0px;
  top: 50px;
}

.subject-section #btn-next {
  right: 0px;
  top: 50px;
}

/* ---  標題全域 ---  */
.section-header .title span {
  color: black;
}

.section-header .title .text-primary-color {
  color: var(--primary-500);
}

.section-header .subtitle {
  color: var(--gray-700);
}

/* ---  分頁全域 ---  */
.pagination-box {
  margin: 60px 0 0 0;
}

.page-discount ~ .pagination-box {
  margin-bottom: 60px;
}
.pagination-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.pagination-container .total-records {
  letter-spacing: 0.5px;
}

.pagination-container .pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-container .page-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagination-container .page-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pagination-container .page-btn:hover:not(.active):not(.ellipsis):not(.arrow) {
  background-color: var(--gray-100);
}

.pagination-container .page-btn.active {
  background-color: var(--primary-500);
  color: white;
  font-weight: 600;
}

.pagination-container .page-btn.ellipsis {
  cursor: default;
  letter-spacing: 1px;
}
.pagination-container .select-wrapper {
  position: relative;
  display: inline-block;
}

.pagination-container .page-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 6px 36px 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pagination-container .page-select::-ms-expand {
  display: none;
}

.pagination-container .select-wrapper svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  pointer-events: none;
}

.pagination-container *[disabled] {
  cursor: not-allowed;
  filter: grayscale(100%) opacity(0.5);
  pointer-events: none;
}

/*  ---  探索 item 全域 ---  */
.slide-item,
.item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-wrapper .tag-img {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
}

.slide-item:hover .img-wrapper img,
.item-card:hover .img-wrapper img {
  transform: scale(1.1);
}

.slide-item:hover .img-wrapper .tag-img,
.item-card:hover .img-wrapper .tag-img {
  transform: none;
}

.location-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #fff;
  padding: 4px 16px;
  color: var(--primary-500);
  border-top-left-radius: 12px;
  font-weight: 600;
}

.location-tag:after,
.location-tag:before {
  position: absolute;
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: url(../img/tag_bg.png);
  background-size: contain;
}

.location-tag:after {
  left: -15px;
  bottom: 0;
}

.location-tag:before {
  top: -15px;
  right: 0;
}

.card-body {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body .card-title {
  margin-bottom: 8px;
  color: black;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.card-body .card-desc {
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body .vendor-logo {
  height: 26px;
  object-fit: contain;
}

.card-body .price {
  color: var(--primary-500);
  font-weight: 600;
  display: flex;
  gap: 3px;
  line-height: 1;
  align-items: flex-end;
}

*[lang="en"] .card-body .price {
  flex-direction: row-reverse;
  column-gap: 8px;
}

.card-body .price .up {
  font-size: 0.65rem;
}

*[lang="en"] .card-body .price .up {
  font-size: 0.9rem;
}

/* --- 了解更多按鈕 全域 ---  */
.btn-learn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 30px 0;
  position: relative;
}

.btn-learn:after {
  position: absolute;
  width: 2px;
  height: 50px;
  top: 20px;
  content: "";
  display: block;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-300);
}

.btn-learn .btn-learn-more {
  color: #333;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-learn .btn-learn-more:hover {
  transform: scale(1.05);
}

.btn-learn .btn-learn-more span {
  background: var(--highlight-500);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-learn .btn-learn-more span svg {
  font-size: 1.125rem;
  transform: translate(-3px, 0px);
}

/*  ---  重要公告 item 全域 ---  */

.news-card {
  display: grid;
  background-color: transparent;
  overflow: hidden;
  text-decoration: none;
  /* grid-template-columns: 1fr 2fr; */
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.news-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card:hover img {
  transform: scale(1.2);
}

.news-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-card .card-header {
  margin-bottom: 15px;
}

.news-card .title {
  color: black;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.news-card .description {
  margin: 0;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--gray-700);
}

/* ---  探索散策 --- */
.explore-section .section-header {
  white-space: nowrap;
}
.explore-section .title-group > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 70px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.explore-section .tab-box {
  position: relative;
}

.explore-section .tab-box:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 70%;
  top: -50px;
  left: 0;
  background: linear-gradient(
    -20deg,
    var(--white-100) 20%,
    var(--highlight-100) 100%
  );
  border-radius: 80px 80px 0px 0;
  z-index: -1;
}

.explore-section .tabs-wrapper {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
  transform: translate(0, 60px);
  padding: 0 40px;
}

.explore-section .tabs-wrapper .custom-tabs {
  display: flex;
  padding-bottom: 60px;
  margin: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.explore-section .custom-tabs::-webkit-scrollbar {
  display: none;
}

.explore-section .custom-tabs .nav-item {
  flex: 0 0 auto !important;
  width: auto !important;
}

.explore-section .tabs-wrapper .custom-tabs .nav-link {
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  color: black;
}

.explore-section .custom-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60px;
  background-color: var(--highlight-500);
  border-radius: 2px;
}

.explore-section .ideas-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.explore-section .ideas-btn-prev,
.explore-section .ideas-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-140%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.explore-section .ideas-btn-prev {
  left: 0;
}

.explore-section .ideas-btn-next {
  right: 0;
}

.explore-section .ideas-btn-prev.swiper-button-disabled,
.explore-section .ideas-btn-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
/* ==========================================================================
   左右區塊佈局 (預設：桌機版大於 992px)
   ========================================================================== */
.explore-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* --- 左側：Slider 區塊 --- */
.explore-big {
  min-width: 0; /*  關鍵新增：嚴格限制寬度，防止 Swiper 撐爆版面 */
  min-height: 0; /* 限制高度 */
  display: flex;
  flex-direction: column;
  width: 100%;

  aspect-ratio: 4 / 3;
}

.explore-swiper {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.explore-swiper .swiper-wrapper {
  height: 100%;
}

/* 讓 slide 變成 flex，確保卡片能 100% 伸展 */
.explore-swiper .swiper-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.explore-swiper .swiper-slide .main-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/*  修正圖片不見的問題：使用 flex: 1 讓他自適應填補，並確保定位正確 */
.explore-swiper .swiper-slide .main-card .img-wrapper {
  aspect-ratio: auto;
  flex: 1; /* 讓圖片區塊佔滿剩餘高度 */
  min-height: 0; /* 壓制原生高度，避免被圖片撐高 */
  position: relative;
  height: auto; /* 移除之前錯誤的 height: 0 */
}

/* 將圖片絕對定位，填滿外框 */
.explore-swiper .swiper-slide .main-card .img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-swiper .swiper-slide .main-card .card-body {
  flex-grow: 0;
}

.explore-big .carousel-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.explore-general {
  height: 100%;
}

.scrolling-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  grid-template-rows: repeat(2, 1fr);
  gap: 26px;
  height: 100%;
}

.scrolling-right {
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin: 0 10px 10px 0;
  color: var(--highlight-500);
}

.explore-general .scrolling-right {
  display: none;
}

.news-section .scrolling-right {
  display: none;
}

/* 重要公告 */
.news-section {
  position: relative;
  padding-top: 50px;
}

.news-section:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 70%;
  top: 0px;
  left: 0;
  background: linear-gradient(
    20deg,
    var(--white-100) 20%,
    var(--secondary-100) 100%
  );
  border-radius: 80px 80px 0px 0;
  z-index: -1;
}

.news-section .section-header {
  margin: 0 0 20px 0;
}

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ---  精彩影音 --- */
.video-section {
  position: relative;
}

.video-section:after {
  content: "";
  display: block;
  position: absolute;
  width: 70%;
  height: 70%;
  top: 0px;
  right: 0%;
  background: linear-gradient(
    -20deg,
    var(--white-100) 20%,
    rgba(122, 204, 0, 0.2)
  );
  border-radius: 80px 0px 0px 0;
  z-index: -1;
}

.video-section .section-header {
  margin: 0 0 20px 0;
  padding-right: 160px;
}

.video-section .video-box > div {
  padding-left: 0;
  max-width: none;
}

.video-section .video-controls .carousel-controls {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  margin-top: -60px;
  padding-right: 20px;
}

.video-section .ctrl-btn {
  background-color: var(--primary-500);
  color: white;
}

.video-section .ctrl-btn:hover {
  background-color: var(--primary-800);
}

.video-section .container-header,
.video-section .video-slide-layout,
.video-section .video-controls {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.5fr 1fr;
}

.video-section .play-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0 50px 50px 0;
}

.video-section .video-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.video-section .play-link:hover .video-cover {
  transform: scale(1.05);
}

.video-section .youtube-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 56px;
  background-image: url("../img/youtube-icon.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  z-index: 2;
}

.video-section .play-link:hover .youtube-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

.video-section .video-info-wrapper {
  padding: 50px 0 0 0;
  margin-bottom: 50px;
}

.video-section .video-title {
  font-weight: 600;
  color: black;
  margin-bottom: 20px;
}

.video-section .video-desc {
  color: var(--gray-700);
  margin-bottom: 30px;
}

.video-section .video-vendor img {
  height: 26px;
  object-fit: contain;
}

/* --- 城鄉漫遊 ---  */
.section-product > div {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.page-explore .explore-general,
.page-subject .explore-general,
.page-discount .discount-general {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  grid-auto-flow: dense;
}

/* --- 第 1 張 (10n+1)：強制大張並靠左 --- */
.page-explore .explore-general > a:nth-child(10n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* --- 第 8 張 (10n+8)：強制大張並靠右 --- */
.page-explore .explore-general > a:nth-child(10n + 8) {
  grid-column: 3 / span 2;
  grid-row: span 2;
}

/* --- 釋放大卡片的圖片比例 (僅針對第 1 與第 8 張) --- */
.page-explore .explore-general > a:nth-child(10n + 1) .img-wrapper,
.page-explore .explore-general > a:nth-child(10n + 8) .img-wrapper {
  aspect-ratio: auto;
  flex-grow: 1;
}

/* --- 確保大卡片文字區塊高度固定 (僅針對第 1 與第 8 張) --- */
.page-explore .explore-general > a:nth-child(10n + 1) .card-body,
.page-explore .explore-general > a:nth-child(10n + 8) .card-body {
  flex-grow: 0;
}

/* --- 主題列表 ---  */

/*  --- 城鄉漫遊-下拉group ---  */
.filter-box {
  position: relative;
  z-index: 1;
}
.filter-box .filter-container {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin: 20px 0;
}

.filter-box .dropdown {
  position: relative;
  z-index: 2;
}

.filter-box .dropdown#agencyDropdown {
  z-index: 3;
}

.filter-box .dropdown-toggle {
  min-width: 220px;
  height: 50px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-box .dropdown-toggle::after {
  display: none;
}

.filter-box .dropdown-toggle:hover {
  border-color: var(--info);
}

.filter-box .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease-out;
  z-index: 100;
  overflow: hidden;
}

.filter-box .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-box .filter-header {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 16px;
}

.filter-box .action-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-500);
  cursor: pointer;
}

.filter-box .checkbox-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-box .custom-checkbox {
  display: flex;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.filter-box .custom-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filter-box .checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background-color: #fff;
  position: relative;
  flex-shrink: 0;
  transition: 0.1s;
  transform: translate(0, 3px);
}

.filter-box .custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

.filter-box .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-box .custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.filter-box .custom-checkbox input:focus ~ .checkmark {
  outline: 4px dashed #f5a552 !important;
  box-shadow: none !important;
  transition: none;
  outline-offset: -3px;
}

.filter-box .filter-footer {
  padding: 0 16px 16px 16px;
}

.filter-box .btn-submit {
  width: 100%;
  height: 40px;
  background-color: var(--primary-500);
  color: white;
  border: none;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-box .btn-submit:hover {
  background-color: var(--primary-600);
}

.filter-box .sort-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-box .sort-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.1s;
}

.filter-box .sort-item.disabled {
  color: var(--gray-500);
  cursor: default;
}

.filter-box .sort-item:not(.disabled):not(.active):hover {
  background-color: var(--gray-100);
}

.filter-box .sort-item.active {
  background-color: var(--primary-50);
  color: var(--primary-500);
}

.filter-box .sort-item.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/*  --- 地區篩選 ---  */
.area-box {
  top: 80px;
  z-index: 999;
}
.area-box .area-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 5px 15px;
  background: var(--gray-100);
}

.area-box .area-label {
  white-space: nowrap;
  color: black;
  font-weight: 600;
}

.area-box .area-btn-prev,
.area-box .area-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 46px;
  background-color: var(--gray-200);
  border: none;
  border-radius: 4px;
  color: black;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.area-box .area-btn-prev.swiper-button-disabled,
.area-box .area-btn-next.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  display: none;
}

.area-box .area-swiper {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
}

.area-box .area-swiper .swiper-slide {
  width: auto;
}

.area-box .area-item {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.area-box .area-item:hover {
  color: var(--primary-700);
}

.area-box .area-item.active {
  color: var(--primary-500);
  font-weight: 600;
}

/*  --- 頁面 page banner ---  */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  padding: 40px 0 80px 0;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 1);
  background-color: var(--gray-100);
}

.page-banner:not(.banner-bg) {
  min-height: auto;
}

.page-banner:after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  display: block;
  width: 100%;
  height: 40px;
  background: white;
  border-radius: 40px 40px 0 0;
  border-top: 3px solid var(--primary-500);
}
.page-banner .banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.page-banner .page-line {
  margin: 15px 0;
  height: 16px;
  width: auto;
}
.page-banner .banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-banner .banner-title {
  color: var(--primary-500);
  font-weight: 600;
  margin: 0 0 0px 0;
  letter-spacing: 2px;
}

.page-banner .breadcrumb-nav {
  margin-top: 10px;
}

.page-banner .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before,
.search-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: " / ";
  padding: 0 8px;
  color: var(--gray-500);
}

.page-banner .breadcrumb-item a,
.search-breadcrumb .breadcrumb-item a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color 0.3s;
}

.page-banner .breadcrumb-item a:hover,
.search-breadcrumb .breadcrumb-item a:hover {
  color: var(--primary-700);
}

/* 重要公告列表 */
.page-news .news-grid-container {
  display: flex;
  flex-direction: column;
}

/* 重要公告內頁 */
.news-detail .news-header {
  border-bottom: 2px solid var(--primary-500);
  margin-bottom: 40px;
  padding-bottom: 20px;
}
.news-detail .news-header .title {
  font-weight: bold;
  margin-bottom: 20px;
  color: black;
}

.news-detail .meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.news-detail .meta-info .card-header {
  border-left: 1px solid #ccc;
  padding-left: 18px;
}
.news-detail .btn-back {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.news-detail .btn-back:hover {
  color: var(--primary-500);
}

.news-detail .news-article img {
  max-width: 100%;
  height: auto;
  /*display: block;*/
}

.news-detail .news-footer {
  margin-top: 40px;
}
.news-detail .btn-return-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  color: var(--primary-500);
  background-color: transparent;
  border: 1px solid var(--primary-500);
  border-radius: 30px;
  text-decoration: none;
}
.news-detail .btn-return-list:hover {
  background-color: var(--primary-600);
  color: white;
}

/*  --- 主題 展開更多 ---  */

.c-tag-filter-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.c-tag-filter-layout .c-tag-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  position: relative;
  gap: 12px;
}
.c-tag-filter-layout .c-tag-visible-list,
.popular-section .tabs-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.c-tag-filter-layout .c-tag-item {
  display: inline-block;
}

.c-tag-filter-layout .c-tag-btn,
.popular-section .tabs-wrapper .nav-item button {
  appearance: none;
  background-color: var(--primary-50);
  border: none;
  padding: 8px 26px 8px 10px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-align: left;
  color: black;
}

.c-tag-filter-layout .c-tag-btn.active,
.c-tag-filter-layout .c-tag-btn[aria-pressed="true"],
.popular-section .tabs-wrapper .nav-item button.active,
.popular-section .tabs-wrapper .nav-item button[aria-selected="true"] {
  background-color: var(--primary-500);
  color: white;
}

.c-tag-filter-layout .c-tag-btn .check-icon {
  margin-right: 6px;
  width: 16px;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.c-tag-filter-layout .c-tag-btn.active .check-icon,
.c-tag-filter-layout .c-tag-btn[aria-pressed="true"] .check-icon {
  visibility: visible;
  opacity: 1;
}

.c-tag-filter-layout .c-tag-more-btn,
.popular-section .s-tag-more-btn {
  appearance: none;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 24px;
  background-color: var(--primary-50);
}

.c-tag-filter-layout .c-tag-more-btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 4px;
  border-radius: 4px;
}

.c-tag-filter-layout .c-tag-more-icon-wrap,
.popular-section .s-tag-more-icon-wrap {
  background-color: var(--primary-500);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.c-tag-filter-layout
  .c-tag-more-btn[aria-expanded="true"]
  .c-tag-more-icon-wrap,
.c-tag-filter-layout .c-tag-more-btn.open .c-tag-more-icon-wrap,
.popular-section .s-tag-more-btn.open .s-tag-more-icon-wrap {
  transform: rotate(180deg);
}

.c-tag-filter-layout .c-tag-dropdown,
.popular-section .s-tag-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  z-index: 100;
  width: 100%;
  max-width: 800px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.c-tag-filter-layout .c-tag-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.c-tag-filter-layout .c-tag-dropdown-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/*  隱私權宣告  資通安全政策  著作權聲明  */
.edit-detail {
  line-height: 1.7;
}
.edit-detail h3 {
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
}
.edit-detail h3:after {
  width: 80px;
  height: 5px;
  background: var(--primary-100);
  content: "";
  display: block;
  left: 0;
  bottom: -15px;
  position: absolute;
  z-index: 0;
}
.edit-detail ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.edit-detail ul li > ul {
  margin: 10px 0 0 0;
}
.edit-detail ul li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 20px 0;
}

.edit-detail ul li > ul > li {
  margin: 0 0 10px 0;
  padding-left: 40px;
}

.edit-detail ul li span {
  position: absolute;
  left: 0;
  top: -2px;
}

/* 網站導覽 */
.sitmap-detail .box {
  padding: 40px 0;
}
.sitmap-detail .box h3 {
  margin: 0 0 20px 0;
}
.sitmap-detail .box:nth-child(even) {
  background: var(--gray-50);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.sitmap-detail .box ul.column {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sitmap-detail .box ul.column > li {
  width: 50%;
  position: relative;
  padding-left: 25px;
  margin: 0 0 30px 0;
  padding-right: 15px;
}

.sitmap-detail .box ul.column li .sed-title {
  margin: 0 0 10px 0;
  color: var(--primary-500);
}

.sitmap-detail .box ul.column > li:before {
  width: 15px;
  height: 15px;
  transform: rotateZ(45deg);
  background: var(--primary-500);
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  z-index: 1;
  display: block;
}

.sitmap-detail ul.number {
  padding: 0;
  margin: 0px 0 0 0;
  list-style: none;
}

.sitmap-detail ul.number li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 10px 0;
}

.sitmap-detail ul.number span {
  position: absolute;
  left: 0;
  top: 0;
}

.sitmap-detail ul.sitmap {
  padding: 0;
  margin: 0;
  list-style: none;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.sitmap-detail ul.sitmap li {
  width: 33.33%;
  margin: 0 0 20px 0;
  font-size: 1.125em;
  padding-right: 15px;
}

.sitmap-detail ul.sitmap li a {
  color: #000;
  position: relative;
  padding-left: 30px;
  display: block;
  text-decoration: none;
}

.sitmap-detail ul.sitmap li a:hover {
  color: var(--primary-600);
}

.sitmap-detail ul.sitmap li a span {
  position: absolute;
  left: 0;
  top: 0px;
}

/* 內頁 detail */
.tour-page-wrapper {
  width: 100%;
  /*overflow-x: hidden;*/
}
.tour-page-wrapper .top-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  width: calc(100% + 100px);
}

.tour-page-wrapper .title-block {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background-image: url("../img/detail_bg.png");
  background-size: cover;
  background-position: center center;
  color: #FFFFFF;
  /* 讓背景向左邊緣延伸的寫法 */
  /* margin-left: calc(-50vw + 50%); */
  margin-right: 0;
  padding: 40px 130px 40px 30px;
  border-radius: 24px;
}
.tour-page-wrapper .location-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.tour-page-wrapper .main-title {
  margin-bottom: 15px;
}

.tour-page-wrapper .breadcrumb-item a {
  color: white;
  text-decoration: none;
}
.tour-page-wrapper .breadcrumb-item a:hover {
  opacity: 0.8;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.7);
}
.tour-page-wrapper .breadcrumb-item.active {
  color: rgba(255, 255, 255, 1);
}

.tour-page-wrapper .image-block {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  transform: translate(-100px, 30px);
}

.tour-page-wrapper .collab {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-left: 130px;
}

.tour-page-wrapper .collab-text {
  color: var(--gray-500);
}

.tour-page-wrapper .collab img {
  height: 36px;
  width: auto;
}

.tour-page-wrapper .desk-collab {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
.tour-page-wrapper .mob-collab {
  display: none;
}

/* .tour-page-wrapper .hero-image {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center center;
} */

.tour-page-wrapper .sub-hero-wrap {
  position: relative;
}

.tour-page-wrapper .sub-hero-wrap .carousel-controls {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
}
.tour-page-wrapper .sub-hero-swiper {
  border-radius: 24px;
  overflow: hidden;
}

.tour-page-wrapper .sub-hero-swiper .swiper-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center center;
}

.tour-page-wrapper .info-block {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding: 20px 140px 0 40px;
}

.tour-page-wrapper .action-price-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.tour-page-wrapper .action-btns {
  display: flex;
  gap: 8px;
}
.tour-page-wrapper .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-700);
  position: relative;
}

.tour-page-wrapper .icon-btn .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px 10px;

  white-space: nowrap;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.tour-page-wrapper .icon-btn .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}

.tour-page-wrapper .icon-btn .tooltip-text.show {
  visibility: visible;
  opacity: 1;
}

.tour-page-wrapper .icon-btn svg {
  width: 22px;
  height: 22px;
}

.tour-page-wrapper .icon-btn:hover {
  background: var(--gray-200);
}

.tour-page-wrapper .price-box {
  color: var(--primary-500);
  font-weight: 600;
  display: flex;
  align-items: baseline;
}

*[lang="en"] .tour-page-wrapper .price-box {
  flex-direction: row-reverse;
  column-gap: 8px;
}

.tour-page-wrapper .price-box .unit {
  margin-left: 4px;
}

*[lang="en"] .tour-page-wrapper .price-box .unit {
  margin-left: 0px;
  font-size: 1.4rem;
}

.tour-page-wrapper .desc-text {
  margin-bottom: 25px;
}
.tour-page-wrapper .desc-text p {
  margin-bottom: 10px;
}
.tour-page-wrapper .highlight-orange {
  color: var(--highlight-500);
}

.tour-page-wrapper .buy-btns {
  display: flex;
  gap: 12px;
  max-width: 85%;
}
.tour-page-wrapper .buy-btns a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 30px;
  text-decoration: none;
}
.tour-page-wrapper .btn-buy {
  background-color: var(--primary-500);
  color: white;
}
.tour-page-wrapper .btn-disabled {
  background-color: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}
.tour-page-wrapper .hide-on-mobile {
  display: block;
}

.tour-page-wrapper .bottom-section {
  margin-top: 40px;
}

.tour-page-wrapper .bottom-section .tab-group {
  padding: 0 40px;
}

.tour-page-wrapper .tab-active {
  background-color: var(--highlight-50);
  color: var(--highlight-500);
  padding: 10px 36px;
  border-radius: 12px 12px 0 0;
  display: inline-block;
}
.tour-page-wrapper .tab-content-bg {
  background-color: var(--highlight-50);
  padding: 40px 40px 40px 40px;
  line-height: 1.8;
}

.main-detail .title {
  position: relative;
  display: block;
  margin-top: 60px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.main-detail > .title:first-child {
  margin-top: 0 !important;
}

.main-detail .title::before {
  content: "";
  display: inline-block;
  vertical-align: -5px;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  background-color: var(--highlight-500);
  -webkit-mask: url("../img/star-four-points.svg") no-repeat center / contain;
  mask: url("../img/star-four-points.svg") no-repeat center / contain;
}

.main-detail .title span {
  display: inline;
  padding: 0 4px;
  background: linear-gradient(
          to top,
          rgba(255, 160, 67, 0.4) 40%,
          transparent 40%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.main-detail p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.main-detail img {
  border-radius: 10px;
  max-width: 1024px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* iframe 建議設定 (讓嵌入影片能自適應並維持 16:9 比例) */
.main-detail iframe {
  width: 100%;
  max-width: 1024px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: none;
  /* iframe 置中設定 */
  display: block;
  margin: 20px 0;
}

/* 手風琴 */

.qa-box {
  padding: 40px 40px;
}

.qa-box .custom-accordion-item {
  border: 1px solid var(--highlight-500) !important;
  border-radius: 20px !important;
  margin-bottom: 24px;
  background-color: white;
  overflow: hidden;
  box-shadow: none !important;
}

.qa-box .accordion-item.custom-accordion-item:not(:first-of-type) {
  border-top: 1px solid var(--highlight-500) !important;
}

.qa-box .custom-accordion-button {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--highlight-500) !important;

  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.qa-box .custom-accordion-button::after {
  display: none !important;
}

.qa-box -accordion-button .icon-collapse-open {
  display: inline-block;
  color: var(--highlight-500);
}

.qa-box .custom-accordion-button .icon-collapse-closed {
  display: none;
  font-size: 1.25rem;
}

.qa-box .custom-accordion-button.collapsed .icon-collapse-open {
  display: none;
}
.qa-box .custom-accordion-button.collapsed .icon-collapse-closed {
  display: inline-block;
}
.qa-box .custom-accordion-button.collapsed {
  color: var(--highlight-500);
}

.qa-box .custom-accordion-body {
  line-height: 1.8;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/*  ---  精選優惠 filter  ---  */
.discount-filter {
  margin-bottom: 25px;
}

/*  ---  新鮮企劃  ---  */
.page-discount .discount-general {
  grid-template-columns: repeat(3, 1fr);
}

/*  ---  大主題  ---  */
.big-section {
  margin: 0 0 40px 0;
}
.big-section .family-travel-card {
  display: flex;
  flex-direction: row;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.big-section .family-travel-card {
  text-decoration: none;
}

.big-section .family-travel-card:hover .card-image img {
  transform: scale(1.1);
}

.big-section .card-image {
  flex: 0 0 38%; /* 左側圖片佔比約 */
  overflow: hidden;
  aspect-ratio: 16/9;
}

.big-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.big-section .card-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.big-section .card-content .title {
  font-weight: 600;
  color: black;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.big-section .card-content .description {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*  ---  人氣精選  ---  */
.popular-section {
  background: var(--secondary-50);
  padding: 60px 0;
}
.popular-section .section-header {
  text-align: center;
  margin-bottom: 20px;
}

.popular-section .carousel-controls {
  justify-content: center;
  margin-bottom: 8px;
}

.popular-section .ctrl-btn {
  background: var(--primary-500);
  color: white;
}

.popular-section .ctrl-btn.swiper-button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.popular-section .ctrl-btn:hover {
  background: var(--primary-800);
}

.popular-section .carousel-controls.d-none-custom {
  display: none !important;
}

.popular-section .carousel-swiper {
  width: 100%;
  padding: 2rem 0;
  overflow: hidden;
}

.popular-section .tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  overflow: visible !important;
  z-index: 1;
  gap: 12px;
}

.popular-section .custom-tabs {
  flex-wrap: nowrap !important;
  border: none;
}

.popular-section .custom-tabs li button {
  white-space: nowrap;
}

.popular-section .tabs-wrapper .nav-item button {
  padding: 8px 26px 8px 26px;
  background: white;
  border: 1px solid #ddd;
}

.popular-section .s-tag-more-btn {
  background: transparent;
}

.popular-section .s-tag-more-btn.is-visible {
  display: inline-flex;
  margin-left: 12px;
}
.popular-section .s-tag-dropdown {
  width: auto;
}
.popular-section .s-tag-dropdown.show {
  display: block !important;
  opacity: 1;
}

.popular-section .s-tag-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 全域共用 */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap !important;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 90vw;
}

.breadcrumb-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.breadcrumb-item:last-child,
.breadcrumb-item.active {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flatpickr-months .flatpickr-month {
  height: 40px;
}

/* ---  搜尋 --- */

.search-box {
  padding-top: 30px;
}
.search-section {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 15px 0 15px 0;
  border: 1px solid #ddd;
}

body:has(.header-scrolled) .search-section {
  z-index: 999999;
  position: fixed;
  top: 0px;
}

.search-section .form-grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.search-section .form-set,
.search-section .search-form input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px !important;
}

.search-section .input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-section .input-group label {
  font-weight: 600;
}

.search-section .input-group label svg {
  color: var(--primary-500);
}

.search-section .btn-submit,
.search-box .search-left .btn-submit {
  height: 44px;
  padding: 0 24px;
  background-color: var(--primary-500);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.search-box .search-left .box {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.search-box .search-left .title {
  margin-bottom: 12px;
  color: black;
}

.search-box .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-box .nav-links li a {
  appearance: none;
  background-color: var(--primary-50);
  border: none;
  padding: 8px 26px 8px 10px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;

  color: black;
  text-decoration: none;
}

.search-box .nav-links li a .check-icon {
  margin-right: 6px;
  width: 16px;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.search-box .nav-links li a.active {
  background-color: var(--primary-500);
  color: white;
}

.search-box .nav-links li a.active svg {
  visibility: visible;
  opacity: 1;
}

.search-box .price-slider-wrapper {
  padding: 8px 4px;
}

.search-box .price-val-display {
  margin-bottom: 12px;
}

.search-box .range-slider {
  position: relative;
  width: 100%;
  height: 24px;
}

.search-box .slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 3px;
  z-index: 1;
}

/* 兩個 Range Input 重疊設定 */
.search-box .range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  background: none;
  pointer-events: none; /* 穿透點擊 */
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
  outline: none; /* 清除原生框 */
}

.search-box .range-slider input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary-500, #0066cc);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-box .range-slider input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary-500, #0066cc);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-box .range-slider input[type="range"]:focus {
  z-index: 3;
  outline: none !important;
}

.search-box .range-slider input[type="range"]:focus::-webkit-slider-thumb {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3), 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: scale(1.15); /* Focus 時微幅放大 */
  outline: 4px dashed #f5a552 !important;
  box-shadow: none !important;
  transition: none;
  outline-offset: -3px;
}

.search-box .range-slider input[type="range"]:focus::-moz-range-thumb {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3), 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: scale(1.15);
}
.search-right .explore-general {
  gap: 40px;
  display: flex;
  flex-direction: column;
}

.search-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: 0 0 20px 0;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.search-breadcrumb .breadcrumb {
  width: auto;
}
