/* ==========================================
   全域與基礎設定
========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Satoshi", "LINE Seed JP", sans-serif;
}

body {
    background-color: #63B4EF;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}
#ohbear-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
 opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        left 0.12s ease-out,
        top 0.12s ease-out;
    will-change: left, top, transform;
}
#ohbear-cursor.show {
    opacity: 1;
    visibility: visible;
}

#ohbear-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#ohbear-speech {
    position: absolute;

    left: 50%;
    bottom: 100%;

    transform: translateX(-50%) translateY(-8px);

    background: #ffffff;
    color: #A2D031;
border: 1px solid #A2D031;
    padding: 8px 14px;

    border-radius: 14px;

    font-size: 20px;
    font-weight: 400;

    white-space: nowrap;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
#ohbear-speech::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -6px;

    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}
#ohbear-cursor.talking #ohbear-speech {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(-12px);
}
/* ==========================================
   Mobile / Tablet Header (最新版 NAV 專用)
========================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.hamburger-btn img {
    display: block;
    width: 36px;
    height: 36px;
}

.mobile-logo-img {
    height: 36px;

    /* 置中不靠兩側的佔位元素。原本是 flex space-between，
       右邊塞一個固定寬度的空 div 假裝對稱，但漢堡鈕實際只有
       21px，各頁塞的又是 0 / 24 / 36 / 40px，所以每頁的偏移
       都不一樣。抽離文件流直接對齊 header 中線，跟旁邊有什麼、
       多寬都無關。 */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    z-index: 1001;
}

/* ==========================================
   Sidebar Base & 滑動選單結構
========================================== */
.sidebar {
    width: 72px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 0 25px 25px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .1);
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    transition: width .35s ease, transform .35s ease;
}

.menu-wrapper {
    height: 100%;
    width: 200%;
    display: flex;
    transition: transform .35s ease;
}

.menu-page {
    width: 50%;
    height: 100%;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
}

.close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: #e05228;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
    .sidebar:hover {
        width: 350px;
    }

    .sidebar:hover .logo {
        width: 250px;
    }

    .sidebar:hover .nav-item .nav-text,
    .sidebar:hover .accessibility-title .nav-text,
    .sidebar:hover .detail-content {
        opacity: 1;
        visibility: visible;
        max-height: 800px;
    }

    .sidebar:hover .sidebar-bottom::before {
        opacity: 1;
    }

.sidebar-top {
    padding: 24px 12px;
    position: relative;
}

.logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    transition: .35s;
}

.logo-img {
    height: 48px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-item a,
.nav-item-btn {
    position: relative;
    display: flex;
    align-items: center;
    height: 45px;
    color: #ff5629;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}
.nav-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 60%;
    height: 10px;

    background: url("../src/assets/img/nav_icon/hover_line.svg")
        no-repeat left center;
    background-size: contain;

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform .35s ease;
}

.nav-item a:hover::after {
    transform: scaleX(1);
}
.nav-item img,
.nav-item-btn img {
    width: 35px;
    height: 35px;
    margin-left: 6px;
    flex: 0 0 35px;
}

.nav-item .nav-text,
.nav-item-btn .nav-text {
    margin-left: 18px;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    flex-grow: 1;
}

.mobile-lang-entry {
    display: none;
    align-items: center;
    width: 100%;
    height: 45px;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #ff5629;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.mobile-lang-entry img {
    width: 35px;
    height: 35px;
    margin-left: 6px;
    flex: 0 0 35px;
}

.mobile-lang-entry span {
    margin-left: 18px;
    flex: 1;
}

.mobile-lang-entry i {
    margin-right: 12px;
    font-size: 18px;
}

.lang-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 24px 0;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
}

.lang-title {
    color: #ff5629;
    font-size: 22px;
    font-weight: bold;
}

.lang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lang-list li a {
    color: #ff5629;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.sidebar-bottom {
    width: 350px;
    min-width: 350px;
    flex: 1;
    margin-top: 0;
    padding: 30px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: url("../src/assets/bg-buttom.svg");
    background-repeat: no-repeat;
    background-size: 350px auto;
    background-position: left top;
}

