/* Kham-only adaptation. The approved shared Plateau files are reused unchanged. */
#routemap.kham-map #journeyDays{grid-template-columns:repeat(7,minmax(0,1fr))}
#routemap.kham-map #journeyDays button{border-radius:0}
#routemap.kham-map .stop.visit:not(.on) .pt{fill:#f7f4ec;stroke:#30372c}
#routemap.kham-map .gwbody{grid-template-columns:minmax(0,1fr) 280px}
#routemap.kham-map .day-summary{margin-bottom:6px}
@media(min-width:1101px){#routemap.kham-map.big .gmap{height:calc(100vh - 310px);min-height:300px}}
/* No mobile layout refinements are included in this desktop preview. */

/* Essence-only desktop preview: shared files unchanged. */
#routemap.essence-map #journeyDays{grid-template-columns:repeat(8,minmax(0,1fr))}
#routemap.essence-map .key{line-height:1.8}
@media(min-width:1101px){
#routemap.essence-map.big .gwbody{height:calc(100vh - 312px)}
#routemap.essence-map.big .mapside{min-height:0!important}
#routemap.essence-map.big .maps,#routemap.essence-map.big .mview.on{min-height:0}
#routemap.essence-map.big .gmap{flex:none!important;height:calc(100vh - 312px)!important;min-height:0!important}
#routemap.essence-map.big .listside{height:100%;min-height:0;overflow-y:auto}
#routemap.essence-map.big .journey-sequence{max-height:188px;overflow-y:auto;padding:12px 20px}
#routemap.essence-map.big #journeyDays{padding:0}
#routemap.essence-map.big .map-credit{margin:0;padding-top:8px;padding-bottom:8px}
}
.essence-alt .av-header{display:flex;justify-content:space-between;align-items:center;gap:24px}
.essence-alt .alt-expand{padding:9px 14px;background:#f7f4ec;border:1px solid #d7d1c2;color:#24291f;font:12px Inter,Arial,sans-serif;cursor:pointer}
.essence-alt .av-grid{grid-template-columns:minmax(0,1fr) 300px;height:610px;min-height:0}
.essence-alt:not(.big) .av-chart{align-self:stretch;display:flex;align-items:center;padding-top:0}
.essence-alt .av-panel{padding:23px 20px;overflow-y:auto}
.essence-alt .av-panel h4{font-size:23px;margin-bottom:16px}
.essence-alt .av-stat{padding:12px 0}
.essence-alt .av-stat span{display:block;margin:5px 0 0}
.essence-alt .av-stat .source-status{font-size:11px;line-height:1.55;color:#777e6d;margin:8px 0 0}
.essence-alt .av-stat strong.unknown{font-size:18px}
.essence-alt .av-days{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));padding:18px 0}
.essence-alt .av-days button{padding:12px 8px}
.essence-alt.big{position:fixed;inset:14px;z-index:2100;overflow:auto;background:#f7f4ec;border:1px solid #d7d1c2;box-shadow:0 0 0 100vmax #14140fb3;padding:0 20px 12px}
.essence-alt.big .av-header{position:sticky;top:0;z-index:5;background:#f7f4ec;padding-top:8px;margin:0 0 10px}
.essence-alt.big .av-header h3{font-size:25px;margin-bottom:4px}
.essence-alt.big .av-header p{margin:0}
.essence-alt.big .av-grid{min-height:440px}
.essence-alt.big .av-days{padding:12px 0;gap:6px}
.essence-alt.big .av-note{margin:0}
.essence-alt .alt-expand:focus-visible{outline:2px solid #e4601c;outline-offset:3px}
.essence-alt.big .av-grid{height:calc(100vh - 320px);min-height:0}
.essence-alt.big .av-panel{overflow-y:auto}
.essence-alt.big .av-chart{padding-top:0}
.essence-alt.big .av-chart svg{max-height:calc(100vh - 320px)}

/* Version02: actual OSM main-road context below the approved tour overlay. */
#routemap.essence-map .highway-network{fill:none;stroke:#9b8d73;stroke-width:calc(var(--u)*.9px);stroke-linejoin:round;stroke-linecap:round;opacity:.70;pointer-events:none}
#routemap.essence-map .highway-network .core{stroke-width:calc(var(--u)*1.15px)}
#routemap.essence-map .highway-badges{pointer-events:none}
#routemap.essence-map .highway-badge rect{x:calc(var(--u)*-22px);y:calc(var(--u)*-9px);width:calc(var(--u)*44px);height:calc(var(--u)*18px);rx:calc(var(--u)*3px);fill:#f7f4ec;fill-opacity:.96;stroke:#b5ab94;stroke-width:calc(var(--u)*.75px)}
#routemap.essence-map .highway-badge text{font:600 10px Inter,Arial,sans-serif;font-size:calc(var(--u)*10px);fill:#756f5d;letter-spacing:calc(var(--u)*.35px)}
#routemap.essence-map .highway-key{display:inline-block;width:22px;border-top:1px solid #9b8d73;vertical-align:middle;margin-right:5px}
#routemap.essence-map .map-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
