@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --color-primary: #fe97aa;
    --color-secondary: #BF9353;
    --color-tertiary: #BD7D69;
    --color-grey: #5F5F5F;
    --color-bg: #ffefe9;
    --no-result-message-en: "No matched results";
    --no-result-message-tc: "沒有符合的結果";
    --no-result-message-sc: "没有符合的结果";
}

body {
    font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
    font-weight: 400;
    background: var(--color-bg);
}
html[lang^=zh-CN] body{
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}
body .opening .shape:nth-child(1) {
    position: fixed;
    top: 0;
    left: 0%;
    width: 33.666%;
    height: 100%;
    background: #1e1e1e;
    z-index: 999;
    /* animation: opening 1s cubic-bezier(0.85, 0, 0.15, 1) forwards 1s; */
    transform-origin: 100% 0%;
}
body .opening .shape:nth-child(2) {
    position: fixed;
    top: 0;
    left: 33.333%;
    width: 33.666%;
    height: 100%;
    background: #1e1e1e;
    z-index: 999;
    /* animation: opening 1s cubic-bezier(0.85, 0, 0.15, 1) forwards 1s; */
    transform-origin: 100% 0%;
}
body .opening .shape:nth-child(3) {
    position: fixed;
    top: 0;
    left: 66.666%;
    width: 33.666%;
    height: 100%;
    background: #1e1e1e;
    z-index: 999;
    /* animation: opening 1s cubic-bezier(0.85, 0, 0.15, 1) forwards 1s; */
    transform-origin: 100% 0%;
}
@keyframes opening {
    from{
        transform: scaleX(1)
    }
    to{
        transform: scaleX(0)
    }
}

/* header */
header .langBox {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}
header .banner {
    width: 100%;
    height: auto;
    /* max-height: 450px;
    min-height: 300px; */
    object-fit: cover;
    object-position: center;
}
header .navbar-brand {
    font-size: 1.8rem;
}
header .navbar-light .navbar-nav .nav-link {
    font-size: 1.1rem;
    color: black;
}

/* Main style */
main {
    position: relative;
}
main a {
    color: var(--color-secondary);
}
main a:hover {
    color: var(--color-tertiary);
	text-decoration: none;
}

main a.roundBtn {
    background: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 5px 20px;
    border-radius: 6px;
    color: white;
	text-align: center;
	display: inline-block;
}
main a.roundBtn:hover {
    background: white;
    color: var(--color-tertiary);
	text-decoration: none;
    border-color: var(--color-tertiary);
}

main .merchant-title {
    border-bottom: 2px solid var(--color-primary);
}
main .merchant-title > h1 {
    font-size: 1.6rem;
    font-weight: 700;
    display: inline-block;
    padding: 7px 20px;
    margin: 0;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

/* Filter */
.slider {
    overflow: hidden;
    position: relative;
}
.swiper-button-prev {
    height: 100%;
    left: 0px;
    background: var(--color-bg);
    top: 20px;
    width: 50px;
}
.swiper-button-next {
    height: 100%;
    right: 0px;
    background: var(--color-bg);
    top: 20px;
    width: 50px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    -webkit-text-stroke: 3px var(--color-primary);
}
.swiper-button-lock + .filter.primary a:first-child {
    margin-left: 15px;
}
.filter {
    user-select: none;
}
.filter.primary {
    /* margin: 15px 50px 25px 50px; */
}
.filter.primary a {
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    background: white;
    /* width: 110px; */
    max-width: 90px;
    height: 83px;
    border-radius: 10px;
    margin: 30px 13px;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    /* transition: 0.1s ease-in-out all; */
    overflow: hidden;
}
.filter.primary a:first-child {
    margin-left: 55px;
}
.filter.primary a:last-child {
    margin-right: 55px;
}
.filter.primary a > img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;
    object-position: center;*/
}
.filter.primary a.active {
    border: 2px solid var(--color-primary);
}

.filter.secondary {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 15px 0 25px;
    border-bottom: 2px solid var(--color-primary);
    overflow-x: auto;
}
.filter.secondary a {
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    min-width: 120px;
    border-radius: 10px 10px 0 0;
    margin: 0 20px;
    padding: 7px 40px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.1s ease-in-out all;
}
.filter.secondary a.active {
    color: white;
    background: var(--color-primary);
}

