/* =============================================
   COMIC B&B — style.css
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:   #1B3A4B;
  --green:  #4A7C59;
  --cream:  #F5F0E8;
  --sand:   #D4B896;
  --ink:    #1A1A1A;
  --muted:  #6B6B6B;
  --white:  #FFFFFF;
  --overlay: rgba(27,58,75,0.55);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

  --nav-h: 72px;
  --inner: min(94vw, 1200px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
.serif { font-family: 'Noto Serif TC', serif; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-family: 'Noto Serif TC', serif; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-family: 'Noto Serif TC', serif; line-height: 1.3; font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-family: 'Noto Serif TC', serif; font-weight: 600; }
p  { font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.8; color: var(--muted); }

/* ---------- Utility ---------- */
.inner { width: var(--inner); margin: 0 auto; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-label {
  display: inline-block;
  font-size: 1rem;  /* was 0.8rem — minimum 16px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 560px; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-sand {
  background: var(--sand);
  color: var(--navy);
}
.btn-sand:hover { background: #c4a880; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================
   NAV
   ============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-en {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
.nav-logo-zh {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  letter-spacing: 0.08em;
}
#nav.scrolled .nav-logo-en { color: var(--navy); }
#nav.scrolled .nav-logo-zh { color: var(--muted); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--sand);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--white); }
#nav.scrolled .nav-links a { color: var(--muted); }
#nav.scrolled .nav-links a:hover { color: var(--navy); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.nav-phone svg { width: 16px; height: 16px; }
#nav.scrolled .nav-phone { color: var(--muted); }
.nav-book-btn { display: flex; align-items: center; justify-content: center;
  height: 40px;
  padding: 0 20px;
  background: var(--sand);
  color: var(--navy);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-book-btn:hover { background: #c4a880; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#nav.scrolled .nav-hamburger span { background: var(--navy); }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu a {
  font-size: 1.6rem;
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color var(--transition);
}
#mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu a:hover { color: var(--sand); }
#mobile-menu .mobile-book {
  margin-top: 16px;
  height: 56px;
  padding: 0 40px;
  background: var(--sand);
  color: var(--navy);
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s 0.35s, transform 0.4s 0.35s, background var(--transition);
}
#mobile-menu.open .mobile-book { opacity: 1; transform: translateY(0); }
#mobile-menu .mobile-book:hover { background: #c4a880; }
.menu-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--white);
  padding: 8px;
}
.menu-close svg { width: 28px; height: 28px; }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(27,58,75,0.4) 50%,
    rgba(27,58,75,0.7) 100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 10vw, 120px);
}
.hero-content .inner { position: relative; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-tag svg { width: 14px; height: 14px; }
.hero-title {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: clamp(32px, 5vw, 48px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 28px;
  background: var(--white);
}
.hero-arrows {
  display: flex;
  gap: 8px;
}
.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
}
.hero-arrow svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* =============================================
   REVIEWS — infinite marquee
   ============================================= */
#reviews { background: var(--cream); }
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.google-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.google-badge svg { width: 24px; height: 24px; }
.google-score { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.google-meta { font-size: 1rem; color: var(--muted); }
.star-row { color: #F4B400; display: flex; gap: 2px; }
.star-row svg { width: 16px; height: 16px; }

/* Marquee container */
.reviews-marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.reviews-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.reviews-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  width: 340px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-stars { display: flex; gap: 3px; color: #F4B400; margin-bottom: 16px; }
.review-stars svg { width: 18px; height: 18px; }
.review-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-size: 1rem; font-weight: 600; }
.review-date { font-size: 1rem; color: var(--muted); }

/* =============================================
   BRAND STORY
   ============================================= */
#story { background: var(--white); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}
.story-text p { margin-bottom: 20px; }
.story-text p:last-child { margin-bottom: 0; }
.story-venues {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.venue-card {
  border-left: 3px solid var(--green);
  padding-left: 20px;
}
.venue-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Noto Serif TC', serif;
}
.venue-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--sand);
}
.tl-item:last-child::before { display: none; }
.tl-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-top: 4px;
  text-align: right;
  position: relative;
}
.tl-year::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}
.tl-content { font-size: 1rem; color: var(--muted); padding-top: 4px; line-height: 1.6; }

/* =============================================
   FEATURES
   ============================================= */
#features { background: var(--cream); }
.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 100px);
}
.feature-item:last-child { margin-bottom: 0; }
.feature-item.reverse { direction: rtl; }
.feature-item.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature-img img { transition: transform 0.8s ease; }
.feature-img:hover img { transform: scale(1.04); }

/* Feature auto-carousel */
.feature-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.feature-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 1s ease;
}
.feature-carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.feature-carousel-slide img { transition: transform 8s ease; transform: scale(1.05); }
.feature-carousel-slide.active img { transform: scale(1); }
.feature-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.feature-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.feature-carousel-dot.active { background: var(--white); transform: scale(1.3); }
.feature-num {
  font-size: 4rem;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 12px;
}
.feature-title { margin-bottom: 16px; }
.feature-desc { margin-bottom: 24px; }
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pill svg { width: 14px; height: 14px; color: var(--green); }

/* =============================================
   NEARBY SECTION (standalone)
   ============================================= */
#nearby { background: var(--white); }
.nearby-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.nearby-tab {
  height: 38px;
  padding: 0 18px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--muted);
  transition: var(--transition);
  cursor: pointer;
}
.nearby-tab:hover { background: var(--sand); color: var(--navy); }
.nearby-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.nearby-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.nearby-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nearby-card-body {
  padding: 16px 18px;
}
.nearby-distance {
  font-size: 1rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.nearby-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Noto Serif TC', serif;
}
.nearby-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.nearby-card.hidden { display: none; }

/* Timeline fix */
.tl-item { grid-template-columns: 72px 1fr; }
.tl-year { font-size: 1rem; }

/* =============================================
   ROOMS
   ============================================= */
