:root {
  --village-bg:#fff4d4;
  --hero-start:#efd58a;
  --hero-mid:#f6e4ad;
  --hero-end:#fff4d4;
  --experience-row:#fffaf0;
  --hero-art:url(../images/nupass/bg01.png);
  --village-orange:#f59d4a;
  --village-brown:#b9875f;
  --village-ink:#655e4e
}

.nupass02 {
  --village-bg:#edf7e5;
  --hero-start:#d8efbf;
  --hero-mid:#e4f3d5;
  --hero-end:#edf7e5;
  --experience-row:#f7fbf3;
  --hero-art:url(../images/nupass/bg02.png)
}

.nupass03 {
  --village-bg:#e3f1f7;
  --hero-start:#b9e1f1;
  --hero-mid:#cee9f4;
  --hero-end:#e3f1f7;
  --experience-row:#f1f8fb;
  --hero-art:url(../images/nupass/bg03.png)
}

.nupass04 {
  --village-bg:#e0f4ef;
  --hero-start:#afe8df;
  --hero-mid:#c9eee7;
  --hero-end:#e0f4ef;
  --experience-row:#f1faf7;
  --hero-art:url(../images/nupass/bg04.png)
}

.nupass05 {
  --village-bg:#fdeceb;
  --hero-start:#f6cfcd;
  --hero-mid:#f9dfdd;
  --hero-end:#fdeceb;
  --experience-row:#fff7f6;
  --hero-art:url(../images/nupass/bg05.png)
}

* {
  box-sizing:border-box
}

.nupassDetailPage {
  color:var(--village-ink);
  background:var(--village-bg)
}

.villageMain {
  overflow:hidden;
  background:var(--village-bg)
}

.villageContainer {
  width:min(1180px,calc(100% - 96px));
  margin-inline:auto
}

.villageHero {
  padding:115px 0 56px;
  background-color:var(--hero-end);
  background-image:var(--hero-art),linear-gradient(to bottom,var(--hero-start) 0%,var(--hero-mid) 54%,var(--hero-end) 100%);
  background-size:100% auto,100% 100%;
  background-position:center top,center top;
  background-repeat:no-repeat,no-repeat
}

.villageBreadcrumbs {
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(101,94,78,.22);
  font-size:15px;
  letter-spacing:.1em;
  color:#3f3a31
}

.villageBreadcrumbs a,.villageBreadcrumbs b {
  color:inherit;
  text-decoration:none;
  font-weight:600
}

.villageBreadcrumbs i {
  font-style:normal;
  font-weight:400
}

.villageHeading {
  text-align:center;
  padding:62px 0 52px
}

.villageHeading h1 {
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:30px;
  margin:0 0 26px;
  font-size:inherit;
  color:#5b5548
}

.villageHeading p {
  max-width:800px;
  margin:0 auto;
  font-size:17px;
  line-height:2;
  color:#6f6758;
  white-space:normal;
  overflow-wrap:anywhere
}

.itinerary {
  padding-bottom:12px
}

.itineraryDay h3 {
  margin:0;
  background:var(--village-brown);
  color:#fff;
  text-align:center;
  font-size:20px;
  line-height:52px;
  letter-spacing:.08em
}

.itineraryDay {
  overflow:hidden
}

.itineraryRail {
  display:flex;
  overflow-x:auto;
  gap:8px;
  padding-top:10px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none
}

.itineraryRail.is-dragging,.villageRail.is-dragging {
  cursor:grabbing;
  scroll-snap-type:none;
  user-select:none
}

@media(hover:hover) and (pointer:fine) {
  .itineraryRail,.villageRail {
    cursor:grab
  }
}

.itineraryRail::-webkit-scrollbar {
  display:none
}

.itineraryRail img {
  -webkit-user-drag:none;
  user-select:none
}

.scheduleCard {
  flex:0 0 calc((100% - 24px)/4);
  overflow:hidden;
  margin:0;
  background:rgba(255,255,255,.86);
  border-radius:8px;
  text-align:center;
  min-width:0
}

.scheduleCard>img {
  display:block;
  width:100%;
  height:154px;
  object-fit:cover
}

.scheduleCard h4 {
  margin:14px 10px 5px;
  font-size:16px;
  line-height:1.45
}

