:root {
  --ink: #2f2b22;
  --muted: #766f62;
  --line: #e5d8c2;
  --paper: #fff8ed;
  --paper-deep: #f5ead8;
  --green: #8f3b26;
  --green-soft: #b3603f;
  --gold: #c49a55;
  --orange: #d7773f;
  --white: #fffdf8;
  --shadow: 0 18px 42px rgba(54, 43, 25, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 16%, rgba(196, 154, 85, .12), transparent 24rem),
    radial-gradient(circle at 92% 72%, rgba(143, 59, 38, .1), transparent 24rem),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 55%, #f2e7d5 100%);
}

a { color: inherit; text-decoration: none; }
button,
input,
select { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 250, 240, .94);
  border-bottom: 1px solid rgba(229, 216, 194, .8);
  box-shadow: 0 10px 28px rgba(54, 43, 25, .06);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand strong {
  display: block;
  color: var(--green);
  font: 900 30px/1.05 "Noto Serif TC", serif;
  letter-spacing: .04em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #735f3e;
  font-size: 13px;
  letter-spacing: .08em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-weight: 800;
  font-size: 15px;
}
.main-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}
.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: translateX(-50%);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover { background: #f0e4cf; }
.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(143, 59, 38, .22);
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  min-height: 430px;
  padding: 104px 18px 84px;
  background:
    linear-gradient(180deg, rgba(23, 34, 25, .26), rgba(23, 34, 25, .05) 34%, rgba(255, 248, 237, .42) 74%, var(--paper) 100%),
    url("../images/hero-hotspring.png") center 58% / cover no-repeat;
}
.hero-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  letter-spacing: .12em;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font: 900 clamp(48px, 7vw, 86px)/1.1 "Noto Serif TC", serif;
  letter-spacing: .08em;
  text-shadow: 0 3px 18px rgba(0,0,0,.32);
}
.mobile-break { display: none; }
.hero-subtitle {
  margin: 14px 0 28px;
  color: rgba(255,255,255,.94);
  font: 700 28px "Noto Serif TC", serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  width: min(1030px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(229, 216, 194, .75);
  border-radius: 16px;
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow);
}
.search-panel label {
  display: grid;
  gap: 8px;
  text-align: left;
}
.search-panel span {
  color: #77654b;
  font-size: 13px;
  font-weight: 800;
}
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #d7c6aa;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}
.search-panel button {
  min-height: 58px;
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 13px 24px rgba(143, 59, 38, .25);
  font-weight: 900;
  cursor: pointer;
}
.search-panel button i { margin-right: 8px; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.hero-pills button,
.hero-pills a {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(210, 188, 151, .8);
  border-radius: 999px;
  background: rgba(255, 253, 248, .92);
  color: #765f3c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(54, 43, 25, .08);
}
.hero-pills button:hover,
.hero-pills a:hover,
.hero-pills button.is-active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.category-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - 36px));
  margin: -38px auto 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.category-row a {
  min-width: 0;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  color: #59452a;
  background: rgba(255, 253, 248, .96);
  text-align: center;
  font-weight: 900;
}
.category-row span { overflow-wrap: anywhere; }
.category-row a:first-child { border-radius: 12px 0 0 12px; }
.category-row a:last-child {
  border-right: 0;
  border-radius: 0 12px 12px 0;
}
.category-row i {
  color: var(--green);
  font-size: 31px;
}
.category-row a:hover {
  color: #fff;
  background: var(--green);
}
.category-row a:hover i { color: #fff; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}
.section {
  padding: 0 0 54px;
  scroll-margin-top: 96px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  position: relative;
  margin: 0;
  color: #6d4a24;
  font: 900 31px/1.3 "Noto Serif TC", serif;
  letter-spacing: .04em;
}
.section-head h2::after {
  display: inline-block;
  width: 54px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  content: "";
  background: var(--gold);
}
.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d5c2a4;
  border-radius: 999px;
  color: #78603d;
  background: rgba(255,253,248,.84);
  font-weight: 800;
  white-space: nowrap;
}
.section-head.compact { margin-bottom: 12px; }
.section-head.compact h2 { font-size: 27px; }

.deal-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.deal-card,
.stay-card,
.spot-grid article,
.list-panel,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 12px 28px rgba(54, 43, 25, .09);
}
.deal-card {
  overflow: hidden;
  min-height: 210px;
}
.deal-card img {
  width: 100%;
  height: 108px;
  object-fit: cover;
}
.deal-card div { padding: 11px 12px 14px; }
.deal-card b {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--orange);
  font-size: 12px;
}
.deal-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}
.deal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-note {
  display: none;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #735f3e;
  background: #fffdf8;
  font-weight: 800;
}
.empty-note.is-show { display: block; }