/* Event list */
#events-box {
    position: relative;
    min-height: 300px;
}
#events-box:before {
    content: var(--no-result-message-en);
    font-size: 1.2rem;
    position: absolute;
    width: 80%;
    left: 10px;
    top: 10px;
    z-index: -1;
}
html[lang=zh] #events-box:before {
    content: var(--no-result-message-tc);
}
#events-list {
    background: var(--color-bg);
}
#events-list .event-item {
    margin: 15px 0;
    overflow: hidden;
}
#events-list .event-item .outer {
    border-radius: 5px;
    padding: 7px;
    border: 1px solid #cdb080;
}
#events-list .event-item .outer .inner {
    position: relative;
    display: block;
    text-decoration: none;
}
#events-list .event-item .outer .inner .thumb-event {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-bottom: 1px solid #dadadc;
}
#events-list .event-item .outer .inner .thumb-event img {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 0.3s all ease;
}
#events-list .event-item .outer .inner .thumb-event img.top {
    object-position: 50% 5%;
}
#events-list .event-item .outer .inner .thumb-event img.upper {
    object-position: 50% 30%;
}
#events-list .event-item .outer .inner .thumb-event img.lower {
    object-position: 50% 75%;
}
#events-list .event-item .outer .inner .thumb-event img.left {
    object-position: 85% 50%;
}
#events-list .event-item .outer .inner .thumb-event img.right {
    object-position: 35% 50%;
}
#events-list .event-item .outer .inner:hover .thumb-event img {
    transform: scale(1.2);
}
#events-list .event-item .outer .inner .thumb-merchant {
    position: absolute;
    right: 10px;
    transform: translateY(-60%);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);
    display: flex;
    width: 90px;
    height: 83px;
    /*object-fit: cover;
    object-position: center;*/
    border-radius: 10px;
}
#events-list .event-item .outer .inner .content {
    background: rgba(255,255,255,0.5);
    padding: 25px 10px 25px;
}
#events-list .event-item .outer .inner .content .merchant {
    font-size: 13px;
	line-height: 1.15;
    color: var(--color-grey);
    padding-bottom: 8px;
    max-width: 66%;
}
#events-list .event-item .outer .inner .content .title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
    transition: 0.3s ease all;
}
#events-list .event-item .outer .inner:hover .content .title {
    color: var(--color-tertiary);
}

/* Details */
.btn-back {
    position: relative;
    color: var(--color-grey);
    padding-left: 40px;
}
.btn-back:hover {
    color: var(--color-grey);
    text-decoration: none;
}
.btn-back:before {
    content: "";
    position: absolute;
    display: inline-block;
    left: 0px;
    top: -6px;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg width='31' height='26' viewBox='0 0 31 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5834 25.1667V16.4167H18.4167V25.1667H25.7084V13.5H30.0834L15.5001 0.375L0.916748 13.5H5.29175V25.1667H12.5834Z' fill='%235F5F5F'/%3E%3C/svg%3E%0A");
}
.event-details {
    margin: 20px auto 60px;
}
.event-details h3 {
    font-size: 26px;
    color: var(--color-grey);
    font-weight: 400;
    margin-bottom: 10px;
    cursor: pointer;
    display: inline-block;
}
.event-details h2 {
    font-size: 36px;
    color: var(--color-secondary);
    font-weight: 500;
	line-height:1.35;
}
.event-details .thumb-event {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ededed;
}
.event-details .thumb-event img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.event-details .thumb-event img.top {
    object-position: 50% 5%;
}
.event-details .thumb-event img.upper {
    object-position: 50% 30%;
}
.event-details .thumb-event img.lower {
    object-position: 50% 75%;
}
.event-details .thumb-event img.left {
    object-position: 85% 50%;
}
.event-details .thumb-event img.right {
    object-position: 35% 50%;
}
.event-details .thumb-merchant {
    position: absolute;
    right: 35px;
    transform: translateY(-50%);
    box-shadow: 0px 2px 5px rgb(0 0 0 / 25%);
    display: flex;
    width: 120px;
    height: 110px;
	background-color: white;
    /*object-fit: cover;
    object-position: center;*/
    border-radius: 10px;
    cursor: pointer;
}
.event-details #accordion .card {
    background: transparent;
    border: none;
    margin: 60px 0 40px;
}
.event-details #accordion .header {
    border-bottom: 3px solid var(--color-primary);
}
.event-details #accordion .header a {
    position: relative;
    display: block;
    font-size: 26px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    padding-left: 70px;
    cursor: pointer;
}
.event-details #accordion .header a:before {
    content: "";
    position: absolute;
    display: inline-block;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    border-radius: 20px 0 0 0;
    background-color: var(--color-primary);
    background-repeat: no-repeat;
    background-size: 35% auto;
    background-position: top 55% center;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.00036 9.82277C1.60607 10.4625 2.62451 10.463 3.23092 9.82399L9 3.74424L14.7691 9.82399C15.3755 10.463 16.3939 10.4625 16.9996 9.82277C17.5607 9.23016 17.5607 8.30232 16.9996 7.70971L10.4523 0.794715C9.66337 -0.0385125 8.33663 -0.0385125 7.54771 0.794715L1.00036 7.70971C0.439258 8.30232 0.439258 9.23016 1.00036 9.82277Z' fill='white'/%3E%3C/svg%3E%0A");
}
.event-details #accordion .header a.collapsed:before {
    border-radius: 0 0 20px 0;
    transform: rotate(180deg);
    background-position: bottom 55% center;
}
.event-details #accordion .offer-details {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-grey);
    background: white;
    border-radius: 0 0 30px 30px;
}
.event-details #accordion .offer-details > div {
    padding: 30px;
}
.event-details #accordion .offer-details > div p:last-child {
    margin-bottom: 0;
}
.event-details #accordion .offer-details > div ol {
    padding-inline-start: 20px;
}
.event-details #accordion .offer-details > div ol li {
    margin-bottom: 1rem;
}
.event-details #accordion .offer-details > div ul {
    padding-inline-start: 20px;
    list-style-type: disc;
}
.event-details #accordion .offer-details > div ul li {
    margin-bottom: 0;
}

