/* 出涼站頁 — 頂部橫幅 */
.rest-area-banner {
    background-image: url(/static/image/banner-1.webp);
}

.rest-area-banner__inner {
    position: relative;
    z-index: 2;
}

.rest-area-banner__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);

    a {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;

        &:hover {
            color: #ffcba0;
        }
    }
}

.rest-area-banner__crumb-sep {
    opacity: 0.6;
}

.rest-area-banner__title {
    margin: 0;
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.rest-area-banner__lead {
    margin: 16px 0 0;
    max-width: 640px;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

/* 出涼站頁 — 簡介（左輪播、右文案） */
.rest-area-intro-section {
    background-color: #fff;
    padding: 100px 0 120px;
}

.rest-area-intro-section .section-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 120px;
}

.rest-area-intro-section .left-wrapper,
.rest-area-intro-section .right-wrapper {
    width: 50%;
}

.rest-area-intro-section .left-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rest-area-intro-section .right-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 680px;
    position: relative;

    &::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 40%;
        background-image: url(/static/image/vector-img.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.6;
        z-index: 1;
    }
}

.rest-area-intro-section .right-wrapper .section-tip {
    text-align: left;
    width: 100%;
}

.rest-area-intro-section .right-wrapper .section-title {
    max-width: 560px;
    text-align: left;
}

.rest-area-intro-section .right-wrapper .section-sub-title,
.rest-area-intro-section .right-wrapper > p {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
    padding-bottom: 20px;
    color: #4e5a70;
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.8;
    font-weight: 400;
}

.rest-area-intro__swiper-wrap {
    position: relative;
    width: 100%;
}

.rest-area-intro-swiper {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(1, 93, 178, 0.18);
}

.rest-area-intro-swiper .swiper-slide {
    height: auto;
}

.rest-area-intro__slide {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #e8f1fb 0%, #d4e5f7 100%);
}

.rest-area-intro__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rest-area-intro-pagination {
    position: absolute;
    bottom: 14px !important;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rest-area-intro-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.rest-area-intro-pagination .swiper-pagination-bullet-active {
    background: var(--orange-color);
    transform: scale(1.15);
}

/* 出涼站列表 — 18 區*/
.rest-area-list-section {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 28%);
    padding: 96px 0 120px;

    .main-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 28px;
        margin-top: clamp(12px, 2vw, 24px);
    }
}

.rest-area-list-head {
    text-align: center;
}

.rest-area-list-head .section-tip {
    text-align: center;
}

