* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/*上方選單*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  text-align: center;
  z-index: 1000;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.header-nav .logo {
  font-size: 36px;
  color: rgba(142, 186, 213, 1);
}

.nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-item {
  font-size: 14px;
  color: rgba(107, 107, 107, 1);
  text-decoration: none;
}

/* 漢堡按鈕樣式 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: black;
  display: block;
  margin: 5px 0;
}



/*網站首圖*/
.banner {
  width: 100%;
  margin-top: 115px;
  display: flex;
  background-color: #f0f0f0;
  opacity: 1;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*標題*/
.title {
  width: 100%;
  height: 140px;
  position: relative;
  align-items: end;
  justify-content: center;
  display: flex;
  text-align: center;
}

.title .title-ch {
  color: rgba(99, 99, 99, 1);
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 4px;
}

.title .title-en {
  color: rgba(141, 186, 215, 1);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 4px;
}


/*搜尋導遊區塊  切分左右兩區*/
.condition {
  margin-top: 50px;
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
}

.alternative {
  width: 100%;
  margin: 0% 20%;
}

.datetime {
  margin: 0% 20%;
  justify-items: center;
}

.select {
  color: rgba(60, 128, 180, 1);
  font-size: 20px;
  font-weight: bold;
}

.main {
  width: 100%;
}

.step {
  display: none;
}

.step-btn {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

/*左側區塊*/
.left {
  height: auto;
  min-width: 220px;
  margin-left: 20%;
}

.select-detail {
  padding-top: 10px;
  padding-bottom: 10px;
  color: rgba(99, 99, 99, 1);
  font-size: 14px;
  position: relative;
  word-wrap: normal;
  text-align: center;
}

.show-selected {
  color: rgba(99, 99, 99, 1);
  padding-top: 50px;
}

.calendar-container {
  text-align: center;
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(195, 223, 240);
}

.calendar-header button {
  cursor: pointer;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.calendar div {
  padding: 5px;
  text-align: center;
  cursor: pointer;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.calendar .selected {
  background-color: #4CAF50;
  color: white;
}

.calendar .disabled {
  background-color: #e0e0e0;
  color: #888;
  cursor: not-allowed;
}

.calendar div:hover:not(.disabled) {
  background-color: #ddd;
}

.hidden {
  display: none;
}

.time-picker,
.duration-picker,
.time-slots {
  margin-top: 20px;
}

.time-picker select,
.duration-picker select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

.time-slots {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.time-slots div {
  width: 30%;
}

.time-slots h3 {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.time-slots ul {
  list-style-type: none;
  padding: 0;
}

.time-slots li {
  padding: 5px 0;
  background-color: #f0f0f0;
  margin-bottom: 5px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
}

.time-slots li.selected {
  background-color: #4CAF50;
  color: white;
}

/*右側區塊*/
.right {
  width: 57%;
  height: auto;
  margin-left: 5%;
}

.right .select {
  color: rgba(60, 128, 180, 1);
  font-size: 20px;
}

/*選擇人數*/
.member-area {
  width: 100%;
  position: relative;
  padding-bottom: 5%;
  justify-items: center;
}

.members {
  width: 100%;
  display: flex;
  padding: 10px 0px;
}

.members .member-detail {
  align-content: center;
  width: 85px;
  font-weight: bold;
}

.members .member-detail .member {
  color: rgba(0, 0, 0, 1);
  font-size: 18px;
}

.members .member-detail .price {
  color: rgba(0, 0, 0, 1);
  position: relative;
  font-size: 14px;
}

.members .member-detail .age {
  color: rgba(99, 99, 99, 1);
  position: relative;
  font-size: 12px;
  text-align: right;
}

.members .counter {
  flex: 1;
}

.counter .symbol {
  border-radius: 40%;
  color: #ffffff;
  background-color: rgb(86, 172, 221);
  font-weight: bold;
  font-size: 20px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  border: #f0f0f0;
}

.counter .symbol:active {
  transform: scale(1);
  box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, .2);
}

.tips {
  width: 32%;
  background-color: rgb(195, 223, 240);
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
  position: relative;
  word-wrap: normal;
}

.select-area {
  flex: 1;
  width: fit-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.members-select {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/*選擇地點*/
.location {
  position: relative;
  width: 100%;
  text-align: center;
}

#autocomplete-input {
  width: 65%;
  height: 30px;
  display: flex;
}

.location-area {
  margin-top: 15px;
  justify-items: center;
}

#map {
  width: 65%;
  /* 調整地圖容器的寬度 */
  height: 350px;
  /* 調整地圖容器的高度 */
  margin-top: 20px;
}

/*選擇交通工具*/
.trans-area {
  padding-top: 5%;
  position: relative;
  justify-items: center;
}

.trans {
  display: flex;
  padding: 10px 0px;
  font-weight: bold;
}

.trans-detail {
  align-content: center;
  width: 120px;
  display: flex;
}

.distance {
  margin-left: 10px;
  align-content: center;
}

.box {
  zoom: 150%;
}

.tool {
  color: rgba(0, 0, 0, 1);
  font-size: 16px;
}

.trans-icon {
  width: 20px;
  height: 20px;
}

.limit {
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
}

.hint {
  color: rgba(0, 0, 0, 1);
  font-size: 14px;
  position: relative;
  word-wrap: normal;
  padding-left: 5%;
}

/*條件篩選*/
.gender-language {
  padding-top: 5%;
  position: relative;
  text-align: center;
}

.select-condition {
  color: rgba(60, 128, 180, 1);
  font-size: 20px;
  font-weight: bold;
  /* display: flex; */
  /* justify-items: center; */
}

.farther {
  color: rgba(99, 99, 99, 1);
  font-size: 14px;
  padding-left: 20px;
}

.gender {
  color: rgba(127, 189, 236, 1);
  position: relative;
  font-size: 18px;
  padding: 20px 0px 10px 0px;
}

.text {
  color: rgba(0, 0, 0, 1);
  font-size: 16px;
  padding-right: 3%;
}

.language {
  color: rgba(127, 189, 236, 1);
  position: relative;
  font-size: 18px;
  padding: 20px 0px 10px 0px;
}

.price-text {
  color: rgba(127, 189, 236, 1);
  position: relative;
  font-size: 18px;
  padding: 20px 0px 10px 0px;
}

.guideprice {
  color: rgba(127, 189, 236, 1);
  position: relative;
  font-size: 18px;
  padding: 20px 0px 10px 0px;
}

.search {
  height: 50px;
  width: 100%;
  margin-top: 40px;
  background: rgba(91, 177, 216, 1);
  border-radius: 10px;
  cursor: pointer;
  border: #f0f0f0;
}

.search-text {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
}

/*導遊總攬*/
.footer {
  padding: 0% 25% 10% 25%;
  height: auto;
}

.tourism {
  margin-top: 50px;
  /* display: flex; */
  margin: 50px 0px;
}

.tourguide {
  padding: 0% 25%;
  height: auto;
}

.name-area {
  display: flex;
  align-items: center;
  margin: 10px 0px;
}

.tourism_detail {
  /* width: fit-content; */
  display: flex;
}

.name-bg {
  width: auto;
  height: auto;
  background: rgba(156, 200, 227, 1);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  display: flex;
  overflow: hidden;
}

.name {
  color: rgba(255, 255, 255, 1);
  font-size: 22px;
  padding: 5px;
}

.common {
  display: flex;
  align-items: center;
  margin: 10px 0px;
}

.flag {
  width: 37px;
  height: 25px;
  margin-left: 1%;
}
.lang-icon {
  width: 8%;
  height: 8%;
  margin-left: 1px;
}

.star {
  width: 20px;
  height: 20px;
}

.specific-price {
  font-size: 16px;
}

.comment {
  color: rgba(125, 169, 197, 1);
  margin-left: 1%;
}

.guide-title {
  color: rgba(125, 169, 197, 1);
  display: flex;
  align-items: center;
  margin: 10px 0px;
  word-wrap: normal;
  font-size: 16px;
}

.introduce {
  color: rgba(106, 106, 106, 1);
  font-family: Inter;
  font-weight: Medium Italic;
  font-size: 14px;
  max-height: 130px;
  overflow: hidden;
  max-width: 732px;
}

.more {
  color: rgba(125, 169, 197, 1);
  font-size: 14px;
  padding-right: 3%;
  text-align: right;
  display: none;
}

.selfIntroduction {
  display: block;
  max-height: none;
}

.introduce.expanded .more {
  display: block;
}

.button {
  padding: 1% 20%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.reserve {
  width: 140px;
  height: 35px;
  background: rgba(156, 200, 227, 1);
  border-radius: 10px;
  align-items: center;
  display: flex;
  padding-left: 1%;
  cursor: pointer;
  justify-content: center;
  border: #f0f0f0;

}

.btn-reserve {
  color: rgba(255, 255, 255, 1);
  font-family: Inter;
  font-weight: Medium Italic;
  font-size: 18px;
}

.more-info {
  width: 140px;
  min-height: 35px;
  color: rgba(106, 106, 106, 1);
  border-radius: 10px;
  align-items: center;
  display: flex;
  padding-left: 1%;
  cursor: pointer;
  justify-content: center;
  border: 1px solid rgba(155, 155, 155, 1);
}

.btn-more {
  color: rgba(106, 106, 106, 1);
  font-family: Inter;
  font-weight: Medium Italic;
  font-size: 18px;
}

.photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  margin-left: 1%;
}

/* Footer 样式 */
.footer {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  /* 渐变背景 */
  color: #fff;
  /* font-family: 'Inter', sans-serif; */
  padding: 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* max-width: 100%; */
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
  padding-inline: 10%;
}

.footer-left .footer-links {
  display: flex;
  column-gap: 100px;
}

/* 左侧部分：關於 Playful Tours */

.footer-left {
  min-width: 50%;
}

.footer-left h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #f1c40f;
  text-transform: uppercase;
}

.footer-left ul {
  list-style: none;
  padding: 0;
}

.footer-left ul li {
  margin: 8px 0;
}

.footer-left ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-left ul li a:hover {
  color: #f1c40f;
  text-decoration: underline;
  transform: scale(1.05);
}

/* 右侧部分：付款方式 */
.footer-right h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #f1c40f;
  text-transform: uppercase;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.payment-icon {
  height: 50px;
  /* max-width: 60px; */
  width: auto;
}

#vnpay-icon {
  height: 40px;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.pagination li {
  margin: 0 5px;
}
.pagination a {
  text-decoration: none;
  padding: 6px 9px;
  border: 1px solid #ddd;
  color: #007bff;
}
.pagination a:hover {
  background-color: #f0f0f0;
}
.pagination .active a {
  font-weight: bold;
  background-color: #007bff;
  color: white;
}

/* 版权声明 */
.footer-copyright {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  /* color: #fff !important; */
  font-weight: lighter;
}


/* 在螢幕寬度小於768px時觸發 */
@media screen and (max-width: 768px) {

  .nav {
    flex-direction: column;
    gap: 10px;
    /* 增加間距 */
  }

  .nav-list {
    display: none;
    /* 預設隱藏選單 */

    background-color: white;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 20px;
  }

  .nav-item {
    margin: 10px 0;
    text-align: center;
  }

  .title .title-en {
    font-size: 16px;
    margin-top: 5px;

  }

  .condition {
    flex-direction: column;
    /* 垂直排列 */
    width: 100%;
  }

  .alternative {
    margin: 0%;
  }

  /* 顯示漢堡選單 */
  .nav-toggle {
    display: block;
  }

  /* 當選單被打開時顯示 */
  .nav-list.open {
    display: flex;
  }

  .left {
    min-width: 1%;
    justify-content: center;
    /* 讓內部內容置中 */
    text-align: center;
    flex-direction: column;
    margin-left: 5%;
  }

  .right {
    margin-top: 20px;
    /* 增加空間，讓右邊區塊與上方有點距離 */
    min-width: 10%;
    justify-content: center;
    /* 讓內部內容置中 */
    text-align: center;
    width: 95%;
    /* 占滿整個寬度 */
    flex-direction: column;
  }

  .select-area {
    width: max-content;
    flex-direction: column;
    /* 新增設定: 小於 768px 時改為縱向排列 */
    display: contents;
    align-items: center;
    /* 新增設定: 垂直置中 */
  }

  /*選擇人數*/

  .member-area {
    width: 100%;
    position: relative;
    padding-bottom: 5%;
  }

  .members-select {
    text-align: center;
    /* 新增設定: 置中文字 */
    margin-left: 0;
    /* 新增設定: 清除左邊的 margin */
    margin-top: 10px;
    /* 新增設定: 增加上方間距 */
    width: 100%;
    /* 新增設定: 確保寬度為100% */
  }

  .members .member-detail {
    align-content: center;
    flex: 1;
    font-weight: bold;
  }

  .tips {
    text-align: center;
    /* 新增設定: 置中文字 */
    margin-left: 0;
    /* 新增設定: 清除左邊的 margin */
    margin-top: 10px;
    /* 新增設定: 增加上方間距 */
    font-size: 2vw;
    width: 100%;
    /* 新增設定: 確保寬度為100% */
  }

  .location {
    flex: 1;
    justify-content: center;
    /* 讓內部內容置中 */
  }

  .location-area {
    flex: 1;
  }

  #selected-place-info {
    overflow:auto;
    font-size: 3vw;
    width: 85%;
  }

  #map {
    width: 100%;
    /* 調整地圖容器的寬度 */
    height: 350px;
    /* 調整地圖容器的高度 */
    margin-top: 20px;
  }

  .trans-area {
    flex-direction: column;
  }

  .trans {
    justify-content: center;
    /* 水平居中 */
  }

  .select-condition {
    display: flex;
    justify-content: center;
  }

  .tourguide {
    padding: 0% 10% 10% 10%;
  }

  .name-area {
    justify-content: center;
  }

  .tourism_detail {
    flex-direction: column;
  }

  .photo {
    margin: 0 auto 20px auto;
    /* 移除左右 margin 並設定圖片置中 */
    order: -1;
    /* 這裡強制將圖片移到最上方 */
  }

  .button {
    margin-top: 5%;
    padding: 1% 5%;
    font-size: 3vw;
    align-items: center;
    /* 使內容置中 */
    gap: 10%;
    /* 在小螢幕下，按鈕間距增大 */
  }

  .element.style {
    height: 30px;
  }

  .introduce {
    max-height: 120px;
  }

  /* Footer 部分 */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    margin-bottom: 20px;
  }

  .payment-methods {
    justify-content: center;
  }

  .specific-price {
    justify-content: center;
    display: flex;
    margin: 10px 0px;
  }
}