/* Footer */
footer {
    min-height: 20vh;
    background: var(--color-primary);
    margin-top: 30px;
    color: white;
    padding: 10px 0;
}
footer #back2top {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: 25px;
    right: 25px;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    width: 50px;
    height: 50px;
    /* transition: 0.2s ease all; */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: var(--color-primary);
    background-size: 80% auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Ctitle%3EChevron Up%3C/title%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 328l144-144 144 144'/%3E%3C/svg%3E");
}
footer #back2top.show {
    visibility: visible;
    animation: fadeInUp 0.3s ease both;
}
footer #back2top.hide {
    visibility: visible;
    animation: fadeOutDown 0.3s ease both;
}
footer .title {
    font-size: 2.2rem;
    font-weight: 700;
    border-radius: 10px;
    max-width: fit-content;
    margin: 30px 0;
}
footer .bottomArea {
    border-top: 1px solid  rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 10px;
}
footer .langBox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}
.langBox .lang {
    display: inline-flex;
    justify-content: flex-end;
    align-items: flex-end;
    /*background: rgba(255,255,255,0.35);*/
    /*color: white;*/
    background: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.langBox .lang a {
    display: flex;
    font-weight: 400;
    margin: 0 10px;
    color: var(--color-primary);
    text-decoration: none;
}
.langBox .lang a:first-child {
    margin-left: 0;
}
.langBox .lang a:last-child {
    margin-right: 0;
}
footer .links a {
    display: inline-block;
    font-size: 0.85rem;
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
}
footer .links a:first-child {
    margin-left: 0;
}
footer .links a:last-child {
    margin-right: 0;
}
footer .copyright {
    font-size: 0.85rem;
    font-weight: 300;
    text-align: right;
}




/***** Desktop Only *****/
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1400px;   /* Change the max width here */
    }
}

/***** Large Desktop *****/
@media only screen and (max-width: 1399.98px) {

}

/***** Desktop *****/
@media only screen and (max-width: 1099.98px) {
    .filter.secondary {
        display: inline-flex;
        flex-wrap: wrap;
        flex-direction: row;
        border-bottom: 0;
        margin: 5px 0 15px;
    }
    .filter.secondary a {
        font-size: 1.2rem;
        width: calc(50% - 12px);
        margin: 6px;
        padding: 8px 5px;
        border-radius: 10px;
        border: 1px solid var(--color-primary);
        opacity: 0.8;
    }
   .en .filter.secondary a {
        font-size: 1.2rem;
    }
    .filter.secondary a.active {
        opacity: 1;
    }
	main .merchant-title > h1{
        font-size: 1.4rem;
	}
}

/***** Desktop *****/
@media only screen and (max-width: 991.98px) {
    .event-details #accordion .card{
        margin: 40px 0 40px;
    }
	.event-details h2 {
		font-size: 26px;
	}
	.event-details h3{
		font-size: 20px;
		margin-bottom: 6px;
	}
	.event-details #accordion .header a{
		font-size: 22px;
	}
}

