/* JEJORA · Mobile/Tablet v3 — one-screen-one-theme panels, visual-viewport hero, 济州寻光 + 寻光路书 ergonomics.
   Linked with media "(max-width:1023px), (hover:none) and (pointer:coarse)" → non-touch PC never loads it. */
:root{--m3-hh:65px;--m3-vh:100svh}
/* ---------- phones + portrait tablets (≤1023) ---------- */
@media (max-width:1023px){
  html{scroll-snap-type:y proximity;scroll-padding-top:var(--m3-hh)}
  html body{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
  /* hero = exactly the visible viewport (JS keeps --m3-vh = visualViewport.height → no gap under iOS toolbars) */
  html body .hero{height:var(--m3-vh)!important;min-height:560px}
  html body .dp-hero:not(.short){min-height:var(--m3-vh)}
  /* one screen, one theme: each home section is a full panel with its content optically centred */
  html body main#top>section.sec{min-height:calc(var(--m3-vh) - var(--m3-hh));display:flex;flex-direction:column;justify-content:center;scroll-snap-align:start;padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  html body main#top>section.sec>*{width:100%}
  html body .enq{scroll-snap-align:start}
  /* readable type: body ≥15px, lead 15.5/1.85, label floor 12px */
  html body .sec p,html body .lede,html body .dp-body p{font-size:max(15px,1em);line-height:1.85}
  html body .sec .lede{font-size:15.5px}
  html body small,html body .xg-tt small,html body .xg-rg span,html body .xg-rg i,html body .xg-lab{font-size:max(12px,1em)}
  /* ---------- 济州寻光 (home #atlas) ---------- */
  html body .xg-tabs{display:grid!important;grid-template-columns:repeat(2,1fr);gap:8px;overflow:visible!important;margin:0!important;border:0!important;background:none!important}
  html body .xg-tab{flex-direction:row;justify-content:flex-start;min-height:64px;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid rgba(241,236,227,.16);background:rgba(255,255,255,.04)}
  html body .xg-tab[aria-selected="true"]{background:linear-gradient(135deg,#F1E4C8,#E3C896);border-color:transparent;color:#171512}
  html body .xg-tab[aria-selected="true"] small{color:#5B4022}
  html body .xg-tab .xg-tt b{font-size:15.5px;letter-spacing:.06em}
  html body .xg-tab .xg-tt small{font-size:12px;opacity:.86}
  html body .xg-tab .xg-ti svg{width:22px;height:22px}
  html body .xg-pns{margin-top:16px}
  html body .xg-q{font-size:15px!important;line-height:1.8!important;color:rgba(241,236,227,.86)}
  html body .xg-rg{display:grid!important;grid-auto-flow:row!important;grid-template-rows:none!important;grid-auto-columns:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;margin-right:0!important;padding-right:0!important;border-top:0!important}
  html body .xg-rg a{border-bottom:1px solid rgba(241,236,227,.14);display:grid;grid-template-columns:1fr auto;gap:2px 8px;min-height:64px;padding:12px;border-radius:12px;border:1px solid rgba(241,236,227,.14);background:rgba(255,255,255,.035)}
  html body .xg-rg a b{font-size:15.5px;white-space:normal;overflow:visible}
  html body .xg-tab::after{display:none}
  html body .xg-rg a i{font-style:normal;font-size:11.5px!important;letter-spacing:.12em;color:#E3C896;align-self:center}
  html body .xg-rg a span{grid-column:1/-1;font-size:12.5px!important;color:rgba(241,236,227,.74)}
  html body .xg-chip,html body .xg-seg button,html body .xg-cats a{min-height:44px;min-width:44px;font-size:14.5px}
  html body .xg-go,html body .xg-s button{min-height:52px;border-radius:999px;font-size:15px;letter-spacing:.14em}
  html body .xg-s input{min-height:52px;font-size:16px}
  html body .xg-th a{min-height:72px;padding:14px 0}
  html body .xg-th small{font-size:13.5px!important;line-height:1.7}
  /* ---------- 定制我的寻光路书 (atlas.html planner) ---------- */
  html body .xp-top{flex-wrap:wrap;row-gap:12px}
  html body .xp-top .xp-ttl{flex:1 1 100%}
  html body .xp-days{flex:1 1 100%;display:grid!important;grid-template-columns:repeat(5,1fr);gap:6px}
  html body .xp-days button,html body .xp-day{min-height:44px;font-size:15px}
  html body .xp-tab{min-height:76px}
  html body .xp-tab-t,html body .xp-tab b{font-size:15px}
  html body .xp-rg-h{min-height:64px}
  html body .xp-rg-t{font-size:17px}
  html body .xp-chips button,html body .xp-f button,html body .xp-v,html body .xp-cat{min-height:44px}
  html body .xp input,html body .xp select,html body .xp textarea,html body .xp-bk input,html body .xp-bk select,html body .xp-bk textarea{font-size:16px!important;min-height:48px}
  html body .ct-zoom button{min-width:44px;min-height:44px}
  html body .xp-hint{font-size:13px;line-height:1.75;color:#57534B}
  /* floating route-book pill: appears once the map scrolls away, sits above the bottom CTA bar */
  html body .xp-rib.m3-fly{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:43;max-width:calc(100vw - 32px);box-shadow:0 12px 34px rgba(0,0,0,.28);border-radius:999px;background:#171512;color:#F1ECE3;border:1px solid rgba(227,200,150,.5);animation:m3in .3s ease both}
  html body .xp-rib.m3-fly .xp-rib-k,html body .xp-rib.m3-fly .xp-rib-r{display:none}
  html body .xp-rib.m3-fly .xp-rib-go{color:#E3C896}
  html body .xp-rib-ph{display:block}
  @keyframes m3in{from{opacity:0;transform:translate(-50%,12px)}}
}
/* tablets portrait 600–1023: wider measure, 2-up stays airy */
@media (min-width:600px) and (max-width:1023px){
  html body .xg-tabs{grid-template-columns:repeat(4,1fr)}
  html body .xg-rg{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body main#top>section.sec>.wrap,html body main#top>section.sec>.in{max-width:760px;margin-left:auto;margin-right:auto}
}
/* very narrow (Fold outer ~344) */
@media (max-width:359px){
  html body .xg-rg{grid-template-columns:1fr!important}
  html body .xg-tab{padding:10px}
  html body .xp-days{gap:4px}
}
/* phones in landscape: panels would be cramped → free scroll */
@media (max-height:500px) and (orientation:landscape){
  html{scroll-snap-type:none}
  html body main#top>section.sec{min-height:0}
  html body .hero{min-height:420px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-snap-type:none!important;scroll-behavior:auto!important}
  html body .xp-rib.m3-fly{animation:none}
}