.scheduleCard p {
  margin:0;
  padding:0 14px 18px;
  font-size:13px;
  line-height:1.7;
  color:#877d6b
}

.returnCard {
  display:flex;
  min-height:252px;
  flex-direction:column;
  align-items:center;
  justify-content:center
}

.routeLine {
  position:relative;
  display:grid;
  justify-content:start;
  margin:31px 0;
  height:4px;
  will-change:transform
}

.routeLine::before {
  position:absolute;
  top:0;
  right:var(--route-end-inset, 12.5%);
  bottom:0;
  left:var(--route-end-inset, 12.5%);
  background:#ffb276;
  content:""
}

.routeLine i {
  position:relative;
  z-index:1;
  justify-self:center;
  width:20px;
  height:20px;
  margin-top:-8px;
  border-radius:50%;
  background:#ffb276
}

.experienceList {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:8px 0;
  background:var(--hero-end)
}

.experienceRow {
  display:grid;
  grid-template-columns:30% 70%;
  min-height:350px;
  background:var(--experience-row)
}

.experienceRow.reverse {
  grid-template-columns:70% 30%
}

.experienceRow.reverse figure {
  order:2
}

.experienceRow figure {
  position:relative;
  margin:0;
  min-height:350px
}

.experienceRow figure img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover
}

.experienceCopy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:50px 7vw
}

.experienceCopy h2 {
  margin:0 0 5px;
  font-size:31px;
  color:#514b40
}

.experienceCopy h3 {
  margin:0 0 23px;
  font-size:18px;
  font-weight:500
}

.experienceCopy p {
  margin:0;
  font-size:14px;
  line-height:2;
  color:#746c5d
}

.experienceTag {
  display:flex;
  align-items:center;
  margin-top:28px;
  background:#fff;
  border-radius:7px;
  overflow:hidden;
  width:max-content;
  max-width:100%;
  font-size:13px
}

.experienceTag b {
  padding:11px 17px;
  background:#9c836d;
  color:#fff;
  white-space:nowrap
}

.experienceTag span {
  padding:11px 18px;
  color:#554e43
}

.benefits {
  padding:55px 0 28px;
  background:var(--village-bg)
}

.benefitBox {
  padding:36px 54px 26px;
  background:rgba(255,255,255,.68);
  border-radius:16px
}

.benefitBox h2 {
  margin:0 0 32px;
  font-size:25px;
  font-weight:700;
  letter-spacing:.05em
}

.benefitBox h2 em {
  display:inline-block;
  margin-right:14px;
  padding:8px 14px;
  background:var(--village-orange);
  color:#fff;
  font-size:15px;
  font-style:normal
}

.benefitTable>div {
  display:grid;
  grid-template-columns:1.1fr 1.1fr .7fr;
  gap:24px;
  padding:8px 12px;
  font-size:15px
}

.benefitHead {
  border-bottom:1px solid rgba(101,94,78,.18);
  font-weight:600
}

.benefitTable strong {
  color:#ed9141;
  font-weight:500
}

.benefitTotal {
  text-align:right;
  margin:28px 0 0;
  padding-top:18px;
  border-top:1px solid rgba(101,94,78,.2);
  font-size:16px;
  font-weight:700
}

.benefitTotal strong {
  font-size:25px;
  color:#ed9141;
  font-weight:700
}

.benefitNote {
  font-size:12px;
  color:#756e60
}

.villageBooking {
  padding:25px 0 48px
}

.villageBooking>.villageContainer {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding-bottom:42px;
  border-bottom:1px solid rgba(101,94,78,.2)
}

.bookingCopy>span {
  font-size:17px;
  letter-spacing:.1em
}

.bookingCopy h2 {
  margin:10px 0;
  font-size:31px;
  letter-spacing:.08em
}

.bookingCopy p {
  margin:0;
  font-size:14px
}

.bookingOffer {
  display:flex;
  align-items:flex-end;
  gap:26px
}

.bookingOffer p {
  margin:0;
  font-size:15px;
  line-height:1.1;
  color:#3e392f
}

.bookingOffer strong {
  font-size:42px
}

