* {
  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);
}

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

.nav {
  display: flex;
}

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

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

/*搜尋導遊區塊  切分左右兩區*/
.main {
  margin-top: 100px;
}

.breadcrumb-area {
  height: 100px;
  color: rgb(175, 175, 175);
  padding: 0% 18%;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
}

.goback {
  align-content: center;
  text-align: end;
  text-decoration: none;
}

.footprints {
  display: flex;
  align-items: center;
  list-style: none;
}

.condition {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
}

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

/*左側*/
.left {
  width: 57%;
  padding-left: 22%;
  height: auto;
  min-width: 600px;
}

/* 地區選單-S */
#areaSelect {
  /* border: 1px solid red; */
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-block: 1rem;
  justify-content: center;
}

.select-container {
  position: relative;
  width: clamp(300px, 100%, 300px);

  display: flex;
  color: #6AB0D3;
}

.select-container span {
  font-size: 1rem;
  /* color: blue; */
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-select {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid #6AB0D3;
  border-radius: 8px;
  background-color: white;
  appearance: none;
  transition: all 0.3s ease;
}

.custom-select:hover {
  border-color: #6AB0D3;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.custom-select:focus {
  outline: none;
  border-color: #6AB0D3;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6AB0D3;
  font-size: 0.8em;
}

#areaSelect button {
  border: 0;
  border-radius: 10px;
  background-color: #9cc8e3;
  padding: 5px;
  font-size: clamp(20px, 1.5vw, 25px);
  cursor: pointer;
}

/* 地區選單-E */


.photo-sticker {
  width: 80%;
}

.photo {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  margin-left: 1%;
  object-fit: cover;
}

.personnel {
  margin-top: 50px;
}

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

.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;
}

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

.lang-icon {
  width: 13%;
  height: 13%;
  margin-left: 1px;
}

.area {
  color: blue;
  font-size: 20px;
}

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

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

.comment {
  color: rgba(125, 169, 197, 1);
  margin-left: 1%;
  font-size: 20px;
  font-weight: bold;
}

.sexual-language {
  margin: 10px 0px;
  color: rgba(99, 99, 99, 1);
  font-size: 18px;
}

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

.introduce {
  margin: 20px 0px;
}

/* 頁籤的樣式 */
.tabs {
  display: flex;
  /* border-bottom: 2px solid #ccc; */
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid rgba(156, 200, 227, 1);
  border-bottom: none;
  border-radius: 10px 10px 0px 0px;
  width: 35%;
  text-align: center;
  font-size: 18px;
  color: rgba(99, 99, 99, 1);
}

.tab.active {
  background-color: rgba(156, 200, 227, 1);
  color: white;
}

/* 頁籤內容區域 */
.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid rgba(156, 200, 227, 1);
  border-radius: 0px 20px 20px 20px;
  height: 250px;
  font-size: 16px;
}

.tab-content.active {
  display: block;
}

.article {
  max-height: 210px;
  overflow: auto;
  white-space: pre-wrap;
}

.album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
}

.photo-area {
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.album-photo {
  border-radius: 10px;
  width: 150px;
  height: 150px;
  max-width: 150px;
  /* 設置最大寬度以保持一致性 */
  max-height: 150px;
  /* 設置最大高度 */
  object-fit: cover;
  /* cursor: pointer; */
}

.level-area {
  margin: 10px 0px;
}

.rating {
  font-size: 30px;
  color: rgba(99, 99, 99, 1);
  font-weight: bold;
  letter-spacing: 3px;
}

.feedback-star {
  width: 30px;
  width: 30px;
}

.feedback {
  margin-top: 5px;
  font-size: 20px;
  color: rgba(99, 99, 99, 1);
  font-weight: bold;
  letter-spacing: 1px;
}

.message-board {
  margin-top: 40px;
  max-height: 700px;
  overflow: auto;
}

.message {
  display: flex;
  margin-bottom: 50px;
}

.per-photo-area {
  margin: 0px 10px;
  width: 15%;
  min-width: 90px;
}

.per-photo {
  border-radius: 50%;
  height: 90px;
  width: 90px;
}

.content {
  width: 70%;
  overflow: visible;
}

.messager {
  font-size: 16px;
}

.date {
  color: rgba(99, 99, 99, 1);
  font-size: 16px;
  margin: 7px 0px;
}

.impression {
  font-weight: bold;
  font-size: 16px;
  max-height: 150px;
  overflow: visible;
}

.share-photo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 5px;
  width: 80%;
  margin-top: 15px;
}

.impression-photo {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  object-fit: cover;
}

.impression-photo-more {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  display: none;
}

.mask {
  position: relative;
  opacity: 0.5;
  display: inline-block;
  cursor: pointer;
}

.mask-text {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #fff;
  position: absolute;
}

/*右側*/
.right {
  width: 43%;
  height: auto;
  margin-left: 3%;
}


.select-detail {
  padding: 10px 0px;
  color: rgba(99, 99, 99, 1);
  font-size: 14px;
  position: relative;
  word-wrap: normal;

}

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

/* 日曆選擇器 */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
  background: #4caf50 !important;
  /* 你想要的顏色 */
  color: #fff !important;
  border-color: #4caf50 !important;
}


/* 服務類型+時段-S------------------------------- */
.serviceTypeBox {
  margin: 10px auto;
  display: flex;
  gap: 10px;
}

