/*
Theme Name: TB Child
Text Domain: tb-child
Version: 0.1.0
*/

body {
  background: var(--tb-bg);
  color: var(--tb-text);
  font-family: 'Noto Serif TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gap-6 {
  gap: 30px;
}

.button {
  border: 1px solid var(--deep-blue);
  border-radius: 200px;
  padding: 24px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  transition-duration: 0.3s;
  cursor: pointer;
}

.button.btn-md {
  padding: 12.5px 20px;
  font-size: 16px;
}

.button.primary {
  background-color: var(--deep-blue);
  color: white;
}

.button:hover {
  box-shadow: 0px 4px 25px 0px #2F5D9A40;
}

.button.white {
  background-color: white;
  color: var(--deep-blue);
}

.tb-breadcrumb {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 10px 0;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-title);
}

.tb-breadcrumb .tb-breadcrumb-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: row;
}

.tb-breadcrumb .tb-breadcrumb-item a,
.tb-breadcrumb .tb-breadcrumb-item a:hover {
  color: var(--text-title);
  text-decoration: none;
}

.tb-breadcrumb .tb-breadcrumb-item.active {
  font-weight: 700;
  color: var(--deep-blue);
}

.tb-breadcrumb .tb-icon {
  font-size: 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 50px;
  margin-top: 50px;
  padding: 10px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 100%;
  height: 3px;
  background-color: var(--sage);
}

.tb-auth-page .tb-icon {
  color: var(--deep-blue);
  font-size: 24px;
}

.tb-side .tb-side-footer {
  padding-top: 0;
}

.tb-side .tb-side-logout {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12.5px 20px;
  justify-content: start;
}

.tb-side .tb-side-logout .tb-icon {
  font-size: 24px;
  color: var(--deep-blue);
}

.tb-side .tb-side-nav {
  flex: 1;
}

.tb-side .tb-side-nav .tb-icon {
  font-size: 24px;
  color: var(--deep-blue);
}

.tb-side .tb-side-nav .tb-side-link {
  font-size: 16px;
  padding: 10px 20px;
  transition-duration: 0.3s;
  color: var(--text-title);
  font-weight: 400;
}

.tb-side .tb-side-nav .tb-side-link.is-active .tb-icon,
.tb-side .tb-side-nav .tb-side-link.is-active {
  color: white;
}

.tb-side .tb-side-nav .tb-side-link:hover {
  text-decoration: none;
  box-shadow: 0px 4px 25px 0px var(--light-sky);
}

.trip-layout__row--list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trip-layout__row--list .trip--item {
  display: grid;
  grid-template-columns: 450px auto;
}

.trip--item .trip--image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 450 / 253;
}

.trip--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trip--content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  color: var(--secondary-text);
}

.trip--content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-title);
}

#my-page {
  display: inline-flex;
  flex-direction: column;
  margin: 0 !important;
  width: 100% !important;
  max-width: unset !important;
  padding: 0 !important;

}

#my-page+nav.navbar {
  display: none;
}

#my-page .tb-card {
  margin: 50px 30px 0 0;
  padding: 50px 30px;
  border-radius: 10px;
  flex: 1;
  margin-left: 290px;
}

#my-page .tb-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px;
}

#my-page .tb-profile-avatar .avatar-container {
  width: 150px;
  height: 150px;
  border-radius: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#my-page .tb-profile-avatar .avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#my-page .tb-label2 {
  font-size: 18px;
  line-height: 1.5;
}

#my-page .tb-value {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.5;
}

#my-page .account-info__content {
  display: flex;
  flex-direction: column;
}

#my-page .tb-profile-actions .tb-btn {
  font-size: 14px;
  transition-duration: 0.3s;
  padding: 5px 20px;
}

#my-page .tb-profile-actions .tb-btn:hover {
  text-decoration: none;
  box-shadow: 0px 4px 25px 0px var(--light-sky);
}

#my-page .tb-profile-actions .tb-icon {
  font-size: 24px;
  color: var(--deep-blue);
}

