:root {
  --bg: #f7f2ea;
  --bg-soft: #f0e4d2;
  --panel: rgba(255, 250, 243, 0.84);
  --panel-strong: rgba(11, 51, 62, 0.92);
  --text: #16313b;
  --text-soft: rgba(22, 49, 59, 0.74);
  --brand: #0c3b46;
  --brand-soft: #27606a;
  --sand: #c9995f;
  --line: rgba(12, 59, 70, 0.12);
  --shadow: 0 24px 60px rgba(18, 45, 52, 0.12);
  --shadow-soft: 0 14px 28px rgba(18, 45, 52, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 153, 95, 0.18), transparent 28%),
    radial-gradient(circle at right top, rgba(39, 96, 106, 0.16), transparent 26%),
    linear-gradient(180deg, #fcf8f1 0%, var(--bg) 42%, var(--bg-soft) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

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

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid rgba(255, 248, 240, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(12, 59, 70, 0.14);
}

.hero h1,
.section-heading h2,
.story-card h3,
.room-card h3,
.experience-card h3,
.info-card h3,
.step-card h3,
.contact-copy h2 {
  font-family: "Noto Serif TC", serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--sand);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand);
}

.section {
  padding: 96px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 120px);
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 31, 39, 0.08), rgba(8, 31, 39, 0.34));
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 249, 241, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-badge span {
  color: var(--brand-soft);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-badge strong {
  color: var(--brand);
  font-size: 1.15rem;
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.72);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 59, 70, 0.28);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--brand);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.7vw, 4rem);
  line-height: 1.16;
}

.hero-lead,
.section-heading p,
.story-card p,
.room-body p,
.experience-card p,
.info-card p,
.step-card p,
.contact-copy p,
.footer-note {
  color: var(--text-soft);
  line-height: 1.86;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff8f0;
  box-shadow: 0 16px 28px rgba(12, 59, 70, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.86);
}

.hero-highlights {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 244, 0.72);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.trust-card,
.story-card,
.gallery-item,
.room-card,
.experience-card,
.info-card,
.step-card,
.contact-panel {
  border: 1px solid rgba(12, 59, 70, 0.1);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.trust-card {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.trust-card strong {
  color: var(--brand);
  font-size: 1.2rem;
}

.trust-card span {
  color: var(--text-soft);
  line-height: 1.7;
}

.section-heading {
  max-width: min(100%, 980px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.35vw, 2.55rem);
  line-height: 1.22;
}

.no-break-title {
  max-width: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 18px 0 0;
}

.story-grid,
.room-grid,
.experience-grid,
.booking-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

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

.story-card,
.experience-card,
.info-card,
.step-card {
  padding: 28px;
}

.story-card h3,
.experience-card h3,
.info-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.story-card-accent {
  background: linear-gradient(180deg, rgba(12, 59, 70, 0.92), rgba(22, 82, 92, 0.92));
  color: #fff8f0;
}

.story-card-accent p {
  color: rgba(255, 248, 240, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 31, 39, 0.62);
  color: #fff8f0;
  font-size: 0.92rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.room-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.filter-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.8);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff8f0;
}

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

.room-card {
  overflow: hidden;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.room-card.is-hidden {
  display: none;
}

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

.room-body {
  padding: 24px;
}

.room-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-topline strong {
  color: var(--brand);
  font-size: 1rem;
}

.room-body h3 {
  margin: 12px 0 0;
  font-size: 1.5rem;
}

.room-body ul,
.stack-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.room-body li,
.stack-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

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

.experience-card-featured {
  background:
    radial-gradient(circle at top right, rgba(129, 211, 224, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(12, 59, 70, 0.94), rgba(21, 91, 104, 0.92));
  color: #fff8f0;
}

.experience-card-featured p {
  color: rgba(255, 248, 240, 0.8);
}

.experience-card-featured .tag {
  background: rgba(255, 248, 240, 0.14);
  color: #fff8f0;
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201, 153, 95, 0.14);
  color: var(--brand);
  font-size: 0.9rem;
}

.map-section {
  position: relative;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  margin-top: 34px;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.access-cards {
  display: grid;
  gap: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}

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

.stay-planner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(12, 59, 70, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(201, 153, 95, 0.22), transparent 32%),
    rgba(255, 250, 243, 0.88);
  box-shadow: var(--shadow-soft);
}

.stay-planner h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif TC", serif;
  font-size: 1.6rem;
}

.planner-controls {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 14px;
}

.planner-controls label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.planner-controls select,
.planner-controls input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: inherit;
}

.estimate-output {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff8f0;
  line-height: 1.7;
}

.estimate-output strong {
  font-size: 1.3rem;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6a66d, #e8c695);
  color: var(--brand);
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
}

.contact-section {
  padding-bottom: 100px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 26px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(12, 59, 70, 0.95), rgba(27, 90, 96, 0.92));
  color: #fff8f0;
}

.contact-copy p {
  color: rgba(255, 248, 240, 0.82);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 248, 240, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.contact-list span {
  color: rgba(255, 248, 240, 0.66);
  font-size: 0.88rem;
}

.contact-list strong {
  font-size: 1.08rem;
}

.site-footer {
  padding: 0 0 48px;
  text-align: center;
  color: var(--text-soft);
}

.site-footer p {
  margin: 10px 0 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(6, 25, 31, 0.86);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(960px, calc(100vw - 72px));
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 248, 240, 0.86);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 248, 240, 0.24);
  background: rgba(255, 248, 240, 0.12);
  color: #fff8f0;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  padding: 10px 16px;
  border-radius: 999px;
}

.lightbox-nav {
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.floating-action {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 248, 240, 0.56);
  border-radius: 50%;
  color: #fff8f0;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(12, 59, 70, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.floating-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(12, 59, 70, 0.28);
}

.floating-action svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-call {
  background: linear-gradient(135deg, #c9995f, #e0b87c);
}

.floating-facebook {
  background: linear-gradient(135deg, #1877f2, #145dbb);
}

.floating-map {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .access-layout,
  .contact-panel,
  .stay-planner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-media {
    min-height: auto;
  }

  .trust-strip,
  .story-grid,
  .experience-grid,
  .booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px;
    background: rgba(251, 246, 238, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .planner-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding-top: 78px;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-media {
    min-height: auto;
  }

  .trust-strip,
  .story-grid,
  .gallery-grid,
  .experience-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .experience-card,
  .info-card,
  .step-card,
  .contact-panel,
  .trust-card {
    padding: 22px;
  }

  .room-body {
    padding: 20px;
  }

  .map-frame {
    min-height: 420px;
  }

  .no-break-title {
    white-space: normal;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox figure {
    width: calc(100vw - 36px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .floating-action {
    width: 52px;
    height: 52px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