.serviceTypeBox label {
  position: relative;
  flex-grow: 1;
}

/* 時段 */
.rangeBox {
  /* border: 1px solid red; */
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rangeBox label {
  /* border: 1px solid red; */
  position: relative;
  width: 100%;
  height: 100%;
}

.serviceTypeBox label input[type="radio"] ,
.rangeBox label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.serviceTypeBox label span ,
.rangeBox label span {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  padding: 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.serviceTypeBox label input[type="radio"]:checked+span ,
.rangeBox label input[type="radio"]:checked+span {
  background-color: #4caf50;
  color: white;
}
.serviceTypeBox label input[type="radio"]:disabled+span ,
.rangeBox label input[type="radio"]:disabled+span {
  /* background-color: #eee; */
  /* color: red; */
  opacity: 0.5;
  text-decoration: line-through;
  cursor: no-drop;
}

/* 服務類型+時段-E */
/* 服裝-S */
.clothingBox {
  margin-top: 10px;
}

.clothingBox .inputBox {
  /* border: 1px solid red; */
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.clothingBox .inputBox label {
  /* border: 1px solid #4CAF50; */
  width: 45%;
  position: relative;
}

.clothingBox .inputBox label input {
  width: 0;
  height: 0;
  position: absolute;
  top: 0%;
  left: 0%;
}

.clothingBox .inputBox label span {
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;

}

.clothingBox .inputBox label>input:checked~span {
  background-color: #4caf50;
  color: white;
}

/* 服裝-E */

.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: 10px;
  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: 1rem;
  font-size: 1rem;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  /* 允許換行 */
  justify-content: space-between;
  margin-top: 20px;
}

.time-slots div {
  flex: 1 1 30%;
  /* 自適應寬度，最低 30% */
  margin: 5px;
  /* 添加間距 */
}

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

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

.time-slots ul.disabled {
  cursor: not-allowed;
}

.time-slots ul.disabled li {
  background-color: #e0e0e0;
  color: #888;
  pointer-events: none;
}

.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;
}

.go-reservtion {
  height: auto;
  width: 100%;
  padding: 10px;
  /* 添加內邊距 */

  margin-top: 40px;
  background: rgba(91, 177, 216, 1);
  border-radius: 10px;
  cursor: pointer;
  border: #f0f0f0;
}

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

/* 基本樣式 */
.datetime {
  margin-left: 5%;
  width: 279px;
}

/* 中等設備 */
@media (max-width: 768px) {
  .breadcrumb-area {
    padding: 0% 5%;
    font-size: 16px;
    flex-direction: column;
    align-items: flex-end;
    height: auto;
  }

  .main {
    margin-top: 125px;
  }

  .album {
    justify-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .datetime {
    margin-left: 0;
    /* 消除左邊距 */
    width: 90%;
    /* 增加寬度 */
  }

  .condition {
    flex-direction: column;
    /* 垂直排列 */
    align-items: center;
    /* 置中 */
  }

  .left,
  .right {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    min-width: auto;
    margin-left: 0px;
  }

  .calendar-header {
    flex-direction: column;
    /* 垂直排列 */
    align-items: center;
    /* 置中 */
  }

  .time-slots {
    flex-direction: column;
    /* 垂直排列時間選項 */
    align-items: center;
    /* 置中 */
  }

  .time-slots div {
    width: 100%;
    /* 時間選項寬度全佔 */
  }

  .photo-area {
    margin-bottom: 20px;
  }

  .common {
    justify-content: center;
  }

  .sexual-language {
    text-align: center;
  }

  .guide-title {
    justify-content: center;
  }

  .photo-sticker {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .area {
    justify-content: center;
    display: flex;
  }

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


/* 手機版 (400px 以下) */
@media (max-width: 400px) {
  .header-nav {
    padding: 10px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .condition {
    flex-direction: column;
  }

  /* .left, .right {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
        min-width: auto;
    } */

  .photo {
    width: 200px;
    height: 200px;
  }

  /* .album {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    } */

  .album-photo {
    width: 100%;
    height: 100%;
  }

  .message {
    flex-direction: column;
  }

  .per-photo-area {
    width: 100%;
    text-align: center;
  }

  .content {
    width: 100%;
  }

  .share-photo {
    grid-template-columns: repeat(2, 1fr);
  }

  .impression-photo,
  .impression-photo-more {
    width: 100%;
    height: auto;
  }

  .datetime {
    width: 100%;
    margin-left: 0;
  }

  .calendar div {
    padding: 5px;
    font-size: 12px;
  }

  .time-slots div {
    flex: 1 1 100%;
  }

  .go-reservtion {
    width: 100%;
  }

  .photo-area {
    height: auto;
    margin-bottom: 20px;
  }

  .right {
    margin-left: 0%;
  }

  /* 更新的樣式 */
  .time-slots {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    white-space: nowrap;
  }

  .time-slots>div {
    flex: 0 0 auto;
    width: 20%;
    min-width: 100px;
    padding: 0 2px;
    box-sizing: border-box;
  }

  .time-slots h3 {
    font-size: 13px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .time-slots ul {
    padding-left: 0;
    margin: 0;
  }

  .time-slots li {
    font-size: 12px;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .per-photo {
    display: flex;
    justify-content: flex-start;
  }

  .messager {
    margin: 7px 0px;
  }
}