.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stay-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(54, 43, 25, .14);
}
.stay-card img {
  width: 100%;
  height: 182px;
  object-fit: cover;
  background: #e7d7bd;
}
.stay-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}
.stay-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.chips span {
  padding: 4px 8px;
  border-radius: 6px;
  color: #80623c;
  background: #f1e6d2;
  font-size: 12px;
  font-weight: 800;
}
.stay-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.price {
  margin-top: auto;
  color: #8b451d;
  font-size: 24px;
  font-weight: 900;
}
.stay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.promo-card {
  min-height: 230px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #ddd center / cover no-repeat;
  box-shadow: var(--shadow);
}
.promo-hot { background-image: linear-gradient(180deg, transparent 18%, rgba(23,28,21,.7)), url("../images/hero-hotspring.png"); }
.promo-villa { background-image: linear-gradient(180deg, transparent 18%, rgba(23,28,21,.7)), url("https://happinessstar.elbnb.com/images/room3_01.png"); }
.promo-family { background-image: linear-gradient(180deg, transparent 18%, rgba(23,28,21,.7)), url("https://lanyang.yibnb.net/flash/room11.jpg"); }
.promo-card div { padding: 28px; }
.promo-card h3 {
  margin: 0 0 8px;
  font: 900 30px "Noto Serif TC", serif;
}
.promo-card p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}
.promo-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 24px;
  border-radius: 999px;
  color: #5d421f;
  background: #ffe9a8;
  font-weight: 900;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.spot-grid article { overflow: hidden; }
.spot-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.spot-grid div { padding: 16px; }
.spot-grid h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.spot-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.list-panel { padding: 10px 18px; }
.list-panel a {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.list-panel a:last-child { border-bottom: 0; }
.list-panel img {
  width: 96px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
}
.list-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}
.list-panel small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.list-panel em {
  color: #80623c;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.faq details { overflow: hidden; }
.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  list-style: none;
}
.faq p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.8;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green-soft);
  box-shadow: 0 10px 24px rgba(143, 59, 38, .3);
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .search-panel { grid-template-columns: repeat(3, 1fr); }
  .search-panel button { grid-column: span 3; }
  .category-row { grid-template-columns: repeat(4, 1fr); }
  .category-row a:nth-child(4) { border-radius: 0 12px 0 0; }
  .category-row a:nth-child(5) { border-radius: 0 0 0 12px; }
  .category-row a:last-child { border-radius: 0 0 12px 0; }
  .deal-strip { grid-template-columns: repeat(3, 1fr); }
  .stay-grid,
  .spot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    /*overflow: hidden;*/
    padding-inline: 16px;
  }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 11px; }
  .brand img { width: 46px; height: 46px; }
  .header-actions { display: none; }
  .icon-btn { display: none; }
  .main-nav {
    width: 100%;
    justify-content: flex-start;
    font-size: 14px;
    overflow-x: auto;
  }
  .hero {
    min-height: 470px;
    padding-top: 70px;
  }
  .hero-inner { width: 100%; }
  .hero h1 {
    font-size: 36px;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }
  .eyebrow,
  .hero-subtitle {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
    word-break: break-all;
  }
  .mobile-break { display: inline; }
  .hero-subtitle { font-size: 18px; line-height: 1.5; }
  .hero-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(320px, calc(100vw - 54px));
    margin-left: auto;
    margin-right: auto;
    gap: 9px;
  }
  .hero-pills button,
  .hero-pills a {
    min-width: 0;
    padding-inline: 10px;
  }
  .category-row {
    width: calc(100vw - 32px);
    max-width: 1180px;
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: -22px;
  }
  .category-row a { min-height: 82px; }
  .category-row a:first-child { border-radius: 12px 12px 0 0; }
  .category-row a:nth-child(2) { border-radius: 0; }
  .category-row a:nth-child(4),
  .category-row a:nth-child(5) { border-radius: 0; }
  .category-row a:nth-child(7) { border-radius: 0; }
  .category-row a:last-child { border-radius: 0 0 12px 12px; }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .deal-strip,
  .stay-grid,
  .promo-grid,
  .spot-grid,
  .two-columns,
  .faq-grid { grid-template-columns: 1fr; }
  .list-panel a {
    grid-template-columns: 82px 1fr;
  }
  .list-panel em {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .category-row {
    grid-template-columns: 1fr;
  }
  .category-row a,
  .category-row a:first-child,
  .category-row a:nth-child(2),
  .category-row a:nth-child(4),
  .category-row a:nth-child(5),
  .category-row a:nth-child(7),
  .category-row a:last-child {
    border-radius: 0;
  }
  .category-row a:first-child { border-radius: 12px 12px 0 0; }
  .category-row a:last-child { border-radius: 0 0 12px 12px; }
}

