@media (min-width: 768px) {
}

@media (min-width: 992px) {
  /* ---  搜尋 --- */
  .search-right .explore-general {
    display: flex;
    flex-direction: column;
  }
  .search-right .explore-general a {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: auto;

    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
  }

  .search-right .explore-general a .img-wrapper {
    border-radius: 0px;
    height: 100%;
    width: 100%;
  }

  .search-right .explore-general a .card-body {
    padding: 20px 20px;
  }
}

@media (min-width: 1025px) {
  /*  ---  精選優惠 filter  ---  */
  .discount-filter .filter-container {
    justify-content: space-between;
    align-items: flex-end;
  }

  .discount-filter .filter-container .c-tag-container {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  /* 選單 全域*/
  /* .header-container {
    padding: 0 0px 0 24px;
  } */

  .mega-dropdown {
    position: static;
  }

  .mega-dropdown:hover > .nav-link,
  .mega-dropdown:focus-within > .nav-link {
    color: var(--primary-500) !important;
  }

  .mega-dropdown:hover .mega-menu,
  .mega-dropdown:focus-within .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .mega-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 100%;
    max-width: 750px;
    max-height: 420px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem 2rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
    border-top: 3px solid var(--primary-500);
  }

  /* 滾動條樣式 */
  .mega-menu::-webkit-scrollbar {
    width: 6px;
  }
  .mega-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
  .mega-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
  }

  .mega-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  /* 大分類區塊在大版時不可點擊、永遠展開 */
  .mega-category-toggle {
    flex: 1;
    display: block !important;
  }

  .mega-category-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #222222;
    margin-bottom: 1rem;
    text-align: left;
    list-style: none;
    pointer-events: none; /* 大版禁止點擊開合 */
    cursor: default;
  }

  .mega-category-title::-webkit-details-marker {
    display: none;
  }

  /* 大版隱藏大分類箭頭 */
  .category-arrow {
    display: none !important;
  }

  .mega-col-content {
    display: block !important;
  }
  .mega-col {
    flex: 1;
  }

  .accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
  }

  .region-accordion {
    margin-bottom: 0.5rem;
  }

  .region-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 0.2rem 0;
    transition: color 0.2s;
  }

  .region-toggle::-webkit-details-marker {
    display: none;
  }

  .arrow-icon {
    transition: transform 0.25s ease;
  }

  .region-accordion[open] .arrow-icon {
    transform: rotate(180deg);
  }

  .city-list {
    list-style: none;
    padding: 0.3rem 0 0.5rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .city-list a {
    text-decoration: none;
    display: inline-block;
    padding: 0.1rem 0;
    transition: color 0.2s;
  }

  .city-list a:hover,
  .city-list a:focus {
    color: var(--primary-500);
  }

  .mega-divider {
    width: 1px;
    background-color: #e0e0e0;
    align-self: stretch;
  }

  .mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .mega-links a {
    text-decoration: none;
    display: block;
    transition: color 0.2s;
  }

  .mega-links a:hover,
  .mega-links a:focus {
    color: var(--primary-500);
  }
  .main_menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .main_menu h1 {
    margin: 25px 0;
    transition: all 0.2s linear;
  }

  .header-scrolled .main_menu h1 {
    margin: 20px 0;
  }

  .mobile-toggle-btn {
    display: none;
  }

  .unified-menu.offcanvas {
    background: none !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
  }

  .unified-menu .mobile-menu-header {
    display: none;
  }

  .unified-menu-body {
    padding: 0;
    display: flex;
    height: 100%;
    align-items: flex-end;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    margin: 0;
    gap: 0.5rem;
    position: absolute;
    justify-content: center;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 0;
    z-index: 1;
  }

  .main-nav h1 {
    margin: 0;
  }

  .main-nav .nav-link {
    border: none;
    border-radius: 0;
    padding: 0.7rem 1rem;
    margin-bottom: 0;
    color: black !important;
    background: transparent;
    position: relative;
    width: auto;
    text-align: left;
    min-width: 120px;
    display: flex;
    justify-content: center;
  }

  html[lang="en"] .main-nav .nav-link {
    min-width: 190px;
  }

  .main-nav .nav-link:hover {
    color: var(--primary-500) !important;
    background: transparent;
  }

  .main-nav .active-link::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: linear-gradient(
      90deg,
      var(--primary-500) 0%,
      var(--primary-300) 100%
    );
    border-radius: 2px;
    display: block;
  }

  .sub-nav-wrapper {
    background-color: var(--primary-500);
    border-bottom-left-radius: 20px;
    padding: 0.2rem 1.5rem 0.3rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s linear;
  }

  .custom-header:after {
    position: fixed;
    right: 0;
    top: 0;
    width: 500px;
    height: 35.17px;
    background: var(--primary-500);
    content: "";
    display: block;
    border-bottom-left-radius: 20px;
  }

  /* .header-scrolled .sub-nav-wrapper {
    padding: 0.4rem 2rem 0.4rem 2rem;
  } */

  .lang-btn {
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    color: #ffffff;
  }

  .lang-btn:hover {
    background: transparent;
    opacity: 0.8;
  }

  .sub-links {
    padding: 0;
    gap: 1.5rem;
    display: flex;
  }

  .sub-links a {
    color: #ffffff;
    transition: opacity 0.2s;
  }

  .sub-links a:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }

  /* 人氣精選 */
  .popular-section .carousel-swiper .swiper-slide {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.85);
  }

  .popular-section
    .carousel-swiper:not(.slide-count-1):not(.slide-count-2)
    .swiper-slide.swiper-slide-next {
    transform: scale(1.1) !important;
    z-index: 2;
  }

  /* [只有 1 個項目]：置中且放大 */
  .popular-section .carousel-swiper.slide-count-1 .swiper-wrapper {
    justify-content: center;
  }
  .popular-section .carousel-swiper.slide-count-1 .swiper-slide {
    transform: scale(1.1) !important;
  }

  /* [只有 2 個項目]：靠左，第二個項目放大 */
  .popular-section .carousel-swiper.slide-count-2 .swiper-wrapper {
    justify-content: flex-start;
  }
  .popular-section .carousel-swiper.slide-count-2 .swiper-slide:nth-child(2) {
    transform: scale(1.1) !important;
    z-index: 2;
  }

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

  .mobile-filter-btn {
    display: none;
  }
  .search-box .search-result {
    display: grid;
    grid-template-columns: 1.1fr 3fr;
    gap: 40px;
  }

  .mobile-top-bar,
  .btn-close-drawer,
  .header-drawer {
    display: none !important;
  }

  .search-box .search-left .btn-submit {
    display: none;
  }
}

