* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/*上方選單*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    z-index: 1000;
    /* 確保選單在其他元素上方 */
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.logo {
    font-size: 36px;
    color: rgba(142, 186, 213, 1);
}

.nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    font-size: 14px;
    color: rgba(107, 107, 107, 1);
    text-decoration: none;
}

/*網站首圖*/
.banner {
    width: 100%;
    height: 500px;
    margin-top: 85px;
    display: flex;
    background-color: #f0f0f0;
    opacity: 1;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main {
    margin-top: 100px;
}

.breadcrumb-area {
    height: 100px;
    color: rgb(175, 175, 175);
    padding: 0% 18%;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
}

.goback {
    align-content: center;
    text-align: end;
    text-decoration: none;
}

.footprints {
    display: flex;
    align-items: center;
    list-style: none;
}

.item-text {
    color: rgba(107, 107, 107, 1);
    text-decoration: none;
}

/*標題*/
.title {
    width: 100%;
    height: auto !important;
    position: relative;
    align-items: end;
    justify-content: center;
    display: flex;
    text-align: center;
}

.title .title-ch {
    color: rgba(99, 99, 99, 1);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
}

.title .title-en {
    color: rgba(141, 186, 215, 1);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
}

#areaSelect {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-block: 1rem;
    justify-content: center;
}

.select-container {
    position: relative;
    width: 100%;
    display: flex;
    color: #6AB0D3;
}

.select-container span {
    font-size: 1rem;
    /* color: blue; */
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-select {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #6AB0D3;
    border-radius: 8px;
    background-color: white;
    appearance: none;
    transition: all 0.3s ease;
}

.custom-select:hover {
    border-color: #6AB0D3;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.custom-select:focus {
    outline: none;
    border-color: #6AB0D3;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6AB0D3;
    font-size: 0.8em;
}

/*導遊總攬*/
.guide-main {
    padding: 0% 25% 10% 25%;
    height: auto;
}

.tourism {
    margin-top: 50px;
    /* display: flex; */
    margin: 50px 0px;
}

.name-bg {
    width: auto;
    height: auto;
    background: rgba(156, 200, 227, 1);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
}

.name {
    color: rgba(255, 255, 255, 1);
    font-size: 22px;
    padding: 5px;
}

.tourism_detail {
    /* width: fit-content; */
    display: flex;
}

.name-area {
    display: flex;
    align-items: center;
    margin: 10px 0px;
}

.common {
    display: flex;
    align-items: center;
    margin: 10px 0px;
}

.flag {
    width: 37px;
    height: 25px;
    margin-left: 1%;
}

.lang-icon {
    width: 5%;
    /* height: 5%; */
    margin-left: 1px;
    min-width: 45px;
}

.area {
    color: blue;
    font-size: 20px;
}

.specific-price {
    font-size: 16px;
}

.star {
    width: 20px;
    height: 20px;
}

.comment {
    color: rgba(125, 169, 197, 1);
    margin-left: 1%;
}

.guide-title {
    color: rgba(125, 169, 197, 1);
    display: flex;
    align-items: center;
    margin: 10px 0px;
    word-wrap: normal;
    font-size: 16px;
}

.introduce {
    color: rgba(106, 106, 106, 1);
    font-family: Inter;
    font-weight: Medium Italic;
    font-size: 14px;
    max-height: 130px;
    overflow: hidden;
    max-width: 732px;
}

.more {
    color: rgba(125, 169, 197, 1);
    font-size: 14px;
    padding-right: 3%;
    text-align: right;
    display: block;
}

.selfIntroduction {
    display: block;
    max-height: none;
}

.introduce.expanded .more {
    display: block;
}

.button {
    padding: 1% 20%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.reserve {
    width: 140px;
    height: 35px;
    background: rgba(156, 200, 227, 1);
    border-radius: 10px;
    align-items: center;
    display: flex;
    padding-left: 1%;
    cursor: pointer;
    justify-content: center;
    border: #f0f0f0;

}

.btn-reserve {
    color: rgba(255, 255, 255, 1);
    font-family: Inter;
    font-weight: Medium Italic;
    font-size: 18px;
}

.more-info {
    width: 140px;
    min-height: 35px;
    color: rgba(106, 106, 106, 1);
    border-radius: 10px;
    align-items: center;
    display: flex;
    padding-left: 1%;
    cursor: pointer;
    justify-content: center;
    border: 1px solid rgba(155, 155, 155, 1);
}

.btn-more {
    color: rgba(106, 106, 106, 1);
    font-family: Inter;
    font-weight: Medium Italic;
    font-size: 18px;
}

.photo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    margin-left: 1%;
    object-fit: cover;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination li {
    margin: 5px;
    display: flex;
}

.pagination li span {
    padding: 6px 9px;
    border: 1px solid #ddd;
}

.pagination a {
    text-decoration: none;
    padding: 6px 9px;
    border: 1px solid #ddd;
    color: #007bff;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .active a {
    font-weight: bold;
    background-color: #007bff;
    color: white;
}

@media screen and (max-width: 768px) {
    .condition {
        flex-direction: column;
        /* 垂直排列 */
    }

    .condition .left,
    .condition .right {
        margin-left: 10%;
        margin-right: 10%;
        width: 100%;
        /* 占滿整個寬度 */
    }

    .condition .right {
        margin-top: 20px;
        /* 增加空間，讓右邊區塊與上方有點距離 */
    }

    .select-condition {
        display: flex;
        justify-content: center;
    }

    .tourguide {
        padding: 0% 10% 10% 10%;
    }

    .name-area {
        justify-content: center;
    }

    .tourism_detail {
        flex-direction: column;
    }

    .photo {
        margin: 0 auto 20px auto;
        /* 移除左右 margin 並設定圖片置中 */
        order: -1;
        /* 這裡強制將圖片移到最上方 */
    }

    .button {
        margin-top: 5%;
        padding: 1% 5%;
        font-size: 3vw;
        align-items: center;
        /* 使內容置中 */
        gap: 10%;
        /* 在小螢幕下，按鈕間距增大 */
    }

    .breadcrumb-area {
        padding: 0% 5%;
    }

    .guide-title {
        justify-content: center;
    }

    .common {
        justify-content: center;
    }

    .area {
        justify-content: center;
        display: flex;
    }

    .specific-price {
        justify-content: center;
        display: flex;
        margin: 10px 0px;
    }

    /*導遊總攬*/
    .guide-main {
        padding: 0% 8% 10% 8%;
        height: auto;
    }
}

@media (max-width: 480px) {
    #areaSelect {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .select-container {
        position: relative;
        min-width: 5rem;
        padding-right: 0;
        border-right: none
    }

    .title-ch {
        font-size: 1.75rem;
        padding-left: 1rem;
    }
}