.bookingOffer a {
  display:grid;
  place-items:center;
  width:210px;
  height:58px;
  background:var(--village-orange);
  color:#fff;
  text-decoration:none;
  letter-spacing:.14em;
  transition:transform .25s
}

.bookingOffer a:hover {
  transform:translateY(-4px)
}

.otherVillages {
  padding:0 0 64px
}

.otherVillages h2 {
  font-size:34px;
  margin:0 0 25px
}

.villageRail {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px
}

.villageRail>a {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(185,135,95,.45);
  border-radius:7px;
  background:#fff;
  text-decoration:none;
  color:#5c5547
}

.villageRail small {
  display:block;
  margin-top:4px;
  font-size:12px
}

@media(max-width:900px) {
  .villageContainer {
    width:calc(100% - 32px)
  }

  .villageHero {
    padding:86px 0 28px;
    background-size:auto 1120px;
    background-position:center top
  }

  .villageBreadcrumbs {
    gap:9px;
    padding:16px 0;
    font-size:12px
  }

  .villageHeading {
    padding:32px 0 50px
  }

  .villageHeading h1 {
    gap:8px;
    margin-bottom:17px
  }

  .villageHeading p {
    font-size:13px;
    line-height:1.8;
    padding:0 6px
  }

  .itineraryDay h3 {
    font-size:16px;
    line-height:43px
  }

  .itineraryDay+.itineraryDay {
    margin-top:26px
  }

  .itineraryDay {
    overflow:visible
  }

  .itineraryRail {
    width:calc(100% + 16px);
    gap:7px;
    padding:8px 0 3px
  }

  .villageRail::-webkit-scrollbar {
    display:none
  }

  .scheduleCard {
    flex:0 0 64%;
    scroll-snap-align:start
  }

  .scheduleCard>img {
    height:143px
  }

  .scheduleCard h4 {
    font-size:14px
  }

  .scheduleCard p {
    font-size:12px
  }

  .returnCard {
    min-height:244px
  }

  .routeLine {
    margin:20px 0 7px
  }

  .routeLine::before {
    right:var(--route-end-inset, 32%);
    left:var(--route-end-inset, 32%)
  }

  .routeLine i {
    width:13px;
    height:13px;
    margin-top:-5px
  }

  .experienceRow,.experienceRow.reverse {
    display:flex;
    flex-direction:column;
    min-height:0
  }

  .experienceRow.reverse figure {
    order:0
  }

  .experienceRow figure {
    min-height:0;
    height:235px
  }

  .experienceCopy {
    padding:24px 22px 32px
  }

  .experienceCopy h2 {
    font-size:22px
  }

  .experienceCopy h3 {
    font-size:15px;
    margin-bottom:15px
  }

  .experienceCopy p {
    font-size:12pt;
    line-height:1.85
  }

  .experienceTag {
    display:block;
    width:100%;
    text-align:center;
    margin-top:18px;
    font-size:12pt
  }

  .experienceTag b,.experienceTag span {
    display:block;
    padding:7px 10px
  }

  .benefits {
    padding:24px 0 15px
  }

  .benefitBox {
    padding:18px 12px 14px;
    border-radius:8px
  }

  .benefitBox h2 {
    font-size:17px;
    margin-bottom:18px
  }

  .benefitBox h2 em {
    font-size:12px;
    margin-right:6px;
    padding:6px
  }

  .benefitTable>div {
    grid-template-columns:1.05fr 1.25fr .7fr;
    gap:5px;
    padding:5px 0;
    font-size:12pt
  }

  .benefitTotal {
    font-size:12px;
    margin-top:12px;
    padding-top:10px
  }

  .benefitTotal strong {
    font-size:19px
  }

  .benefitNote {
    font-size:11px;
    line-height:1.6
  }

  .villageBooking {
    padding:10px 0 28px
  }

  .villageBooking>.villageContainer {
    display:block;
    padding-bottom:27px
  }

  .bookingCopy>span {
    font-size:13px
  }

  .bookingCopy h2 {
    font-size:22px;
    line-height:1.45;
    margin:7px 0
  }

  .bookingCopy p {
    font-size:12px;
    line-height:1.7
  }

  .bookingOffer {
    display:block;
    margin-top:17px
  }

  .bookingOffer p {
    font-size:13px
  }

  .bookingOffer strong {
    font-size:30px
  }

  .bookingOffer a {
    width:100%;
    height:44px;
    margin-top:10px;
    font-size:15px
  }

  .otherVillages {
    padding-bottom:36px
  }

  .otherVillages h2 {
    font-size:24px
  }

  .villageRail {
    display:flex;
    align-items:flex-start;
    overflow-x:auto;
    gap:10px;
    scroll-snap-type:none;
    -webkit-overflow-scrolling:touch
  }

  .villageRail>a {
    flex:0 0 47%;
    -webkit-user-drag:none
  }

  .villageRail>a img {
    -webkit-user-drag:none;
    user-select:none
  }

  .villageRail small {
    font-size:11px
  }
}

