/* 色票沿用 stay-mini-app / booking-mini-app 那一組,三個站看起來是同一個品牌。 */
:root {
  --navy: #003580;
  --accent: #0071c2;
  --accent-bg: #e6f0fa;
  --success: #008009;
  --warn: #b26a00;
  --warn-bg: #fff6e5;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #757575;
  --line: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --max: 1080px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* .button 的 display 會蓋掉 hidden 屬性,沒有 JS 時分享按鈕要真的不見。 */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

body.has-cta {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

a {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

h2 small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-3);
}

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

main,
.crumbs,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

main > section,
.stay > section {
  margin: 28px 0;
}

/* ---- 頁首頁尾 ---- */

.site-header {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100% - var(--max)) / 2 + 16px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  border-radius: 8px;
  background: #fff;
}

.site-nav {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.92;
}

.site-nav a:hover {
  text-decoration: underline;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-3);
}

.crumbs li + li::before {
  content: '›';
  margin: 0 8px;
}

.crumbs a {
  color: var(--text-2);
}

.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.85rem;
}

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

/* ---- 共用元件 ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.outline {
  background: #fff;
  color: var(--accent);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.tags span {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--navy);
}

.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.92rem;
}

.empty {
  text-align: center;
  padding: 56px 0;
}

.empty h1 {
  margin-bottom: 12px;
}

.muted {
  color: var(--text-3);
}

.prose {
  margin: 0;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

/* ---- 首頁 ---- */

.hero {
  padding: 12px 0 4px;
}

.hero p {
  color: var(--text-2);
  margin: 10px 0 0;
  max-width: 40em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px !important;
}

.city-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.city-grid a {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}

.city-grid span {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ---- 列表頁 ---- */

.list-head p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #dfe6ee;
}

.card-photo.none {
  background: linear-gradient(135deg, #cfdcec, #e9eff6);
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.card-address,
.card-info {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.card-info {
  color: var(--text-2);
}

.card-price {
  margin: auto 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.card-price strong,
.stay-price strong,
.room-price strong {
  color: var(--text);
  font-size: 1.15em;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}

/* ---- 旅宿頁 ---- */

.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 16px -16px 0;
  padding: 0 16px;
  scrollbar-width: thin;
}

.gallery img {
  flex: 0 0 auto;
  width: min(86%, 520px);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: center;
  background: #dfe6ee;
}

.stay-head {
  margin-top: 20px;
}

.stay-price {
  margin: 8px 0 0;
  color: var(--text-2);
}

.facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 4px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.facts li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  overflow-wrap: anywhere;
}

.facts li + li {
  border-top: 1px solid var(--line);
}

.facts span {
  flex: 0 0 4.5em;
  color: var(--text-3);
  font-size: 0.9rem;
}

.rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.room {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.room img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe6ee;
}

.room-body {
  padding: 14px 16px 16px;
}

.room-body h3 {
  font-size: 1.08rem;
}

.room-specs,
.room-info {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.room-info {
  color: var(--text-2);
}

.room-price {
  margin: 10px 0 12px;
  color: var(--text-2);
}

.room-price s {
  color: var(--text-3);
  font-size: 0.9em;
}

.back {
  margin: 28px 0 0;
}

.cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.cta .button.share {
  flex: 0 0 auto;
}

.cta .button {
  flex: 1;
  padding: 0 12px;
  white-space: nowrap;
}

@media (min-width: 720px) {
  h1 {
    font-size: 2.1rem;
  }

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

  .cta-inner {
    justify-content: flex-end;
  }

  .cta .button {
    flex: 0 0 220px;
  }
}
