:root {
  --bg: #0f1d15;
  --bg-alt: #16291d;
  --bg-card: #1b2f21;
  --bg-deep: #0a140e;
  --ink: #f2ede0;
  --ink-soft: #b9c2b2;
  --ink-muted: #8a9686;
  --gold: #c9a86a;
  --gold-strong: #e0c690;
  --border: rgba(201, 168, 106, 0.22);
  --border-strong: rgba(201, 168, 106, 0.4);
  --white: #ffffff;

  /* legacy aliases kept so any missed rule still resolves sensibly */
  --green-dark: var(--ink);
  --green-mid: var(--gold);
  --green-light: var(--bg-alt);
  --gray: var(--ink-soft);
  --cream: var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "微軟正黑體", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .brand, nav.main-nav a, .lang-toggle {
  font-family: "Noto Serif TC", "PingFang TC", serif;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-inner .brand { margin-right: auto; }

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.brand span { color: var(--gold); }

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.brand .brand-text { display: none; }

@media (min-width: 480px) {
  .brand .brand-text { display: inline; }
}

nav.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
}

nav.main-nav a {
  font-size: 15px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold-strong);
}

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); margin-left: 12px; }

.lang-toggle {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold-strong);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.lang-toggle:hover { background: var(--bg-card); }

.music-widget {
  position: relative;
  margin-left: 10px;
  flex-shrink: 0;
}

.music-toggle {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold-strong);
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.music-toggle-icon { font-size: 14px; }
.music-toggle-caret { font-size: 9px; opacity: 0.8; transition: transform 0.15s ease; }
.music-toggle[aria-expanded="true"] .music-toggle-caret { transform: rotate(180deg); }

.music-toggle:hover { background: var(--bg-card); }
.music-toggle.playing { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); animation: music-pulse 2.2s ease-in-out infinite; }

.music-now-playing {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  font-size: 11px;
  color: var(--gold-strong);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.music-now-playing .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-strong);
  animation: music-dot 1.4s ease-in-out infinite;
}
@keyframes music-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 620px) {
  .music-toggle .music-toggle-label { display: none; }
  .music-toggle { padding: 0; width: 32px; justify-content: center; border-radius: 50%; }
}

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(201, 168, 106, 0); }
}

.music-playlist {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 14px;
  z-index: 50;
}

.music-playlist-title {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.music-playlist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.music-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  line-height: 1.4;
}

.music-track:hover { background: var(--bg-alt); color: var(--ink); }

.music-track.active {
  background: rgba(201, 168, 106, 0.16);
  color: var(--gold-strong);
  font-weight: 500;
  border-left: 2px solid var(--gold);
}

.music-track .music-track-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  background: rgba(201, 168, 106, 0.12);
}

.music-track.active .music-track-icon {
  background: var(--gold);
  color: var(--bg-deep);
}

.music-track-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.music-track.active .music-track-hint { color: var(--gold-strong); }

.music-playlist-stop {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: var(--ink-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-align: center;
  padding-top: 10px;
}

.music-playlist-stop:hover { color: var(--gold-strong); }

/* Hero */
.hero {
  position: relative;
  height: 68vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,14,0.02) 0%, rgba(10,20,14,0.08) 12%, rgba(10,20,14,0.32) 40%, rgba(10,20,14,0.62) 70%, rgba(10,20,14,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 48px 24px;
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold-strong);
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.8);
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: 16px;
  max-width: 520px;
  color: var(--ink);
  margin-bottom: 26px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
}

.page-hero {
  height: 32vh;
  min-height: 220px;
}

.page-hero h1 { font-size: 32px; }

/* Healing banner (mid-page full-bleed image with quote) */
.healing-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.healing-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,14,0.55) 0%, rgba(10,20,14,0.35) 40%, rgba(10,20,14,0.6) 100%);
}

.healing-banner .banner-text {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: "Noto Serif TC", serif;
  font-size: 30px;
  font-style: italic;
  line-height: 1.6;
  max-width: 640px;
  padding: 0 24px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.85), 0 0 24px rgba(0,0,0,0.6);
}

@media (max-width: 860px) {
  .healing-banner .banner-text { font-size: 22px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover { background: var(--gold-strong); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
}

.btn-outline:hover { background: rgba(201, 168, 106, 0.1); }

/* Sections */
section { padding: 80px 0; }

.section-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h2.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
}

.lead a { color: var(--gold-strong); border-bottom: 1px solid var(--border-strong); }

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.card-body { padding: 22px; }

.card-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }

.card-body p { font-size: 14px; color: var(--ink-soft); }

.tinted { background: var(--bg-alt); }

.tinted-dark {
  background: var(--bg-deep);
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tinted-dark .section-title, .tinted-dark .lead { color: var(--ink); }
.tinted-dark .lead { color: var(--ink-soft); }

/* Facts strip */
.facts {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 24px;
}

.facts .fact strong {
  display: block;
  font-size: 32px;
  color: var(--gold);
  font-family: "Noto Serif TC", serif;
}

.facts .fact span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Footer */
footer {
  background: var(--bg-deep);
  color: var(--ink-soft);
  padding: 48px 0 24px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

footer h4 {
  color: var(--gold-strong);
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 500;
}

footer ul { list-style: none; }

footer li { margin-bottom: 8px; }

footer li a:hover { color: var(--gold-strong); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Booking widget */
.booking-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.calendar-card, .calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--ink);
}

.cal-nav { display: flex; align-items: center; gap: 10px; }

.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gold-strong);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cal-nav-btn:hover { background: var(--bg-alt); }
.cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-nav-btn:disabled:hover { background: transparent; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.cal-dow {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  gap: 2px;
  color: var(--ink);
}

.cal-day:hover { border-color: var(--gold); }
.cal-day.disabled { cursor: not-allowed; opacity: 0.55; }
.cal-day.disabled:hover { border-color: var(--border); }
.cal-day.selected { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.cal-day .occ { font-size: 10px; border-radius: 6px; padding: 0 4px; }
.cal-day.low .occ { color: #8fd68f; background: rgba(59, 109, 17, 0.35); }
.cal-day.mid .occ { color: #f2c766; background: rgba(224, 161, 0, 0.25); }
.cal-day.full .occ { color: #f29a9a; background: rgba(192, 57, 43, 0.25); }
.cal-day.selected .occ { background: rgba(10,20,14,0.25); color: var(--bg-deep); }

.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.legend .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.dot.low { background:#5fa83f; }
.dot.mid { background:#e0a100; }
.dot.full { background:#c0392b; }

.calc-card label { display:block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; margin-top: 14px; }
.calc-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--ink);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
.calc-total .amount { font-size: 28px; font-weight: 700; color: var(--gold); font-family: "Noto Serif TC", serif; }

form.contact-form { display: grid; gap: 16px; max-width: 520px; }
form.contact-form label { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 15px; font-family: inherit;
  background: var(--bg-card); color: var(--ink);
}

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.faq-item p { font-size: 14px; color: var(--ink-soft); }

.notice {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 20px;
}

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

/* 森林公約設計圖 */
.covenant-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.covenant-page {
  display: block;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.covenant-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.covenant-page img {
  display: block;
  width: 100%;
  height: auto;
}

.covenant-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 7, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
}

.covenant-lightbox[hidden] { display: none; }

/* 林霧晴 首頁跑馬燈 */
.linwuqing-section { padding: 8px 0 56px; }

.linwuqing-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 0.7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
}

.linwuqing-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.2s ease;
}

.linwuqing-slideshow img.active {
  opacity: 1;
  z-index: 2;
  animation: linwuqing-pan 9s ease-in-out infinite alternate;
}

@keyframes linwuqing-pan {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.09) translate(-1.5%, -1.5%); }
}

.linwuqing-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.linwuqing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s ease, transform 0.3s ease;
}

.linwuqing-dots span.active {
  background: var(--gold);
  transform: scale(1.3);
}

@media (max-width: 520px) {
  .linwuqing-section .container { max-width: 300px !important; }
}

.covenant-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.covenant-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .covenant-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .covenant-gallery { grid-template-columns: 1fr; }
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  border-radius: 8px;
  height: 220px;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}

.gallery-grid figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.gallery-grid figcaption strong {
  display: block;
  color: var(--gold-strong);
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 500;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold-strong);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card.no-image .card-body { padding-top: 24px; }

.card img.logo-img { object-fit: contain; background: #0a140e; padding: 20px; }

.card-map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold-strong);
  border-bottom: 1px solid var(--border-strong);
}

.card-map-link:hover { color: var(--gold); }

.map-embed {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe { display: block; }

.quote-block {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  font-size: 19px;
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-style: italic;
  margin: 32px 0;
}

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-wrap { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
}