@media (min-width: 1440px) {
  /* 選單 全域*/
  .main-nav .nav-link {
    min-width: 150px;
  }
}

@media screen and (max-width: 1440px) {
  /* 選單 全域*/
  .header-logo {
    height: 40px;
  }

  /* .sub-nav-wrapper {
    padding: 0.4rem 1.5rem 0.4rem 2rem;
  } */

  /* footer 全域*/
  /* .main-footer > div {
    padding: 0 2rem;
  } */

  .tra-logo-img {
    max-height: 50px;
  }

  .main-nav .nav-link {
    padding: 0.4rem 1rem;
  }

  /* 首頁主要橫幅與行程搜尋 */
  .hero-section .search-form .input-group select,
  .hero-section .search-form .input-group input {
    min-height: 40px;
  }
  .hero-section .hero-titles {
    margin: 0px 0;
  }
  .hero-section .nav-links a {
    padding: 0 15px;
  }
  .hero-section .bottom-nav {
    padding: 40px 40px 10px 40px;
    margin: -30px auto 0 auto;
  }
  .hero-section .brand .brand-name {
    line-height: 1.2;
  }
  .hero-section .brand img {
    height: 40px;
  }
  .hero-section .bottom-nav .ctn {
    gap: 10px 20px;
  }
  .hero-section .nav-links {
    gap: 3px;
  }
  .hero-section .announcement-bar {
    padding: 6px 18px;
  }
  .hero-section .announcement-bar .btn-close {
    width: 24px;
    height: 24px;
  }
  /* ---  主題輪播區塊外觀 --- */
  .subject-section {
    margin-top: -20px;
  }
  .subject-swiper .swiper-slide a {
    min-height: auto;
  }
  .subject-section #btn-prev {
    top: 45px;
  }
  .subject-section #btn-next {
    top: 45px;
  }

  /*  ---  重要公告 item 全域 ---  */
  .news-card {
    grid-template-columns: 260px 1fr;
  }

  /* ---  精彩影音 --- */
  .video-section .container-header,
  .video-section .video-slide-layout,
  .video-section .video-controls {
    gap: 40px;
  }

  .video-section .section-header {
    padding-right: 170px;
  }

  .video-section .video-info-wrapper {
    padding: 20px 0 0 0;
  }

  .video-section .play-link {
    border-radius: 0 30px 30px 0;
  }

  /* 內頁 detail */
  .tour-page-wrapper .info-block {
    padding: 20px 140px 0 0px;
  }
  .tour-page-wrapper .tab-content-bg {
    padding: 40px 0 40px 0px;
  }
  .tour-page-wrapper .bottom-section .tab-group {
    padding: 0;
  }

  /* 手風琴 */
  .qa-box {
    padding: 40px 0px;
  }

  /*  ---  大主題  ---  */
  .big-section .card-content {
    padding: 40px;
  }
}

