/* info container */
section.info {
  margin-top: 50px;
  padding: 0;
}
@media (min-width: 768px) {
  section.info {
    margin-bottom: 50px;
  }
  section.container.info {
    max-width: 960px;
  }
}
.info {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
/* carousal img */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  margin-top: 50px;
}

.carousel-container .slide {
  flex: 0 0 100%;
  transition: transform 0.5s ease-in-out;
}

/* 標題 */
.carousel-container .slide .title {
  color: white;
  position: relative;
  bottom: 70px;
  pointer-events: none;
}
.filters {
  margin-top: -70px;
}

.carousel-container .slide p span {
  font-size: 0.8rem;
}
.carousel-container .slide p {
  font-size: 1.2rem;
}
/* 圖片 */
img {
  width: 100%;
  height: auto;
}

/* 左右箭頭 */
.prev-button,
.next-button {
  background-color: unset;
  color: white;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 50px;
  outline: none;
}

.next-button {
  right: 10px;
}

.prev-button {
  left: 10px;
}

.prev-button::before,
.next-button::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background-color: white;
}

.prev-button::after,
.next-button::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background-color: white;
}

.prev-button::before {
  left: 5px;
  transform: rotate(45deg);
  top: 32px;
}

.prev-button::after {
  left: 5px;
  transform: rotate(135deg) !important;
}

.next-button::before {
  left: 5px;
  transform: rotate(-45deg);
  top: 32px;
}

.next-button::after {
  left: 5px;
  transform: rotate(-135deg) !important;
}

@media (min-width: 768px) {
  /* 標題 */
  .carousel-container .slide .title {
    bottom: 80px;
  }
  .filters {
    margin-top: -80px;
  }
  .carousel-container .slide p {
    font-size: 1.4rem;
  }
  .carousel-container .slide p span {
    font-size: 1rem;
  }
  /* 左右箭頭 */
  .next-button {
    right: 15px;
  }

  .prev-button {
    left: 15px;
  }
}

@media (min-width: 1200px) {
  .carousel-container .slide .title {
    bottom: 130px;
  }
  .filters {
    margin-top: -100px;
  }

  /* 標題 */
  .carousel-container .slide p {
    font-size: 2rem;
  }
  .carousel-container .slide p span {
    font-size: 1.2rem;
  }
  /* 左右箭頭 */
  .next-button {
    right: 20px;
  }

  .prev-button {
    left: 20px;
  }
  .prev-button::after,
  .next-button::after,
  .prev-button::before,
  .next-button::before {
    width: 20px;
  }

  .prev-button::after,
  .next-button::after {
    top: 36%;
  }
}

/* 圖片比例統一 */
.carousel-container .slide picture,
.carousel-container .slide img {
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
  object-position: 50% 50%; /* 預設置中 */
}

/* vp0 ~ vp100: 以Y軸百分比為中心 */
.vp0 {
  object-position: 50% 0% !important;
}
.vp10 {
  object-position: 50% 10% !important;
}
.vp20 {
  object-position: 50% 20% !important;
}
.vp25 {
  object-position: 50% 25% !important;
}
.vp30 {
  object-position: 50% 30% !important;
}
.vp40 {
  object-position: 50% 40% !important;
}
.vp50 {
  object-position: 50% 50% !important;
}
.vp60 {
  object-position: 50% 60% !important;
}
.vp70 {
  object-position: 50% 70% !important;
}
.vp75 {
  object-position: 50% 75% !important;
}
.vp80 {
  object-position: 50% 80% !important;
}
.vp90 {
  object-position: 50% 90% !important;
}
.vp100 {
  object-position: 50% 100% !important;
}

/* 輪播指示器 */
.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 2;
  margin: 0;
  width: auto;
  pointer-events: auto;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}
.carousel-dot.active {
  width: 15px;
  height: 6px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  .carousel-dot.active {
    width: 30px;
    height: 10px;
  }
}

.prev-button:focus,
.next-button:focus,
.prev-button:active,
.next-button:active {
  outline: none;
  box-shadow: none;
  border: none;
}
/* info title section */
div.info-title {
  margin: 1.5rem 0;
  padding: 0 15px;
}
h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* 評分區塊 */
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 0.3rem;
}
.stars {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1.2rem;
}
.star {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background: none;
  position: relative;
}
.star svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(45deg);
}
.star .star-bg {
  stroke: #ffd600;
  stroke-width: 1;
  fill: #fff;
}
.star .star-fill {
  fill: #ffd600;
  stroke: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  clip-path: inset(0 0 0 0);
}
.score {
  font-size: 1.1rem;
}
.review-count {
  color: #888;
  font-size: 1rem;
}
.info-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  color: #7c7c80;
  font-size: 0.8em;
  border: 0.5px solid #7c7c80;
  cursor: pointer;
  transition: background 0.2s;
}
.tooltip-text {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2.2em;
  background: #f5f5f7;
  color: #111;
  font-size: 0.8rem;
  padding: 0.5em 1em;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
}
.info-tooltip:hover .tooltip-text,
.info-tooltip:focus-within .tooltip-text {
  display: block;
}