#rooms { background: var(--white); }
.rooms-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--muted);
  transition: var(--transition);
}
.filter-btn:hover { background: var(--sand); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card.hidden { display: none; }

/* Room card photo carousel */
.room-carousel {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.room-slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}
.room-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.room-carousel-prev,
.room-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}
.room-carousel-prev { left: 12px; }
.room-carousel-next { right: 12px; }
.room-carousel:hover .room-carousel-prev,
.room-carousel:hover .room-carousel-next { opacity: 1; }
.room-carousel-prev:hover,
.room-carousel-next:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.room-carousel-prev svg,
.room-carousel-next svg { width: 16px; height: 16px; }
.room-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.room-carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.room-carousel-dot.active { background: var(--white); transform: scale(1.3); }

.room-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(27,58,75,0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}
.room-tag.pet { background: rgba(74,124,89,0.9); }
.room-expand-hint {
  position: absolute;
  inset: 0;
  background: rgba(27,58,75,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}
.room-expand-hint svg { width: 40px; height: 40px; color: var(--white); }
.room-carousel:hover .room-expand-hint { opacity: 1; }

.room-body { padding: 24px; }
.room-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: 'Noto Serif TC', serif; }
.room-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--muted);
}
.room-meta span { display: flex; align-items: center; gap: 5px; }
.room-meta svg { width: 14px; height: 14px; }
.room-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--cream);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 1rem;
  color: var(--navy);
}
.amenity svg { width: 13px; height: 13px; color: var(--green); }
.room-actions {
  display: flex;
  gap: 10px;
}
.room-detail-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}
.room-detail-btn:hover { background: var(--navy); color: var(--white); }
.room-book-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}
.room-book-btn:hover { background: var(--green); }

/* =============================================
   ROOM MODAL
   ============================================= */
#room-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#room-modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
#room-modal.open .modal-box { transform: scale(1) translateY(0); }

.modal-gallery {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}
.modal-slide { width: 100%; height: 100%; flex-shrink: 0; cursor: zoom-in; }
.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}
.modal-prev { left: 16px; }
.modal-next { right: 16px; }
.modal-prev:hover, .modal-next:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.modal-prev svg, .modal-next svg { width: 20px; height: 20px; }
.modal-counter {
  position: absolute;
  bottom: 12px; right: 16px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 32px; }
.modal-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; font-family: 'Noto Serif TC', serif; }
.modal-subtitle { color: var(--muted); margin-bottom: 24px; font-size: 1rem; }
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.modal-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--ink);
}
.modal-feature svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.modal-desc { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.modal-actions {
  display: flex;
  gap: 12px;
}
.modal-actions .btn { flex: 1; justify-content: center; }

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}
#lightbox.open .lightbox-img-wrap img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* =============================================
   BOOKING
   ============================================= */
#booking {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#booking::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(74,124,89,0.15);
  pointer-events: none;
}
.booking-inner { position: relative; z-index: 1; }
.booking-inner .section-label { color: var(--sand); }
.booking-inner h2 { color: var(--white); }
.booking-inner .section-desc { color: rgba(255,255,255,0.7); }
.booking-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.booking-ctas .btn-primary { background: var(--sand); color: var(--navy); }
.booking-ctas .btn-primary:hover { background: #c4a880; }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 1px; }
.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.accord-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.accord-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
}
.accord-header:hover { color: var(--sand); }
.accord-chevron {
  width: 20px; height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accord-item.open .accord-chevron { transform: rotate(180deg); }
.accord-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accord-item.open .accord-body { max-height: 200px; padding-bottom: 16px; }
.accord-body p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.7; }

/* =============================================
   TRANSPORT
   ============================================= */
#transport { background: var(--white); }
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.transport-info { display: flex; flex-direction: column; gap: 24px; }
.address-block {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
}
.address-label { font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.address-text { font-size: 1rem; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  transition: var(--transition);
}
.copy-btn:hover { background: var(--navy); color: var(--white); }
.copy-btn svg { width: 14px; height: 14px; }
.route-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.route-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.route-icon svg { width: 20px; height: 20px; color: var(--navy); }
.route-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.route-desc { font-size: 1rem; color: var(--muted); line-height: 1.6; }

/* =============================================
   BLOG / SEO — 12 months grid
   ============================================= */
#blog { background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--green));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-img svg { width: 40px; height: 40px; color: rgba(255,255,255,0.3); }
.blog-month-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--sand);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-body { padding: 20px; }
.blog-date { font-size: 1rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 10px; font-family: 'Noto Serif TC', serif; }
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}
.blog-read svg { width: 14px; height: 14px; transition: transform var(--transition); }
.blog-read:hover svg { transform: translateX(4px); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: clamp(48px, 6vw, 80px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-en {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-size: 1rem;
  color: var(--sand);
  margin-bottom: 16px;
  font-style: italic;
}
.footer-reg { font-size: 1rem; line-height: 1.6; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.footer-social svg { width: 18px; height: 18px; color: var(--white); }

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sand); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1rem;
}

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
#line-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 500;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #06C755;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6,199,85,0.4);
  transition: var(--transition);
}
#line-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(6,199,85,0.5); }
#line-float svg { width: 28px; height: 28px; }

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 500;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-to-top:hover { background: var(--green); }
#back-to-top svg { width: 20px; height: 20px; }