@media screen and (max-width: 1280px) {
  /* 全域 */
  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    --bs-gutter-x: 3rem;
  }

  /* footer 全域*/
  .footer-info-grid ul {
    gap: 20px 30px;
  }

  .info-block {
    padding-left: 10px;
  }

  /* ---  精彩影音 --- */
  .video-section .video-info-wrapper {
    padding: 0;
  }

  .video-section .container-header,
  .video-section .video-slide-layout,
  .video-section .video-controls {
    grid-template-columns: 1.2fr 1fr;
  }

  /*  ---  大主題  ---  */
  .big-section .card-content {
    padding: 30px;
  }

  /*  ---  人氣精選  ---  */
  .popular-section .tabs-wrapper .nav-item button {
    padding: 8px 15px 8px 15px;
  }
}

@media screen and (max-width: 1199px) {
  /* 無障礙 全域*/
  a[accesskey] {
    display: none;
  }

  .sr-only.sr-only-focusable {
    display: none !important;
  }

  /* 選單 全域*/
  /* 徹底關閉 hover 切換與動畫轉場，防止抖動 */
  .mega-dropdown:hover .mega-menu,
  .mega-dropdown:focus-within .mega-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .mega-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important; /* 關閉 transition 動畫 */
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    max-height: none !important; /* 解除高度限制 */
    overflow: visible !important;
    border-top: none;
    box-shadow: none;
  }

  .mega-menu-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  /* 小版大分類開合標題 (城市地區 / 旅遊類型) */
  .mega-category-toggle {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
  }

  .mega-category-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    list-style: none;
  }

  .mega-category-title::-webkit-details-marker {
    display: none;
  }

  .category-arrow {
    font-size: 1.4rem;
    transition: transform 0.25s ease;
  }

  /* 大分類展開時箭頭旋轉 */
  .mega-category-toggle[open] .category-arrow {
    transform: rotate(180deg);
  }

  .mega-col-content {
    padding-top: 0.5rem;
  }

  .accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
  }

  /* 強制展開所有的 <details> 與內容，並禁用點擊開合 */
  .region-accordion {
    display: block !important;
  }

  .region-toggle {
    color: #ffffff;
    font-weight: bold;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none; /* 禁用點擊事件，無法被收合 */
    padding: 0;
  }

  /* 隱藏開合箭頭 */
  .region-toggle .arrow-icon {
    display: none !important;
  }

  /* 強制展開 city-list，無視 details 狀態 */
  .region-accordion .city-list,
  details:not([open]) .city-list {
    display: flex !important;
    list-style: none;
    padding: 0.3rem 0;
    margin: 0;
    flex-direction: column;
    gap: 0.3rem;
  }

  .city-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.2rem 0;
    display: block;
  }

  .mega-divider {
    display: none;
  }

  .mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-links a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
  }
  .sub-nav-wrapper {
    padding: 0;
  }

  .main-nav .nav-link {
    padding: 1rem 1rem;
    font-size: 1.25rem;
  }

  .main-nav .nav-link.active-link {
    border: 1.5px solid rgba(255, 255, 255, 1);
  }
  .header-logo {
    height: 35px;
  }

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

  .header-container {
    height: 50px;
    display: flex;
    align-items: center;
  }

  .main_menu {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .sub-nav-wrapper {
    display: flex;
    flex-direction: column-reverse;
  }

  .sub-links {
    align-items: center;
    justify-content: center;
    gap: 10px 30px;
    background: var(--primary-600);
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    padding: 1rem 1.5rem;
  }

  .main_menu h1 {
    margin: 0;
  }

  /* ---  分頁全域 ---  */
  .pagination-container {
    flex-direction: column;
  }

  .pagination-container .page-list {
    flex-wrap: wrap;
  }

  /* 首頁主要橫幅與行程搜尋 */
  .hero-section > div {
    padding: 0;
  }

  /* ---  探索散策 --- */
  .explore-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* 解除桌機版的強制等高設定，讓內容自然撐開 */
  .explore-big,
  .explore-swiper,
  .explore-swiper .swiper-wrapper,
  .explore-swiper .swiper-slide,
  .explore-general {
    height: auto;
    min-height: auto;
  }

  .explore-big {
    aspect-ratio: auto;
  }

  .scrolling-cards-container {
    grid-template-rows: auto;
  }

  .explore-swiper .swiper-slide .img-wrapper {
    aspect-ratio: 16/9 !important;
    height: auto;
    flex: none;
  }

  .explore-swiper .swiper-slide .main-card .img-wrapper img {
    position: relative;
  }

  .explore-section .title-group > div {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .explore-section .tabs-wrapper {
    padding: 0 60px;
  }

  .explore-section .title-group .section-header {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    transform: translateY(40px);
  }

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

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

  /* 重要公告 */
  .news-section .news-card {
    display: flex;
    flex-direction: column;
  }

  /* ---  精彩影音 --- */
  .video-section:after {
    width: 40%;
  }

  .video-section .section-header {
    margin: 0 0 10px 0;
  }

  .video-section .container-header,
  .video-section .video-slide-layout,
  .video-section .video-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .video-section .video-controls .carousel-controls {
    margin-top: 0;
    padding-right: 0;
    justify-content: flex-start;
    padding-left: 1.5rem;
    margin-bottom: 10px;
  }

  .video-section .section-header {
    padding-right: 0;
  }

  .video-section .video-info-wrapper {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  /* 城鄉漫遊 */
  .page-explore .explore-general,
  .page-subject .explore-general,
  .page-discount .discount-general {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
  }

  .page-explore .explore-general > a:nth-child(10n + 1),
  .page-explore .explore-general > a:nth-child(10n + 8) {
    grid-column: span 2;
    grid-row: auto;
  }

  .page-explore .explore-general > a:nth-child(10n + 1) .img-wrapper,
  .page-explore .explore-general > a:nth-child(10n + 8) .img-wrapper {
    aspect-ratio: 16/9;
    flex-grow: 0;
  }

  /*  --- 地區篩選 ---  */
  .area-box {
    top: 50px;
  }
  .area-box > div {
    padding: 0;
  }

  .area-box .area-label {
    display: none;
  }
  .area-box .area-filter-wrapper {
    gap: 8px;
  }
  .area-box .area-btn-prev,
  .area-box .area-btn-next {
    width: 28px;
    height: 36px;
  }

  /*  --- 頁面 page banner ---  */
  .page-banner .page-banner {
    min-height: auto;
    padding: 50px 15px;
    /* 手機版可能四邊都有圓角，視外部容器而定 */
    border-radius: 30px;
  }
  .page-banner br {
    display: none;
  }

  /* 重要公告列表 */
  .page-news .news-card {
    display: flex;
    flex-direction: column;
  }
  .page-news .news-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* 內頁 detail */
  .tour-page-wrapper .top-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .tour-page-wrapper .title-block {
    order: 1;
    width: calc(100% + var(--bs-gutter-x));
    margin-left: -1.5rem;
    padding: 30px 30px;
    border-radius: 24px 24px 0px 0px;
    background-position: center bottom;
  }

  .tour-page-wrapper .image-block {
    order: 2;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    transform: translate(0px, -20px);
  }
  /*.tour-page-wrapper .hero-image {
      box-shadow: none;
  }*/
  .tour-page-wrapper .desk-collab {
    display: none;
  }

  .tour-page-wrapper .info-block {
    order: 3;
    padding: 0;
  }

  .tour-page-wrapper .mob-collab {
    display: flex;
    margin-bottom: 20px;
    padding-left: 0;
  }

  .tour-page-wrapper .action-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .tour-page-wrapper .buy-btns {
    max-width: 100%;
  }

  /* 人氣精選 */
  .popular-section .carousel-swiper {
    padding-right: 2.5rem !important;
    padding-left: 2.5rem !important;
  }
  /* ---  搜尋 --- */
  .search-box {
    padding-top: 20px;
  }
  .header-drawer {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: white;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 999;
    align-items: center;
    justify-content: end;
    display: flex;
    padding: 0 30px;
    transition: right 0.3s ease-in-out;
    opacity: 0;
  }
  .open-drawer .header-drawer {
    position: fixed;
    opacity: 1;
  }
  .mobile-top-bar {
    position: sticky;
    top: 50px;
    z-index: 1;
    display: flex;
    align-items: center;
    background-color: white;
    width: 100%;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #ddd;
    height: 50px;
  }

  .mobile-top-bar > div {
    display: flex;
    justify-content: space-between;

    align-items: center;
  }

  .mobile-top-bar .mobile-filter-btn {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: end;
    height: 45px;
    width: 45px;
  }

  .mobile-top-bar .mobile-filter-btn svg {
    font-size: 1.25rem;
  }
  .mobile-top-bar .filter-search {
    flex: 1;
  }
  .mobile-top-bar .mobile-search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 5px 14px;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-top-bar .mobile-search-input-wrapper .search-icon {
    color: #9ca3af;
    flex-shrink: 0;
  }

  .mobile-top-bar .mobile-search-input-wrapper .close-icon {
    color: #9ca3af;
  }

  .search-box .search-left .btn-submit {
    width: 100%;
  }

  .search-section .form-grid {
    flex-direction: column;
  }

  .search-section .btn-submit {
    width: 100%;
  }

  .btn-clear-search {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.1rem;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .search-section,
  .search-left {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1050;
    overflow-y: auto;
    padding: 60px 20px 20px 20px;
    transition: right 0.3s ease-in-out;
    box-sizing: border-box;
  }

  .search-section .container-fluid {
    padding: 0;
  }

  .search-section.open-drawer,
  .search-left.open-drawer {
    right: 0;
  }

  .btn-close-drawer {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: #4b5563;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    z-index: 1060;
  }
}

@media screen and (max-width: 1024px) {
  /* 首頁主要橫幅與行程搜尋 */
  .hero-section .swiper-slide {
    padding: 100px 20px 20px 20px;
  }
  .hero-section .hero-ui-layer {
    border-radius: 30px;
    padding: 220px 20px 15px 20px;
  }

  .hero-section .carousel-controls {
    justify-content: center;
    padding: 0 20px;
  }

  .hero-section .main-title {
    letter-spacing: 0px;
  }

  .hero-section .search-form .form-grid {
    flex-direction: column;
  }

  .hero-section .announcement-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
  }

  .hero-section .announcement-bar .tag {
    border-right: none;
    background: var(--white-100);
    border-radius: 5px;
    padding: 0 15px;
  }

  .hero-section .announcement-bar .btn-close {
    position: absolute;
    right: 20px;
    top: 8px;
    width: 26px;
    height: 26px;
  }

  .hero-section .bottom-nav {
    border-radius: 30px;
    padding: 50px 20px 20px 20px;
  }

  .hero-section .bottom-nav .ctn {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section .nav-links {
    margin: 0 0 0 -10px;
    max-height: 30px;
    overflow: hidden;
  }

  .hero-section .nav-links.expanded {
    display: flex;
    overflow: visible;
    max-height: none;
  }

  .hero-section .nav-links a {
    padding: 0 10px;
  }

  .hero-section .brand img {
    height: 45px;
  }

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

  .hero-section .mobile-expand-btn {
    display: flex;
    width: 100%;
  }

  /*  --- 城鄉漫遊-下拉group ---  */
  .filter-box .filter-container > div {
    flex: 1;
    width: 100%;
  }
  .filter-box .filter-container > div > button {
    width: 100%;
  }

  /*  --- 主題 展開更多 ---  */
  .c-tag-filter-layout {
    flex-direction: column;
  }

  .filter-box .filter-container.c-tag-filter-layout > div > button {
    width: auto;
  }
  .filter-box .filter-container.c-tag-filter-layout > div > .dropdown-toggle {
    width: 100%;
  }
}

@media screen and (max-width: 991px) {
  /* 網站導覽 */
  .sitmap-detail .box {
    padding: 30px 0;
  }
  /*  ---  大主題  ---  */
  .big-section .family-travel-card {
    flex-direction: column;
  }

  .big-section .card-image {
    flex: auto;
    min-height: auto;
    aspect-ratio: 16/9;
  }

  .big-section .card-content {
    padding: 20px;
    display: block;
  }
}

@media screen and (max-width: 767px) {
  /* 選單 全域*/
  .accordion-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  /* footer 全域*/
  .partners-logos {
    gap: 20px;
  }

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

  /* ---  主題輪播區塊外觀 ---  */
  .subject-section .subject-container {
    padding: 0;
  }

  .subject-section > div {
    padding: 0;
  }

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

  .subject-section #btn-prev {
    top: 40px;
    left: 5px;
  }

  .subject-section #btn-next {
    top: 40px;
    right: 5px;
  }

  /* ---  探索散策 --- */
  .explore-section .scrolling-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
  }

  .explore-section .tab-box > div {
    padding-left: 0;
    padding-right: 0;
  }

  .explore-section .explore-big {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }

  .explore-section .explore-big .carousel-controls {
    left: calc(16px + var(--bs-gutter-x) * 0.5);
  }

  .explore-section .explore-general .item-card {
    min-width: calc(100% - var(--bs-gutter-x));
  }

  .explore-section .explore-general .item-card:only-of-type {
    max-width: calc(100% - var(--bs-gutter-x) * 0.5);
  }

  .explore-section .explore-general .scrolling-cards-container {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .explore-general:has(.scrolling-cards-container .item-card:nth-child(2))
    .scrolling-right {
    display: flex;
  }

  /* 重要公告 */
  .news-section .news-box > div {
    padding-left: 0;
    padding-right: 0;
  }

  .news-section .news-box .news-grid-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .news-section .news-card {
    min-width: calc(100% - var(--bs-gutter-x));
  }

  .news-section .news-card:only-of-type {
    max-width: calc(100% - var(--bs-gutter-x) * 0.5);
  }

  /* 城鄉漫遊 */
  .page-explore .explore-general,
  .page-subject .explore-general,
  .page-discount .discount-general,
  .section-product .scrolling-cards-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-explore .explore-general > a:nth-child(10n + 1),
  .page-explore .explore-general > a:nth-child(10n + 8) {
    grid-column: auto;
  }

  /*  --- 城鄉漫遊-下拉group ---  */
  .filter-box .filter-container {
    flex-direction: column;
  }

  /*  --- 頁面 page banner ---  */
  .page-banner {
    padding: 30px 0 70px 0;
  }

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

  .news-section:has(.news-box .news-card:nth-child(2)) .scrolling-right {
    display: flex;
  }

  /* 網站導覽 */
  .sitmap-detail .box ul.column > li {
    width: 100%;
    margin: 0 0 15px 0;
    padding-right: 0;
  }
  .sitmap-detail ul.sitmap li {
    width: 50%;
    margin: 0 0 15px 0;
  }
}

@media screen and (max-width: 640px) {
  /* 網站導覽 */
  .sitmap-detail ul.sitmap li {
    width: 100%;
    padding-right: 0;
  }

  /* 手風琴 */
  .qa-box .custom-accordion-button {
    padding: 1rem 1.2rem;
  }
  .qa-box .custom-accordion-body {
    padding: 0 1.2rem 1.2rem 1.2rem;
  }
  .search-breadcrumb {
    flex-direction: row;
  }
  .hero-section .main-title {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 414px) {
  .hero-section .main-title {
    font-size: 2rem;
  }
  *[lang="en"] .hero-section .main-title {
    font-size: 1.7rem;
  }
}
