/* 防止橫向滑動與縮放 */
html, body {
  width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #6F8F86;  /* 深莫蘭迪綠 */
  --accent-color: #A8C1A6;   /* 淺莫蘭迪綠 */
  --text-color: #333;        /* 深灰文字 */
  --bg-color: #F2F3F1;       /* 莫蘭迪暖灰底色 */
  --card-bg: #E6E8E3;        /* 卡片霧灰 */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Helvetica Neue", sans-serif;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 50px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  overflow: hidden;
}

.banner picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  
}

.banner picture.active {
  opacity: 1;
  z-index: 1;
  display: block;
}

.banner picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Hero Section */
.hero {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 20px 10px;
}

.hero h1 {
  font-size: 3em;
  margin: 0.3em 0;
}

/* Sections */
.section {
  padding: 20px 10px;
  text-align: center;
}

.rooms,
.explore {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  width: 300px;
  cursor: pointer;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 0.5em;
  margin: 0;
  background: var(--accent-color);
  color: white;
}

.card p {
  padding: 1em;
}

/* Modal Gallery */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.modal-img {
  max-width: 90%;
  max-height: 80vh;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 30px;
  transform: translateY(-50%);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Reviews */
.reviews {
  background-color: #fafafa;
  padding: 40px 20px;
  text-align: center;
}

.review-slider {
  position: relative;
  max-width: 600px;
  margin: auto;
  min-height: 100px;
}

.review {
  display: none;
  font-size: 1.1em;
  color: #444;
  text-align: left;
  transition: opacity 0.4s ease;
}

/* CTA */
.cta {
  text-align: center;
  margin: 40px 0;
}

.cta a {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9em;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* Floating Social Buttons */
.social-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.social-floating img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Check-in / FAQ */
.checkin-rules,
.faq-list {
  list-style: none;
  padding-left: 0;
  max-width: 700px;
  margin: 20px auto;
}

.checkin-rules li,
.faq-list li {
  padding: 12px 20px;
  line-height: 1.8;
  font-size: 1em;
  color: #444;
  border-radius: 8px;
  margin-bottom: 8px;
}

.checkin-rules li:nth-child(odd),
.faq-list li:nth-child(odd) {
  background-color: var(--card-bg);
}

.checkin-rules li:nth-child(even),
.faq-list li:nth-child(even) {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Double Image Layout */
.double-image {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
  padding-top: 20px;
}

.double-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Full House Plan Cards */
.plan-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  padding-top: 20px;
}

.plan-card {
  flex: 1 1 280px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.plan-card h3 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.6;
  color: #444;
}

/* RWD */
@media (max-width: 768px) {
  .rooms,
  .explore {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px 40px 15px 15px;
    z-index: 1000;
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  nav a {
    margin: 10px 0;
    text-align: right;
  }

  .two-column {
    flex-direction: column;
    gap: 20px;
  }

  .plan-card {
    width: 90%;
  }

  .banner {
    height: 60vh;
  }
}
 /* 手機照片全部顯示，左右留白 */

@media (max-width: 768px) {
  .banner {
    height: auto;
    aspect-ratio: 768 / 1000; /* 根據圖片比例建立容器高度 */
  }

  .banner picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* 手機hero大小 */
@media (max-width: 768px) {
  .hero {
    padding: 20px 15px; /* 上下空間縮小，左右維持適中 */
  }

  .hero h1 {
    font-size: 2em; /* 手機上標題字體縮小一點 */
  }
}

/* opening */

.intro-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #6F8F86;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1s ease 1.5s forwards;
}

.intro-content {
  text-align: center;
  color: white;
  animation: zoomIn 1.98s ease;
}


.intro-content img {
  width: 280px;
  margin-bottom: 24px;
}

.intro-content img {
  width: 60vw; /* 螢幕寬度 40% */
  max-width: 420px;
  margin-bottom: 24px;
}

.intro-content h1 {
  font-size: 2em;
  letter-spacing: 2px;
  margin: 0;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* google評論至於banner中 */

.banner-review {
  position: absolute;
  top: 8%; /* 調整垂直位置 */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* 半透明背景 */
  padding: 12px 20px; /* 上下左右內距 */
  border-radius: 12px;
  max-width: 600px; /* 最大寬度 */
  width: 90%; /* 小螢幕也能縮 */
  z-index: 2;
}

.review-slider .review {
  display: none;
  font-size: 1.2em;
  color: white;
  transition: opacity 0.5s ease;
}
.review-slider .review.active {
  display: block;
}

.review-title a {
  color: white;
  text-decoration: none;
}

.review-title a:hover {
  text-decoration: underline;
}

.review-title {
  white-space: nowrap;
}

