/* allhotels — "front-desk register": warm paper, ink, a red seal. Light only. */
:root {
  --paper: #f7f4ee;
  --card: #fffdf9;
  --ink: #1c2433;
  --ink-2: #3b4456;
  --muted: #736d63;
  --rule: #e2dbcf;
  --rule-strong: #c9bfae;
  --seal: #c3342b;
  --seal-dark: #9f251e;
  --tag: #efe9de;
  --focus: #2f5d8a;
  --cjk: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 var(--cjk); font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.en { font-family: var(--serif); font-style: italic; color: var(--ink-2); letter-spacing: .01em; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .02em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.seal { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--seal); color: #fff; border-radius: 3px; font-size: 15px; font-weight: 700; line-height: 1; }
.brand b { font-weight: 650; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--seal); }
.top .search { margin-left: auto; width: min(340px, 40vw); }

/* search box + suggestions */
.search { position: relative; }
.search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23736d63' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px 50% no-repeat;
  border: 1px solid var(--rule-strong); border-radius: 6px;
}
.search input:focus { border-color: var(--ink); outline: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--rule-strong); border-radius: 6px; list-style: none; margin: 0; padding: 4px 0; box-shadow: 0 10px 30px rgba(28, 36, 51, .12); max-height: 60vh; overflow: auto; z-index: 30; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--tag); }
.suggest small { color: var(--muted); white-space: nowrap; }

/* page head */
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.25; margin: 6px 0 4px; font-weight: 650; letter-spacing: .01em; }
h2 { font-size: 19px; margin: 0 0 12px; font-weight: 650; }
.lede { color: var(--ink-2); margin: 4px 0 0; }

/* home */
.hero { padding: 44px 0 26px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); }
.hero .search { max-width: 620px; margin-top: 18px; }
.hero .search input { height: 52px; font-size: 17px; padding-left: 42px; background-position: 15px 50%; }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips a, .chips button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font: inherit; font-size: 14px;
  background: var(--card); border: 1px solid var(--rule-strong); border-radius: 16px; color: var(--ink); text-decoration: none; cursor: pointer;
}
.chips a small, .chips button small { color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips button[aria-pressed="true"] small { color: #cfd5e0; }
section.block { padding: 26px 0; border-top: 1px solid var(--rule); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head a { font-size: 14px; }

/* directory */
.dir { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 16px 0 40px; }
.filters { position: sticky; top: 76px; align-self: start; font-size: 14px; }
.filters h3 { font-size: 12px; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .opts { display: flex; flex-direction: column; gap: 2px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.filters label small { margin-left: auto; color: var(--muted); }
.filters input { accent-color: var(--seal); }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; border-bottom: 2px solid var(--ink); font-size: 14px; }
.listbar select { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--card); color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 112px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.row[hidden] { display: none; }
.thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--tag); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--rule-strong); background: transparent; }
.thumb.ph b { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--seal); color: var(--seal); border-radius: 3px; font-size: 16px; transform: rotate(-4deg); }
.row h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; text-decoration-color: var(--seal); }
.row .en { font-size: 14px; display: block; }
.meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.meta .lic { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tagk { display: inline-block; font-size: 12px; padding: 1px 8px 1px 14px; background: var(--tag); border-radius: 2px 10px 10px 2px; position: relative; color: var(--ink-2); }
.tagk::before { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--paper); }
.empty { padding: 30px 0; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-seal { background: var(--seal); color: #fff; }
.btn-seal:hover { background: var(--seal-dark); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); background: var(--card); height: 34px; font-size: 14px; padding: 0 12px; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-big { height: 50px; font-size: 16px; padding: 0 22px; width: 100%; }
.via { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* hotel page */
.hotel-head { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 6px 0 24px; }
.hotel-head .en { font-size: 19px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 26px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.keyfacts dt { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.keyfacts dd { margin: 0; font-weight: 600; }
.book { background: var(--card); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 16px; align-self: start; }
.book .photo { margin: -16px -16px 14px; border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tag); }
.book .photo img { width: 100%; height: 100%; object-fit: cover; }
.book .photo.ph { display: grid; place-items: center; }
.book .photo.ph b { display: grid; place-items: center; width: 64px; height: 64px; border: 3px solid var(--seal); color: var(--seal); border-radius: 4px; font-size: 30px; transform: rotate(-5deg); }
.book p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.credit { font-size: 11.5px; color: var(--muted); margin: -8px 0 12px; line-height: 1.4; }
.credit a { color: var(--muted); }
.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ledger th { width: 150px; font-weight: 500; color: var(--muted); font-size: 14px; padding-right: 16px; }
.ledger td .en { display: block; font-size: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stations { list-style: none; padding: 0; margin: 0; }
.stations li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.stations .line { font-size: 12px; padding: 0 6px; border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--ink-2); }
.stations .d { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.indep { font-size: 13px; color: var(--muted); border-left: 3px solid var(--seal); padding: 4px 0 4px 12px; margin: 26px 0 0; }
.sticky-cta { display: none; }

/* prose pages */
.prose { max-width: 720px; padding: 10px 0 50px; }
.prose h2 { margin-top: 28px; }
.prose li { margin: 4px 0; }

/* footer */
footer { border-top: 1px solid var(--rule); margin-top: 30px; padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .top .wrap { gap: 12px; }
  .nav { display: none; }
  .top .search { width: auto; flex: 1; }
  .dir { grid-template-columns: 1fr; gap: 10px; }
  .filters { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .filters h3 { display: none; }
  .filters .group { flex: none; }
  .filters select { font: inherit; font-size: 14px; height: 34px; border: 1px solid var(--rule-strong); border-radius: 17px; padding: 0 10px; background: var(--card); color: var(--ink); }
  .filters .opts { display: none; }
  .hotel-head { grid-template-columns: 1fr; gap: 18px; }
  .cols { grid-template-columns: 1fr; gap: 10px; }
  .keyfacts { grid-template-columns: repeat(2, auto); }
  .row { grid-template-columns: 84px 1fr; gap: 12px; }
  .thumb { width: 84px; }
  .row .act { grid-column: 2; }
  .ledger th { width: 96px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule-strong); z-index: 25; }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky { padding-bottom: 76px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .filters .mob { display: none; } }
