/* Shared styles for the two guesthouse sample sites (one-page and multi-page). */
:root {
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --ink: #2b2a26;
  --muted: #6f6a60;
  --line: #d6cdbd;
  --sea: #2f5d62;
  --sea-dark: #244a4e;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Demo strip: always visible, says the guesthouse is fictional. */
.demo {
  background: var(--ink);
  color: #f6f1e8;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 5px 12px;
  line-height: 1.5;
}

/* Header */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; text-decoration: none; letter-spacing: 0.06em; }
.brand small { font-family: var(--sans); font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 8px; letter-spacing: 0.1em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); padding: 2px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; }
.hero-photo img { height: 40vh; min-height: 250px; max-height: 420px; object-fit: cover; }
.hero-text { padding: 20px 20px 26px; }
.where { font-size: 13.5px; letter-spacing: 0.18em; color: var(--sea); margin-bottom: 6px; }
.hero h1 { font-size: 34px; letter-spacing: 0.04em; }
.lead { color: var(--muted); margin: 8px 0 12px; font-size: 16.5px; line-height: 1.7; }
.from { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.from small { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-left: 8px; }
.btn {
  display: inline-block;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border: 1px solid var(--sea);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--sea-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-note { display: none; margin-top: 10px; font-size: 14px; color: var(--sea-dark); border-left: 2px solid var(--sea); padding-left: 10px; }
.demo-note.on { display: block; }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--line); }
.kicker { font-size: 13px; letter-spacing: 0.22em; color: var(--sea); margin-bottom: 4px; }
h2 { font-size: 27px; margin-bottom: 20px; letter-spacing: 0.04em; }
h3 { font-size: 21px; }

/* Rooms */
.rooms { display: grid; grid-template-columns: 1fr; gap: 34px; }
.room img { aspect-ratio: 3 / 2; object-fit: cover; }
.room h3 { margin: 12px 0 2px; }
.room .meta { font-size: 14.5px; color: var(--muted); letter-spacing: 0.06em; }
.room p { margin: 6px 0 4px; font-size: 16px; }
.room .price { font-family: var(--serif); font-size: 18px; }
.room a.more { font-size: 15px; color: var(--sea); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* Lists */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.plain li b { font-weight: 500; display: inline-block; min-width: 5.5em; color: var(--muted); font-size: 15px; letter-spacing: 0.06em; }
.two { display: grid; grid-template-columns: 1fr; gap: 28px; }
.map { background: var(--paper-2); border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }

/* FAQ */
.faq dt { font-family: var(--serif); font-size: 18.5px; margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: #45433d; }

/* Spots */
.spots li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.spots span { color: var(--muted); font-size: 14.5px; white-space: nowrap; }

/* Room page */
.room-hero img { max-height: 70vh; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.pager { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; padding: 26px 0 0; }
.pager a { color: var(--sea); text-decoration: none; }
.strip { display: grid; grid-template-columns: 1fr; gap: 14px; }
.strip img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Closing call */
.call { background: var(--paper-2); text-align: center; padding: 48px 20px; border-top: 1px solid var(--line); }
.call h2 { margin-bottom: 8px; }
.call p { color: var(--muted); }
.call .btn-row { justify-content: center; }
.call .demo-note { text-align: left; max-width: 420px; margin: 12px auto 0; }

footer { border-top: 1px solid var(--line); padding: 26px 20px 40px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.9; }
footer a { color: var(--muted); }

@media (min-width: 820px) {
  body { font-size: 17.5px; }
  .hero { grid-template-columns: 1.45fr 1fr; align-items: center; max-width: 1280px; margin: 0 auto; }
  .hero-photo img { height: min(74vh, 640px); max-height: none; }
  .hero-text { padding: 20px 44px; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 18px; }
  .rooms { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
  .two { grid-template-columns: 1fr 1fr; gap: 44px; }
  .strip { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  h2 { font-size: 32px; }
}

ul.plain li b.spot-name { min-width: 0; color: inherit; font-size: 17px; }

@media (max-width: 819px) {
  .top { flex-wrap: wrap; gap: 2px 12px; padding: 10px 20px; }
  .brand small { display: none; }
  .nav { gap: 2px 14px; font-size: 14px; }
  .nav a { white-space: nowrap; }
}

/* Label and text in two columns so wrapped text stays aligned. */
ul.plain.kv li { display: grid; grid-template-columns: 5.2em 1fr; gap: 0 10px; align-items: start; }
ul.plain.kv li b { min-width: 0; }
@media (max-width: 819px) {
  table { font-size: 15px; }
  th, td { padding: 10px 4px; }
  th.people, td.people { display: none; }
}

.nw { white-space: nowrap; }

/* A phrase moves to the next line as a whole; it only breaks inside when it is wider than the line. */
.ph { display: inline-block; }

/* Entry page and high-tier explanation page */
.who { color: var(--muted); font-size: 15.5px; margin: 4px 0 8px; }
ul.plain.flow li { grid-template-columns: 7em 1fr; }
ul.plain.flow li b { color: var(--ink); font-size: 16px; }
main p a { color: var(--sea); }
@media (min-width: 820px) { .rooms.three { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
