/* Route pages only. The map, facts and guide retain their existing functional hooks. */
.km-route-page{--route-green:var(--green,#255d47);--route-border:#dfe5dd;--route-muted:var(--muted,#637168)}
.km-route-page .km-route-heading{padding-top:24px;padding-bottom:24px}
.km-route-page .km-breadcrumb{font-size:12px;margin-bottom:20px;color:var(--route-muted)}
.km-route-page .km-route-heading .km-eyebrow{margin:0 0 12px;font-size:12px;letter-spacing:.08em}
.km-route-page .km-route-heading h1{font-size:clamp(28px,3.1vw,44px);line-height:1.13;max-width:1000px;margin:0 0 16px}
.km-route-page .km-route-heading .km-lead{font-size:16px;line-height:1.65;max-width:900px;margin:0;color:var(--route-muted)}
.km-route-page .km-route-main-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"map facts" "guide facts";gap:24px 32px;align-items:start}
.km-route-page .km-route-map-column{grid-area:map;min-width:0}
.km-route-page .km-route-guide-column{grid-area:guide;min-width:0}
.km-route-page .km-route-summary-rail{grid-area:facts;align-self:stretch;min-width:0}
.km-route-page .km-route-summary-card{position:sticky;top:20px;border:1px solid var(--route-border);padding:24px;background:white;border-radius:8px}
.km-route-page .km-route-summary-card>.km-eyebrow{font-size:10px;margin:0 0 8px;letter-spacing:.11em}
.km-route-page .km-route-summary-card h2{font-size:23px;margin:0 0 18px;line-height:1.2}
.km-route-page .km-route-facts{margin:0;display:block}
.km-route-page .km-route-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;border-bottom:1px solid var(--route-border);padding:11px 0}
.km-route-page .km-route-facts dt{font-size:12px;color:var(--route-muted);line-height:1.4;flex:1}
.km-route-page .km-route-facts dd{margin:0;text-align:right;font-size:14px;line-height:1.45;font-weight:600;flex:1.15;overflow-wrap:anywhere}
.km-route-page .km-route-facts>div:first-child{padding-top:0}
.km-route-page .km-route-facts>div:first-child dd{font-size:24px;line-height:1.1;color:var(--route-green);font-family:Georgia,serif}
.km-route-page .km-route-facts-note{font-size:11px;line-height:1.6;color:var(--route-muted);margin:14px 0 24px}
.km-route-page .km-route-booking{padding:19px 16px;background:#f0f5ee;border-radius:5px;margin:0 -8px 18px}
.km-route-page .km-route-booking h3{font:600 20px/1.25 Georgia,serif;margin:0 0 8px}
.km-route-page .km-route-booking p{font-size:12px;line-height:1.65;margin:0 0 16px}
.km-route-page .km-route-tour-cta{display:flex;justify-content:center;align-items:center;text-align:center;width:100%;min-height:48px;padding:12px 10px;box-sizing:border-box;font-size:14px;border-radius:4px}
.km-route-page .km-route-downloads{display:flex;gap:8px;flex-wrap:wrap}
.km-route-page .km-route-downloads .km-button{flex:1;text-align:center;padding:10px;font-size:12px;min-height:42px;border-radius:4px}
.km-route-page .km-route-actions{display:flex;gap:16px;justify-content:space-between;margin:14px 0 0}
.km-route-page .km-route-actions .km-quiet{font-size:12px;padding:8px 0;min-height:40px}
.km-route-page .km-action-status:empty{display:none}
.km-route-page .km-action-status{font-size:12px;line-height:1.5;margin-bottom:0}
.km-route-page .km-map-shell{border:1px solid var(--route-border);border-radius:7px;overflow:hidden}
.km-route-page #route-map{height:510px}
.km-route-page .km-map-caption{font-size:12px;line-height:1.65;color:var(--route-muted);margin:12px 0 0}
.km-route-page .km-map-discovery{margin:0 0 12px}
.km-route-page .km-map-discovery p{font-size:12px}
.km-route-page .km-route-photo-preview{margin:20px 0 0}
.km-route-page .km-route-photo-link{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;text-decoration:none;color:inherit}
.km-route-page .km-route-photo-link figure{margin:0;min-width:0}
.km-route-page .km-route-photo-link img{width:100%;height:115px;object-fit:cover;display:block;border-radius:4px}
.km-route-page .km-route-photo-link figcaption{font-size:10px;line-height:1.4;color:var(--route-muted);margin-top:6px}
.km-route-page .km-route-photo-link>span{grid-column:1/-1;font-size:12px;color:var(--route-green);font-weight:600}
.km-route-page .km-profile{padding:20px 0;margin:0 0 24px;border-bottom:1px solid var(--route-border);background:transparent}
.km-route-page .km-profile h2,.km-route-page .km-surface h2{font-size:24px;margin-top:0}
.km-route-page .km-profile p{font-size:12px;line-height:1.65;color:var(--route-muted)}
.km-route-page .km-profile svg{max-height:185px}
.km-route-page #route-modes{margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid var(--route-border)}
.km-route-page #route-modes h2{font-size:24px;margin:0 0 10px}
.km-route-page #route-modes>p{font-size:12px;line-height:1.6}
.km-route-page .km-mode-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 0;padding:0;list-style:none}
.km-route-page .km-mode-item{padding:10px!important;min-width:0;border-radius:4px;font-size:11px!important;line-height:1.4}
.km-route-page .km-mode-item strong{font-size:12px}
.km-route-page .km-mode-item p{font-size:11px;margin:5px 0 0}
.km-route-page .km-surface{padding:20px;margin:0 0 32px;border-radius:5px;background:#f5f7f2}
.km-route-page .km-surface p{font-size:13px;line-height:1.7}
.km-route-page .km-route-layout{display:block;margin:0}
.km-route-page .km-route-toc{position:static;border:1px solid var(--route-border);border-left:3px solid var(--route-green);padding:20px;margin:0 0 32px;display:flex;gap:10px 18px;flex-wrap:wrap;border-radius:0 5px 5px 0}
.km-route-page .km-route-toc .km-eyebrow,.km-route-page .km-route-toc h2{display:none}
.km-route-page .km-route-toc a{margin:0;padding:0;font-size:12px;line-height:1.6;border:0}
.km-route-page .km-route-content{max-width:none;min-width:0}
.km-route-page .km-route-content h2{font-size:30px;line-height:1.2}
.km-route-page .km-route-content p,.km-route-page .km-route-content li{font-size:15px;line-height:1.85}
.km-route-page .km-route-content section{scroll-margin-top:24px}
.km-route-page .km-route-content .km-info-grid{gap:20px}
.km-route-page .km-route-content .km-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.km-route-page .km-tour-request{margin-top:56px;scroll-margin-top:25px}
.km-route-page a:focus-visible,.km-route-page button:focus-visible{outline:3px solid #d29d3f;outline-offset:4px}
@media(min-width:1280px){.km-route-page .km-route-main-layout{grid-template-columns:minmax(0,1fr) 345px;gap:24px 36px}}
@media(max-width:900px){
.km-route-page .km-route-main-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"map" "facts" "guide";gap:24px}
.km-route-page .km-route-summary-card{position:static;padding:20px}
.km-route-page .km-route-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.km-route-page .km-route-facts>div{display:block;padding:12px 0}
.km-route-page .km-route-facts>div:first-child{padding-top:12px}
.km-route-page .km-route-facts dd{text-align:left;font-size:16px;margin-top:5px}
.km-route-page .km-route-facts>div:first-child dd{font-size:22px}
.km-route-page .km-route-booking{margin:0 0 16px}
.km-route-page .km-route-facts-note{margin:16px 0 20px}
.km-route-page #route-map{height:430px}
.km-route-page .km-route-actions{justify-content:flex-start;gap:28px}
}
@media(max-width:540px){
.km-route-page .km-route-heading{padding-top:20px;padding-bottom:20px}
.km-route-page .km-breadcrumb{margin-bottom:16px;line-height:1.6}
.km-route-page .km-route-heading h1{font-size:30px}
.km-route-page .km-route-heading .km-lead{font-size:14px;line-height:1.7}
.km-route-page #route-map{height:350px}
.km-route-page .km-map-caption{font-size:11px}
.km-route-page .km-route-photo-link{gap:7px}
.km-route-page .km-route-photo-link img{height:85px}
.km-route-page .km-route-photo-link figcaption{font-size:9px}
.km-route-page .km-route-summary-card{padding:18px}
.km-route-page .km-route-summary-card h2{font-size:24px}
.km-route-page .km-route-facts dt{font-size:11px}
.km-route-page .km-route-facts dd{font-size:14px}
.km-route-page .km-mode-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.km-route-page .km-route-content h2{font-size:27px}
.km-route-page .km-route-content p,.km-route-page .km-route-content li{font-size:14px}
.km-route-page .km-route-content .km-info-grid{grid-template-columns:1fr}
.km-route-page .km-route-toc{padding:16px;gap:10px 15px}
.km-route-page .km-route-content .km-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.km-route-page .km-route-fact-detail{font-weight:400;font-size:12px;text-align:left}
.km-route-page .km-route-fact-detail summary{cursor:pointer;color:var(--route-green);text-align:right;font-weight:600}
.km-route-page .km-route-fact-detail p{font-size:12px;line-height:1.65;margin:10px 0 0}
@media(max-width:900px){.km-route-page .km-route-fact-detail summary{text-align:left}}
.km-route-page .km-route-location-details{margin:16px 0 0;font-size:12px;border-bottom:1px solid var(--route-border);padding-bottom:16px}
.km-route-page .km-route-location-details>summary{cursor:pointer;font-weight:600;color:var(--route-green);padding:8px 0}
.km-route-page .km-route-location-details .km-location-actions{margin:12px 0 0}
/* A long card must scroll with the document on shorter screens. */
@media(min-width:901px) and (max-height:1100px){.km-route-page .km-route-summary-card{position:static}}

/* Keep route discovery close to the first viewport while retaining global search. */
.km.single-km_route .km-site-search-band{padding:10px 0}
.km.single-km_route .km-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.km.single-km_route .km-site-search .km-search-controls{gap:8px}
.km.single-km_route .km-site-search .km-search-input-wrap{height:40px}
.km.single-km_route .km-site-search .km-search-controls input[type=search]{height:40px;min-height:40px;line-height:20px;padding:9px 44px 9px 12px;font-size:14px}
.km.single-km_route .km-site-search .km-search-controls select,.km.single-km_route .km-site-search .km-search-submit{height:40px;min-height:40px;font-size:13px}
.km.single-km_route .km-site-search .km-search-clear{height:30px;width:30px;font-size:22px}
.km-route-page .km-route-heading{padding-top:20px;padding-bottom:20px}
.km-route-page .km-route-heading .km-breadcrumb{margin-bottom:12px}
.km-route-page .km-route-heading .km-eyebrow{margin-bottom:8px;font-size:11px}
.km-route-page .km-route-heading h1{font-size:clamp(28px,2.8vw,40px);margin-bottom:12px}
.km-route-page .km-route-heading .km-lead{font-size:15px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:650px){.km.single-km_route .km-site-search .km-search-controls{grid-template-columns:minmax(0,1fr) auto}.km.single-km_route .km-site-search .km-search-input-wrap{grid-column:auto}.km.single-km_route .km-site-search .km-search-controls select{display:none}.km.single-km_route .km-site-search .km-search-submit{padding:0 12px;gap:7px}.km-route-page .km-route-heading .km-lead{font-size:14px;-webkit-line-clamp:3}}
/* Measured reference composition: compact heading, 810/300 columns, paired stats. */
.km-route-page .km-route-main-layout{max-width:1170px;padding:0 15px;box-sizing:border-box;grid-template-columns:minmax(0,810px) 300px;grid-template-areas:"heading facts" "map facts" "guide facts";gap:0 30px;margin-top:28px}
.km-route-page .km-route-heading{grid-area:heading;padding:0;margin:0;min-width:0}
.km-route-page .km-route-heading .km-breadcrumb{font-size:12px;margin:0 0 10px;line-height:1.4}
.km-route-page .km-route-heading .km-eyebrow{font-size:14px;text-transform:none;letter-spacing:0;margin:0 0 10px}
.km-route-page .km-route-heading h1{font:600 26px/34px Arial,"Helvetica Neue",sans-serif;margin:0 0 12px;max-width:none}
.km-route-page .km-route-summary-card{position:static;padding:0;border:0;border-radius:0;background:none}
.km-route-page .km-route-primary-actions{display:flex;flex-direction:column;gap:8px;margin:0 0 24px}
.km-route-page .km-route-primary-actions .km-button{display:flex;width:100%;min-height:45px;align-items:center;justify-content:center;padding:10px;box-sizing:border-box;border-radius:5px;font-size:18px;font-weight:600;line-height:1.3;text-align:center}
.km-route-page .km-route-source-card{margin:0 0 22px}
.km-route-page .km-route-source-card h2,.km-route-page #route-facts-title{font:600 13px/18px Arial,sans-serif;color:#777;margin:0 0 12px;text-transform:uppercase}
.km-route-page .km-route-source-card>div{background:#f5f5f5;border-radius:5px;padding:15px 12px;min-height:72px;box-sizing:border-box}
.km-route-page .km-route-source-card>div>a{font-size:15px;font-weight:600;line-height:1.5;text-decoration:none;display:block;overflow-wrap:anywhere}
.km-route-page .km-route-source-card>div>a.km-route-source-more{font-size:11px;font-weight:400;margin-top:8px}
.km-route-page .km-route-community-links{display:grid;margin:0 0 40px}
.km-route-page .km-route-community-links a{display:block;padding:12px 0;font-size:14px;border-bottom:1px solid #eee;text-decoration:none}
.km-route-page .km-route-community-links a:last-child{border-bottom:0}
.km-route-page .km-route-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;margin:0}
.km-route-page .km-route-facts>div,.km-route-page .km-route-facts>div:first-child{display:block;padding:0;border:0;min-height:36px}
.km-route-page .km-route-facts dt{font:400 13px/15px Arial,sans-serif;color:#777}
.km-route-page .km-route-facts dd,.km-route-page .km-route-facts>div:first-child dd{margin:5px 0 0;text-align:left;color:var(--ink,#202e29);font:600 16px/20px Arial,sans-serif;overflow-wrap:normal}
.km-route-page .km-route-fact-detail summary{text-align:left;font-size:13px;line-height:20px}
.km-route-page .km-route-facts-note{padding-top:20px;border-top:1px solid #ddd;font-size:11px;margin:24px 0 18px}
.km-route-page .km-route-downloads{font-size:13px}
.km-route-page .km-route-map-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 15px}
.km-route-page .km-route-quick-stats{display:flex;gap:36px;margin:0}
.km-route-page .km-route-quick-stats>div{min-width:72px}
.km-route-page .km-route-quick-stats dt{font:400 13px/18px Arial,sans-serif;color:#777}
.km-route-page .km-route-quick-stats dd{font:600 17px/23px Arial,sans-serif;margin:4px 0 0}
.km-route-page .km-route-actions{gap:20px;margin:0;justify-content:flex-end}
.km-route-page .km-route-actions .km-quiet{font:400 14px/20px Arial,sans-serif;padding:0;min-height:30px;background:none}
.km-route-page .km-route-map-toolbar>.km-action-status{flex-basis:100%;margin:0}
.km-route-page .km-map-shell{border:0;border-radius:0}
.km-route-page #route-map{height:450px}
.km-route-page .km-map-discovery{margin:0 0 6px;padding:0;font-size:11px;gap:4px 12px}
.km-route-page .km-map-discovery-hint{display:none}
.km-route-page .km-map-discovery .km-poi-toggle{font-size:11px}
.km-route-page .km-map-catalog-status{font-size:10px}
.km-route-page .km-profile{border:0;padding:0;background:white;margin:0}
.km-route-page .km-profile h2{font:600 13px/18px Arial,sans-serif;margin:8px 0 0;color:#777;text-transform:uppercase}
.km-route-page .km-profile svg{max-height:120px;width:100%;display:block}
.km-route-page .km-profile p{font-size:11px;line-height:1.45;margin:6px 0}
.km-route-page .km-map-caption{font-size:11px;line-height:1.5;background:#f5f5f5;padding:8px;margin:8px 0 0}
.km-route-page .km-route-photo-preview{margin:26px 0 28px}
.km-route-page .km-route-photo-link img{height:155px;border-radius:0}
.km-route-page .km-route-photo-link>span{font-size:13px;text-transform:uppercase;font-weight:600;grid-row:1}
.km-route-page .km-route-guide-column{padding-top:18px}
.km-route-page .km-route-content h2{font-family:Arial,sans-serif;font-size:22px;line-height:1.35}
@media(min-width:901px){.km-route-page .km-route-main-layout{width:calc(100% - 30px)}}
@media(max-width:900px){
.km-route-page .km-route-main-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "map" "facts" "guide";gap:0;width:100%;margin-top:18px;padding:0 18px}
.km-route-page .km-route-heading h1{font-size:20px;line-height:26px;margin-bottom:18px}
.km-route-page .km-route-heading .km-breadcrumb{font-size:11px;line-height:1.5}
.km-route-page .km-route-heading .km-eyebrow{font-size:14px;margin-bottom:8px}
.km-route-page .km-route-quick-stats{gap:30px}
.km-route-page .km-route-quick-stats>div{min-width:68px}
.km-route-page .km-route-quick-stats dt{font-size:12px}
.km-route-page .km-route-quick-stats dd{font-size:16px}
.km-route-page .km-route-map-toolbar{gap:12px;margin-bottom:12px}
.km-route-page .km-route-actions{justify-content:flex-start;gap:24px}
.km-route-page .km-route-map-toolbar>.km-route-actions{flex-basis:100%}
.km-route-page .km-map-shell{margin-left:-18px;margin-right:-18px}
.km-route-page #route-map{height:331px}
.km-route-page .km-route-summary-card{padding:18px 0 0}
.km-route-page .km-route-primary-actions{margin-bottom:24px}
.km-route-page .km-route-community-links{margin-bottom:24px}
.km-route-page .km-route-facts{gap:20px 16px}
.km-route-page .km-route-facts dd,.km-route-page .km-route-facts>div:first-child dd{font-size:16px}
.km-route-page .km-route-photo-link img{height:110px}
}
.km-route-page .km-route-heading .km-breadcrumb{font-size:14px;line-height:22px;margin-bottom:10px}
.km-route-page .km-route-heading .km-breadcrumb a{text-decoration:none}
.km-route-page .km-route-heading .km-breadcrumb span{color:#999;margin:0 8px}
.km-route-page .km-route-facts{column-gap:0}
.km-route-page .km-route-facts>div,.km-route-page .km-route-facts>div:first-child{padding:0 5px;box-sizing:border-box}
@media(max-width:900px){.km-route-page .km-route-heading .km-breadcrumb{font-size:14px;line-height:19px}.km-route-page .km-route-heading .km-breadcrumb span{margin:0 5px}}

/* Readable, full-width elevation chart: keep SVG text in screen pixels. */
.km .km-route-page .km-profile{margin-top:18px}
.km .km-route-page .km-profile h2{font:600 20px/1.4 Arial,sans-serif;text-transform:none;color:var(--ink,#202e29);margin:0 0 10px}
.km .km-route-page #elevation-chart{width:100%;height:300px;min-height:300px;max-height:none;display:block}
.km .km-route-page #elevation-chart text{font:14px Arial,sans-serif;fill:#43564b}
.km .km-route-page .km-profile p{font-size:14px;line-height:1.65;color:#516358;margin:10px 0}
.km .km-route-page .km-map-caption{font-size:14px;line-height:1.65;padding:12px;margin-top:12px}
@media(max-width:600px){.km .km-route-page #elevation-chart{height:240px;min-height:240px}.km .km-route-page .km-profile h2{font-size:19px}.km .km-route-page .km-profile p,.km .km-route-page .km-map-caption{font-size:14px}}
@media(max-width:600px){.km .km-route-page #elevation-chart text{font-size:12px}}
.km .km-stop-list .km-stop-google{display:inline-flex;align-items:center;min-height:36px;margin:2px 0 2px 12px;font-size:13px;font-weight:600;color:var(--green,#255d47);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.km .km-stop-list .km-stop-google{display:flex;width:fit-content;margin-left:0}}

.km-route-page .km-route-quick-stats{flex-wrap:wrap;row-gap:12px}
.km-route-page .km-route-intro{font-size:15px;line-height:1.65;margin:0 0 18px;color:var(--route-muted)}
.km-route-page .km-track-context{font-size:13px;line-height:1.65;border-left:3px solid var(--green);padding:10px 12px;background:#f0f5ee;margin:12px 0 20px;overflow-wrap:anywhere}
.km-route-page .km-route-mobile-actions{display:none}
.km-route-page .km-route-technical-details{border:1px solid var(--route-border);border-radius:6px;margin:24px 0;padding:16px}
.km-route-page .km-route-technical-details>summary{color:var(--green);font-weight:600;cursor:pointer;line-height:1.5}
.km-route-page .km-route-technical-body{padding-top:20px}
@media(max-width:900px){.km-route-page .km-route-main-layout{grid-template-areas:"heading" "map" "guide" "facts"}.km-route-page .km-route-mobile-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.km-route-page .km-route-mobile-actions .km-button{flex:1;min-width:130px;text-align:center;padding:10px;font-size:14px}.km-route-page .km-route-heading .km-track-context{margin-bottom:20px}.km-route-page .km-route-intro{font-size:14px}.km-route-page .km-route-toc{margin-bottom:22px;padding:12px}.km-route-page .km-route-summary-rail{margin-top:28px}}
@media(min-width:901px){.km-route-page .km-route-heading>.km-track-context{display:none}}

/* Shared source-line notes keep related descriptions obvious and easy to tap. */
.km-route-page .km-track-context p{margin:0 0 10px}
.km-route-page .km-track-context p:last-child{margin-bottom:0}
.km-route-page .km-track-context a{display:block;min-height:44px;padding:8px 0;box-sizing:border-box;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:normal}