.sidebar-bottom::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 400px;
    width: 80px;
    height: 80px;
    background: url("../src/assets/img/ohbear/oh bear-hi.png") no-repeat center;
    background-size: contain;
    opacity: 0;
    transition: .25s;
    pointer-events: none;
}

.accessibility-title {
    display: flex;
    align-items: center;
    margin-top: 60px;
    height: 40px;
}

.arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.accessibility-title .nav-text {
    margin-left: 12px;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}

.detail-content {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: .25s;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.btn-group {
    display: flex;
    gap: 4px;
}

.btn-size {
    border: 1.5px solid #000;
    background: transparent;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-size.active {
    background: #000;
    color: #fff;
}

.lang-select {
    border: 1.5px solid #000;
    border-radius: 12px;
    padding: 2px 12px;
    background: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.badges {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.MOTC-badges {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.AA-Badge {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-info {
    font-size: 11px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.4;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

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

.copyright {
    margin-top: 8px;
    color: #888;
    font-size: 10px;
}

/* ==========================================
   地圖容器與覆蓋層
========================================== */
.map-content {
    flex: 1;
    position: relative;
    margin-left: 72px;
    height: 100vh;
}

#map {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 海上鳥／雲／浪裝飾動畫（動 img，不動 Leaflet 定位層） */
.ocean-decor {
    background: none !important;
    border: none !important;
    pointer-events: none;
    overflow: visible !important;
}

.ocean-decor img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.ocean-decor > div {
    width: 100%;
    height: 100%;
}

/* 鳥／雲／浪外層：整體向左循環（起點 = 設定位置） */
@keyframes ocean-go-left {
    0% { transform: translateX(0); opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(-100px); opacity: 0; }
}

.ocean-go-left {
    animation: ocean-go-left 28s linear infinite;
}

.ocean-go-2 { animation-duration: 34s; animation-delay: -10s; }
.ocean-go-3 { animation-duration: 24s; animation-delay: -16s; }
.ocean-go-birds { animation-duration: 16s; animation-delay: -3s; }
.ocean-go-cloud1 { animation-duration: 42s; animation-delay: -8s; }
.ocean-go-boat { animation-duration: 10s; animation-delay: -4s; }

/* 內層：緩漂來回，方向與速度交錯 */
@keyframes ocean-sway-left {
    from { transform: translate(28px, 4px); }
    to { transform: translate(-40px, -6px); }
}

@keyframes ocean-sway-right {
    from { transform: translate(-28px, -4px); }
    to { transform: translate(40px, 6px); }
}

.ocean-sway-left {
    animation: ocean-sway-left 22s ease-in-out infinite alternate;
}

.ocean-sway-right {
    animation: ocean-sway-right 28s ease-in-out infinite alternate;
}

.ocean-sway-2 { animation-duration: 30s; animation-delay: -8s; }
.ocean-sway-3 { animation-duration: 18s; animation-delay: -12s; }
.ocean-sway-birds { animation-duration: 14s; animation-delay: -2s; }
.ocean-sway-cloud1 { animation-duration: 32s; animation-delay: -5s; }
.ocean-sway-boat { animation-duration: 22s; animation-delay: -5s; }

@media (prefers-reduced-motion: reduce) {
    .ocean-go-left,
    .ocean-sway-left,
    .ocean-sway-right,
    .ocean-sway-birds,
    .ocean-sway-cloud1,
    .ocean-sway-boat {
        animation: none;
    }
}

.map-overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.region-lists-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 100%;
}

.region-list-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.region-list-container.left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.region-list-container.right {
    right: 0;
    top: 20%;
}

/* 各地區包：個別調 left/top 即可移動整區文字與連線起點 */
.region-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.region-pack.north {
    left: 0px;
    top: 0px;
}

.region-pack.central {
    left: 0;
    top: 0;
}

.region-pack.south {
    left: 0;
    top: 0;
}

.region-pack.east {
    left: 0;
    top: 0;
}

.city-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto;
}

.city-badge {
    padding: 8px 18px;
    border-radius: 20px;
    color: #FFF;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.north .city-badge {
    background-color: #FFB42E;
}

.central .city-badge {
    background-color: #BCD64D;
}

.south .city-badge {
    background-color: #269AF0;
}

.east .city-badge {
    background-color: #8146C6;
}

.city-parks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

.park-item {
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.park-item.dim {
    opacity: 0.3;
    pointer-events: none;
}

.park-item.glow {
    opacity: 1;
    font-weight: 700;
    color: #FFF;
    text-shadow: 0 0 12px rgba(255, 255, 255, 1);
    transform: scale(1.05);
    transform-origin: left center;
}

.park-item:hover,
.park-item.is-hovered {
    text-shadow: 0 0 12px rgba(255, 255, 255, 1);
    font-weight: 700;
    transform: scale(1.4);
    transform-origin: left center;
}

.park-item.glow:hover,
.park-item.glow.is-hovered {
    transform: scale(1.4);
}

/* 舊 CSS 折線改由 SVG 動態連接（起點 region-pack、終點地圖座標） */
.connecting-line {
    display: none;
}

.region-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

/* ==========================================
   篩選器面板與群組按鈕
========================================== */
.filter-widget {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.widget-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ff5629;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn:hover {
    background-color: #E04D24;
}

.filter-toggle-btn.open {
    background-color: #FF5629;
}

#filter-btn,
#filter-btn:hover,
#filter-btn.open,
#filter-btn:focus,
#filter-btn:focus-visible,
#filter-btn:active {
    box-shadow: none;
    text-shadow: none;
    filter: none;
    outline: none;
}

.action-btn .action-icon {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform .25s ease, filter .25s ease;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.filter-toggle-btn .btn-icon img {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform .25s ease, filter .25s ease;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.filter-panel {
    width: 400px;
    /* height: 446px; */
    background: #FDFBF4;
    border-radius: 24px;
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-header {
    background-color: #FF5629;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-close-btn {
    display: none;
}

.filter-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.clear-btn {
    background-color: #FDFBF4;
    color: #FF5629;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.clear-btn:hover {
    opacity: 0.8;
}

.confirm-filter-btn {
    padding: 12px 24px;
        border: 2px solid #FFF;
        border-radius: 30px;
        background: #FF5629;
        color: #FFF;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
}

.confirm-filter-btn:hover {
    opacity: 0.85;
}

.filter-body {
    padding: 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.filter-actions {
    display: none;
}

.filter-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    min-height: 0;
}

.filter-section h4 {
    color: #FF5629;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.filter-tag {
    width: 100%;
    padding: 8px 16px;
    border: 3px solid #FF5629;
    border-radius: 30px;
    background: transparent;
    color: #FF5629;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: #ff5629;
    color: #fff;
}

.filter-tag.active {
    background: #ff5629;
    color: #FFF;
    border-color: #FF5629;
}

.filter-tag.active:hover {
    background: #E04D24;
}

/* ==========================================
   地圖標記與卡片小圖特效
========================================== */
.custom-map-marker {
    background: transparent !important;
    border: none !important;
}

.custom-map-marker:hover:not(.focused),
.custom-map-marker.is-hovered:not(.focused) {
    z-index: 10000 !important;
}

/* hover 時底部接地陰影，讓浮起效果有落點（在圖下方）；已選取則不顯示 */
.custom-map-marker:hover:not(.focused)::after,
.custom-map-marker.is-hovered:not(.focused)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 25%;
    width: 72%;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: marker-shadow-breathe 1.2s ease-in-out infinite;
}

@keyframes marker-shadow-breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
    50% { transform: translateX(-50%) scale(0.82); opacity: 0.55; }
}

.custom-map-marker img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    transform-origin: center;
}

@keyframes marker-breathe {
    0%, 100% { transform: scale(1.3) translateY(-8px); }
    50% { transform: scale(1.4) translateY(-12px); }
}

@keyframes marker-breathe-glow {
    0%, 100% { transform: scale(1.3) translateY(-10px); }
    50% { transform: scale(1.4) translateY(-14px); }
}

.custom-map-marker:hover:not(.focused) img,
.custom-map-marker.is-hovered:not(.focused) img {
    animation: marker-breathe 1.2s ease-in-out infinite;
    filter:
        drop-shadow(0 0 6px rgba(255, 255, 255, 1))
        /* drop-shadow(0 8px 25px rgba(255, 90, 54, 0.95)) */
        drop-shadow(0 10px 6px rgba(0, 0, 0, 0.35));
}

.custom-map-marker.dim img {
    opacity: 0.3;
    filter: grayscale(80%);
    animation: none;
}

.custom-map-marker.dim {
    pointer-events: none !important;
}

.custom-map-marker.glow img {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 180, 46, 0.7));
}

.custom-map-marker.glow:hover:not(.focused) img,
.custom-map-marker.glow.is-hovered:not(.focused) img {
    animation: marker-breathe-glow 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 10px 30px rgba(255, 90, 54, 1));
}

.custom-map-marker.focused img {
    opacity: 1;
    transform: scale(2) translateY(-10px);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 15px 30px rgba(255, 90, 54, 0.9));
    z-index: 9999;
    animation: none;
}

.custom-map-marker.focused:hover img,
.custom-map-marker.focused.is-hovered img {
    animation: none;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 15px 30px rgba(255, 90, 54, 0.9));
    transform: scale(2) translateY(-10px);
}

.custom-leaflet-popup .leaflet-popup-close-button {
    display: none !important;
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: #fff;
}

.park-card-wrapper {
    position: relative;
    width: 280px;
    height: 312px;
    background-color: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.popup-return-btn {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: #FF5629;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 90, 54, 0.3);
    z-index: 2;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.popup-return-btn:hover {
    background-color: #E04D24;
    transform: scale(1.05);
}

.popup-return-btn img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

.card-img-container {
    width: 248px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    background: #fff;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tags-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
}

.card-tag {
    background-color: #FF5629;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-info {
    padding: 16px 4px;
    flex: 1;
}

.card-info h3 {
    font-size: 16px;
    color: #111;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-address {
    font-size: 14px;
    color: #111;
    font-weight: 700;
    margin: 8px 0px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-address i {
    margin-right: 6px;
}

.card-price {
    font-size: 16px;
    color: #FF5629;
    font-weight: 700;
}

.card-action-btn {
    width: 100%;
    height: 40px;
    background-color: #FF5629;
    color: #FFF;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.card-action-btn:hover {
    background-color: #FF5629;
}

.card-action-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.card-action-btn .btn-icon img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.card-action-btn:hover .btn-icon img {
    transform: rotate(90deg);
}

/* ==========================================
   滿版 Modal 樣式
========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.park-modal {
    width: 1536px;
    height: 812px;
    max-width: 95vw;
    max-height: 95vh;
    background: #FFFFFF;
    border-radius: 40px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FF5629;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.modal-left,
.modal-right {
    width: 708px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.carousel-images {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel-images img.active {
    display: block;
}

.carousel-dots {
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #FF5A36;
    cursor: pointer;
}

.dot.active {
    background-color: #FF5A36;
}

.info-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.title-row h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
}

.title-buttons {
    display: flex;
    gap: 16px;
}

.btn-yellow {
    background-color: #FFB42E;
    color: #FFF;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-yellow:hover {
    background-color: #FF5629;
}

.btn-yellow .btn-icon {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.btn-yellow:hover .btn-icon {
    transform: rotate(90deg);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
}

.info-list .icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

.info-list .label {
    font-weight: 700;
    color: #111;
    width: 80px;
}

.footer-tags {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    margin-top: auto;
}

.footer-tags span {
    color: #111;
    font-weight: 700;
}

.info-fold {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.info-fold-check,
.info-fold-summary {
    display: none;
}

.info-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #dbdbdb transparent;
}

.info-scroll-inner {
    display: contents;
}

.info-scroll::-webkit-scrollbar {
    width: 3px;
}

.info-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.info-scroll::-webkit-scrollbar-thumb {
    background: #FFB89E;
    border-radius: 999px;
}

.tabs-nav {
    display: flex;
    gap: 0;
    height: 60px;
    background-color: #FDFBF4;
    border-radius: 30px 30px 0px 0px;
}

.tab-btn {
    flex: 1;
    background-color: #FFB89E;
    color: #FFF;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0 0 30px 30px;
}

.tab-btn:first-of-type {
    border-radius: 30px 0px 30px 30px;
}

.tab-btn:last-child {
    border-radius: 0px 30px 30px 30px;
}

.tab-btn.active {
    background-color: #FF5A36;
}

.tabs-indicator {
    display: none;
}

.tab-content-container {
    flex: 1;
    background-color: #FDFBF4;
    border-radius: 0 0 24px 24px;
    padding: 30px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.sub-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 21px;
    /* border-bottom: 2px solid #EFEFEF; */
    padding-bottom: 10px;
}

.sub-tab {
    font-weight: 700;
    color: #FFB42E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 26px;
    transition: color 0.3s ease;
}

.sub-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #FFB42E;
    mask: url("../src/assets/img/pop-up_icon/btn_arrow.svg") no-repeat center / contain;
    -webkit-mask: url("../src/assets/img/pop-up_icon/btn_arrow.svg") no-repeat center / contain;
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.sub-tab:hover {
    color: #FF5629;
}

.sub-tab:hover::before {
    transform: translateY(-50%) rotate(90deg);
    background-color: #FF5629;
}

.sub-tab.active {
    color: #FF5A36;
}

.sub-tab.active::before {
    content: '';
    background-color: #FF5A36;
    transform: translateY(-50%) rotate(0deg);
}

.feature-card {
    background: #FFF;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.feature-card img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tab-pane-title {
    display: none;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF5A36;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 16px 0;
}

.section-title::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #FF5A36;
    border-radius: 3px;
}

.activity-card {
    background: #FFF;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
    color: inherit;
    text-decoration: none;
}

.activity-card:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.activity-card.activity-event:hover {
    border-color: #9ACD32;
}

.activity-card.activity-course:hover {
    border-color: #BA55D3;
}

.activity-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.activity-meta span {
    color: #9ACD32;
    margin-right: 12px;
}

.course-meta span {
    color: #BA55D3;
}

.activity-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.play-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #999;
    mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    -webkit-mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    transform: rotate(-90deg);
    transition: transform 0.3s ease, background-color 0.25s ease;
}

.activity-card:hover .play-icon {
    transform: rotate(90deg);
}

.activity-card.activity-event:hover .play-icon {
    background-color: #9ACD32;
}

.activity-card.activity-course:hover .play-icon {
    background-color: #BA55D3;
}

.course-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #999;
    mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    -webkit-mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    transform: rotate(-90deg);
    transition: transform 0.3s ease, background-color 0.25s ease;
    font-size: 0;
    line-height: 0;
}