/* =============================================
   ANIMATIONS (IntersectionObserver)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-item { grid-template-columns: 1fr; }
  .feature-item.reverse { direction: ltr; }
  .transport-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .nav-hamburger { display: flex; }

  .hero-ctas .btn { height: 48px; padding: 0 22px; font-size: 1rem; }

  .reviews-track { flex-wrap: nowrap; }
  .review-card { min-width: 280px; }

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

  .modal-features { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #line-float { bottom: 88px; right: 16px; }
  #back-to-top { right: 16px; bottom: 24px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .booking-ctas { flex-direction: column; }
  .booking-ctas .btn { justify-content: center; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .booking-grid-resp { grid-template-columns: 1fr !important; }
}

/* Booking section responsive override */
@media (max-width: 1024px) {
  .booking-grid-resp { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* =============================================
   LANGUAGE TOGGLE (EN / 中)
   ============================================= */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 3px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}
#nav.scrolled .lang-toggle {
  background: var(--cream);
  border-color: var(--sand);
}
.lang-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.lang-btn.active {
  background: var(--white);
  color: var(--navy);
}
#nav.scrolled .lang-btn { color: var(--muted); }
#nav.scrolled .lang-btn.active { background: var(--navy); color: var(--white); }

/* EN coming soon banner */
.lang-banner {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
}
.lang-banner.show { opacity: 1; pointer-events: all; transform: translateY(0); }

/* =============================================
   NEARBY — horizontal scroll carousel
   ============================================= */
.nearby-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.nearby-scroll-wrap {
  overflow: hidden;
  position: relative;
}
.nearby-scroll-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  width: max-content;
}
.nearby-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  width: 240px;
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  border: 2px solid transparent;
}
.nearby-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sand);
}
.nearby-card.hidden { display: none; }
.nearby-card-body { padding: 18px 20px; }
.nearby-distance { font-size: 1rem; color: var(--green); font-weight: 700; margin-bottom: 5px; }
.nearby-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: 'Noto Serif TC', serif; }
.nearby-desc { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.nearby-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.nearby-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nearby-nav button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.nearby-nav button svg { width: 18px; height: 18px; }

/* =============================================
   BLOG — 4-card carousel
   ============================================= */
.blog-carousel-wrap { overflow: hidden; }
.blog-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.blog-card {
  min-width: calc(25% - 15px);
  flex-shrink: 0;
}
.blog-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-month-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--sand);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}
.blog-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.blog-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  transition: var(--transition);
}
.blog-carousel-dot.active {
  width: 28px;
  border-radius: 100px;
  background: var(--navy);
}

@media (max-width: 1024px) {
  .blog-card { min-width: calc(50% - 10px); }
}
@media (max-width: 640px) {
  .blog-card { min-width: calc(100% - 0px); }
  .nearby-card { width: 200px; }
}

/* =============================================
   v4 GLOBAL FIXES
   ============================================= */

/* Room card button centering */
.room-book-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.room-actions { align-items: stretch; }
.room-actions .room-detail-btn,
.room-actions .room-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Nav book button fix */
.nav-book-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1;
}

/* Blog carousel — ensure 4 cards across on desktop */
.blog-carousel-track { display: flex; gap: 20px; }
.blog-card {
  min-width: 0;
  width: calc(25% - 15px);
  flex: 0 0 calc(25% - 15px);
}
@media (max-width: 1024px) {
  .blog-card { flex: 0 0 calc(50% - 10px); width: calc(50% - 10px); }
}
@media (max-width: 640px) {
  .blog-card { flex: 0 0 100%; width: 100%; }
}

/* Reviews marquee — card scale on hover, don't pause */
.reviews-marquee-track { animation-play-state: running !important; }
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
  position: relative;
  z-index: 10;
}

/* Timeline fix — consistent layout */
.tl-item {
  grid-template-columns: 88px 1fr;
  gap: 24px;
}
.tl-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-top: 4px;
  text-align: right;
  position: relative;
  white-space: nowrap;
}
.tl-year::after {
  right: -16px;
  top: 8px;
}

/* =============================================
   AWARDS SECTION (standalone)
   ============================================= */
#awards {
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
#awards::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(74,124,89,0.12);
  pointer-events: none;
}
.awards-inner { position: relative; z-index: 1; }
.awards-inner .section-label { color: var(--sand); }
.awards-inner h2 { color: var(--white); }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.award-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.award-card.visible { opacity: 1; transform: translateY(0); }
.award-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.award-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-family: 'Noto Serif TC', serif;
}
.award-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.award-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--sand);
  font-size: 1rem;
  padding: 3px 12px;
  border-radius: 100px;
}

/* =============================================
   CURSOR LEAF EFFECT (canvas)
   ============================================= */
#leaf-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 1s ease;
}
#leaf-canvas.active { opacity: 1; }

/* =============================================
   v5: Section Animations & UI Fixes
   ============================================= */

/* --- HERO: water ripple canvas --- */
#ripple-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* --- AWARDS: glow canvas --- */
#glow-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#awards { overflow: hidden; }

/* --- FEATURES: constellation canvas --- */
#constellation-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
#features { position: relative; overflow: hidden; }

/* --- NEARBY: mountain + sea SVG --- */
#nearby { position: relative; overflow: hidden; }
.nearby-mountain-svg,
.nearby-sea-svg {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.nearby-mountain-svg { top: 0; height: 80px; }
.nearby-sea-svg { bottom: 0; height: 60px; }
#nearby .inner { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }

/* nearby tab/button padding fix */
.nearby-tab {
  height: 44px;
  padding: 0 22px;
  font-size: 1rem;
}
.nearby-tabs { gap: 10px; padding: 4px 0; }

/* --- ROOMS: falling leaves background --- */
#rooms {
  background: #f7f4ef;
  position: relative;
  overflow: hidden;
}
#rooms-leaf-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#rooms .inner { position: relative; z-index: 1; }

/* Room card hover: scale up */
.room-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.room-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  z-index: 10;
  position: relative;
}

