#spotPage.sanctuary-page { overflow-y:auto; background:#fbfaf6; color:#0d2928; font-family:"Noto Sans SC","PingFang SC",sans-serif; }
#spotPage .sanctuary-social { display:flex; margin-top:20px; padding:8px 0; border-top:1px solid #d9dbd7; }
#spotPage .sanctuary-social button { display:flex; flex:1; min-height:46px; align-items:center; justify-content:center; gap:8px; border:0; color:#65716d; background:transparent; font-family:inherit; font-size:14px; }
#spotPage .sanctuary-social svg { width:22px; height:22px; }
#spotPage .sanctuary-contributor { display:flex; align-items:center; gap:8px; margin-top:20px; font-size:13px; }
#spotPage .sanctuary-contributor button { display:flex; align-items:center; gap:8px; min-height:44px; min-width:44px; padding:0; border:0; color:inherit; background:transparent; font:inherit; text-align:left; overflow-wrap:anywhere; }
#spotPage .sanctuary-contributor img { width:34px; height:34px; flex-shrink:0; border-radius:50%; object-fit:cover; }
#spotPage .sanctuary-contributor small { color:#74807a; white-space:nowrap; }
#spotPage [data-spot-social-action].active { color:#087061; }
#spotPage [data-spot-social-action].active svg { fill:rgba(8,112,97,.14); }
#spotPage [data-spot-social-action]:disabled { opacity:.6; }
.sanctuary-comments { position:fixed; inset:auto 0 0; box-sizing:border-box; display:flex; flex-direction:column; width:100%; max-width:none; height:50dvh; max-height:none; margin:0; padding:0; overflow:hidden; border:0; border-radius:22px 22px 0 0; color:#213635; background:#fbfaf6; font-family:"Noto Sans SC","PingFang SC",sans-serif; }
.sanctuary-comments:not([open]) { display:none; }
.sanctuary-comments::backdrop { background:rgba(0,0,0,.28); }
.sanctuary-comments header { display:flex; flex-shrink:0; min-height:58px; padding:0 18px; align-items:center; justify-content:space-between; border-bottom:1px solid #e4e7e2; }
.sanctuary-comments h2 { margin:0; font-size:17px; }
.sanctuary-comments h2 span { margin-left:6px; color:#78817d; font-size:13px; font-weight:400; }
.sanctuary-comments header button { width:44px; height:44px; border:0; color:#69716e; background:transparent; font-size:28px; }
.sanctuary-comment-list { flex:1; min-height:0; padding:0 18px; overflow-y:auto; overscroll-behavior:contain; }
.sanctuary-comment-list article { padding:14px 0; border-bottom:1px solid #e4e7e2; }
.sanctuary-comment-list article b { font-size:13px; }
.sanctuary-comment-list article p { margin:6px 0 0; color:#52605b; font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.sanctuary-comment-empty { margin:28px 0; color:#808983; font-size:14px; text-align:center; }
.sanctuary-comment-list > button { display:block; min-height:44px; margin:8px auto; border:0; color:#087061; background:transparent; }
.sanctuary-comments form { display:flex; flex-shrink:0; gap:10px; padding:12px 16px max(12px,env(safe-area-inset-bottom)); border-top:1px solid #e4e7e2; }
.sanctuary-comments input { flex:1; min-width:0; min-height:40px; box-sizing:border-box; padding:10px 14px; border:1px solid #dbe1dc; border-radius:20px; color:#213635; background:#fff; font-size:16px; }
.sanctuary-comments form button { min-width:60px; border:0; border-radius:20px; color:white; background:#087061; }
.sanctuary-comments form button:disabled { opacity:.55; }
#spotPage .sanctuary-nav { position:sticky; top:0; z-index:12; display:grid; grid-template-columns:44px 1fr 44px; align-items:center; min-height:68px; padding:env(safe-area-inset-top) 18px 0; background:rgba(251,250,246,.96); backdrop-filter:blur(18px); }
#spotPage .sanctuary-nav h1 { margin:0; overflow:hidden; color:#101b1c; font:800 24px/1.2 "Songti SC","STSong",serif; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
#spotPage .sanctuary-nav button { display:grid; width:44px; height:44px; padding:0; place-items:center; border:0; color:#0c1718; background:transparent; }
#spotPage .sanctuary-nav svg { width:29px; height:29px; }
#spotPage .sanctuary-content { padding:10px 18px calc(34px + env(safe-area-inset-bottom)); }
#spotPage .sanctuary-hero { display:block; width:100%; aspect-ratio:2.75; border-radius:17px; object-fit:cover; background:#e8e7e2; }
#spotPage .sanctuary-viewpoint-hero { aspect-ratio:2.05; }
#spotPage .sanctuary-status { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0 4px;border-block:1px solid #d9dbd7;align-items:stretch; }
#spotPage .sanctuary-status>div { display:flex;min-width:0;min-height:100px;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:12px 4px;color:#263334;text-align:center; }
#spotPage .sanctuary-status>div+div { border-left:1px solid #d9dbd7; }
#spotPage .sanctuary-status span { font-size:11px;line-height:1.4;color:#707b83; }
#spotPage .sanctuary-status b { font-size:12px;line-height:1.4;overflow-wrap:anywhere; }
#spotPage .sanctuary-status svg { width:20px;height:20px;flex:none;color:#004239; }
#spotPage .sanctuary-section { margin-top:22px; }
#spotPage .sanctuary-spot .sanctuary-section:first-child { margin-top:0; }
#spotPage .sanctuary-section > h2,
#spotPage .sanctuary-section-head h2 { margin:0 0 12px; color:#0a2929; font:800 24px/1.2 "Songti SC","STSong",serif; letter-spacing:.02em; }
#spotPage .sanctuary-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#spotPage .sanctuary-periods { display:flex; min-width:245px; padding:2px; border-radius:22px; background:#efeee9; }
#spotPage .sanctuary-periods button { flex:1; height:36px; padding:0 14px; border:0; border-radius:19px; color:#273535; background:transparent; font-size:13px; white-space:nowrap; }
#spotPage .sanctuary-periods button.active { color:#fff; background:#087061; box-shadow:0 4px 10px rgba(8,112,97,.2); }
#spotPage .sanctuary-live { position:relative; display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:15px; background:#e7e7e3; }
#spotPage .sanctuary-live img { display:block; width:100%; aspect-ratio:2.2; object-fit:cover; }
#spotPage .sanctuary-live time { position:absolute; left:12px; bottom:10px; color:#fff; font-size:13px; text-shadow:0 1px 5px #000; }
#spotPage .sanctuary-people { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
#spotPage .sanctuary-people button { min-width:0; padding:0; border:0; color:#263333; background:transparent; text-align:left; }
#spotPage .sanctuary-people img { display:block; width:100%; aspect-ratio:1.48; border-radius:9px; object-fit:cover; background:#e8e7e2; }
#spotPage .sanctuary-people span { display:block; margin:6px 4px 0; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
#spotPage .sanctuary-reference-note { margin:9px 0 0; color:#7b8480; font-size:11px; line-height:1.5; }
#spotPage .sanctuary-viewpoints > p { margin:8px 4px 0; color:#7b8280; font-size:12px; }
#spotPage .sanctuary-viewpoint-rail { display:flex; gap:9px; padding:1px 1px 5px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:none; }
#spotPage .sanctuary-viewpoint-rail::-webkit-scrollbar { display:none; }
#spotPage .sanctuary-viewpoint-rail button { position:relative; flex:0 0 175px; padding:0; overflow:hidden; border:2px solid transparent; border-radius:10px; background:#e8e7e2; scroll-snap-align:start; }
#spotPage .sanctuary-viewpoint-rail button.active { border-color:#087064; box-shadow:0 0 0 1px #fff inset; }
#spotPage .sanctuary-viewpoint-rail img { display:block; width:100%; aspect-ratio:1.78; object-fit:cover; }
#spotPage .sanctuary-viewpoint-rail b { position:absolute; right:0; bottom:0; left:0; padding:23px 10px 8px; color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.68)); font-size:14px; text-align:left; }
#spotPage .sanctuary-selected { display:grid; grid-template-columns:94px 1fr 24px; width:100%; margin-top:10px; padding:8px; align-items:center; gap:10px; border:0; border-top:1px solid #dcddd9; color:#142626; background:transparent; text-align:left; }
#spotPage .sanctuary-selected img { width:94px; aspect-ratio:1.7; border-radius:9px; object-fit:cover; }
#spotPage .sanctuary-selected span,
#spotPage .sanctuary-selected b,
#spotPage .sanctuary-selected small { display:block; min-width:0; }
#spotPage .sanctuary-selected b { font:800 17px/1.3 "Songti SC","STSong",serif; }
#spotPage .sanctuary-selected small { margin-top:3px; color:#7b8180; font-size:12px; }
#spotPage .sanctuary-book { width:100%; height:54px; margin-top:16px; border:0; border-radius:13px; color:#fff; background:#087061; box-shadow:0 8px 18px rgba(8,112,97,.18); font-size:17px; font-weight:800; }
#spotPage .sanctuary-loading,
#spotPage .sanctuary-error { position:absolute; inset:68px 0 0; display:grid; padding:40px; align-content:center; justify-items:center; color:#61706d; background:#fbfaf6; text-align:center; }
#spotPage .sanctuary-error b { color:#172e2c; font-size:18px; }
#spotPage .sanctuary-error span { margin-top:8px; }
#spotPage .sanctuary-error button { height:42px; margin-top:18px; padding:0 24px; border:0; border-radius:21px; color:#fff; background:#087061; }
#spotPage .sanctuary-error[hidden],
#spotPage .sanctuary-loading[hidden] { display:none; }
#spotPage .sanctuary-empty { display:grid; min-height:118px; place-items:center; border:1px dashed #cfd5d1; border-radius:13px; color:#7c8481; background:#f5f4ef; }
#spotPage .sanctuary-map { position:relative; overflow:hidden; border-radius:15px; }
#spotPage .sanctuary-map > img { display:block; width:100%; aspect-ratio:2.1; object-fit:cover; filter:saturate(.86) contrast(.96); }
#spotPage .sanctuary-map > span { position:absolute; top:48%; left:43%; display:grid; width:47px; height:47px; place-items:center; border:4px solid #fff; border-radius:50%; color:#fff; background:#087061; box-shadow:0 4px 12px rgba(0,0,0,.28); transform:translate(-50%,-50%); }
#spotPage .sanctuary-map > span::after { position:absolute; left:45px; width:76px; height:2px; content:""; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); transform:rotate(var(--bearing)); transform-origin:left; }
#spotPage .sanctuary-map > span svg { width:25px; height:25px; }
#spotPage .sanctuary-map > b { position:absolute; top:10px; right:10px; display:grid; width:34px; height:34px; place-items:center; border-radius:50%; color:#fff; background:rgba(10,20,20,.75); font-size:13px; }
#spotPage .sanctuary-location-row { display:grid; grid-template-columns:1.45fr .8fr auto; margin-top:8px; align-items:center; border-bottom:1px solid #d8dcd8; }
#spotPage .sanctuary-location-row > span { display:grid; grid-template-columns:24px 1fr; padding:10px 8px; align-items:center; color:#223434; font-size:13px; }
#spotPage .sanctuary-location-row > span + span { border-left:1px solid #d8dcd8; }
#spotPage .sanctuary-location-row svg { width:21px; color:#087061; }
#spotPage .sanctuary-location-row b,
#spotPage .sanctuary-location-row small { display:block; grid-column:2; }
#spotPage .sanctuary-location-row small { margin-top:3px; color:#7f8583; }
#spotPage .sanctuary-location-row button { display:flex; height:44px; padding:0 15px; align-items:center; gap:7px; border:0; border-radius:12px; color:#fff; background:#087061; font-weight:700; white-space:nowrap; }
#spotPage .sanctuary-advice dl { margin:0; }
#spotPage .sanctuary-advice dl > div { display:grid; grid-template-columns:128px 1fr; min-height:48px; align-items:center; border-bottom:1px solid #d8dcd8; }
#spotPage .sanctuary-advice dt { display:flex; align-items:center; gap:11px; color:#213635; font-size:14px; }
#spotPage .sanctuary-advice dt svg { width:23px; color:#087061; }
#spotPage .sanctuary-advice dd { margin:0; color:#263638; font-size:14px; line-height:1.5; }
@media (max-width:480px) {
  #spotPage .sanctuary-content { padding-right:12px; padding-left:12px; }
  #spotPage .sanctuary-nav { padding-right:10px; padding-left:10px; }
  #spotPage .sanctuary-nav h1 { font-size:22px; }
  #spotPage .sanctuary-hero { aspect-ratio:2.2; }
  #spotPage .sanctuary-section-head { align-items:flex-start; }
  #spotPage .sanctuary-section-head h2 { padding-top:7px; }
  #spotPage .sanctuary-periods { min-width:210px; }
  #spotPage .sanctuary-periods button { padding:0 8px; }
  #spotPage .sanctuary-viewpoint-rail button { flex-basis:155px; }
  #spotPage .sanctuary-location-row { grid-template-columns:1fr 1fr; }
  #spotPage .sanctuary-location-row button { grid-column:1 / -1; justify-content:center; margin:6px 0 10px; }
  #spotPage .sanctuary-advice dl > div { grid-template-columns:112px 1fr; }
}

/* Home spot names stay below the section title. */
.home-nearby-card .home-nearby-card-body h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#homeNearbyGallery .home-nearby-head h2 { font-size:20px!important; line-height:1.4; }
#homeNearbyGallery .home-nearby-card .home-nearby-card-body h3 { font-size:14px!important; line-height:1.4; }

/* Center place names across discovery cards and place/angle details. */
#homeNearbyGallery .home-nearby-card .home-nearby-card-body h3,
.home-nearby-card .home-nearby-card-body h3,
.spot-directory-card .spot-directory-copy h2,
#spotPage .sanctuary-nav h1,
#spotPage .sanctuary-viewpoint-rail b,
#spotPage .sanctuary-selected b,
#spotPage .sanctuary-location-row b {
  box-sizing:border-box;
  width:100%;
  text-align:center;
}

/* Remove directory metadata and search sections marked by the user. */
#nearbySpotsStatus,.spot-directory-summary,.published-directory-search{display:none!important}

/* Keep all five directory categories on one row on phones. */
.spot-directory-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.spot-directory-tabs>button{min-width:0;white-space:nowrap}

/* Match the View All label across legacy WebView and modern @layer engines, preventing vertical character stacking. */
html body:not(.merchant-theme) #homeNearbyGallery .home-nearby-card .home-nearby-card-body h3 {
  font-family:var(--pdd-font-ui,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif)!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:normal!important;
  color:#4e505c!important;
  opacity:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@layer pdd-typography {
html:is(#pdd-name-a#pdd-name-b#pdd-name-c,:root) body:not(.merchant-theme) #homeNearbyGallery .home-nearby-card .home-nearby-card-body h3 {
  font-family:var(--pdd-font-ui)!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:normal!important;
  color:#4e505c!important;
  opacity:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
}


#spotPage .sanctuary-live { overflow:hidden; }
#spotPage .sanctuary-live img { transform:translate3d(0,min(var(--spot-cover-offset,0px),max(0px,calc(11% - 1px))),0) scale(1.22) var(--spot-photo-transform,); transform-origin:center; }
@media (prefers-reduced-motion:reduce) { #spotPage .sanctuary-live img { transform:var(--spot-photo-transform,none); } }

#homeNearbyTrack .home-nearby-photo > img,
#nearbySpotsTrack .spot-directory-media > img,
#spotPage .sanctuary-photo-crop > img { transform:var(--spot-photo-transform,none); }
#spotPage .sanctuary-photo-crop { display:block; margin:0; overflow:hidden; border-radius:9px; }
#spotPage .sanctuary-hero-crop { border-radius:17px; }

/* Compact live distance and unique viewer count on directory cards. */
.spot-directory-card .spot-directory-stats{display:flex;justify-content:space-between;gap:4px 8px;flex-wrap:wrap;margin-top:8px;color:#7d8088;font-size:11px;line-height:1.5}
.spot-directory-stats>span{white-space:nowrap}

/* Use the native dialog top layer above the spot page and its overlays. */
dialog.sanctuary-photo-viewer{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0 0 env(safe-area-inset-bottom);border:0;background:#0b0d0f;color:#fff;overflow:hidden}
dialog.sanctuary-photo-viewer[open]{display:flex;flex-direction:column}
.sanctuary-photo-viewer::backdrop{background:#0b0d0f}
.sanctuary-photo-viewer header{position:relative;z-index:1;display:flex;align-items:center;gap:6px;padding:max(8px,env(safe-area-inset-top)) 8px 8px;flex-shrink:0;background:#fff}
.sanctuary-photo-viewer header button{min-width:44px;min-height:44px;border:0;background:transparent;color:#000!important;font:400 16px/1.4 system-ui;flex-shrink:0}
.sanctuary-photo-viewer .sanctuary-photo-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:#000}
.sanctuary-photo-viewer>img{display:block;flex:1;min-height:0;width:100%;height:0;object-fit:contain;touch-action:none;transition-property:none!important}

/* Homepage places form complete pairs; the full directory remains unchanged. */
#homeNearbyGallery #homeNearbyTrack.home-nearby-track{display:grid!important;grid-auto-flow:row!important;grid-auto-columns:unset!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow-x:hidden!important;scroll-snap-type:none!important;touch-action:pan-y!important;width:100%!important;max-height:none!important;height:auto!important;box-sizing:border-box}
#homeNearbyGallery #homeNearbyTrack>.home-nearby-card{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;overflow:hidden!important;scroll-snap-align:none!important}

#homeNearbyGallery #homeNearbyTrack>[data-home-feed-empty]{grid-column:1/-1}

/* Keep every grid row independent of each photo's intrinsic dimensions. */
#homeNearbyGallery #homeNearbyTrack>.home-nearby-card{height:auto!important;align-self:stretch!important;box-sizing:border-box!important}
#homeNearbyGallery #homeNearbyTrack .home-nearby-photo{position:relative!important;overflow:hidden!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;background:#edf0f3;box-sizing:border-box!important}
#homeNearbyGallery #homeNearbyTrack .home-nearby-photo>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;color:transparent}
