section {
    background-color: #fff;
    padding: 1.5vw 0;
    position: relative;
}

h1 {
    text-align: center;
    font-size: 7vw;
    font-family: "Noto Serif TC", serif;
    color: #5094a8;
}

section h2 {
    font-size: 5vw;
    font-weight: 400;
    font-family: system-ui;
}

section h2::before {
    content: url("../img/tours/h2-before.png");
    width: 1vw;
    height: 1vw;
    margin-right: 2vw;
}

.selection-panel {
    position: relative;
}

.selection-panel-item {
    padding: 5vw 5vw 5vw;
    margin-bottom: 1.5vw;
    background-color: #c6e9e9;
}

.selection-button {
    display: none;
}

#date-panel-button {
    left: 15vw;
}

#region-panel-button {
    right: 15vw;
}

.region-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5vw;
}

.region-button {
    position: relative;
    background-color: transparent;
    cursor: pointer;
}

.region-button img {
    width: 18vw;
}

.region-button p {
    padding: 0;
    font-size: 5vw;
    width: 16vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7caab4;
    font-family: "Noto Serif TC", serif;
    font-weight: bold;
}

#date-panel {
    display: flex;
    flex-direction: column;
    gap: 10vw;
}

#date-panel>.form-like-ui,
#date-panel>.calendar-ui {
    flex: 1 1 0;
}

#date-panel .form-like-ui {
    font-family: system-ui;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6vw;
    align-items: start;
}

#date-panel .form-like-ui h3.block-title {
    margin: 0 0 2vw;
    font-size: 4vw;
    line-height: 1.2;
}

#date-panel .form-like-ui h3.block-title:first-of-type {
    grid-column: 1;
    grid-row: 1;
}

#date-panel .form-like-ui h3.block-title:first-of-type+.date-block {
    grid-column: 1;
    grid-row: 2;
}

#date-panel .form-like-ui h3.block-title:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

#date-panel .form-like-ui h3.block-title:nth-of-type(2)+.date-block {
    grid-column: 2;
    grid-row: 2;
}

#date-panel .form-like-ui .row,
#date-panel .form-like-ui .inline-field {
    display: flex;
    align-items: center;
    gap: 1vw;
}

#date-panel .form-like-ui .row {
    margin-bottom: 3vw;
}

#date-panel .form-like-ui .select-wrapper {
    position: relative;
}

#date-panel .form-like-ui select {
    text-align: center;
    font-size: 3vw;
    height: 6vw;
    border-radius: 6vw;
    background-color: #fff;
    appearance: none;
    width: 100%;
}

#date-panel .form-like-ui .select-wrapper::after {
    position: absolute;
    background: url("../img/tours/dropdown-arrow.png") no-repeat center/contain;
    transform: translateY(-50%);
    content: "";
    width: 1.5vw;
    height: 1.5vw;
    top: 50%;
    right: 1.5vw;
    pointer-events: none;
}

#date-panel .form-like-ui label {
    font-size: 3vw;
    margin-left: .5vw;
}

#date-panel .form-like-ui .year-row {
    gap: 1vw;
}

#date-panel .form-like-ui .year-row .select-wrapper,
#date-panel .form-like-ui .inline-field .select-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

#date-panel .form-like-ui .year-row label,
#date-panel .form-like-ui .inline-field label {
    white-space: nowrap;
}

#date-panel .form-like-ui .md-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
}

.calendar {
    padding: 2vw;
    font-family: "Noto Serif TC", serif;
    position: relative;
    height: 42vw;
    width: 50vw;
    margin: 0 auto;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2vw;
}

.cal-title {
    display: flex;
    align-items: flex-end;
    gap: 1.5vw;
    font-size: 2.4vw;
    line-height: 1;
    color: #7caab4;
}

.cal-title .month-zh {
    font-size: 5vw;
    font-weight: 700;
    font-family: "Noto Serif TC", serif;
    width: 18vw;
}

.cal-title .year-bubbles {
    display: inline-flex;
    align-items: center;
    gap: .8vw;
}

.cal-title .year-bubbles .year-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    background: #4fd1d9;
    color: #fff;
    font-weight: 700;
    font-size: 2vw;
    font-family: system-ui;
}