.rest-area-list-head__lead {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* 左：18 區 tab · 右：出涼站列表 */
.rest-area-district-tabs {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 12px 4px 0;
    position: sticky;
    top: 100px;
    scrollbar-width: thin;
    scrollbar-color: rgba(1, 93, 178, 0.35) transparent;

    .area-tab {
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid rgba(1, 93, 178, 0.18);
        background: #fff;
        color: var(--deep-blue-color);
        font-size: clamp(14px, 0.95vw, 16px);
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;

        &.active {
            background: var(--orange-color);
            border-color: var(--orange-color);
            color: #fff;
            box-shadow: 0 4px 16px rgba(235, 83, 16, 0.24);
            position: relative;

            &::before {
                content: "";
                position: absolute;
                top: -1px;
                left: -1px;
                width: 39%;
                height: 64%;
                border-radius: 0px 0px 100px 43px;
                background-color: rgba(255, 255, 255, 0.1);
            }
        }
    }

    .area-tab:not(.active):hover {
        border-color: var(--orange-color);
        color: var(--orange-color);
    }
}

.rest-area-district-tabs::-webkit-scrollbar {
    width: 6px;
}

.rest-area-district-tabs::-webkit-scrollbar-thumb {
    background: rgba(1, 93, 178, 0.25);
    border-radius: 999px;
}

.rest-area-station-panels {
    flex: 1;
    min-width: 0;
    position: relative;
    min-height: 120px;

    .rest-areas {
        display: none;

        &.active {
            display: block;
        }
    }
}

.rest-area-panel-body {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

.rest-area-map-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rest-area-map-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rest-area-map-card .gallery-item {
    aspect-ratio: 340 / 185;
    text-decoration: none;
}

.rest-area-map-card__download {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(1, 93, 178, 0.18);
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rest-area-map-card__download:hover {
    border-color: var(--orange-color);
    color: var(--orange-color);
    background: #fffaf7;
}

.main-wrapper .rest-area-station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* 九龍灣：分類出涼站列表 */
.rest-area-station-list {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

.rest-area-station-group {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(1, 93, 178, 0.08);
    box-shadow: 0 8px 28px rgba(1, 93, 178, 0.06);
}

.rest-area-station-group__title {
    margin: 0;
    padding: 14px 20px;
    font-size: clamp(17px, 1.1vw, 20px);
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.rest-area-station-group--culture .rest-area-station-group__title {
    background: linear-gradient(90deg, #ff7200 0%, #ff933a 100%);
}

.rest-area-station-group--park .rest-area-station-group__title {
    background: linear-gradient(90deg, #7bc96f 0%, #a8db9e 100%);
}

.rest-area-station-group--mall .rest-area-station-group__title {
    background: linear-gradient(90deg, #e878a8 0%, #f0a8c8 100%);
}

.rest-area-station-group--elderly .rest-area-station-group__title {
    background: linear-gradient(90deg, #5ec6d8 0%, #9de0eb 100%);
}

.rest-area-station-group__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 16px 16px;
}

.rest-area-station-empty {
    margin: 0;
    text-align: center;
    padding: 48px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px dashed rgba(1, 93, 178, 0.2);
    color: #4e5a70;
    font-size: 16px;
    line-height: 1.7;
}

/* 橫向卡片：左圖右文 */
.rest-area-station-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    min-height: 0;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(1, 93, 178, 0.1);
    box-shadow: 0 12px 40px rgba(1, 93, 178, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rest-area-station-card:hover {
    box-shadow: 0 18px 48px rgba(1, 93, 178, 0.14);
    transform: translateY(-3px);
}

.rest-area-station-card__media {
    flex: 0 0 40%;
    max-width: 25%;
    background: linear-gradient(145deg, #e8f1fb 0%, #d4e5f7 100%);
}

.rest-area-station-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 138px;
    object-fit: cover;
}

.rest-area-station-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.rest-area-station-card__dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rest-area-station-card__item {
    margin: 0;
}

.rest-area-station-card__item dt {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--orange-color);
    line-height: 1.35;
}

.rest-area-station-card__item dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4e5a70;
    font-weight: 500;
}

.rest-area-station-card__item--name dd {
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--deep-blue-color);
}

.rest-area-station-card__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rest-area-station-card__seq {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 0 6px;
    border-radius: 50%;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: -8px;
    right: -8px;
    opacity: 0.3;

    &.rest-area-station-card__seq--house {
        color: #75c3e3;
        width: 60px;
        height: 60px;
        top: auto;
        right: auto;
        bottom: 2px;
        right: 2px;
        border: none;
        font-size: 18px;
        background-image: url(/static/image/located-1.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 4px;
    }
}

.rest-area-station-list .rest-area-station-card[id] {
    scroll-margin-top: 120px;
}

.rest-area-station-card__dd-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.rest-area-station-card__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    object-fit: contain;
}

.rest-area-station-card__item--phone .rest-area-station-card__dd-row {
    align-items: center;
}

.rest-area-station-card__item--phone .rest-area-station-card__icon {
    margin-top: 0;
}

.rest-area-station-card__item dd a {
    color: var(--deep-blue-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rest-area-station-card__item dd a:hover {
    color: var(--orange-color);
}

.rest-area-station-card__tips {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
}

.rest-area-station-card__tip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--deep-blue-color);
    background: linear-gradient(180deg, #ffffff 0%, #f0f6fb 100%);
    border: 1px solid rgba(1, 93, 178, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* .rest-area-station-card__tip::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--orange-color);
    flex-shrink: 0;
} */