/* 五個村落內頁共用視覺細節 */

.villageHeading h1 .titleText {
  color:#5b5548;
  font:inherit;
  font-size:54px;
  line-height:1.2;
  letter-spacing:.08em
}

.titleHouses {
  display:block;
  width:94px;
  height:32px;
  fill:#fff;
  flex:0 0 auto
}

.itineraryTitle {
  position:relative;
  display:flex;
  align-items:flex-end
}

.itineraryTitle h2 {
  flex:1;
  margin:0;
  background:var(--village-orange);
  color:#fff;
  text-align:center;
  font-size:21px;
  line-height:56px;
  letter-spacing:.12em
}

.itineraryTitle svg {
  position:absolute;
  bottom:56px;
  width:250px;
  height:92px;
  pointer-events:none
}

.itineraryTitle svg:first-child {
  left:0
}

.itineraryTitle svg:last-child {
  right:0
}

.itineraryTitle .hillPale {
  fill:#efd08f
}

.itineraryTitle .hillLight {
  fill:#dfa961
}

.itineraryTitle .hillDark {
  fill:#ae7653
}

.homeIcon {
  display:block;
  width:72px;
  height:72px;
  fill:#ded4c1;
  color:transparent;
  font-size:0
}

.villageThumb {
  position:relative;
  display:block;
  height:135px;
  overflow:hidden;
  background:#665c49;
  padding:0
}

.villageRail>a .villageThumb>img:first-child {
  position:static;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.52);
  transition:filter .3s,transform .4s
}

.villageRail>a .villageThumb>.villageIcon {
  position:absolute;
  left:50%;
  top:50%;
  right:auto;
  width:62px;
  height:62px;
  object-fit:contain;
  transform:translate(-50%,-50%);
  filter:none;
  opacity:1;
  visibility:visible;
  z-index:1;
  transition:opacity .3s ease,visibility 0s linear 0s
}

.villageLabel {
  display:block;
  flex:1;
  padding:13px 12px 15px;
  font-size:20px;
  transition:background-color .3s,color .3s
}

.villageRail>a.active .villageLabel,.villageRail>a:hover .villageLabel {
  background:var(--village-orange);
  color:#fff
}

.villageRail>a.active .villageThumb>img:first-child,.villageRail>a:hover .villageThumb>img:first-child {
  filter:none
}

.villageRail>a:hover .villageThumb>img:first-child {
  transform:scale(1.035)
}

.villageRail>a:hover .villageIcon {
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease,visibility 0s linear .3s
}

@media(max-width:900px) {
  .villageHeading h1 .titleText {
    font-size:28px
  }

  .titleHouses {
    width:50px;
    height:18px
  }

  .itineraryTitle h2 {
    font-size:17px;
    line-height:44px
  }

  .itineraryTitle svg {
    bottom:calc(100% - 2px);
    width:104px;
    height:42px;
    display:block
  }

  .villageThumb {
    height:105px;
    flex:0 0 105px
  }

  .villageLabel {
    font-size:16px;
    padding:10px;
    background:var(--village-orange);
    color:#fff
  }

  .villageRail>a .villageThumb>img:first-child,
  .villageRail>a:hover .villageThumb>img:first-child {
    filter:none;
    transform:none
  }

  .villageRail>a .villageThumb>.villageIcon,
  .villageRail>a:hover .villageIcon {
    opacity:0;
    visibility:hidden;
    transition:none
  }
}