.navbar {
  margin-bottom: 0;
}

/* Trip Tags */
.trip__tag {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 10px;
}

.trip__tag--label {
  font-weight: 600;
  color: var(--text-title);
  font-size: 16px;
}

.trip__tag--list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trip__tag--item {
  display: inline-block;
  padding: 10px 20px;
  color: var(--sage);
  text-decoration: none;
  border: 1px solid var(--sage);
  border-radius: 200px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  transition: all 0.3s ease;
}

.trip__tag--item:hover {
  background-color: var(--sage);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.trip__review {
  text-align: center;
}

.trip__review--container {
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  width: 800px;
  max-width: 100%;
  flex-direction: column-reverse;
  align-items: flex-end;
}

.trip__review--list {
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  font-size: 16px;
  color: var(--secondary-text);
}

.trip__review--item {
  padding-top: 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
}

.trip__review--item:not(:first-child) {
  border-top: 1px solid var(--divider);
}

.trip__review .review__header {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  gap: 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-title);
}

.trip__review--item.review-to-hide {
  display: none;
}

.trip__review--container input#show-all-reviews {
  display: inline-block;
  height: 45px;
  position: relative;
  border: 1px solid transparent;
  outline: none;
  width: 150px;
  float: right;
  cursor: pointer;
}

input#show-all-reviews:checked~.trip__review--list .review-to-hide {
  display: inline-flex;
}

input#show-all-reviews:before {
  content: '看更多內容 →';
  border: 1px solid var(--deep-blue);
  border-radius: 200px;
  padding: 10px 20px;
  color: var(--deep-blue);
  font-size: 16px;
  font-weight: 700;
  position: absolute;
  background-color: white;
  right: 0;
}

.trip__review--item .tb-icon {
  color: var(--yellow);
}

.wishlist-love-button {
  position: fixed;
  right: 80px;
  width: 80px;
  height: 80px;
  display: inline-flex;
  display: none;
  align-items: center;
  justify-content: center;
  bottom: 80px;
  border-radius: 200px;
  background-color: var(--deep-blue);
  box-shadow: 0px 4px 25px 0px #2F5D9AA6;
  cursor: pointer;
  color: white;
  font-size: 30px;
  transition-duration: 0.3s;
}

.wishlist-love-button.is-saved {
  animation: heartbeat 1s ease-in-out;
}