div.rating-row .stars {
  margin: 0 10px;
}

.share-wrap {
  position: relative;
}
.share-wrap-bottom {
  height: 120px;
  margin-top: 2rem;
}

#shareMenu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 99;
  min-width: 120px;
}

#shareMenuBottom {
  position: relative;
  width: 120px;
  margin: 0 auto;
  top: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 99;
}

#shareMenu a,
#shareMenuBottom a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#shareMenu a:hover,
#shareMenuBottom a:hover {
  background: #f5f5f7;
}

/* 複製連結按鈕的淡入淡出效果 */
#copyLink,
#copyLinkBottom {
  transition: opacity 0.3s ease, color 0.3s ease;
}

#copyLink.copied,
#copyLinkBottom.copied {
  opacity: 0.7;
  color: #007aff;
}

@media (max-width: 768px) {
  a.button-sub {
    padding: 5px 10px;
    border-radius: 10px;
  }
}
.place-flex-wrap {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 0 15px;
}
.place-main-content {
  flex: 2 1 0;
  min-width: 0;
}
.place-flex-wrap h2 {
  margin-top: 2rem;
}
.place-info-card {
  flex: none;
  max-width: 350px;
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(60, 60, 60, 0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  /* 移除高度同步，讓高度自動 */
}
.place-info-card h2 {
  font-size: 1.4rem;
  margin: 0 0 1.2rem 0;
}
.place-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}
.place-info-list li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
}
.place-info-list strong {
  min-width: 4.2em;
  font-weight: 400;
  color: #636366;
}
.place-info-card .button {
  margin-top: 0.7rem;
  display: inline-block;
}
.place-tags {
  margin: 1.5rem 0 2rem 0;
}
.place-tags .tag {
  display: inline-block;
  background: #f2f2f7;
  color: #636366;
  border-radius: 12px;
  padding: 0.3em 1em;
  margin: 0 0.5em 0.5em 0;
  font-size: 0.98em;
}
section.nearby-section {
  padding: 0 15px;
  margin-bottom: 4rem;
}
.recommend-carousel {
  position: relative;
  margin-bottom: 2rem;
}
.recommend-carousel-inner {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}
.recommend-card {
  min-width: 260px;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(60, 60, 60, 0.07);
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.5s;
  cursor: pointer;
}
.recommend-card:hover {
  opacity: 0.7;
  transition: opacity 0.5s;
}
.recommend-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: 16px 16px 0 0;
  background: #f8f8f8;
  display: block;
}
.recommend-card .recommend-title {
  display: none;
}
.recommend-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}
.recommend-card .recommend-content {
  padding: 1rem 1rem 0.7rem 1rem;
}
.recommend-card .recommend-desc {
  font-size: 0.98rem;
  color: #636366;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 1.3rem;
  color: #636366;
  box-shadow: 0 2px 8px 0 rgba(60, 60, 60, 0.07);
}
.carousel-arrow.left {
  left: -18px;
}
.carousel-arrow.right {
  right: -18px;
}
@media (max-width: 996px) {
  .place-flex-wrap {
    flex-direction: column;
    gap: 0;
  }
  .place-info-card {
    max-width: 100%;
    margin-top: 3rem;
  }
  .recommend-carousel-inner {
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 5vw;
    width: 92vw;
    max-width: 92vw;
    margin-left: 0;
    margin-right: 0;
  }
  .recommend-card {
    min-width: 66.666vw;
    max-width: 90vw;
    flex: 0 0 66.666vw;
    scroll-snap-align: start;
  }
  .carousel-arrow {
    display: none !important;
  }
}
.recommend-card .recommend-title {
  display: block;
}
.recommend-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 16px 16px 0 0;
  background: #f8f8f8;
  display: block;
}
/* 支援 vpXX class 控制 object-position */
.recommend-card img.vp0 {
  object-position: 50% 0% !important;
}
.recommend-card img.vp10 {
  object-position: 50% 10% !important;
}
.recommend-card img.vp20 {
  object-position: 50% 20% !important;
}
.recommend-card img.vp25 {
  object-position: 50% 25% !important;
}
.recommend-card img.vp30 {
  object-position: 50% 30% !important;
}
.recommend-card img.vp40 {
  object-position: 50% 40% !important;
}
.recommend-card img.vp50 {
  object-position: 50% 50% !important;
}
.recommend-card img.vp60 {
  object-position: 50% 60% !important;
}
.recommend-card img.vp70 {
  object-position: 50% 70% !important;
}
.recommend-card img.vp75 {
  object-position: 50% 75% !important;
}
.recommend-card img.vp80 {
  object-position: 50% 80% !important;
}
.recommend-card img.vp90 {
  object-position: 50% 90% !important;
}
.recommend-card img.vp100 {
  object-position: 50% 100% !important;
}
.recommend-section h2 {
  margin-bottom: 1rem;
}
.recommend-section h3 {
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.recommend-section p {
  margin-bottom: 0.5rem;
}

/* 地圖容器樣式 */
.map-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.map-container iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.map-container iframe:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .map-container iframe {
    height: 250px;
  }
}