.activity-card.activity-course:hover .course-icon {
    transform: rotate(90deg);
    background-color: #BA55D3;
}

.traffic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 12px;
}

.traffic-list::-webkit-scrollbar {
    width: 6px;
}

.traffic-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.traffic-list::-webkit-scrollbar-thumb {
    background: #FFB89E;
    border-radius: 10px;
}

.traffic-list::-webkit-scrollbar-thumb:hover {
    background: #FF5A36;
}

.traffic-accordion {
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.traffic-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.traffic-header:hover {
    background-color: #fafafa;
}

/* 左半邊是「圖示 + 文字」。原本是一般的區塊，圖示是行內取代元素、
   吃 vertical-align:baseline，底邊會坐在文字基線上，24px 的圖示中心
   就跑到文字中心上方約 7px。改成 flex 才是真的置中對齊。 */
.traffic-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.traffic-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.traffic-arrow {
    width: 21px;
    height: 21px;
    transition: transform 0.3s ease;
    color: #999;
    background-color: transparent;
    font-size: 0;
    mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    -webkit-mask: url("../src/assets/img/pop-up_icon/btn_arrow_right.svg") center/contain no-repeat;
    background-color: #999;
    transform: rotate(180deg);
}

.traffic-accordion.active .traffic-arrow {
    transform: rotate(0deg);
    background-color: #FF5A36;
}

.traffic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    background: #FFF;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.traffic-accordion.active .traffic-content {
    max-height: 300px;
    padding: 0 24px 20px 24px;
}

