/* Tour page: "Route & days" card with map, day tabs and elevation profile */
.route{padding:var(--section) 0;background:var(--panel)}
.route-title{font-size:var(--fs-h2);margin-bottom:var(--head-gap)}
.route-card{--h:clamp(520px,72vh,700px);display:grid;grid-template-columns:minmax(320px,520px) 1fr;grid-template-rows:calc(var(--h) + 190px);background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg)}

/* ---------- left column ---------- */
.route-side{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid rgba(27,36,32,.1)}
.route-head{background:var(--night);color:var(--paper);padding:26px 30px 24px}
.route-head .mono{color:var(--gold);font-size:var(--fs-label);letter-spacing:var(--track-label)}
.route-totals{display:flex;flex-wrap:wrap;gap:12px 30px;margin:14px 0 0}
.route-totals dt{font-family:var(--body);font-weight:600;font-size:var(--fs-h3);line-height:1.1;letter-spacing:-.01em}
.route-totals dd{margin:4px 0 0;color:rgba(243,239,228,.72);font-size:var(--fs-sm)}
.route-tabs{display:flex;gap:8px;padding:14px 18px;border-bottom:1px solid rgba(27,36,32,.1);overflow-x:auto;scrollbar-width:none;flex:none}
.route-tabs button{flex:none;padding:9px 16px;border-radius:9px;border:1px solid rgba(27,36,32,.2);background:#fff;color:var(--text-primary);font:500 var(--fs-sm)/1.2 var(--body);cursor:pointer;transition:background .25s,border-color .25s,box-shadow .25s}
.route-tabs button:hover{border-color:var(--text-primary)}
.route-tabs button[aria-selected="true"]{background:var(--gold);border-color:var(--gold);color:#1b1a14;box-shadow:0 0 0 2px rgba(195,154,82,.3)}
.route-panels{flex:1;min-height:0;overflow-y:auto;padding:24px 30px 30px;scrollbar-width:thin}
.route-panel[hidden]{display:none}
.route-panel{animation:panelIn .45s var(--ease-out)}
@keyframes panelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.route-intro{color:var(--text-secondary);font-size:var(--fs-base);margin-bottom:18px}
.route-list{list-style:none;margin:0;padding:0}
.route-list button{display:grid;grid-template-columns:34px 1fr auto;gap:14px;align-items:center;width:100%;padding:11px 8px;border:0;border-radius:10px;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:background .2s}
.route-list button:hover{background:var(--panel)}
.route-list b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--night);color:#fff;font-size:var(--fs-label);font-weight:600}
.route-list span{font-size:var(--fs-base);line-height:1.35}
.route-list em{color:var(--text-secondary);font-size:var(--fs-sm);white-space:nowrap}
.route-daynum{color:var(--accent);font-size:var(--fs-label);letter-spacing:var(--track-label)}
.route-panel h3{font-family:var(--body);font-weight:600;font-size:var(--fs-h3);line-height:1.2;letter-spacing:-.01em;margin:10px 0 6px}
.route-sub{font-family:var(--display);font-size:var(--fs-md);color:var(--text-secondary)}
.route-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
.route-stats div{background:var(--panel);border-radius:12px;padding:12px 14px}
.route-stats dt{font-size:var(--fs-label);color:var(--text-secondary);line-height:1.3}
.route-stats dd{margin:6px 0 0;font-weight:600;font-size:var(--fs-md)}
.route-panel>p:not([class]){font-size:var(--fs-base);line-height:1.7}
.route-meta{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:var(--fs-sm)}
.route-meta .mono{color:var(--text-secondary);margin-right:8px}
.route-gallery{margin-top:22px}
.route-gallery .slides{border-radius:12px}
.route-nav{display:flex;justify-content:space-between;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(27,36,32,.1)}
.route-nav .btn{padding:11px 18px}

/* ---------- map + profile ---------- */
.route-mapcol{display:flex;flex-direction:column;min-width:0}
.route-map{position:relative;flex:1;min-height:0;background:#dfe4dc;z-index:0}
.route-profile{position:relative;height:190px;border-top:1px solid rgba(27,36,32,.1);background:#fff;cursor:crosshair}
.route-profile svg{display:block;width:100%;height:100%}
.route-profile .pg{stroke:rgba(27,36,32,.08)}
.route-profile .pt{font:11px var(--body);fill:var(--text-secondary)}
.route-profile .pd{font:600 var(--fs-label) var(--body);fill:var(--text-secondary);cursor:pointer}
.route-profile .pd.on{fill:#1b1a14}
.route-profile .pdiv{stroke:rgba(27,36,32,.25);stroke-dasharray:3 4}
.route-profile .pband{fill:rgba(242,194,0,.16)}
.route-profile .parea{fill:rgba(13,91,99,.12)}
.route-profile .pline{fill:none;stroke:#0d5b63;stroke-width:1.6}
.route-profile .pline-on{fill:none;stroke:#e0b300;stroke-width:2.6}
.route-profile .pcursor{stroke:#d8574a;stroke-width:1.5}
.prof-tip{position:absolute;top:4px;transform:translateX(-50%);padding:5px 9px;border-radius:6px;background:var(--night);color:#fff;font-size:var(--fs-label);white-space:nowrap;pointer-events:none}

/* map controls */
.map-layers{position:absolute;top:14px;right:14px;z-index:500;display:flex;padding:4px;border-radius:10px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.map-layers button{padding:8px 14px;border:0;border-radius:7px;background:none;font:500 var(--fs-sm) var(--body);color:var(--text-primary);cursor:pointer}
.map-layers button[aria-pressed="true"]{background:var(--night);color:#fff}
.map-full{position:absolute;top:14px;left:62px;z-index:500;width:40px;height:40px;border:0;border-radius:8px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.15);cursor:pointer;display:grid;place-items:center}
.map-full svg{width:20px;height:20px;fill:none;stroke:var(--text-primary);stroke-width:2;stroke-linecap:round}
.map-legend{position:absolute;left:14px;bottom:26px;z-index:500;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:9px 14px;list-style:none;border-radius:10px;background:rgba(255,255,255,.94);box-shadow:0 2px 10px rgba(0,0,0,.12);font-size:var(--fs-sm)}
.map-legend li{display:flex;align-items:center;gap:7px}
.lg{width:14px;height:14px;border-radius:50%;display:inline-block}
.lg-guest{background:var(--night)}
.lg-yurt{background:var(--accent)}
.lg-sight{background:#fff;border:2.5px solid #0d5b63}
.lg-horse{width:22px;height:0;border-radius:0;border-top:3px dotted #0d5b63}
.leaflet-container{font-family:var(--body)}
.leaflet-tile{outline:1px solid transparent}
.leaflet-control-zoom{border:0!important;box-shadow:0 2px 10px rgba(0,0,0,.15)!important;border-radius:8px!important;overflow:hidden;margin:14px 0 0 14px!important}
.leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important;font-size:20px!important;color:var(--text-primary)!important}
.leaflet-tooltip{font:500 var(--fs-label) var(--body);border-radius:8px;padding:6px 10px}

/* pins */
.route-pin{background:none;border:0}
.pin{display:grid;place-items:center;position:relative}
.pin svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pin-stay{width:40px;height:40px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--night);color:#fff;border:2.5px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.pin-stay.pin-yurt{background:var(--accent)}
.pin-stay svg{width:20px;height:20px;transform:rotate(45deg)}
.pin-stay b{position:absolute;top:-10px;right:-10px;transform:rotate(45deg);min-width:20px;height:20px;padding:0 4px;border-radius:10px;background:#fff;color:var(--night);font:700 11px/20px var(--body);text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.pin-sight,.pin-horse,.pin-start{width:28px;height:28px;border-radius:50%;background:#fff;color:#0d5b63;border:2.5px solid #0d5b63;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.pin-sight svg,.pin-horse svg{width:15px;height:15px}
.pin-start{background:#0d5b63;color:#fff}
.pin-start svg{width:12px;height:12px;fill:currentColor}

/* full screen map */
.route-card.map-fullscreen .route-mapcol{position:fixed;inset:0;z-index:95;background:#fff}
.no-scroll{overflow:hidden}
.no-map .route-mapcol{display:none}
.no-map{grid-template-columns:1fr}

@media (max-width:1000px){
  .route-card{grid-template-columns:1fr;grid-template-rows:auto}
  .route-map{flex:none;height:420px}
  .route-side{border-right:0}
  .route-panels{max-height:none;overflow:visible;padding:20px}
  .route-mapcol{order:-1}
  .route-head{padding:22px 20px}
  .route-tabs{padding:12px 14px}
  .route-profile{height:170px}
}
@media (max-width:560px){
  .route-stats{grid-template-columns:1fr 1fr}
  .map-layers button{padding:7px 10px;font-size:var(--fs-label)}
  .map-legend{font-size:var(--fs-label);gap:4px 10px;bottom:22px;right:14px}
  .route-list button{grid-template-columns:30px 1fr}
  .route-list em{grid-column:2}
}
@media (prefers-reduced-motion: reduce){.route-panel{animation:none}}
