/* ============ base ============ */
/* style.css */
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Arial', sans-serif;
	color: #333;
}

.container {
	margin: auto;
}

/* 內容圖片：圓角 + 柔和陰影，統一現代感 */
main .image img,
main .room-image img {
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	display: block;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* 例外：logo 等識別圖不加框感 */
main .image img.no-frame {
	border-radius: 0;
	box-shadow: none;
	transition: none;
}

@media (hover: hover) {
	main .image img:hover,
	main .room-image img:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
	}

	main .image img.no-frame:hover {
		transform: none;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	main .image img,
	main .room-image img {
		transition: none;
	}

	main .image img:hover,
	main .room-image img:hover {
		transform: none;
	}
}

footer {
	text-align: center;
	padding: 20px;
	margin-top: 40px;
}

/* 手機斷點，最大寬度 768px */
@media (max-width: 768px) {
	.container {
		padding: 20px;
	}
}

/* ============ header / navigation ============ */
/* 整個 Header 區塊 */
header {
	width: 100%;
	position: sticky; /* 讓區塊固定在頁面上 */
	top: 0;
	left: 0;
	background: #fff;
	z-index: 1000; /* 確保 header 在其他元素上層 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加陰影效果 */
}

/* Header 內部容器 */
.header-container {
	display: flex; /* 使用 Flexbox 排版 */
	justify-content: space-between; /* 兩端對齊，左邊標題，右邊選單 */
	align-items: center; /* 垂直置中 */
	padding: 10px 40px; /* 增加內邊距，讓內容不緊貼邊緣 */
}

/* 導覽選單 */
.navigation {
	display: flex;
	align-items: center;
	gap: 20px;
}

.navigation a {
	font-size: 18px;
	color: #333; /* 文字顏色 */
	text-decoration: none; /* 去掉下劃線 */
	transition: color 0.25s ease;
}

.navigation a:hover {
	color: #0056B3; /* 滑鼠懸停時變更顏色 */
}

.navigation a.active {
	color: #0056B3; /* 目前所在頁面 */
}

/* 漢堡選單按鈕樣式 */
.menu-toggle {
	display: none; /* 預設桌面版不顯示 */
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #333;
	line-height: 0;
}

/* 收合時顯示漢堡、展開時顯示叉叉（依 aria-expanded 切換） */
.menu-toggle .icon-close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-bars {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: inline;
}

/* 手機斷點，最大寬度 768px */
@media (max-width: 768px) {
	.header-container {
		padding: 10px 20px;
	}

	/* 顯示漢堡按鈕 */
	.menu-toggle {
		display: inline-flex;
	}

	/* 導覽選單：貼齊 header 下緣的全寬下拉面板 */
	.navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-top: 1px solid #eee;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
		z-index: 1001;

		/* 收起狀態：用 opacity/transform 才能做滑順過場 */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		pointer-events: none;
		transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
	}

	/* 展開狀態 */
	.navigation.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
		transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
	}

	.navigation a {
		font-size: 18px;
		padding: 12px 24px;
	}

	.navigation a:active {
		background: #f5f5f5;
	}

	@media (prefers-reduced-motion: reduce) {
		.navigation {
			transition: none;
		}
	}
}

/* ============ hero 輪播 ============ */
/* Hero 輪播 */
.hero-image {
	position: relative;
	overflow: hidden;
}

.hero-track {
	display: flex;
	transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
	will-change: transform;
}

.hero-track.no-transition {
	transition: none;
}

/* 兩張 hero 原始比例不同，固定 16:9 避免切換時高度跳動 */
.hero-track img {
	width: 100%;
	flex-shrink: 0;
	display: block;
	aspect-ratio: 16 / 9;
	max-height: 70vh;
	object-fit: cover;
}

/* 輪播指示點 */
.hero-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	z-index: 10;
}

/* 按鈕本體 26px 透明命中區（無障礙觸控目標），圓點用 ::after 畫 */
.hero-dots button {
	width: 26px;
	height: 26px;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-dots button::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dots button.active::after {
	background: #fff;
	transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
	.hero-track {
		transition: none;
	}
}

/* ============ content ============ */
#about, #notice, #room-intro, #map, #contact {
	scroll-margin-top: 110px;
}

/* ============ utilities（Tailwind 抽取，勿手動排序）============ */
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.table{display:table}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-2\/5{width:40%}.w-full{width:100%}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.list-disc{list-style-type:disc}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-4{gap:1rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-7{padding-left:1.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem}.text-lg,.text-xl{line-height:1.75rem}.text-xl{font-size:1.25rem}.font-bold{font-weight:700}.text-sky-700{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.dark\:bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}}
/* ============ index 頁專用 ============ */
/* 手機斷點，最大寬度 768px */
@media (max-width: 768px) {
	.content {
		flex-wrap: wrap;
	}

	.content > div {
		width: 100%;
	}

	.section-2 > div:first-child {
		order: 1;
	}

	.section-2 > div:nth-child(2) {
		order: 0;
	}
}

/* ============ room 頁專用 ============ */
/* 房型圖片：固定高度但以 object-fit 裁切，避免變形 */
.room-image img {
	height: 335px;
	object-fit: cover;
}

/* 手機斷點，最大寬度 768px */
@media (max-width: 768px) {
	#room-intro table {
		width: 100%;
	}

	.list-block .room-image {
		flex-wrap: wrap;
	}

	.list-block .room-image .image {
		width: 100%;
	}

	.list-block .room-image > img {
		width: 100%;
	}

	/* 手機版改為固定比例，高度隨寬度縮放 */
	.room-image img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}
