/* Homepage surfaces: clear white canvas and restrained, neutral shadows. */
.home-page {
  --paper: #fff;
  --card: #fff;
  --canvas: #fff;
  --shadow-1: 0 2px 8px rgb(0 0 0 / 2%);
  --shadow-2: 0 4px 16px rgb(0 0 0 / 3%);
  --shadow-3: 0 10px 28px rgb(0 0 0 / 6%);
  background: #fff !important;
}

.home-page footer,
.home-page .sbfooter,
.home-page .mega.destination-menu {
  background: #fff !important;
}

.home-page .way-map {
  background: #fff;
}

.home-page .way-map::after {
  background: linear-gradient(
    95deg,
    #fff 0%,
    rgb(255 255 255 / 85%) 26%,
    rgb(255 255 255 / 34%) 50%,
    rgb(255 255 255 / 0%) 68%
  );
}

.home-page .way-map:hover,
.home-page .way-fate:hover {
  box-shadow: var(--shadow-3);
}

.home-page #heritage .craft,
.home-page #travel-services .service-card {
  box-shadow: 0 0 0 1px rgb(0 0 0 / 3%), 0 4px 14px rgb(0 0 0 / 7%);
}

.home-page #heritage .craft:hover,
.home-page #travel-services .service-card:hover {
  box-shadow: 0 0 0 1px rgb(0 0 0 / 4%), 0 8px 20px rgb(0 0 0 / 10%);
}

/* Destination gallery */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dest {
  --dest-tint: 33 48 43;
  position: relative;
  display: grid;
  min-height: clamp(340px, 35vw, 427px);
  border-radius: 17px;
  color: #fff;
  perspective: 1100px;
}

.dest[data-city="beijing"] { --dest-tint: 59 36 23; --dest-position: 52% 48%; }
.dest[data-city="shanghai"] { --dest-tint: 55 39 55; }
.dest[data-city="guangzhou"] { --dest-tint: 24 44 42; --dest-position: 50% 46%; }
.dest[data-city="chongqing"] { --dest-tint: 28 34 57; --dest-position: 50% 45%; }
.dest[data-city="xian"] { --dest-tint: 57 42 32; --dest-position: 52% 37%; }
.dest[data-city="zhangjiajie"] { --dest-position: 50% 48%; }

.dest:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 5px;
}

.dest-face {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  overflow: hidden;
  padding: 23px;
  border-radius: inherit;
  background: rgb(var(--dest-tint));
  box-shadow: 0 10px 27px -9px rgb(var(--dest-tint) / .32), 0 2px 6px rgb(var(--dest-tint) / .08);
}

.dest-img,
.dest-face::before,
.dest-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--dest-position, center);
  z-index: -3;
}

.dest-face::before {
  content: '';
  z-index: -2;
  background: linear-gradient(to top, rgb(var(--dest-tint) / .98),
    rgb(var(--dest-tint) / .89) 23%, rgb(var(--dest-tint) / .64) 43%, transparent 74%);
}

.dest-glare {
  z-index: -1;
  opacity: 0;
  background: radial-gradient(ellipse at var(--dest-pointer-x, 50%) var(--dest-pointer-y, 50%),
    rgb(255 248 237 / .18), transparent 59%);
}

.dest-region {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .90);
  color: rgb(var(--dest-tint));
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dest-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 2.75vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dest-body h3 span {
  color: #f1e7df;
  font: 400 13px/1.25 "Noto Serif SC", "Songti SC", serif;
  white-space: nowrap;
}

.dest-body p {
  min-height: 2.9em;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.dest-foot {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .dest-face {
    transform: rotateX(var(--dest-tilt-x, 0deg)) rotateY(var(--dest-tilt-y, 0deg)) scale(var(--dest-scale, 1));
    transition: transform 340ms cubic-bezier(.22, 1, .36, 1), box-shadow 260ms ease;
  }

  .dest-glare { transition: opacity 220ms ease; }
  .dest[data-tilting] { z-index: 1; }
  .dest[data-tilting] .dest-glare { opacity: 1; }
  .dest[data-tilting] .dest-face {
    --dest-scale: 1.025;
    box-shadow: 0 17px 34px -9px rgb(var(--dest-tint) / .43), 0 4px 8px rgb(var(--dest-tint) / .12);
    transition-duration: 125ms, 230ms;
  }
}

@media (max-width: 920px) {
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest { min-height: clamp(335px, 48vw, 427px); }
}

@media (max-width: 600px) {
  .dest-grid { grid-template-columns: 1fr; gap: 16px; }
  .dest { min-height: clamp(340px, 104vw, 427px); }
  .dest-face { padding: 20px; }
}

/* A later legacy desktop rule overrides the original mobile navigation rule. */
@media (max-width: 1100px) {
  .home-page .nav .nav-links {
    display: none;
  }

  .home-page .nav-left {
    min-width: 0;
    gap: 8px;
  }

  .home-page .nav-left b {
    white-space: nowrap;
    font-size: clamp(14px, 4vw, 18px);
  }

  .home-page .nav-cta {
    flex-shrink: 0;
    padding-inline: 12px;
    font-size: 12px !important;
  }
}

/* Leave a little more room between homepage modules. */
.home-page .sec,
.home-page .monthly-inspiration .sec {
  padding-bottom: calc(clamp(32px, 4.5vh, 48px) + 16px);
}
/* Section kickers carried an extra 22px top margin on top of the padding. */
.home-page .sec-head > .kicker:first-child { margin-top: 0; }
/* Two "more" links in one row were touching. */
.home-page .more-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.home-page .travel-cta { padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 760px) {
  .home-page .sec,
  .home-page .monthly-inspiration .sec {
    padding-bottom: 44px;
  }
  .home-page .travel-cta { padding-top: 32px; }
}