.traffic-content ul {
    padding-left: 24px;
    margin-top: 4px;
}

.traffic-content li {
    margin-bottom: 4px;
}

.price-hero-box {
    background-color: #FF5629;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #FFF;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(255, 86, 41, 0.2);
}

.price-subtitle {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-desc {
    font-size: 12px;
    opacity: 0.9;
}

.offers-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.offer-card {
    flex: 1;
    background-color: #FFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.offer-title {
    font-weight: 700;
    color: #111;
    font-size: 16px;
    margin-bottom: 8px;
}

.offer-date,
.offer-desc {
    color: #666;
    font-size: 14px;
}

.buy-ticket-btn {
    width: 100%;
    background-color: #F5A623;
    color: #FFF;
    border: none;
    border-radius: 30px;
    margin-top: auto;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.buy-ticket-btn .btn-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.buy-ticket-btn:hover {
    background-color: #FF5629;
}

.buy-ticket-btn:hover .btn-icon img {
    transform: rotate(90deg);
}

/* ==========================================
   針對筆記型電腦 (如 MacBook Air, 13~14吋螢幕) 的 RWD 優化
========================================== */
@media (max-width: 1440px), (max-height: 850px) {
    /* 將左側選單等比例縮小，並確保縮放基準點在靠左邊 */
    .region-list-container.left {
        transform: translateY(-50%) scale(0.85);
        transform-origin: left center;
        left: 10px;
    }
    
    /* 將右側選單等比例縮小，並確保縮放基準點在靠右邊 */
    .region-list-container.right {
        transform: scale(0.85);
        transform-origin: right top;
        right: 10px;
    }

}

/* 針對更小的筆電解析度 (如 1280x800) 再進一步微調 */
@media (max-width: 1280px), (max-height: 750px) {
    .region-list-container.left {
        transform: translateY(-50%) scale(0.9);
        gap: 24px;
    }
    
    .region-list-container.right {
        transform: scale(0.9);
    }
    
}

/* ==========================================
   RWD 斷點設定 (平板與手機)
========================================== */
@media (min-width: 1025px) {

    .mobile-header,
    .mobile-bottom-bar,
    .mobile-menu-overlay {
        display: none !important;
    }

    .rwd-icon {
        display: none !important;
    }

    #pane-3.tab-pane.active {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    
   
}
@media (max-width: 1025px) {

    /* 手機：地標不可點，選取改走 mobile-park-list */
    .custom-map-marker,
    .custom-map-marker img {
        pointer-events: none !important;
        cursor: default;
    }

    /* 1. 平板與手機版顯示專屬 Header 與導覽滑動機制 */
    .mobile-header {
        display: flex;
    }

     #ohbear-cursor {
        display: none;
    }

    .sidebar {
        width: 80%;
        max-width: 320px;
        border-radius: 0 25px 25px 0;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .close-btn {
        display: flex;
    }

    .sidebar-top {
        padding-top: 45px;
    }

    .sidebar-top .logo {
        display: none !important;
    }

    .nav-item .nav-text,
    .nav-item-btn .nav-text,
    .accessibility-title .nav-text,
    .detail-content {
        opacity: 1;
        visibility: visible;
        max-height: none;
    }

    .sidebar-bottom::before {
        opacity: 1;
    }

    .sidebar-bottom {
        width: 100%;
        min-width: unset;
        background-size: cover;
    }

    .mobile-lang-entry {
        display: flex;
    }

    .desktop-lang-row {

        display: none !important;
    }

    /* 2. 隱藏地圖旁的文字名單，並給主內容釋放頂部與底部邊距 */
    .filter-widget .widget-controls {
        display: none;
    }

    .region-lists-wrapper {
        display: none;
    }

    .map-content {
        margin-left: 0;
        padding-top: 60px;
        padding-bottom: 56px;
    }

    /* 3. 底部固定列顯示（maphome 等仍使用） */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #FF5629;
        z-index: 1000;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        border-radius: 20px 20px 0 0;
    }

    .park-count {
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }

    .mobile-filter-btn {
        height: 34px;
        background: #fff;
        color: #FF5629;
        border: none;
        padding: 0 16px;
        border-radius: 20px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .mobile-park-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: #FBFCF2;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
        transform: translateY(0);
    }

    .mobile-park-sheet .mobile-filter-btn {
        flex-shrink: 0;
    }

    .mobile-park-sheet-header {
        height: 56px;
        width: 100%;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ff5629;
        border-radius: 24px 24px 0 0;
    }

    .mobile-park-sheet-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }

    .mobile-park-sheet-count {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }

    .mobile-park-sheet-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-park-sheet-back {
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: #FF5629;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-park-sheet-body {
        overflow: visible;
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .mobile-park-list {
        --mobile-card-w: min(84vw, 280px);
        --mobile-card-center-pad: calc((100% - var(--mobile-card-w)) / 2);
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        padding-top: 0;
        padding-bottom: 4px;
        padding-left: 16px; /* 未選取：第一張靠左，不留大空白 */
        padding-right: var(--mobile-card-center-pad); /* 右側預留，選取末張才能置中 */
        -webkit-overflow-scrolling: touch;
    }

    /* 選取後不改 padding-left。原本會從 16 換成半張卡寬讓選取的卡片能
       捲到正中間，但第一張本來就在 scrollLeft=0，捲不動，那段差值只能
       靠 padding 一次跳完，看起來就是卡片被往右推。現在第一張選了維持
       原位，第二張之後照樣靠捲動置中。 */

    .mobile-park-list .park-card-wrapper.mobile-park-card {
        flex: 0 0 var(--mobile-card-w);
        width: var(--mobile-card-w);
        height: auto;
        align-self: stretch;
        padding: 16px;
        /* 預設就有邊框，選取時只換顏色。
           box-sizing 是 border-box，選取當下才長出邊框會把內容往內擠 */
        border: 2px solid #FFB42E;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 16px;
        overflow: hidden;
        background-color: #FBFCF2;
    }

    .mobile-park-card-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex: 1;
        min-height: 0;
    }

    .mobile-park-list .card-img-container {
        width: 100%;
        height: 140px;
        flex: 0 0 auto;
        margin: 0;
    }

    .mobile-park-list .card-info {
        margin-top: 0;
        padding: 0;
        flex: 1 1 auto;
    }

    .mobile-park-list .card-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .mobile-park-list .card-address {
        font-size: 14px;
        margin: 0 0 6px !important;
    }

    .mobile-park-list .card-price {
        font-size: 14px;
    }

    .mobile-park-list .card-action-btn {
        display: flex;
        width: 100%;
        margin-top: 0;
        flex-shrink: 0;
    }

    .mobile-park-list .park-card-wrapper.is-selected {
        border-color: #FF5629;
        box-shadow: 0 0 0 2px rgba(255, 86, 41, 0.15), 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-empty-state {
        padding: 24px 8px;
        text-align: center;
        color: #777;
        font-size: 15px;
        background: #FFF;
        border-radius: 16px;
        min-width: 100%;
    }

    /* 4. 篩選器面板蓋上來的樣式 */
    .filter-panel {
        position: fixed;
        bottom: -100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        z-index: 1001;
        margin-bottom: 0;
        transition: bottom 0.3s ease;
        opacity: 1;
        pointer-events: auto;
    }

    .filter-panel.open {
        bottom: 0;
        transform: translateX(-50%);
    }

    .filter-header {
        position: relative;
        padding: 22px 20px 16px;
        flex-shrink: 0;
        touch-action: none;
        cursor: grab;
        user-select: none;
    }

    .filter-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.75);
    }

    .filter-header .clear-btn {
        display: none;
    }

    .filter-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background: #FFF;
        color: #FF5629;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .filter-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow-y: auto;
        padding: 16px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-section {
        margin-bottom: 0;
        flex: none;
    }

    .filter-section h4 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .filter-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .filter-tag {
        width: 100%;
        text-align: center;
        padding: 8px 0px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .filter-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: auto;
        flex-shrink: 0;
    }

    .filter-actions .clear-btn,
    .filter-actions .confirm-filter-btn {
        flex: 1;
        width: auto;
        text-align: center;
        box-sizing: border-box;
    }

    .filter-actions .clear-btn {
        padding: 12px 24px;
        border: 3px solid #FF5629;
        border-radius: 30px;
        background: transparent;
        color: #FF5629;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
    }

    /* 5. Modal RWD：收合時下方分頁保 40vh；展開時 info 依內容撐開、整頁捲動 */
    .park-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 0;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    .park-modal:has(.info-fold-check:checked) {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        z-index: 1001;
    }

    .modal-left {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        max-height: calc(100% - 40vh);
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .park-modal:has(.info-fold-check:checked) .modal-left {
        max-height: none;
        overflow: visible;
    }

    .carousel-container {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .carousel-images {
        border-radius: 0 0 24px 24px;
    }

    .info-container {
        padding: 0px 20px;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .park-modal:has(.info-fold-check:checked) .info-container {
        flex: 0 0 auto;
        overflow: visible;
    }

    .title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-shrink: 0;
        position: static;
        margin-bottom: 12px;
    }

    .title-row h2 {
        font-size: 20px;
    }

    .title-buttons {
        width: 100%;
        gap: 8px;
    }

    .title-row .btn-yellow {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 16px;
        white-space: nowrap;
    }

    .info-fold {
        display: flex;
        flex-direction: column;
        flex: 0 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .info-fold:has(.info-fold-check:checked) {
        flex: 0 0 auto;
        overflow: visible;
    }

    .info-fold-check {
        display: none;
    }

    .info-fold-summary {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        position: relative;
        flex-shrink: 0;
        margin: 0 -20px;
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 700;
        color: #777;
        cursor: pointer;
        user-select: none;
    }

    .info-fold-summary::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 18px;
        height: 1px;
        background: #EFEFEF;
    }

    .info-fold-arrow-wrap {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 0 0 0 12px;
        background: #FFFFFF;
    }

    .info-fold-arrow-wrap::after {
        content: '展開資訊';
    }

    .info-fold-check:checked ~ .info-fold-summary .info-fold-arrow-wrap::after {
        content: '收合資訊';
    }

    .info-fold-arrow {
        width: 12px;
        height: 12px;
        display: block;
        transform: rotate(0deg);
        transition: transform 0.25s ease;
        filter: brightness(0) invert(46.7%);
    }

    .info-fold-check:checked ~ .info-fold-summary .info-fold-arrow {
        transform: rotate(180deg);
    }

    .info-scroll {
        display: grid;
        grid-template-rows: 0fr;
        flex: 0 0 auto;
        min-height: 0;
        overflow: hidden;
        transition: grid-template-rows 0.35s ease;
    }

    .info-fold-check:checked ~ .info-scroll {
        grid-template-rows: 1fr;
    }

    .info-scroll-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .info-list {
        flex: none;
        overflow: visible;
        margin-bottom: 12px;
        gap: 12px;
    }

    .info-list li {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 16px 12px;
        border: 1px solid #EFEFEF;
        border-radius: 16px;
    }

    .info-list .icon {
        margin-right: 0;
    }

    .info-list .label {
        flex: 1;
        width: auto;
    }

    .info-list .info-value {
        flex: 1 0 100%;
    }

    .footer-tags {
        flex-shrink: 0;
        margin-top: 0;
    }

    .modal-right {
        width: 100%;
        position: static;
        flex: 1 1 0%;
        min-height: 40vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .park-modal:has(.info-fold-check:checked) .modal-right {
        flex: 1 0 auto;
        overflow: visible;
    }

    .park-modal:has(.info-fold-check:checked) .tab-content-container {
        overflow: visible;
        flex: none;
    }

    .tabs-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 87px;
        background: #FF5629;
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        border-radius: 24px 24px 0 0;
    }

    .tabs-indicator {
        display: block;
        position: absolute;
        left: 0;
        top: 50%;
        height: 64px;
        border-radius: 14px;
        background: #FFF;
        pointer-events: none;
        z-index: 0;
        transform: translateY(-50%) translateX(0);
        transition: transform 0.28s ease, width 0.28s ease;
    }

    .tab-btn {
        position: relative;
        z-index: 1;
        background: transparent;
        color: #FFF;
        opacity: 0.7;
        flex: 1;
        height: 64px;
        flex-direction: column;
        font-size: 12px;
        border-radius: 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .rwd-icon {
        display: block;
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .tab-btn .rwd-icon-on {
        display: none;
    }

    .tab-btn.active .rwd-icon-off {
        display: none;
    }

    .tab-btn.active .rwd-icon-on {
        display: block;
    }

    .tab-btn.active {
        background: transparent;
        color: #FF5629;
        opacity: 1;
        font-weight: 900;
    }

    .tab-content-container {
        flex: 1 1 auto;
        min-height: 0;
        border-radius: 0;
        padding: 6px 20px 104px;
        background: transparent;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .tab-pane-title {
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: #ff5629;
        margin: 0 0 16px;
    }

    .tab-pane-title + .section-title {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .offers-container {
        flex-direction: column;
    }

    .sub-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .price-amount {
        font-size: 32px;
    }
}