.cal-nav {
    border: none;
    background: transparent;
    color: #93d4d5;
    border-radius: 1.2vw;
    width: 5vw;
    height: 5vw;
    font-size: 5vw;
    cursor: pointer;
    position: absolute;
}

.cal-nav#cal-prev {
    left: -5vw;
    top: 50%;
    transform: translateY(-50%);
}

.cal-nav#cal-next {
    right: -5vw;
    top: 50%;
    transform: translateY(-50%);
}

.cal-weekdays,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1vw;
    color: #7caab4;
    font-weight: 700;
    position: relative;
}

.cal-weekdays>div {
    font-size: 1.6vw;
    width: 4vw;
    height: 4vw;
    text-align: center;
}

.cal-weekdays .weekend,
.cal-grid .day.weekend {
    color: #f5cd3c;
}

.cal-grid .day {
    font-size: 1.6vw;
    width: 4vw;
    height: 4vw;
    text-align: center;
    border-radius: 4vw;
    line-height: 4vw;
    cursor: pointer;
    user-select: none;
}

.cal-grid .day.out {
    opacity: .35;
    cursor: default;
}

.cal-grid .day.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.cal-grid .day.in-range {
    background: #c6e9e9;
}

.cal-grid .day.range-start,
.cal-grid .day.range-end {
    background: #71c7c8;
    color: #fff;
    font-weight: 700;
}

.cal-grid .day.hover-range {
    background: #dff3f3;
    color: inherit;
}

.cal-grid .day.is-hover {
    outline: 2px solid rgba(127, 190, 195, .6);
    outline-offset: 2px;
}

.calendar-ui,
.calendar {
    position: relative;
    z-index: 10;
}

.flex-row-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4vw;
}

.flex-row-3>.schedule-card {
    box-sizing: border-box;
    flex: 0 1 calc((100% - 8vw) / 3);
    max-width: calc((100% - 8vw) / 3);
}

.schedule-container {
    background-color: #71c7c8;
    padding: 4vw 3vw;
    margin: 7vw;
    position: relative;
    overflow: visible;
}

.schedule-container .schedule-card {
    background-color: #fff;
    padding: 2vw;
    text-align: center;
    position: relative;
    font-family: system-ui;
}

.schedule-container .schedule-card .category {
    font-size: 2vw;
    font-weight: 300;
    position: absolute;
    top: 4vw;
    left: 4vw;
    color: #000;
}

.schedule-container .schedule-card h3 {
    font-size: 2.5vw;
    font-weight: 400;
    margin-top: 1vw;
}

.schedule-container .schedule-card img {
    width: 100%;
    height: auto;
}

.more-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1vw;
}

.more-button-wrapper button {
    background-color: transparent;
}

.more-button-wrapper button img {
    width: 10vw;
    height: auto;
}

.swiper-btn {
    position: absolute;
    top: 45%;
    width: 3vw;
    height: 4vw;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 5;
    background-image: url("../img/tours/swipe-btn.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.swiper-btn.prev {
    left: -4vw;
}

.swiper-btn.next {
    right: -4vw;
    transform: scaleX(-1);
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    height: auto;
}

.swiper-slide>* {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.cal-hr {
    pointer-events: none;
    user-select: none;
    display: block;
    width: 45vw;
    margin-bottom: 1vw;
}

@media (min-width: 768px) {
    .selection-button {
        display: flex;
        position: absolute;
        top: -7.5vw;
        width: 12vw;
        aspect-ratio: 2/1;
        border: 0;
        background: #fff;
        color: #5094a8;
        border-top-left-radius: 9999px;
        border-top-right-radius: 9999px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 1.2vw;
        font-size: 1.8vw;
        line-height: 1;
        cursor: pointer;
    }

    #date-panel {
        flex-direction: row;
    }

    #date-panel>.form-like-ui {
        order: 1;
    }

    #date-panel>.calendar-ui {
        order: 2;
    }

    #date-panel .form-like-ui {
        display: block;
    }

    #date-panel .form-like-ui h3.block-title,
    #date-panel .form-like-ui .date-block {
        margin-bottom: 3vw;
    }

    #region-panel {
        display: none;
    }
}