/* --- VIDEO SECTION --- */
#video { background: var(--navy); }
#video .section-label { color: var(--sand); }
#video h2 { color: var(--white); }
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--navy), #0d2a3a);
  cursor: pointer;
}
.video-embed-placeholder img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.5;
}
.video-play-btn {
  position: relative;
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.video-play-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }
.video-play-btn svg { width: 28px; height: 28px; color: var(--white); margin-left: 4px; }
.video-label {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.video-body { padding: 20px 24px; }
.video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Noto Serif TC', serif;
}
.video-desc { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* --- FOOTER: compact --- */
#footer { font-size: 1rem; }
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-logo-en { font-size: 1.1rem; }
.footer-tagline { font-size: 1rem; }
.footer-reg { font-size: 1rem; }
.footer-links a { font-size: 1rem; }
.footer-contact-item { font-size: 1rem; }
.footer-heading { font-size: 1rem; }
.footer-bottom { font-size: 1rem; }

/* legal registration line spacing fix */
#rooms .inner > p:last-child {
  margin-top: 32px;
  margin-bottom: 0;
  padding: 16px 0;
}

/* mobile SEO optimizations */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .video-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-item { grid-template-columns: 1fr; }
  .feature-item.reverse { direction: ltr; }
}

/* SEO: page title meta */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .nav-phone { display: none; }
  .lang-toggle { display: none; }
}

/* =============================================
   v7 Room card consistency + amenity fix
   ============================================= */

/* Force all amenity/pill tags on one line */
.amenity {
  white-space: nowrap;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem) !important;
  padding: 4px 10px;
}
.room-amenities {
  gap: 6px;
  flex-wrap: wrap;
}
/* Room tag - no wrap */
.room-tag { white-space: nowrap; font-size: 0.85rem !important; }

/* Consistent card heights via flex */
.rooms-grid { align-items: start; }
.room-card { display: flex; flex-direction: column; height: 100%; }
.room-body { display: flex; flex-direction: column; flex: 1; }
.room-actions { margin-top: auto; }

/* Best-rec badge under room-name */
.room-best-badge {
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.85rem !important;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.room-best-badge.green { background: var(--green); color: #fff; }
.room-best-badge.navy  { background: var(--navy); color: #fff; }
.room-best-badge.acc   { background: #2D6A4F; color: #fff; }
.room-best-badge.vip   { background: #7B4F8E; color: #fff; }

/* =============================================
   ENGLISH VERSION TOGGLE
   ============================================= */
[data-en] { transition: opacity 0.2s ease; }
body.lang-en [data-zh]:not([data-en]) { display: none; }

/* =============================================
   v7 Mobile room carousel touch improvements
   ============================================= */
.room-slides { will-change: transform; }
.room-carousel { touch-action: pan-y; }

/* =============================================
   Reviews: consistent 2-line text, author at bottom
   ============================================= */
.review-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.75em * 2);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}
.review-author {
  margin-top: auto;
  align-items: center;
}
.review-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.review-date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* =============================================
   VIDEO CAROUSEL — single video centered
   ============================================= */
.video-carousel { max-width: 900px; margin: 0 auto; }
.video-carousel-main { position: relative; }
#yt-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
#yt-player-wrap iframe,
#yt-player { width: 100%; height: 100%; border: 0; }
.video-carousel-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 4px;
}
.video-carousel-label {
  background: var(--sand);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.video-carousel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Noto Serif TC', serif;
  flex: 1;
}
.video-carousel-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}
.video-carousel-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}
.vc-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.vc-thumb.active {
  width: 32px;
  border-radius: 100px;
  background: var(--sand);
}

/* Footer compact */
#footer { font-size: 1rem; }
.footer-grid { gap: 24px; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* =============================================
   v9: Story section alignment fix
   ============================================= */
.story-grid {
  align-items: start;
}
/* Both column headers same size */
.story-text .section-label,
.story-grid > div:last-child .section-label {
  font-size: 1rem;
  min-height: 1.5em;
  display: block;
}
.story-text h2,
.story-grid > div:last-child h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
/* Card bottom alignment — equal min-height on venue cards */
.story-venues { display: grid; gap: 20px; }
.venue-card {
  display: flex;
  flex-direction: column;
}

/* Blog carousel prev/next button hover */
#blog-prev:hover, #blog-next:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-color: var(--navy) !important;
}

/* =============================================
   Review text: hard 2-line height (most reliable)
   ============================================= */
.review-text {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  height: calc(1.75em * 2) !important;
  min-height: unset !important;
  line-height: 1.75 !important;
}

/* =============================================
   Accordion button-pill style
   ============================================= */
.accordion-buttons .accord-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-buttons .accord-header {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: none;
}
.accordion-buttons .accord-item.open .accord-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--sand);
}
.accordion-buttons .accord-item.open .accord-body {
  padding-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
}
.accordion-buttons .accord-body p { font-size: 1rem; }

/* modal rules box */
#modal-rules-box { border-left: 3px solid var(--green); }

/* =============================================
   STORY V2 — 2+3 card layout with canvas
   ============================================= */