.button {
  border-radius: 200px;
  border: 2px solid var(--deep-blue);
  padding: 24px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  transition-duration: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.button.blue-btn {
  background-color: var(--deep-blue);
  color: white;
}

.button.white-btn {
  background-color: white;
  color: var(--deep-blue);
}

.button.cancel-btn {
  background-color: white;
  color: var(--text-title);
  border: 2px solid var(--divider);
}

.trip-card {
  display: inline-flex;
  gap: 18px;
  flex-direction: column;
  width: 100%;
}

.trip-card .trip-card__image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 370/208;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.trip-card .trip-card__image a {
  display: inline-block;
  width: 100%;
}

.trip-card .trip-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trip-card .trip-card__no-image {
  width: 100%;
  height: 100%;
  min-height: 208px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid var(--divider);
  color: var(--secondary-text, #888);
  border-radius: 10px;
  font-size: 48px;
}

.trip-card .trip-card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}

.trip-card .trip-card__category {
  font-size: 14px;
  color: var(--sage);
  font-weight: 500;
}

.trip-card .trip-card__title a {
  color: var(--text-title);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.trip-card .trip-card__excerpt {
  font-size: 12px;
  color: var(--secondary-text);
}

.trip-card .trip-card__tag-list {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  max-width: 90%;
  flex-wrap: wrap;
  gap: 10px;
}

.trip-card .trip-card__tag {
  background-color: var(--light-sky);
  opacity: 0.85;
  color: var(--text-title);
  border-radius: 200px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1;
}

.trip-slide {
  padding: 10px 0;
}

.dashed-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0;
  padding: 10px;
  position: relative;
  background-image: url('assets/images/dashed.png');
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto;
}

/* .dashed-title:before {
  width: 100%;
  height: 0.5px;
  bottom: 0;
  left: 0;
  content: '';
  position: absolute;
  transform: translateY(-50%);
  background-image: linear-gradient(to right, var(--sage) 50%, transparent 50%);
  background-size: 12px;
} */

.trip__itinerary--day .dashed-title:before {
  height: 1.5px;
}

.all-trips {
  text-align: right;
  margin-top: 20px;
}

.all-trips .tb-icon {
  font-size: 24px;
}

.booking-button-area {
  position: fixed;
  bottom: 0;
  width: 100vw;
  background-color: var(--deep-blue);
  padding: 27px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

.booking-button-area .process-to-booking-page {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 10px 20px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  /* gap: 10px; */
  /* height: 52px; */
}

.booking-button-area .process-to-booking-page:hover {
  box-shadow: 0px 4px 25px 0px #2F5D9A40;
  text-decoration: none;
}

.booking-button-area .process-to-booking-page .tb-icon {
  color: var(--yellow);
  font-size: 24px;
  animation: star-roll-highlight 5s infinite;
}

.booking-button-area .process-to-booking-page:hover .tb-icon {
  animation: star-roll 3s infinite;
}

.trip__youtube-container {
  --space: 30px;
}

.theatre-container {
  aspect-ratio: 1170/658;
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--space);
}

.trip__youtube-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.trip__youtube-list {
  display: grid;
  grid-gap: var(--space);
  margin-bottom: 20px;
}

.trip__youtube-thumb {
  aspect-ratio: 270/479;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.trip__youtube-thumb iframe {
  width: 100%;
  height: 100%;
  /* cursor: pointer;
  pointer-events: none; */
}

.trip__youtube-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 20px;
}

.trip__youtube-description {
  margin: 20px 0;
  font-size: 16px;
  color: var(--secondary-text);
}

.trip__youtube-description strong {
  font-weight: 700;
  font-size: 24px;
  color: var(--text-title);
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes star-roll {
  0% {
    transform: scale(1.5) rotate(0deg);
  }

  100% {
    transform: scale(1.5) rotate(360deg);
  }
}

@keyframes star-roll-highlight {

  0%,
  70% {
    transform: scale(1) rotate(0deg);
  }

  80% {
    transform: scale(1.8) rotate(360deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Language Switcher */
footer {
  /* padding-bottom: 60px; */
}

.footer__switch-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.footer__switch-lang .lang-switcher {
  background: none;
  border: none;
  color: var(--text-title);
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  border-radius: 4px;
  /* opacity: 0.6; */
}

.footer__switch-lang .lang-switcher:hover {
  /* opacity: 1; */
  font-weight: 700;
}

.footer__switch-lang .lang-switcher.active {
  /* font-weight: bold; */
  opacity: 1;
  color: var(--deep-blue);
  border: 1px solid #B9D3EA;
}

.footer__switch-lang .lang-separator {
  color: var(--text-title);
  opacity: 0.4;
}

#my-page .account-info__content .tb-value {
  margin-top: 20px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .trip-card .trip-card__title a {
    font-size: 16px;
  }

  .trip-card__excerpt {
    font-size: 10px;
  }

  #my-page .tb-profile-avatar {
    margin-left: 0;
  }

  .trip-layout__row--list .trip--item {
    display: block;
  }

  .trip__youtube-list {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  #my-page .account-info__content {
    display: block;
  }

  #my-page .account-info__content .tb-value {
    text-align: left;
  }
}

.tb-tour-cate {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-title);
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.tb-tour-cate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(to right,
      var(--sage) 0,
      var(--sage) 6px,
      transparent 6px,
      transparent 12px);
}

.trip__cancellation--content {
  border: 1px solid #E8E5E1;
  padding: 20px;
  border-radius: 10px;
}