.hero-pills a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; }

.section-lead { margin: -6px 0 18px; color: #6b6257; line-height: 1.8; max-width: 720px; }

/* ── 內容頁(trip/traffic/food) ── */
.subhero { min-height: auto; padding: 96px 24px 56px; }
.subhero h1 { font-size: clamp(30px, 5vw, 44px); }
.article { max-width: 860px; margin: 0 auto; }
.article h2 { font-family: "Noto Serif TC", serif; font-size: 26px; margin: 38px 0 14px; }
.article h3 { font-size: 19px; margin: 26px 0 10px; }
.article p { line-height: 1.9; margin: 0 0 14px; color: #4c453c; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { line-height: 1.85; margin-bottom: 6px; color: #4c453c; }
.route-step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid #e8ddcf; border-radius: 12px; background: #fff; margin-bottom: 10px; }
.route-step b { flex: 0 0 92px; color: #a4551e; font-family: "Noto Serif TC", serif; }
.route-step span { line-height: 1.7; }
.cta-strip { margin: 30px 0; padding: 20px 22px; border-radius: 14px; background: linear-gradient(120deg, #f7efe3, #f2e3d2); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta-strip p { margin: 0; font-weight: 700; }
.cta-strip a { background: #a4551e; color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.cta-strip a:hover { background: #8a4517; }

/* ── 下拉式主選單(比照礁溪民宿站作法) ── */
.nav-item { position: relative; }
.nav-item > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item > button i { font-size: 12px; transition: transform .2s ease; }
.nav-item:hover > button i,
.nav-item.open > button i { transform: rotate(180deg); }
.nav-item > button::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: translateX(-50%);
  transition: width .2s ease;
}
.nav-item:hover > button::after,
.nav-item.open > button::after { width: 100%; }
.nav-drop {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  display: none;
  min-width: 236px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 60;
}
.nav-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.open .nav-drop { display: block; }
.nav-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: #f7ece1; color: var(--green); }
.nav-drop small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
@media (max-width: 1120px) {
  .main-nav { overflow-x: visible !important; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .main-nav { overflow-x: visible !important; flex-wrap: wrap; row-gap: 4px; }
  .nav-drop { left: 0; transform: none; min-width: 220px; }
  .nav-item:nth-last-child(-n+2) .nav-drop { left: auto; right: 0; }
}

/* ── 選單升級:圖示膠囊風(v20260828b) ── */
.main-nav > .nav-item > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.main-nav > .nav-item > a > i,
.nav-item > button > i:first-child {
  font-size: 14px;
  color: var(--green);
  transition: color .18s ease;
}
.nav-item > button .caret { font-size: 11px; color: var(--muted); }
.main-nav > .nav-item > a::after,
.nav-item > button::after { display: none; }
.main-nav > .nav-item > a:hover,
.nav-item:hover > button,
.nav-item.open > button {
  background: var(--green);
  color: #fff;
}
.main-nav > .nav-item > a:hover > i,
.nav-item:hover > button > i:first-child,
.nav-item.open > button > i:first-child,
.nav-item:hover > button .caret,
.nav-item.open > button .caret { color: #fff; }

/* 下拉子項:圖示圓章 */
.nav-drop { min-width: 268px; padding: 12px; }
.nav-drop a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.drop-ic {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f7e9e0;
  color: var(--green);
  font-size: 15px;
  margin-top: 1px;
  transition: background .18s ease, color .18s ease;
}
.nav-drop a:hover .drop-ic { background: var(--green); color: #fff; }
.drop-tx { display: block; }
@media (max-width: 720px) {
  .main-nav > .nav-item > a,
  .nav-item > button { padding: 8px 11px; font-size: 14px; }
}

.container1 {
    width: min(1180px, calc(100% - 36px));
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}
.goodt img {
    width: 20%;
    padding-bottom: 40px;
}
.rect img {
    width: 15%;
    padding-bottom: 40px;
}
.partners {
    min-height: 30px !important;
}
@media screen and (max-width:450px){
	.partners {
    min-height: 20px !important;
}
	}