/* === Reset / Normalize 基礎統一樣式 === */

.sr-only {
  position: absolute;
  left:-10000px;
  top:auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 移除內建邊距 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 圖片預設不超出容器寬度 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 超連結預設樣式 */
a {
  text-decoration: none;
  /* color: inherit; */
}
a:focus {
    outline: 2px solid #ffffff !important;
    outline-offset: 1px;
    box-shadow: 0 0 0 4px #000000 !important;
}
.alink:hover {
  color: #794b0e;
}

/* 文字元素統一 */
h1,h2,h3,h4,h5,h6,
span,
p {
  font-weight: inherit;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: inherit;
}

/* 表單元素樣式重設 */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* 清除 ul/ol 預設樣式 */
ul,
ol {
  list-style: none;
}

/* 讓 HTML 根元素可使用 rem 單位 */
html {
  font-size: 1em;
  scroll-behavior: smooth;
}

/* 滾動條樣式（可選） */
/* ::-webkit-scrollbar {
  width: 8px;
} */
/* ::-webkit-scrollbar-thumb {
  background-color: rgba(139, 111, 47, 0.3);
  border-radius: 4px;
} */

/* 強化排版可讀性 */
body {
  font-family: "Taipei Sans TC Beta", "Noto Sans TC",'思源黑體', sans-serif;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  line-height: 1.5;
  color: #333;
}


.text-custom-brown-0 {
  color: #956a30;
}
.text-brown,
.text-custom-brown {
  color: #81571e;
}
.text-brown-1,
.text-custom-brown-1 {
  color: #ab8535;
}
.text-header-brown {
  color: #ab8535;
}
.bg-custom-brown {
  background-color: #81571e;
}

.border-custom-brown {
  border-color: #81571e;
}
.text-custom-gray {
  color: #777777;
}
.nav-font {
  font-size: 1.250em;/*20px;*/
  font-weight: 700;
}
.font-12-400 {
  font-weight: 400;
  font-size: 0.750em;/*12px;*/
  letter-spacing: 0.1em;
}
.font-12-700 {
  font-weight: 700;
  font-size: 0.750em;/*12px;*/
  letter-spacing: 0.1em;
}
.font-10-400 {
  font-weight: 400;
  font-size: 0.625em;/*10px;*/
  letter-spacing: 0.1em;
}
.font-10-700 {
  font-weight: 700;
  font-size: 0.625em;/*10px;*/
  letter-spacing: 0.1em;
}
.font-8-400 {
  font-weight: 400;
  font-size: 0.500em;/*8px;*/
  letter-spacing: 0.1em;
}
.font-24-700 {
  font-weight: 700;
  font-size: 1.500em;/*24px;*/
  letter-spacing: 0.1em;
}
.font-16-400 {
  font-weight: 400;
  font-size: 1.000em;/*16px;*/
  letter-spacing: 0.1em;
}
.font-16-700 {
  font-weight: 700;
  font-size: 1.000em;/*16px;*/
  letter-spacing: 0.1em;
}
.font-20-700 {
  font-weight: 700;
  font-size: 1.250em;/*20px;*/
  letter-spacing: 0.1em;
}
.font-32-700 {
  font-weight: 700;
  font-size: 2.000em;/*32px;*/
  letter-spacing: 0.1em;
}
.font-40-700 {
  font-weight: 700;
  font-size: 2.500em;/*40px;*/
  letter-spacing: 0.1em;
}
.font10 { font-size: 0.625rem !important; }
.font11 { font-size: 0.6875rem !important; }
.font12 { font-size: 0.75rem !important; }
.font13 { font-size: 0.8125rem !important; }
.font14 { font-size: 0.875rem !important; }
.font15 { font-size: 0.9375rem !important; }
.font16 { font-size: 1.000rem !important; }
.font17 { font-size: 1.0625rem !important; }
.font18 { font-size: 1.125rem !important; }
.font20 { font-size: 1.250rem !important; }
.font22 { font-size: 1.375rem !important; }
.font24 { font-size: 1.500rem !important; }
.font26 { font-size: 1.625rem !important; }
.font28 { font-size: 1.750rem !important; }
.font30 { font-size: 1.875rem !important; }
.fontbold { font-weight: bold; }

.btn-based {
  border-radius: 18.5px;
  box-shadow: 2px 4px 4px 0px #00000040;
  background-color: rgb(171, 133, 53);
  color: rgb(251, 248, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.town-btn-based {
  border-radius: 16px;
  box-shadow: 2px 4px 4px 0px #00000040;
  letter-spacing: 0.1em;
  background-color: #CBB989;
  color: rgb(251, 248, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 83px;
  height: 22px;
  font-size: 0.750em;/*12px;*/
}
/* 被選中的樣式 */
.town-btn-based.selected {
  background-color: #AB8535;
}
/* 圖片陰影 */
.img-shadow {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.option-font {
  font-weight: 400;
  font-size: 1.000em;/*16px;*/
  letter-spacing: 0.1em;
}
.option-label-font {
  font-weight: 700;
  font-size: 1.250em;/*20px;*/
  letter-spacing: 0.1em;
}
.mask_vertical {
  background: linear-gradient(90deg, #fcfcf7 0%, rgba(252, 252, 247, 0.9) 32.38%, rgba(252, 252, 247, 0.7) 71.15%, rgba(252, 252, 247, 0) 100%);
}
.mask_horizontal {
  background: linear-gradient(0deg, #fcfcf7 0%, #fcfcf7 62.5%, rgba(252, 252, 247, 0) 100%);
}
.tag_shadow {
  box-shadow: 0px 0px 4px 0px #00000040 inset;
}
.tag-shadow-btn {
  box-shadow: 2px 4px 4px 0px #00000040;
}
.tag {
  border-radius: 18px;
  padding: 8px 16px;
  line-height: 1;
  font-weight: 700;
  display: inline-block;
  box-sizing: border-box;
  background-color: #AB8535;
  cursor: default
;
}
/* Dropdown specific styles */
.dropdown-menu {
  min-width: 160px; /* Ensure dropdown has enough width */
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;          /* 與視覺縫隙等高 */
    left: 0;
    width: 100%;
    height: 8px;
  }
/* */
.carousel-item {
  position: absolute;
  /* 置中 */
  top: 0%;
  transform: translateX(-50%);
  width: 1024px; /* 重點：改為相對寬度 */
  min-width: 265px;
  min-height: 120px;
  transition: transform 0.8s ease-in-out;
  will-change: transform, z-index;
}
.carousel-item img {
  width: 100%;
  object-fit: cover;
}
.carousel-left {
  transform: translateX(-85%) scale(0.65);
  z-index: 10;
}
.carousel-center {
  transform: translateX(0px) scale(1);
  z-index: 30;
  overflow: visible;
}
.carousel-right {
  transform: translateX(85%) scale(0.65);
  z-index: 20;
}
@media (max-width: 640px) {
  .carousel-left {
    transform: translateX(-85%) scale(0.65);
  }
  .carousel-right {
    transform: translateX(85%) scale(0.65);
  }
  .carousel-item{
    width: 265px;
  }
  .carousel-item img{
    height: 150px;
  }
}
.transition-none {
  transition: none !important;
}
/* New style for smooth image transition */
.main-image-transition {
  transition: opacity 0.8s ease-in-out;
}
#activity-track {
  width: 100%;
}

.google-maps {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}
.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.pointer {
    cursor: pointer;
}



/* 文字大中小縮放 */
html.fz-sm { font-size: 14px; }
html.fz-md { font-size: 16px; }
html.fz-lg { font-size: 20px; }

body, p, li, td, .tlist, #tlist_data, .content {
    font-size: 1rem;
}

/* 按鈕 active 狀態 */
a.fz-active div {
    background-color: #81571EE5 !important;
    color: #ffffff !important;
}

.kbd {
    padding: .1875rem .375rem;
    font-size: .875em;
    color: #fff;
    background-color: #000;
    border-radius: .25rem;
}


.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
