:root {
	--header-footer-bg:#D2D755;
	--header-footer-text:#006ba6;
	--header-footer-text-hover:#9adbe8;
    --tour-agenda-header:#6775c0;
    --tour-agenda-highlight:#d7c6e6;
    --tour-agenda-normal:#d9e1e2;
	/*--card-header:#;*/
	/*--card-text:#;*/
	/*--button:#;*/
	/*--button-hover:#;*/
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	list-style: none;
}

html {
	font-size: 16px;
	font-family: Arial, sans-serif;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0 auto;
	text-align: center;
}
a {
	text-decoration: none;
}
ol, ul {
	list-style: none;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.spacer {
	flex-grow: 1;
}

/* Header Section Styles */
header {
	position: relative;
	height: 70px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	background: var(--header-footer-bg);
	border-radius: 20px 20px 0 0;
	padding: 10px 20px;
}
.backendHeader {
	position: relative;
	height: 50px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	background: var(--header-footer-bg);
	padding: 5px 20px;
}
.logo {
	/*height: 100%;*/
	max-height: 60px;
}
.backendLogo {
	max-height: 40px;
}
nav {
	position: static;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
	z-index: 100;
	width: auto;
	background: transparent;
}
.nav.active {
	opacity: 1;
	visibility: visible;
}
.nav a {
	display: inline-block;
	padding: 7px 10px;
	border-radius: 10px;
	color: var(--header-footer-text);
	text-shadow: 1px 1px 3px var(--header-footer-text), -1px -1px whitesmoke;
	font-size: 1.1rem;
	background: var(--header-footer-bg);
}
.nav a:hover {
	color: whitesmoke;
	border: 2px solid whitesmoke;
}
.normalLink {
	color: var(--header-footer-text);
	text-shadow: 1px 1px 3px var(--header-footer-text), -1px -1px whitesmoke;
}
.activeLink {
	color: whitesmoke;
	border: 2px solid whitesmoke;
}
/* Footer Style */
footer {
	width: 100%;
	/* position: fixed;
	bottom: 0; */
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 10px 20px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
footer .spacer {
    display: none;
}
.footerSocialIcons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-top: 20px;
}
footer .footerSocialIcon a {
    color: var(--header-footer-text);
    font-size: 24px;
}
footer .footerSocialIcon a:hover {
    color: var(--header-footer-text-hover);
    transform: translateY(-3px);
    transition: all 0.3s;
}

/* Dashboard Menu */
.dashboard {
	/* max-width: 1200px; */
	padding: 10px;
	display: grid;
	height: calc(100vh - 100px);
	grid-template-columns: 1fr 5fr;
	gap: 10px;
}
.dashboardMenu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: 0.9em;
}
.dashboardMenuItems {
	display: block;
	width: 100%;
	padding: 5px 15px;
	margin: 0;
	background: var(--header-footer-bg);
	color: var(--header-footer-text);
	text-align: left;
	font-size: 1.1rem;
}
.dashboardMenuItems:hover {
	background: var(--header-footer-text);
	color: var(--header-footer-bg);
}
.dashboardMenuSubmenu {
	width: 100%;
	display: none;
	flex-direction: column;
	align-items: flex-start;
}
.dashboardMenuSubmenu.active {
	display: flex;
}
.dashboardMenuSubitems {
	display: block;
	width: 100%;
	padding: 8px 10px 8px 30px;
	margin:0;
	background: rgba(210, 215, 85, 0.5);
	color: var(--header-footer-text);
	text-align: left;
	font-size: 1rem;
}
.dashboardMenuSubitems:hover {
	background: var(--header-footer-text);
	color: var(--header-footer-bg);
}
/* 漢寶按鈕 */
.hamburgerButton {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	margin-right: 30px;
	z-index: 101;
}

.hamburgerButton:hover {
	background: rgba(255, 255, 255, 0.3);
}

.hamburgerButton span {
	display: block;
	width: 20px;
	height: 3px;
	background: var(--header-footer-text);
	margin: 3px 0;
	border-radius: 3px;
	transition: all 0.3s ease;
}
/* 漢寶按鈕設定完成 */

/* 漢寶按鈕動畫 */
.hamburgerButton.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburgerButton.active span:nth-child(2) {
	opacity: 0;
}

.hamburgerButton.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}
/* 漢寶按鈕動畫設定完成 */

/* 省份及直轄市 */
.provinceCardContainer {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	padding: 20px;
}