.story-v2 {
  background: linear-gradient(160deg, #f7f4ef 0%, #eef5f2 50%, #f5f0e8 100%);
  position: relative;
  overflow: hidden;
}
.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.story-inner {
  position: relative;
  z-index: 1;
}
.story-header { margin-bottom: 40px; }

/* ── Top row: 2 property cards ── */
.story-props-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.story-prop-card {
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.story-prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.spc-comic {
  background: linear-gradient(135deg, #1B3A4B 0%, #12262f 100%);
  color: var(--white);
}
.spc-miker {
  background: linear-gradient(135deg, #4A7C59 0%, #2d5238 100%);
  color: var(--white);
}
.spc-year {
  font-size: clamp(3rem, 8vw, 5rem);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  line-height: 1;
  opacity: 0.15;
  position: absolute;
  top: 20px;
  right: 28px;
  pointer-events: none;
}
.spc-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--white);
}
.spc-sub {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.spc-desc {
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.85;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.spc-footer { margin-top: 24px; }
.spc-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ── Bottom row: 3 brand cards ── */
.story-brand-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.story-brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
  cursor: default;
}
.story-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.sbc-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.sbc-green .sbc-accent { background: var(--green); }
.sbc-navy  .sbc-accent { background: var(--navy); }
.sbc-sand  .sbc-accent { background: var(--sand); }
.sbc-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.sbc-green .sbc-icon { color: var(--green); }
.sbc-navy  .sbc-icon { color: var(--navy); }
.sbc-sand  .sbc-icon { color: #8B6914; }
.sbc-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.sbc-green .sbc-title { color: var(--green); }
.sbc-navy  .sbc-title { color: var(--navy); }
.sbc-sand  .sbc-title { color: #8B6914; }
.sbc-desc { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.story-cta { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .story-props-row { grid-template-columns: 1fr; }
  .story-brand-row  { grid-template-columns: 1fr; }
  .spc-year { font-size: 3rem; }
}

/* =============================================
   NEARBY CARDS — Three Wood Color System
   柚木 / 桃花心木 / 檜木
   ============================================= */
:root {
  --wood-young:  #D4A76A; /* 柚木 — teak golden */
  --wood-mahog:  #A0614E; /* 桃花心木 — warm reddish brown */
  --wood-hinoki: #7A6045; /* 檜木 — warm amber brown */
}

/* cycle through 3 wood colors on nearby cards */
.nearby-card:nth-child(3n+1) {
  background: rgba(212,167,106,0.10);
  border: 1.5px solid rgba(212,167,106,0.35);
}
.nearby-card:nth-child(3n+1) .nearby-distance { color: #8B5E14; }
.nearby-card:nth-child(3n+1) .nearby-name     { color: #5C3A0A; }
.nearby-card:nth-child(3n+1):hover { border-color: var(--wood-young); box-shadow: 0 8px 28px rgba(212,167,106,0.25); }

.nearby-card:nth-child(3n+2) {
  background: rgba(160,97,78,0.10);
  border: 1.5px solid rgba(160,97,78,0.30);
}
.nearby-card:nth-child(3n+2) .nearby-distance { color: #7A3A28; }
.nearby-card:nth-child(3n+2) .nearby-name     { color: #5A2A1A; }
.nearby-card:nth-child(3n+2):hover { border-color: var(--wood-mahog); box-shadow: 0 8px 28px rgba(160,97,78,0.25); }

.nearby-card:nth-child(3n+3) {
  background: rgba(122,96,69,0.10);
  border: 1.5px solid rgba(122,96,69,0.28);
}
.nearby-card:nth-child(3n+3) .nearby-distance { color: #5A4020; }
.nearby-card:nth-child(3n+3) .nearby-name     { color: #3A2810; }
.nearby-card:nth-child(3n+3):hover { border-color: var(--wood-hinoki); box-shadow: 0 8px 28px rgba(122,96,69,0.22); }

/* =============================================
   STORY brand cards redesign — no icons, num + color bg
   ============================================= */
.sbc-num {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.18;
}
.sbc-green .sbc-num { color: #1a4d2e; }
.sbc-navy  .sbc-num { color: #0d2236; }
.sbc-sand  .sbc-num { color: #4a2f00; }

.sbc-subtitle {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.sbc-green .sbc-subtitle { color: var(--green); }
.sbc-navy  .sbc-subtitle { color: var(--navy); }
.sbc-sand  .sbc-subtitle { color: #8B6914; }

/* Brand card backgrounds — stronger tint */
.sbc-green { background: linear-gradient(145deg, rgba(74,124,89,0.10) 0%, rgba(74,124,89,0.04) 100%); }
.sbc-navy  { background: linear-gradient(145deg, rgba(27,58,75,0.10) 0%, rgba(27,58,75,0.04) 100%); }
.sbc-sand  { background: linear-gradient(145deg, rgba(212,184,150,0.18) 0%, rgba(212,184,150,0.06) 100%); }

/* Hover — color border glows */
.sbc-green:hover { box-shadow: 0 12px 36px rgba(74,124,89,0.20), inset 0 0 0 1.5px rgba(74,124,89,0.3); }
.sbc-navy:hover  { box-shadow: 0 12px 36px rgba(27,58,75,0.18), inset 0 0 0 1.5px rgba(27,58,75,0.25); }
.sbc-sand:hover  { box-shadow: 0 12px 36px rgba(212,184,150,0.30), inset 0 0 0 1.5px rgba(212,184,150,0.5); }

/* CTA button pulse animation */
.story-cta .btn-ghost {
  animation: story-btn-pulse 3.5s ease-in-out infinite;
  border-color: var(--navy);
}
@keyframes story-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,58,75,0); }
  50%       { box-shadow: 0 0 0 6px rgba(27,58,75,0.10); }
}
.story-cta .btn-ghost:hover { animation: none; }

/* Property card title size tweak */
.spc-name { font-size: clamp(2.2rem, 4vw, 3rem); }
.spc-sub  { font-size: 1rem; }

/* ════ STORY brand cards: deeper backgrounds ════ */
.sbc-green { background: linear-gradient(145deg, rgba(74,124,89,0.20) 0%, rgba(74,124,89,0.10) 100%) !important; border: 1.5px solid rgba(74,124,89,0.25) !important; }
.sbc-navy  { background: linear-gradient(145deg, rgba(27,58,75,0.18) 0%, rgba(27,58,75,0.09) 100%) !important; border: 1.5px solid rgba(27,58,75,0.22) !important; }
.sbc-sand  { background: linear-gradient(145deg, rgba(212,184,150,0.32) 0%, rgba(212,184,150,0.15) 100%) !important; border: 1.5px solid rgba(212,184,150,0.45) !important; }

/* ════ NEARBY cards: stronger color differentiation ════ */
.nearby-card:nth-child(3n+1) { background: rgba(212,167,106,0.16) !important; border: 1.5px solid rgba(212,167,106,0.45) !important; }
.nearby-card:nth-child(3n+2) { background: rgba(160,97,78,0.16) !important; border: 1.5px solid rgba(160,97,78,0.40) !important; }
.nearby-card:nth-child(3n+3) { background: rgba(122,96,69,0.18) !important; border: 1.5px solid rgba(122,96,69,0.38) !important; }

/* Nearby card: Google Maps hint on hover */
.nearby-card::after {
  content: '→ Google Maps';
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(27,58,75,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nearby-card { position: relative; }
.nearby-card:hover::after { opacity: 1; }

/* ════ PAGE TRANSITION — smooth fade between CN/EN ════ */
/* Page fade-in on body using opacity only (no transform - would break position:fixed modals) */
body {
  animation: page-fade-in 0.4s ease both;
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lang-btn { position: relative; }

/* ════ MOBILE UI audit fixes ════ */
@media (max-width: 768px) {
  /* Story props cards full width on mobile */
  .story-props-row { grid-template-columns: 1fr; gap: 16px; }
  .spc-year { font-size: 2.5rem; top: 12px; right: 16px; }
  .story-brand-row { grid-template-columns: 1fr; gap: 12px; }
  
  /* Rooms grid single column */
  .rooms-grid { grid-template-columns: 1fr; }
  
  /* Nearby scroll wrap */
  .nearby-card { width: 200px; }
  
  /* Awards grid on mobile */
  .awards-grid { grid-template-columns: 1fr 1fr; }
  
  /* Hero title on mobile */
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  
  /* Blog carousel on mobile */
  .blog-carousel-nav { gap: 10px; }
  
  /* Footer on mobile */
  .footer-grid { grid-template-columns: 1fr !important; }
  
  /* Feature items */
  .feature-item, .feature-item.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ════ Suppress any browser tooltip from data attrs ════ */
[data-zh], [data-en] { -webkit-user-select: none; }

/* ════ Mobile hero tag nowrap ════ */
.hero-tag { white-space: nowrap; flex-wrap: nowrap; }
@media (max-width: 480px) {
  .hero-tag { font-size: 0.8rem; padding: 5px 12px; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
  .hero-sub { font-size: 1rem; }
}

/* ════ Accordion: hover-to-expand ════ */
.accordion-buttons .accord-item { transition: background 0.2s; }
.accordion-buttons .accord-item:hover .accord-body,
.accordion-buttons .accord-item:focus-within .accord-body {
  max-height: 400px !important;
  padding-bottom: 18px !important;
  padding-left: 20px;
  padding-right: 20px;
}
.accordion-buttons .accord-item:hover .accord-chevron {
  transform: rotate(180deg);
}
/* Pet policy: ensure full text visible */
.accordion-buttons .accord-body p {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ════ Hero stars background ════ */
#hero-stars-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ════ CTA button ripple wrapper ════ */
.hero-ctas .btn, #booking .btn {
  position: relative;
  overflow: hidden;
}
.btn-ripple-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.5);
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
  animation: btn-ripple-out 1.2s ease-out forwards;
}
@keyframes btn-ripple-out {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ════ Features water flow canvas ════ */
#features-water-canvas, #features-mountain-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* ════ Transport: Hengchun map SVG ════ */
#transport { position: relative; overflow: hidden; }
#hengchun-map-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}
#transport .inner { position: relative; z-index: 1; }

/* ════ Blog seasonal gradient animation ════ */
#blog .blog-card:nth-child(3n+1) .blog-img { background: linear-gradient(135deg, #1B3A4B 0%, #2D6A4F 100%); animation: blog-hue-shift 8s ease-in-out infinite; }
#blog .blog-card:nth-child(3n+2) .blog-img { background: linear-gradient(135deg, #4A3000 0%, #1B3A4B 100%); animation: blog-hue-shift 8s ease-in-out infinite 2.5s; }
#blog .blog-card:nth-child(3n+3) .blog-img { background: linear-gradient(135deg, #2D5A27 0%, #4A3000 100%); animation: blog-hue-shift 8s ease-in-out infinite 5s; }
@keyframes blog-hue-shift {
  0%,100% { filter: brightness(1); }
  50%      { filter: brightness(1.15) saturate(1.1); }
}

/* ════ Story particles stronger ════ */
#story-canvas { opacity: 0.85 !important; }

/* ════ CTA ripple — box-shadow approach (bypass overflow:hidden) ════ */
@keyframes btn-ripple-box {
  0%   { box-shadow: 0 0 0 0 var(--ripple-c, rgba(255,255,255,0.55)); }
  60%  { box-shadow: 0 0 0 18px var(--ripple-c, rgba(255,255,255,0.12)); }
  100% { box-shadow: 0 0 0 28px var(--ripple-c, rgba(255,255,255,0)); }
}
.btn-rippling {
  animation: btn-ripple-box 1.1s cubic-bezier(0.2,0.6,0.4,1) forwards !important;
}
/* Dark button variant */
.btn-primary.btn-rippling, .btn-sand.btn-rippling {
  --ripple-c: rgba(255,255,255,0.4);
}
.btn-outline.btn-rippling {
  --ripple-c: rgba(255,255,255,0.5);
}

/* ════ Booking CTAs: soft periodic glow (no ripple) ════ */
#booking .booking-ctas .btn-primary {
  animation: booking-glow-warm 2.8s ease-in-out infinite;
}
#booking .booking-ctas .btn-outline {
  animation: booking-glow-white 2.8s ease-in-out infinite 1.4s;
}
#booking .booking-ctas .btn:hover {
  animation: none;
}
@keyframes booking-glow-warm {
  0%,100% { box-shadow: 0 0 6px 1px rgba(212,184,150,0.25), 0 4px 16px rgba(212,184,150,0.15); }
  50%      { box-shadow: 0 0 22px 6px rgba(212,184,150,0.55), 0 8px 28px rgba(212,184,150,0.30); }
}
@keyframes booking-glow-white {
  0%,100% { box-shadow: 0 0 6px 1px rgba(255,255,255,0.15); }
  50%      { box-shadow: 0 0 20px 6px rgba(255,255,255,0.40), 0 0 40px 10px rgba(255,255,255,0.12); }
}

/* ════ Accordion: remove CSS hover-open (replaced by JS with delay) ════ */
.accordion-buttons .accord-item:hover .accord-body,
.accordion-buttons .accord-item:focus-within .accord-body {
  max-height: 0 !important;
  padding-bottom: 0 !important;
}
.accordion-buttons .accord-item:hover .accord-chevron {
  transform: none !important;
}
/* JS-controlled state */
.accordion-buttons .accord-item.hover-open .accord-body {
  max-height: 400px !important;
  padding-bottom: 18px !important;
  padding-left: 20px;
  padding-right: 20px;
}
.accordion-buttons .accord-item.hover-open .accord-chevron {
  transform: rotate(180deg) !important;
}

/* ════ Blog section: interactive card 3D tilt + stagger load animation ════ */
#blog { perspective: 1200px; }
.blog-card {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
}
.blog-card.card-visible {
  opacity: 1;
  animation: blog-card-appear 0.5s ease forwards;
}
@keyframes blog-card-appear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.blog-card:hover {
  transform: translateY(-6px) rotateX(3deg) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
  z-index: 2;
}
.blog-img { overflow: hidden; }
.blog-img img {
  transition: transform 0.6s ease;
  transform: scale(1.05);
}
.blog-card:hover .blog-img img {
  transform: scale(1.12);
}
/* Month tag enhanced */
.blog-month-tag {
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px !important;
}
/* Blog inner z-index for canvas */
#blog .inner { position: relative; z-index: 1; }

/* ════ Hero CTAs: same soft glow as booking section ════ */
/* Override any old ripple animation on hero CTAs */
.hero-ctas .btn-primary {
  animation: booking-glow-warm 2.8s ease-in-out infinite !important;
}
.hero-ctas .btn-outline {
  animation: booking-glow-white 2.8s ease-in-out infinite 1.4s !important;
}
.hero-ctas .btn:hover {
  animation: none !important;
}

/* ════ Blog canvas stronger ════ */
#blog-map-canvas { opacity: 0.75 !important; }
/* ════ Transport canvas stronger ════ */
#hengchun-map-canvas { opacity: 0.40 !important; }

/* ════ Lang toggle: ensure always clickable ════ */
.lang-toggle { cursor: pointer; z-index: 10; position: relative; }
.lang-btn { cursor: pointer !important; pointer-events: auto !important; display: inline-flex; align-items: center; justify-content: center; }
a.lang-btn { text-decoration: none; }

/* ════════════════════════════════════════════════
   MOBILE UI/UX COMPREHENSIVE OVERHAUL
   ════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── Nav: add top breathing room ── */
  :root { --nav-h: 64px; }
  #nav { padding: 0 16px; }
  .nav-inner { padding: 0; }
  .nav-logo { padding-top: 2px; }
  .nav-logo-en { font-size: 1rem; }
  .nav-logo-zh { font-size: 0.85rem; }
  .nav-book-btn { height: 36px; padding: 0 14px; font-size: 0.9rem; }
  .lang-toggle { padding: 2px; }

  /* ── Hero: hide carousel dots/arrows on mobile to prevent overlap ── */
  .hero-controls { display: none; }
  /* Keep scroll hint */
  .hero-scroll { bottom: 20px; }
  /* Hero CTA stack vertically */
  .hero-ctas { flex-direction: column; gap: 10px; max-width: 280px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  /* Hero content padding */
  .hero-content .inner { padding: 0 20px; }

  /* ── Reviews: marquee card smaller ── */
  .review-card { width: 280px; padding: 20px; }
  .review-text { font-size: 1rem !important; }

  /* ── Booking section: fix wrapping ── */
  .booking-grid-resp { grid-template-columns: 1fr !important; gap: 32px !important; }
  #booking .booking-ctas { flex-direction: column; gap: 10px; }
  #booking .booking-ctas .btn { width: 100%; justify-content: center; }
  #booking h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  #booking .section-desc { font-size: 1rem; }
  .accordion-buttons .accord-header { font-size: 1rem; padding: 12px 16px; }

  /* ── Video section: single column stack ── */
  #video .video-carousel-info { flex-direction: column; gap: 8px; }
  .video-carousel-title { font-size: 1rem; }
  .video-carousel-desc { display: none; } /* hide desc on mobile */

  /* ── Blog/旅遊曆: 2 columns on mobile, smaller text ── */
  .blog-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .blog-card { min-width: 0 !important; flex: unset !important; width: 100% !important; }
  .blog-title { font-size: 0.95rem; line-height: 1.4; }
  .blog-date { font-size: 0.85rem; }
  .blog-carousel-track { flex-wrap: wrap !important; transform: none !important; transition: none !important; }
  /* Override carousel to just be a grid on mobile */
  .blog-carousel-wrap { overflow: visible !important; }
  #blog-carousel-nav { display: none !important; }

  /* ── Nearby: card narrower ── */
  .nearby-card { width: 180px; }
  .nearby-name { font-size: 1rem; }
  .nearby-desc { font-size: 0.9rem; }

  /* ── Rooms: single column ── */
  .rooms-grid { grid-template-columns: 1fr; gap: 20px; }
  .filter-btn { height: 36px; padding: 0 14px; font-size: 0.9rem; }

  /* ── Transport ── */
  .transport-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-wrap { aspect-ratio: 4/3; }

  /* ── Footer: compact ── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-logo-en { font-size: 1rem; }

  /* ── Section padding reduction on mobile ── */
  .section { padding: clamp(36px, 5vw, 64px) 0; }
  .inner { width: min(92vw, 100%); }

  /* ── Feature items: text size matches 三大體驗 (reference size) ── */
  .feature-desc { font-size: 1rem; line-height: 1.7; }
  .feature-title { font-size: 1.2rem; }
  .feature-num { font-size: 3rem; }
  .pill { font-size: 0.9rem; padding: 4px 10px; }

  /* ── Story prop cards ── */
  .spc-name { font-size: 2rem; }
  .spc-desc { font-size: 1rem; }
  .sbc-desc { font-size: 1rem; }

  /* ── Awards: 2-column on mobile ── */
  .awards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .award-title { font-size: 1rem !important; }
  .award-desc { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  /* Extra small: single column everything */
  .blog-grid { grid-template-columns: 1fr !important; }
  .awards-grid { grid-template-columns: 1fr; }
  .story-brand-row { grid-template-columns: 1fr; }
  .rooms-filter { gap: 6px; }
  .filter-btn { height: 34px; padding: 0 12px; font-size: 0.85rem; }
  /* Nav tighter */
  :root { --nav-h: 58px; }
}

/* Google badge: clickable hover effect without changing appearance */
a:has(.google-badge):hover .google-badge,
a[href*="maps.app.goo.gl"]:hover .google-badge {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.google-badge { transition: box-shadow 0.2s, transform 0.2s; }

/* ════ Booking section mobile: prevent right side cut-off ════ */
@media (max-width: 768px) {
  #booking .inner { overflow: hidden; }
  #booking .booking-grid-resp {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100%;
  }
  /* Prevent grid children from expanding beyond container (min-width:auto default causes 482px overflow) */
  #booking .booking-grid-resp > div { min-width: 0; overflow: hidden; }
  #booking h2 { font-size: 1.5rem !important; }
  #booking .section-desc { font-size: 1rem !important; }
  #booking .booking-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #booking .booking-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .accordion-buttons { width: 100%; }
  .accord-header { font-size: 1rem !important; }
  /* Ensure accordion body text wraps within container */
  .accordion-buttons .accord-body p { overflow-wrap: break-word; word-break: break-word; }
  /* Accordion open state on mobile (not hover-dependent) */
  .accordion-buttons .accord-item.open .accord-body {
    max-height: 400px !important;
    padding-bottom: 18px !important;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =============================================
   PROMO BANNER — limited-time discount
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, rgba(212,184,150,0.15) 0%, rgba(212,184,150,0.06) 100%);
  border: 1.5px solid rgba(212,184,150,0.5);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}
.promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.promo-icon { width: 18px; height: 18px; color: var(--sand); flex-shrink: 0; }
.promo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.promo-deadline {
  background: rgba(212,184,150,0.2);
  color: var(--sand);
  font-size: 1rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid rgba(212,184,150,0.4);
}
.promo-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.promo-tier {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.promo-tier:hover { background: rgba(255,255,255,0.10); }
.promo-tier-mid { border-color: rgba(212,184,150,0.25); }
.promo-tier-best {
  background: rgba(212,184,150,0.12);
  border-color: rgba(212,184,150,0.45);
}
.promo-nights {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  font-weight: 500;
}
.promo-discount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sand);
  font-family: 'Noto Serif TC', serif;
  line-height: 1;
}
.promo-tier-best .promo-discount { color: #F4C842; }
.promo-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .promo-tiers { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .promo-discount { font-size: 1.3rem; }
  .promo-nights { font-size: 0.9rem; }
  .promo-banner { padding: 16px 18px; }
}
@media (max-width: 480px) {
  .promo-tiers { grid-template-columns: 1fr; gap: 8px; }
  .promo-tier { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
  .promo-nights, .promo-discount { margin: 0; }
  .promo-discount { font-size: 1.4rem; }
}

/* ════ Booking section mobile fix ════ */
@media (max-width: 640px) {
  .booking-grid-resp { grid-template-columns: 1fr !important; gap: 20px !important; }
  #booking .booking-ctas { flex-direction: column; width: 100%; gap: 10px; }
  #booking .booking-ctas .btn { width: 100%; justify-content: center; box-sizing: border-box; }
  .promo-tiers { grid-template-columns: 1fr !important; gap: 8px; }
  .promo-tier { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
  .promo-nights { margin: 0; }
  .promo-discount { margin: 0; font-size: 1.3rem; }
  .promo-banner { padding: 16px; }
  #booking h2 { font-size: 1.5rem !important; }
  #booking .section-desc { font-size: 1rem !important; }
}

/* ════ Accordion: click-toggle on mobile (hover doesn't work on touch) ════ */
@media (max-width: 768px) {
  /* Disable hover-open on mobile, use click only */
  .accordion-buttons .accord-item:hover .accord-body {
    max-height: 0 !important;
    padding-bottom: 0 !important;
  }
  .accordion-buttons .accord-item:hover .accord-chevron {
    transform: none !important;
  }
  /* Click-open via .open class (set by JS) still works */
  .accordion-buttons .accord-item.open .accord-body {
    max-height: 400px !important;
    padding-bottom: 18px !important;
    padding-left: 20px;
    padding-right: 20px;
  }
  .accordion-buttons .accord-item.open .accord-chevron {
    transform: rotate(180deg) !important;
  }
  /* Make accordion header tappable */
  .accordion-buttons .accord-header { cursor: pointer; }
}

/* ════ Blog carousel mobile: horizontal scroll snap ════ */
@media (max-width: 768px) {
  /* Override the broken wrap/visible CSS */
  .blog-carousel-wrap {
    overflow: hidden !important;
  }
  .blog-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) !important;
    will-change: transform;
    touch-action: pan-y;
  }
  .blog-card {
    min-width: calc(85vw) !important;
    flex: 0 0 calc(85vw) !important;
    width: calc(85vw) !important;
    opacity: 1 !important;
  }
  #blog-carousel-nav { display: flex !important; }
  .blog-img img { opacity: 1 !important; }
}

/* ════ Promo tiers mobile: show nights + discount on same row ════ */
@media (max-width: 640px) {
  .promo-tiers {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .promo-tier {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
  }
  .promo-nights { font-size: 1rem !important; margin: 0 !important; }
  .promo-discount { font-size: 1.4rem !important; margin: 0 !important; }
}

/* ════ Hero brand name line ════ */
.hero-brand {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--sand);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
@media (max-width: 768px) {
  .hero-brand { font-size: 1rem; margin-bottom: 14px; }
}