/***** Tablet *****/
@media only screen and (max-width: 767.98px) {
    #events-list .event-item {
        padding: 0 20px;
    }
    .filter.primary a {
		max-width: 70px;
		height: 65px;
        margin: 20px 10px;
		font-size: 1.2rem;
		line-height: 1;
    }
    .swiper-button-prev {
        top: 20px;
        width: 30px;
    }
    .swiper-button-next {
        top: 20px;
        width: 30px;
    }
    .filter.primary a:first-child {
        margin-left: 35px;
    }
    .filter.primary a:last-child {
        margin-right: 35px;
    }
    footer .title {
        margin: 20px 0;
    }
    footer .contact {
        margin: 20px auto 0;
    }
    footer .langBox {
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    footer .links {
        margin-bottom: 10px;
    }
    footer .copyright {
        text-align: left;
    }
	.event-details #accordion .offer-details > div{
		padding: 20px;
	}
	.event-details #accordion .offer-details{
		font-size: 16px;
	}
    #events-list .event-item .outer .inner .content {
        padding: 25px 10px 20px;
    }
}



@media only screen and (max-width: 991.98px) and (min-width: 767.99px) {
	.event-details .thumb-event img {
		height: 380px !important;
	}
}
@media only screen and (max-width: 767.98px) and (min-width: 479.99px) {
	.event-details .thumb-event img {
		height: 450px !important;
	}
}

/***** Mobile *****/
@media only screen and (max-width: 479.98px) {
	.event-details .thumb-merchant {
		width: 90px;
		height: auto;
	}
    .filter.primary a {
		max-width: 70px;
		height: 65px;
        margin: 20px 6px;
    }
	header .langBox{
		top: 15px;
		right: 15px;
	}
	header .langBox .lang {
		padding: 3px 15px;
		background: rgba(255,255,255,0.6);
	}
	header .langBox .lang a{
		margin: 0 8px;
	}
}



/*addon*/
.filter.primary a.cLabel{
    font-size: 16px;
    font-weight: 400;
    display: inline-flex;
    background: var(--color-primary);
    max-width: 60px;
    height: 83px;
    border-radius: 10px;
    margin: 30px 13px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    overflow: hidden;
	user-select: none;
    cursor: default;
    border: none;
}
.cLabel {
    font-size: 16px;
    padding: 5px 10px;
    background: var(--color-primary);
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 60px;
    height: 83px;
    border-radius: 10px;
    margin: 30px 13px;
    min-width: 55px;
    text-align: center;
    line-height: 1.3;
}
.sliderA{
    display: inline-block;
	width: 65%;
}
.sliderB{
    display: inline-block;
	width: 33%;
}

	.filter.primary a.cLabel.cLabel-ch{
        margin-left: 55px;
    }
@media only screen and (max-width: 767.98px) {
	.filter.primary a.cLabel{
		height: 65px;
        margin: 20px 6px;
		font-size: 1rem;
	    line-height: 1.2;
    }
	.filter.primary a.cLabel.cLabel-ch{
        margin-left: 35px;
    }
}
/***** Mobile *****/
@media only screen and (max-width: 479.98px) {
	.filter.primary a.cLabel{
		height: 65px;
        margin: 20px 6px;
		font-size: 14px;
    }
	.sliderA{
		width: 100%;
	}
	.sliderB{
		width: 100%;
	}
	.filter.primary a.cLabel.cLabel-hk{
        margin-bottom: 0;
    }
	.sliderA .filter.primary a{
        margin-bottom: 0;
    }
	.sliderA .swiper-button-prev, .sliderA .swiper-button-next{
		top: 30px;
	}
}


.offer-item{
    flex-wrap: wrap;
    margin: 0 -15px;
}
.offer-item .item{
    width: 50%;
    padding: 15px;
}
.offer-item .item img{
    object-position: center;
    object-fit: cover;
    width: 100%;
    min-height: 260px;
    max-height: 295px;
    height: 100%;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 5px;
}
.offer-item .item img.contain{
    object-fit: contain;
}
.offer-item .item img.h300{
    height: 30%;
}
.offer-item .item img.h340{
    height: 34%;
}
.offer-item .item .pic{
    padding-bottom: 10px;
}

@media only screen and (max-width: 578px) {
    .offer-item{
        margin: 0 -6px;
    }
    .offer-item .item{
        padding: 6px;
    }
    .offer-item .item img{
        min-height: 220px;
    }
}

@media only screen and (max-width: 479.98px) {
    .offer-item .item img{
        min-height: 176px;
    }

}