.provinceCard {
	display: flex;
	flex-direction: column;
	border-radius: 15px;
	border: 2px solid var(--header-footer-bg);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.provinceCard:hover {
	box-shadow: 0 0 20px rgba(0, 0, 255, 0.6);
    transform: translateY(-5px);
}

.provinceCardHeaderImage {
	/* width: 100%; */
	height: 150px;
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: center;
	align-items: center;
}
.provinceCardHeaderImage h2 {
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 1.5rem;
}
.provinceCardHeaderImage h2:hover {
	background: rgba(0, 0, 0, 0.4);
}
.provinceCardBody {
	padding: 15px;
	color: #000;
	font-size: 1rem;
	text-align: justify;
}

@media screen and (max-width: 1023px){
	header {
		height: 70px;
		padding: 7px;
	}
	.logo {
		max-height: 50px;
	}
	.nav {
		position: absolute;
		top: 100%;
		right: 30px;
		width: 150px;
		background: var(--header-footer-bg);
		border-radius: 10px;
		border: 1px solid var(--header-footer-text);
		opacity: 0;
		visibility: hidden;
		gap: 5px;
		z-index: 1000;
	}
	.nav a {
		margin: 10px auto;
		font-size: 1rem;
	}
	.nav.active {
		opacity: 1;
		visibility: visible;
	}
}
@media screen and (min-width: 1024px) {
	.hamburgerButton {
		display: none;
	}
	footer {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    footer .spacer {
        display: block;
        flex-grow: 1;
    }
}
/*走馬燈字幕*/
.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding: 5px 0;
	background-color: lightblue;
}

.marquee-content {
    display: inline-block;
    padding-right: 50px;
    animation: marquee 75s linear infinite;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-item {
    display: inline-block;
    margin-right: 40px;
    font-size: 1.2rem;
    position: relative;
    padding: 5px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.marquee-item::after {
    content: '•';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.8rem;
}

.marquee-item:last-child::after {
    display: none;
}
.provinceCard {
	display: grid;
	overflow: hidden;
}
.provinceCardHeader {
	background: rgba(0, 0, 0, 0.15)
}
@media (max-width: 768px) {
    .marquee-item {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        font-size: 1rem;
        margin-right: 25px;
        padding: 8px 15px;
    }
}

/* Home page Slides */
.carousel-container {
	position: relative;
	max-width: 100%;
	height: 450px;
	overflow: hidden;
	/* border-radius: 15px; */
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	margin: 30px auto 30px auto;
}

.carousel {
	position: absolute;
	top: 0;
	left: 0;
	width: 500%;
	height: 100%;
	display: flex;
	animation: slide 30s infinite;
}

.slide {
	flex: 1;
	height: 100%;
	background-size: cover;
	background-position: bottom;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;

}

.slide-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
}

.slide-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 30px;
	background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
	text-align: left;
	transition: all 0.3s ease;
}

.slide-title {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: white;
}

.slide-description {
	font-size: 1.1rem;
	opacity: 0.9;
	max-width: 600px;
	color: #ddd;
}

.slide-link:hover .slide-content {
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	padding-bottom: 40px;
}

.slide-link:hover .slide-title {
	color: #ffcc00;
}

.link-button {
	display: inline-block;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border-radius: 30px;
	text-decoration: none;
	margin-top: 15px;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.slide-link:hover .link-button {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-5px);
}

/* 动画关键帧 */
@keyframes slide {
	0%, 15% { transform: translateX(0); }
	20%, 35% { transform: translateX(-20%); }
	40%, 55% { transform: translateX(-40%); }
	60%, 75% { transform: translateX(-60%); }
	80%, 95% { transform: translateX(-80%); }
	100% { transform: translateX(0); }
}

@media (max-width: 768px) {
	.carousel-container {
		height: 350px;
		margin: 50px auto 20px auto;
	}

	.slide-title {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.subtitle {
		font-size: 1rem;
	}

	.carousel-container {
		height: 250px;
		margin: 50px auto 20px auto;
	}

	.slide-content {
		padding: 15px;
	}

	.slide-title {
		font-size: 1.2rem;
	}

	.slide-description {
		font-size: 0.9rem;
	}
}

	/* 長線團及短線團 */
.longTermToursContainer, .shortTermToursContainer {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
	margin-bottom: 30px;
}

.longTermToursContent, .shortTermToursContent {
	display: flex;
	transition: transform 0.5s ease;
	width: auto ; /* 动态宽度 */
	padding: 10px 0;
}

.longTermToursHeader, .shortTermToursHeader {
	display: flex;
	justify-content: space-between;
	border-bottom: 2px solid black;
	padding: 10px 20px;
}
.longTermToursHeaderTitle, .shortTermToursHeaderTitle {
	font-weight: 700;
	font-size: 1.2em;
}
.longTermToursHeaderPager, .shortTermToursHeaderPager {
	font-size: 1.2em;
}
.tourItem {
	flex: 0 0 20%; /* 默认显示5个产品 */
	padding: 15px;
	transition: all 0.3s ease;
}

.tourCard {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #333;
	transition: all 0.3s ease;
}

.tourCard:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	border: 2px solid var(--header-footer-bg);
}

.tourImage {
	width: 100%;
	height: auto;
	object-fit: contain;
	margin-bottom: 15px;
	background: #f8f9fa;
	/* border-radius: 8px; */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: #2c3e50;
}
.tourCardsFooter {
	display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
.tourName {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: #2c3e50;
}

.tourPrice {
	font-size: 1.2rem;
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 10px;
}

.tourDescription {
	font-size: 0.9rem;
	color: #7f8c8d;
	margin-bottom: 15px;
	flex-grow: 1;
}

.navigationButton {
	position: absolute;
	top: 66%;
	transform: translateY(-66%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	font-size: 1.5rem;
	color: #2c3e50;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.navigationButton:hover:not(:disabled) {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

.navigationButton:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.prev-btn {
	left: 5px;
}

.next-btn {
	right: 5px;
}

@media (max-width: 768px) {
	/* .product-item {
		flex: 0 0 33.333%;
	} */

	h1 {
		font-size: 2.2rem;
	}
}

@media (max-width: 480px) {
	/* .product-item {
		flex: 0 0 50%;
	} */

	h1 {
		font-size: 1.8rem;
	}

	.subtitle {
		font-size: 1rem;
	}
}

	/* 熱門推介 */

.hotTours {
	display: flex;
	flex-direction: column;
}

.hotToursMenu {
	display: flex;
	justify-content: flex-start;
	align-items: center;

}
.hotToursMenuTitle {
	font-size: 1.2em;
	width: 15%;
	padding: 10px 20px;
	color: red;
}
.hotToursMenuButton {
	font-size: 1.2em;
	color: black;
	padding: 10px 20px;
}
.hotToursMenuButton.active {
	color: blue;
	border-bottom: 2px solid blue;
}
