body.route-builder-page .route-tool{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);grid-template-areas:"controls map" "controls summary";gap:14px;align-items:start}body.route-builder-page .route-controls{grid-area:controls;display:grid;gap:14px}body.route-builder-page .route-workspace-map{grid-area:map;margin:0;padding:16px;border:1px solid #9ebfce;background:#fff}body.route-builder-page .route-summary{grid-area:summary;position:sticky;top:14px;margin:0;padding:16px;border:1px solid #194f67;background:#0b2d43;color:#fff}body.route-builder-page .planner-step{margin:0;padding:20px;border:1px solid #9ebfce;background:#fff}body.route-builder-page .starter-trip-templates{margin:0 0 14px;padding:20px;border:1px solid #9ebfce;background:#fff}body.route-builder-page .starter-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}body.route-builder-page .starter-template-card{min-width:0;padding:13px;display:grid;gap:8px;border:1px solid #b4ced9;background:#f6fbfd}body.route-builder-page .starter-template-card h3{margin:0;color:#103550;font-size:.9rem}body.route-builder-page .starter-template-card p{min-height:38px;margin:0;color:#5a7382;font-size:.76rem;line-height:1.42}body.route-builder-page .starter-template-card button{width:100%;min-height:36px;padding:7px 9px;border:1px solid #176886;background:#fff;color:#0c4d67;font-weight:800;text-align:center}body.route-builder-page .route-hero{margin:0 0 14px;padding:28px 30px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:end;border:1px solid #21627b;background:linear-gradient(110deg,#09263a,#0d4b67)}body.route-builder-page .route-hero h1{margin:6px 0 9px;color:#fff;font-size:clamp(2rem,4vw,3.2rem)}body.route-builder-page .route-hero p{max-width:720px;margin:0;color:#d6e9f1}body.route-builder-page .route-hero-status{padding:14px;display:grid;gap:5px;border:1px solid #7ecad7;background:rgba(2,21,33,.45);color:#e8f7fa}body.route-builder-page .route-hero-status span,body.route-builder-page .route-hero-status small{color:#b9d8e4;font-size:.75rem}body.route-builder-page .route-hero-status strong{font:800 .88rem "DM Mono",monospace;text-transform:uppercase;letter-spacing:.05em}body.route-builder-page .first-trip-walkthrough{margin:0 0 14px;padding:18px 20px;display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr) auto;gap:16px;align-items:center;border:1px solid #9ebfce;background:#f7fbfd}body.route-builder-page .first-trip-walkthrough h2{margin:3px 0 5px;font-size:1.25rem}body.route-builder-page .first-trip-walkthrough p{margin:0;color:#506c7c}body.route-builder-page .first-trip-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.route-builder-page .first-trip-step{min-width:0;padding:10px;border-left:3px solid #3ea8c7;background:#e9f4f8}body.route-builder-page .first-trip-step b{display:block;margin-bottom:4px;color:#0c5772;font:800 .7rem "DM Mono",monospace}body.route-builder-page .first-trip-step strong{display:block;color:#0d3048;font-size:.82rem}body.route-builder-page .first-trip-step small{display:block;margin-top:3px;color:#527081;font-size:.72rem;line-height:1.35}body.route-builder-page .first-trip-finish{white-space:nowrap}body.route-builder-page .step-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:8px;border-bottom:1px solid #d3e1e7}body.route-builder-page .step-heading .eyebrow{margin-bottom:7px}body.route-builder-page .step-heading h2{margin:0 0 8px;font-size:1.25rem}body.route-builder-page .planner-help{max-width:820px;color:#526d7d;font-size:.82rem}body.route-builder-page .country-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.route-builder-page .country-picker button{min-height:52px;padding:9px;border:1px solid #b4ced9;background:#f8fbfc;color:#123d55;font-weight:800;text-align:left}body.route-builder-page .country-picker button.selected{border-color:#1aaed2;background:#e5f8fc;box-shadow:inset 4px 0 0 #14a6cb}body.route-builder-page .location-picker{display:grid;gap:7px}body.route-builder-page .location-card{padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;border:1px solid #c4d8e0;background:#f8fbfc}body.route-builder-page .location-card>div{min-width:0;display:grid;gap:2px}body.route-builder-page .location-card strong{color:#123d55;font-size:.88rem}body.route-builder-page .location-card small{color:#627d8c;font-size:.72rem}body.route-builder-page .location-card .location-actions{display:flex;gap:7px}body.route-builder-page .location-card button{min-height:34px;padding:6px 9px;border:1px solid #2a718a;background:#fff;color:#0c536d;font-size:.75rem;font-weight:800}body.route-builder-page .location-card button[data-add]{background:#0f6480;color:#fff}body.route-builder-page .comfort-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}body.route-builder-page .comfort-picker button{min-height:100px;padding:13px;display:grid;align-content:start;gap:5px;border:1px solid #b4ced9;background:#f8fbfc;color:#163f56;text-align:left}body.route-builder-page .comfort-picker button.selected{border-color:#159ec3;background:#e5f8fc;box-shadow:inset 0 4px 0 #159ec3}body.route-builder-page .comfort-picker strong{font-size:.95rem}body.route-builder-page .comfort-picker span,body.route-builder-page .comfort-note{color:#597686;font-size:.76rem;line-height:1.4}body.route-builder-page .comfort-note{margin:10px 0 0}body.route-builder-page .route-workspace-map>div:first-child{margin-bottom:10px}body.route-builder-page .route-workspace-map h2{margin:2px 0 4px;font-size:1.2rem}body.route-builder-page .route-workspace-map p{margin:0;color:#526d7d;font-size:.78rem}body.route-builder-page #routeMap{min-height:310px}body.route-builder-page .route-summary-heading{display:flex;justify-content:space-between;gap:10px;align-items:start;padding-bottom:11px;border-bottom:1px solid #4b7d92}body.route-builder-page .route-summary-heading h2{margin:2px 0 0;color:#fff;font-size:1rem}body.route-builder-page .route-live-label{padding:4px 6px;border:1px solid #5d9bb1;color:#c9edf4;font:800 .6rem "DM Mono",monospace;text-transform:uppercase}body.route-builder-page .route-origin{display:grid;gap:4px;margin:12px 0 5px;color:#d5e9f0;font-size:.76rem;font-weight:800}body.route-builder-page .route-origin input{width:100%;min-height:36px;padding:7px 9px;border:1px solid #6d99aa;background:#fff;color:#123d55}body.route-builder-page .origin-help{margin:0 0 10px;color:#b6d4df;font-size:.72rem}body.route-builder-page .route-calendar-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}body.route-builder-page .route-calendar-controls label{display:grid;gap:4px;color:#d5e9f0;font-size:.7rem;font-weight:800}body.route-builder-page .route-calendar-controls input,body.route-builder-page .route-calendar-controls select{min-width:0;min-height:35px;padding:6px;border:1px solid #6d99aa;background:#fff;color:#123d55}body.route-builder-page .route-stops{display:grid;gap:8px}body.route-builder-page .route-stop{padding:10px;display:grid;grid-template-columns:28px minmax(0,1fr) 64px 32px;gap:8px;align-items:center;border:1px solid #3d7188;background:#103a53}body.route-builder-page .route-stop .stop-number{color:#a8d5e4;font:800 .75rem "DM Mono",monospace}body.route-builder-page .route-stop-main{min-width:0;display:grid;gap:2px}body.route-builder-page .route-stop-main strong{color:#fff;font-size:.88rem}body.route-builder-page .route-stop-main small{color:#c2dce5;font-size:.68rem;overflow-wrap:anywhere}body.route-builder-page .route-stop-actions{display:flex;gap:4px;margin-top:5px}body.route-builder-page .route-stop-actions button,body.route-builder-page .route-city-info,body.route-builder-page .remove-stop{min-width:27px;min-height:27px;padding:3px 5px;border:1px solid #6d99aa;background:#154c68;color:#fff;font-size:.66rem}body.route-builder-page .route-stop-actions button:disabled{opacity:.35}body.route-builder-page .route-stop label{display:grid;gap:3px;color:#cfe6ed;font-size:.65rem}body.route-builder-page .route-stop input{min-width:0;min-height:30px;padding:4px;border:1px solid #6d99aa;background:#fff;color:#123d55}body.route-builder-page .route-leg{margin:0;border:1px solid #3d7188;background:#09283b;color:#d7eaf1}body.route-builder-page .route-leg summary{padding:7px 9px;display:flex;gap:7px;justify-content:space-between;cursor:pointer;font-size:.72rem}body.route-builder-page .route-leg-fields{padding:10px;display:grid;gap:8px;border-top:1px solid #3d7188}body.route-builder-page .route-leg-fields p{margin:0;color:#c1d9e3;font-size:.72rem}body.route-builder-page .route-leg-fields label{display:grid;gap:4px;color:#d7eaf1;font-size:.7rem}body.route-builder-page .route-leg-fields select,body.route-builder-page .route-leg-fields input{min-height:32px;padding:5px;border:1px solid #6d99aa;background:#fff;color:#123d55}body.route-builder-page .route-totals{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}body.route-builder-page .route-totals>div{min-width:0;padding:8px;border:1px solid #3d7188;background:#103a53}body.route-builder-page .route-totals span{display:block;color:#b8d7e2;font-size:.64rem}body.route-builder-page .route-totals strong{display:block;margin-top:3px;color:#fff;font-size:.78rem;overflow-wrap:anywhere}body.route-builder-page .route-primary-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}body.route-builder-page .route-primary-actions button{min-height:38px;padding:8px 11px;border:1px solid #5db8d0;background:#1980a1;color:#fff;font-weight:800}body.route-builder-page .route-primary-actions button+button{background:transparent}body.route-builder-page .planner-device-save-status,body.route-builder-page .planner-save-note,body.route-builder-page .route-note{margin:8px 0 0;color:#b8d7e2;font-size:.7rem;line-height:1.4}body.route-builder-page .route-pricing{display:none}body.route-builder-page .route-calendar-panel,body.route-builder-page .trip-booking-organizer,body.route-builder-page .saved-trip-manager,body.route-builder-page .route-guidance{margin:14px 0 0;padding:20px;border:1px solid #9ebfce;background:#fff}body.route-builder-page .route-calendar-heading,body.route-builder-page .trip-booking-heading,body.route-builder-page .saved-trip-heading{display:flex;justify-content:space-between;gap:16px;align-items:end;padding-bottom:10px;border-bottom:1px solid #d3e1e7}body.route-builder-page .route-calendar-heading h2,body.route-builder-page .trip-booking-heading h2,body.route-builder-page .saved-trip-heading h2{margin:2px 0 0}body.route-builder-page .route-calendar-heading p,body.route-builder-page .trip-booking-heading p,body.route-builder-page .saved-trip-heading p{margin:0;color:#526d7d}body.route-builder-page .route-calendar-list{display:grid;gap:8px;margin-top:12px}body.route-builder-page .route-calendar-list article{padding:12px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;border-left:4px solid #26a9ca;background:#f2f8fa}body.route-builder-page .calendar-number{color:#0d5d79;font:800 .76rem "DM Mono",monospace}body.route-builder-page .route-calendar-list p,body.route-builder-page .route-calendar-list small{display:block;margin:4px 0 0;color:#577382;font-size:.75rem;line-height:1.4}body.route-builder-page .route-calendar-disclaimer{margin:12px 0 0;color:#617e8d;font-size:.72rem;line-height:1.4}body.route-builder-page .city-pricing-dialog,body.route-builder-page .route-save-dialog{width:min(680px,calc(100% - 28px));max-height:calc(100vh - 42px);padding:0;border:1px solid #255e76;background:#fff}body.route-builder-page .city-pricing-dialog::backdrop,body.route-builder-page .route-save-dialog::backdrop{background:rgba(4,23,35,.72)}body.route-builder-page .city-pricing-dialog-head,body.route-builder-page .route-save-dialog-head{padding:16px 18px;display:flex;justify-content:space-between;align-items:start;background:#0d405a;color:#fff}body.route-builder-page .city-pricing-dialog h2,body.route-builder-page .route-save-dialog h2{margin:3px 0 0;color:#fff}body.route-builder-page .city-pricing-dialog-head button,body.route-builder-page .route-save-dialog-head button,body.route-builder-page .route-save-close{min-height:34px;padding:6px 9px;border:1px solid #80bed1;background:transparent;color:#fff}body.route-builder-page .route-pricing{padding:18px}@media(max-width:1100px){body.route-builder-page .starter-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.route-builder-page .route-tool{grid-template-columns:minmax(0,1fr) 340px}}@media(max-width:850px){body.route-builder-page .route-hero{grid-template-columns:1fr}body.route-builder-page .route-tool{grid-template-columns:1fr;grid-template-areas:"controls" "map" "summary"}body.route-builder-page .route-summary{position:static}body.route-builder-page .starter-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){body.route-builder-page .route-hero,body.route-builder-page .starter-trip-templates,body.route-builder-page .planner-step,body.route-builder-page .route-workspace-map,body.route-builder-page .route-summary,body.route-builder-page .route-calendar-panel,body.route-builder-page .trip-booking-organizer,body.route-builder-page .saved-trip-manager,body.route-builder-page .route-guidance{padding:14px}body.route-builder-page .first-trip-walkthrough{grid-template-columns:1fr;padding:14px}body.route-builder-page .first-trip-steps{grid-template-columns:1fr}body.route-builder-page .starter-template-heading,body.route-builder-page .route-calendar-heading,body.route-builder-page .trip-booking-heading,body.route-builder-page .saved-trip-heading{align-items:start;flex-direction:column}body.route-builder-page .starter-template-grid,body.route-builder-page .country-picker,body.route-builder-page .comfort-picker{grid-template-columns:1fr}body.route-builder-page .location-card{grid-template-columns:1fr}body.route-builder-page .location-card .location-actions{display:grid;grid-template-columns:1fr 1fr}body.route-builder-page .route-calendar-controls{grid-template-columns:1fr}body.route-builder-page .route-stop{grid-template-columns:25px minmax(0,1fr) 58px 30px;padding:8px}body.route-builder-page .route-stop-actions button{min-width:25px}body.route-builder-page .route-totals{grid-template-columns:1fr 1fr}body.route-builder-page #routeMap{min-height:260px}}body.route-builder-page .first-trip-walkthrough.complete .first-trip-steps{display:none}
body.route-builder-page .location-choice{padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;border:1px solid #c4d8e0;background:#f8fbfc}body.route-builder-page .location-choice>div:first-child{min-width:0;display:grid;gap:2px}body.route-builder-page .location-choice strong{color:#123d55;font-size:.88rem}body.route-builder-page .location-choice span{color:#627d8c;font-size:.72rem}body.route-builder-page .location-choice-actions{display:flex;gap:7px}body.route-builder-page .location-choice button{min-height:34px;padding:6px 9px;border:1px solid #2a718a;background:#fff;color:#0c536d;font-size:.75rem;font-weight:800}body.route-builder-page .location-choice .location-add{background:#0f6480;color:#fff}body.route-builder-page .location-choice .location-add:disabled{opacity:.55}body.route-builder-page .route-stop>.route-drag-handle{display:none}body.route-builder-page .route-stop>div:nth-of-type(1){min-width:0;display:grid;gap:2px}body.route-builder-page .route-stop>div:nth-of-type(1) strong{color:#fff;font-size:.88rem}body.route-builder-page .route-stop>div:nth-of-type(1) small{color:#c2dce5;font-size:.68rem}body.route-builder-page .route-reorder-controls{display:flex;gap:4px;margin-top:4px}body.route-builder-page .route-reorder-controls button{min-width:27px;min-height:27px;padding:3px 5px;border:1px solid #6d99aa;background:#154c68;color:#fff;font-size:.66rem}body.route-builder-page .route-stop>.route-reorder-controls{grid-column:2}body.route-builder-page .route-stop>.route-city-info{display:inline-flex;align-items:center;justify-content:center;margin-top:3px}body.route-builder-page .route-stop>label{grid-column:3}body.route-builder-page .route-stop>.remove-stop{grid-column:4}@media(max-width:600px){body.route-builder-page .location-choice{grid-template-columns:1fr}body.route-builder-page .location-choice-actions{display:grid;grid-template-columns:1fr 1fr}body.route-builder-page .route-stop{grid-template-columns:25px minmax(0,1fr) 58px 30px;padding:8px}body.route-builder-page .route-stop>.route-city-info{display:none}}
body.route-builder-page .route-primary-actions{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}body.route-builder-page .route-primary-actions .route-budget-link{min-height:38px;padding:8px 11px;display:flex;align-items:center;justify-content:center;border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8!important;font-weight:800;text-align:center;text-decoration:none}body.route-builder-page .route-primary-actions .route-budget-link:hover{border-color:#60a5fa;background:#dbeafe;color:#1e40af!important}@media(max-width:600px){body.route-builder-page .route-primary-actions{grid-template-columns:1fr 1fr}.route-builder-page .route-primary-actions .route-budget-link{grid-column:1/-1}}
body.route-builder-page .trip-hub{width:min(var(--nm-content),calc(100% - 40px));margin:0 auto 14px}@media(max-width:960px){body.route-builder-page .trip-hub{width:calc(100% - 28px)}}@media(max-width:700px){body.route-builder-page .trip-hub{width:100%;margin:0 0 10px}}
body.route-builder-page .trip-hub{width:100%;margin:0 0 14px}body.route-builder-page .route-tool{grid-template-columns:minmax(0,1fr) minmax(330px,.72fr);grid-template-areas:"map map" "controls summary"}body.route-builder-page .route-workspace-map{min-height:440px}body.route-builder-page #routeMap{min-height:360px}body.route-builder-page .route-summary{max-height:calc(100vh - 28px);overflow:auto}body.route-builder-page .route-stops{max-height:360px;overflow:auto;padding-right:4px}body.route-builder-page .route-stop{min-height:0;padding:7px 8px;grid-template-columns:26px minmax(0,1fr) 54px 28px}body.route-builder-page .route-stop>div:nth-of-type(1) small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.route-builder-page .route-reorder-controls{margin-top:2px}body.route-builder-page .route-reorder-controls button{min-height:23px;font-size:.58rem}body.route-builder-page .route-stop>label{font-size:.58rem}body.route-builder-page .route-stop input{min-height:26px;padding:2px}body.route-builder-page .route-leg summary{min-height:34px;align-items:center}body.route-builder-page .route-calendar-foldout{display:block;margin:14px 0 0;border:1px solid var(--nm-line);background:var(--nm-panel)}body.route-builder-page .route-calendar-foldout>summary{padding:12px 14px;display:flex;justify-content:space-between;gap:14px;cursor:pointer;color:var(--nm-ink);font-weight:800}body.route-builder-page .route-calendar-foldout>summary small{color:var(--nm-muted);font-weight:500}body.route-builder-page .route-calendar-foldout:not([open]) .route-calendar-panel{display:none}body.route-builder-page .route-calendar-foldout .route-calendar-panel{margin:0;border:0;border-top:1px solid var(--nm-line)}@media(max-width:850px){body.route-builder-page .route-tool{grid-template-areas:"map" "controls" "summary"}body.route-builder-page .route-workspace-map{min-height:320px}body.route-builder-page #routeMap{min-height:280px}body.route-builder-page .route-summary{max-height:none}body.route-builder-page .route-stops{max-height:300px}}
/* Compact route workspace: the map is a primary panel and stop rows open details only from their info control. */
body.route-builder-page .route-workspace-map { display:block; }
body.route-builder-page .route-workspace-map > div:first-child { max-width:none; }
body.route-builder-page .route-workspace-map #routeMap { width:100%; }
body.route-builder-page .route-map-status{margin:10px 0 0;padding:10px 12px;border-left:3px solid #159ec3;background:#eef8fb;color:#365967;font-size:.78rem;line-height:1.45}
body.route-builder-page .route-leg-quote{grid-column:1/-1;color:#ffe0a8;font-size:.7rem;line-height:1.35}
body.route-builder-page .route-stop{position:relative;z-index:1}
body.route-builder-page .route-leg{position:relative;z-index:0}
body.route-builder-page .route-stop-budget{position:relative;z-index:2;min-height:30px;align-items:center;padding:3px 0}
body.route-builder-page .route-stop.is-custom .route-stop-budget{color:#694f12}
body.route-builder-page .route-stop { padding:6px 7px; gap:6px; }
body.route-builder-page .route-leg { margin:0; background:#09283b; color:#d7eaf1; }
body.route-builder-page .route-leg details { margin:0; border:0; background:#09283b; color:#d7eaf1; }
body.route-builder-page .route-leg summary { background:#103a53; color:#eaf7fb; }
body.route-builder-page .route-leg summary strong,
body.route-builder-page .route-leg summary b { color:#fff; }
body.route-builder-page .route-leg-fields { background:#09283b; }
body.route-builder-page .route-leg-fields select,
body.route-builder-page .route-leg-fields input { background:#f7fbfd; color:#123d55; }
body.route-builder-page .country-picker { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
body.route-builder-page .country-picker button { min-height:58px; padding:8px 9px; display:grid; align-content:center; gap:3px; background:#f7fbfd; }
body.route-builder-page .country-picker button strong { color:#123d55; font-size:.78rem; line-height:1.15; }
body.route-builder-page .country-picker button span { color:#547181; font-size:.66rem; line-height:1.2; }
body.route-builder-page .country-picker button.selected { border-color:#13a9ce; background:#e2f7fc; box-shadow:inset 4px 0 0 #13a9ce; }
body.route-builder-page .country-picker button.selected strong { color:#073d55; }
body.route-builder-page .country-picker button.selected span { color:#0b6581; font-weight:800; }
@media(max-width:600px){body.route-builder-page .country-picker{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(min-width:901px){
  body.route-builder-page .starter-template-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;}
  body.route-builder-page .starter-template-card{padding:8px;gap:5px;}
  body.route-builder-page .starter-template-card h3{font-size:.71rem;line-height:1.18;}
  body.route-builder-page .starter-template-card p{min-height:0;font-size:.62rem;line-height:1.28;}
  body.route-builder-page .starter-template-card button{min-height:30px;padding:5px;font-size:.64rem;}
}
/* Route deck replaces the cramped seven-column template grid. */
body.route-builder-page .starter-template-grid{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 8px;
  scroll-snap-type:x proximity;
  scrollbar-color:#4e8297 #e4eef2;
}
body.route-builder-page .starter-template-card{
  flex:0 0 178px;
  min-height:128px;
  padding:12px;
  grid-template-rows:auto 1fr auto;
  gap:9px;
  border-color:#8fb5c4;
  background:linear-gradient(145deg,#fafdfe,#e8f4f8);
  scroll-snap-align:start;
}
body.route-builder-page .starter-template-card h3{
  color:#0a3d57;
  font-size:.82rem;
  line-height:1.2;
}
body.route-builder-page .starter-template-card p{
  display:block;
  min-height:0;
  color:#496b7a;
  font-size:.69rem;
  line-height:1.45;
}
body.route-builder-page .starter-template-card button{
  min-height:34px;
  border-color:#176886;
  background:#0f5875;
  color:#fff;
  font-size:.69rem;
}
@media(max-width:600px){
  body.route-builder-page .starter-template-card{flex-basis:78vw;min-height:136px;}
}
/* Route-stop alignment and city-details dialog repair. */
body.route-builder-page .city-pricing-dialog .route-pricing{display:block;padding:18px;color:#123d55;background:#fff;}
body.route-builder-page .city-pricing-dialog .route-pricing h2{color:#123d55;}
body.route-builder-page .city-pricing-dialog .route-pricing p{color:#496b7a;}
body.route-builder-page .route-stop{grid-template-columns:22px minmax(0,1fr) auto 42px 28px;grid-template-areas:"number city reorder days remove";gap:6px;align-items:center;}
body.route-builder-page .route-stop>.stop-number{grid-area:number;}
body.route-builder-page .route-stop>div:nth-of-type(1){grid-area:city;grid-template-columns:minmax(0,1fr) 23px;align-items:center;column-gap:5px;}
body.route-builder-page .route-stop>div:nth-of-type(1) strong,body.route-builder-page .route-stop>div:nth-of-type(1) small{grid-column:1;}
body.route-builder-page .route-stop>div:nth-of-type(1) .route-city-info{grid-column:2;grid-row:1 / span 2;align-self:center;margin:0;}
body.route-builder-page .route-stop>.route-reorder-controls{grid-area:reorder;grid-column:auto;margin:0;gap:3px;align-items:center;}
body.route-builder-page .route-reorder-controls button{min-width:24px;min-height:25px;padding:2px 4px;font-size:0;}
body.route-builder-page .route-reorder-controls button::before{font-size:.84rem;line-height:1;}
body.route-builder-page .route-reorder-controls button[data-move-route="up"]::before{content:"↑";}
body.route-builder-page .route-reorder-controls button[data-move-route="down"]::before{content:"↓";}
body.route-builder-page .route-stop>label{grid-area:days;grid-column:auto;display:grid;gap:2px;margin:0;min-width:0;text-align:center;}
body.route-builder-page .route-stop>label input{width:100%;text-align:center;}
body.route-builder-page .route-stop>.remove-stop{grid-area:remove;grid-column:auto;align-self:center;}
@media(max-width:600px){
  body.route-builder-page .route-stop{grid-template-columns:20px minmax(0,1fr) auto 38px 26px;gap:4px;padding:6px;}
  body.route-builder-page .route-stop>div:nth-of-type(1){grid-template-columns:minmax(0,1fr);}
  body.route-builder-page .route-stop>div:nth-of-type(1) .route-city-info{display:none;}
}
/* Route Builder review pass: compact comfort controls, visible date plan, and balanced workspace. */
@media(min-width:851px){
  body.route-builder-page .route-tool{grid-template-columns:minmax(0,1fr) minmax(420px,.88fr);}
}
body.route-builder-page .planner-step:has(#comfortPicker){padding:14px 16px;}
body.route-builder-page .planner-step:has(#comfortPicker) .step-heading{margin-bottom:5px;}
body.route-builder-page .planner-step:has(#comfortPicker) .planner-help{margin:0 0 8px;font-size:.76rem;}
body.route-builder-page .comfort-picker{gap:7px;}
body.route-builder-page .comfort-picker button{min-height:72px;padding:9px;gap:3px;}
body.route-builder-page .comfort-picker strong{font-size:.84rem;}
body.route-builder-page .comfort-picker span,body.route-builder-page .comfort-note{font-size:.68rem;line-height:1.3;}
body.route-builder-page .comfort-note{margin-top:7px;}
body.route-builder-page .route-calendar-foldout{display:block;}
body.route-builder-page .route-calendar-foldout>summary{display:none;}
body.route-builder-page .route-calendar-foldout .route-calendar-panel{display:block !important;margin:0;border:0;}
/* Route Builder uses the wider desktop planning canvas. */
@media(min-width:1200px){body.route-builder-page{--nm-content:2200px;}}
/* Desktop readability pass: restore useful scale without changing map scale. */
@media(min-width:1200px){
  body.route-builder-page .site-main{grid-template-columns:260px minmax(0,1fr);gap:22px;}
  body.route-builder-page .site-rail{gap:14px;}
  body.route-builder-page .rail-module h2{padding:11px 14px;font-size:.86rem;}
  body.route-builder-page .rail-module>p{padding:14px;font-size:.9rem;}
  body.route-builder-page .rail-module nav a{min-height:46px;padding:11px 14px;font-size:.9rem;}
  body.route-builder-page .starter-template-card{flex-basis:220px;min-height:148px;padding:14px;}
  body.route-builder-page .starter-template-card h3{font-size:.92rem;}
  body.route-builder-page .starter-template-card p{font-size:.76rem;}
  body.route-builder-page .starter-template-card button{min-height:38px;font-size:.76rem;}
  body.route-builder-page .planner-step{padding:24px;}
  body.route-builder-page .step-heading h2{font-size:1.55rem;}
  body.route-builder-page .planner-help{font-size:.9rem;}
  body.route-builder-page .country-picker{gap:10px;}
  body.route-builder-page .country-picker button{min-height:68px;padding:12px;}
  body.route-builder-page .country-picker button strong{font-size:.92rem;}
  body.route-builder-page .country-picker button span{font-size:.75rem;}
  body.route-builder-page .location-card{padding:12px 14px;}
  body.route-builder-page .location-card strong{font-size:.96rem;}
  body.route-builder-page .location-card small{font-size:.78rem;}
  body.route-builder-page .location-card button{min-height:38px;font-size:.8rem;}
  body.route-builder-page .route-summary{padding:20px;}
  body.route-builder-page .route-summary-heading h2{font-size:1.15rem;}
  body.route-builder-page .route-origin{font-size:.84rem;}
  body.route-builder-page .route-calendar-controls label{font-size:.78rem;}
}
/* Route rows keep their controls together instead of stretching across the wider panel. */
body.route-builder-page .route-stops{justify-items:start;}
body.route-builder-page .route-stop{width:min(100%,500px);grid-template-columns:22px fit-content(290px) auto auto 28px;grid-template-areas:"number city reorder days remove";justify-content:start;}
body.route-builder-page .route-stop>div:nth-of-type(1){grid-template-columns:minmax(0,1fr) 23px;}
body.route-builder-page .route-stop>label{display:flex;align-items:center;gap:3px;text-align:left;white-space:nowrap;}
body.route-builder-page .route-stop>label input{width:34px;min-height:26px;}
@media(min-width:1200px){body.route-builder-page .route-stop{width:min(100%,540px);}}
/* Route-summary correction: compact panel, content-sized stops, and closed transfer drawers. */
@media(min-width:1200px){
  body.route-builder-page .route-tool{grid-template-columns:minmax(0,1fr) 600px;}
  body.route-builder-page .route-summary{width:100%;padding:22px;}
  body.route-builder-page .route-summary-heading h2{font-size:1.28rem;}
  body.route-builder-page .route-origin{font-size:.9rem;}
  body.route-builder-page .route-calendar-controls label{font-size:.82rem;}
  body.route-builder-page .route-totals span{font-size:.72rem;}
  body.route-builder-page .route-totals strong{font-size:.9rem;}
  body.route-builder-page .route-primary-actions button{min-height:44px;font-size:.9rem;}
}
body.route-builder-page .route-stop{width:fit-content;max-width:100%;}
body.route-builder-page .route-leg details:not([open]) .route-leg-fields{display:none;}
body.route-builder-page .route-leg-fields .travel-days{display:grid;gap:4px;}
/* Route Builder consistency pass: country tiles, direct transfers, and equal totals. */
body.route-builder-page .country-picker button{
  text-align:left;
  justify-items:start;
  align-content:start;
}
body.route-builder-page .country-picker button strong,
body.route-builder-page .country-picker button span{justify-self:start;text-align:left;}
body.route-builder-page .route-summary{display:flex;flex-direction:column;}
body.route-builder-page .route-stops{justify-items:stretch;}
body.route-builder-page .route-stop{width:100%;max-width:none;grid-template-columns:22px minmax(0,1fr) auto auto 28px;}
body.route-builder-page .route-leg{width:100%;margin:0;border:1px solid #3c748b;background:#0a2d42;color:#d8edf3;}
body.route-builder-page .route-leg-compact{display:grid;grid-template-columns:auto minmax(120px,1fr) 128px 78px 58px;gap:8px;align-items:end;padding:9px 10px;}
body.route-builder-page .route-leg-kicker{font:800 .64rem/1 "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase;color:#90d0e1;}
body.route-builder-page .route-leg-compact strong{align-self:center;font-size:.78rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.route-builder-page .route-leg-compact label{display:grid;gap:3px;margin:0;color:#c7e3ec;font-size:.66rem;font-weight:700;}
body.route-builder-page .route-leg-compact select,
body.route-builder-page .route-leg-compact input{box-sizing:border-box;min-width:0;min-height:31px;padding:4px 6px;border:1px solid #74a6b8;border-radius:0;background:#f8fcfd;color:#113d54;font:700 .74rem/1.1 inherit;}
body.route-builder-page .route-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
body.route-builder-page .route-totals>div{min-height:70px;display:grid;align-content:center;gap:5px;}
@media(min-width:1200px){
  body.route-builder-page .country-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
  body.route-builder-page .country-picker button{min-height:82px;padding:13px 15px;}
  body.route-builder-page .country-picker button strong{font-size:1rem;}
  body.route-builder-page .country-picker button span{font-size:.74rem;line-height:1.35;}
}
@media(max-width:760px){
  body.route-builder-page .route-leg-compact{grid-template-columns:auto minmax(0,1fr) 1fr;}
  body.route-builder-page .route-leg-compact strong{grid-column:2 / -1;white-space:normal;}
  body.route-builder-page .route-leg-compact label:first-of-type{grid-column:1 / -1;}
  body.route-builder-page .route-totals{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Route Builder review pass: clearer selector and larger supporting text. */
body.route-builder-page .route-hero>div>p:last-child{max-width:46rem;font-size:1rem;line-height:1.55;}
body.route-builder-page .planner-help,
body.route-builder-page .location-choice span,
body.route-builder-page .route-summary small,
body.route-builder-page .route-summary label,
body.route-builder-page .route-note{font-size:.84rem;line-height:1.45;}
body.route-builder-page .comfort-selector-label{margin:0 0 9px;font:800 .8rem/1 "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase;color:#0b5975;}
body.route-builder-page .comfort-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
body.route-builder-page .comfort-picker button{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;min-height:96px;padding:13px;text-align:left;border:2px solid #94b8c6;background:#f8fcfd;color:#103c54;}
body.route-builder-page .comfort-picker button:hover{border-color:#237b99;background:#eff9fc;}
body.route-builder-page .comfort-picker button.selected{border-color:#087ca0;background:#dff5fa;box-shadow:inset 0 0 0 2px #79d7e9;}
body.route-builder-page .comfort-picker button.selected::after{content:"Selected";position:absolute;top:7px;right:8px;font:800 .58rem/1 "DM Mono",monospace;letter-spacing:.06em;text-transform:uppercase;color:#075c78;}
body.route-builder-page .comfort-copy{display:grid;gap:5px;min-width:0;}
body.route-builder-page .comfort-copy strong{font-size:1rem;line-height:1.1;}
body.route-builder-page .comfort-copy>span{font-size:.78rem;line-height:1.35;color:#3f6575;}
body.route-builder-page .comfort-money{display:flex;align-items:center;gap:2px;min-height:32px;}
body.route-builder-page .comfort-money i{position:relative;display:block;width:19px;height:29px;border:2px solid #157b67;border-radius:3px;background:linear-gradient(135deg,#d5f4c6,#8ed9a9);box-shadow:0 2px 0 #0b5f50;animation:comfort-bill-float 1.8s ease-in-out infinite;}
body.route-builder-page .comfort-money i::after{content:"$";position:absolute;inset:0;display:grid;place-items:center;color:#075b4d;font:900 1rem/1 Georgia,serif;text-shadow:0 1px 0 rgba(255,255,255,.55);}
body.route-builder-page .comfort-money i:nth-child(2){animation-delay:.2s;}
body.route-builder-page .comfort-money i:nth-child(3){animation-delay:.4s;}
@keyframes comfort-bill-float{50%{transform:translateY(-3px) rotate(-3deg);}}
@media(max-width:760px){
  body.route-builder-page .comfort-picker{grid-template-columns:1fr;}
  body.route-builder-page .comfort-picker button{min-height:80px;}
}
@media(min-width:1200px){
  body.route-builder-page .planner-help{font-size:.92rem;}
  body.route-builder-page .location-choice span{font-size:.8rem;}
  body.route-builder-page .route-summary small,
  body.route-builder-page .route-summary label,
  body.route-builder-page .route-note{font-size:.8rem;}
}
/* City pricing dialog: summary first, evidence on demand. */
body.route-builder-page .city-pricing-dialog{width:min(860px,calc(100% - 28px));max-height:calc(100vh - 32px);overflow:auto;border-color:#1c627c;}
body.route-builder-page .city-pricing-dialog-head{position:sticky;top:0;z-index:1;padding:18px 22px;background:linear-gradient(100deg,#0a334a,#11607f);}
body.route-builder-page .city-pricing-dialog .route-pricing{display:grid;gap:18px;padding:22px;background:#f4fafc;color:#153d52;}
body.route-builder-page .city-pricing-dialog .route-pricing>.eyebrow{margin:0 0 -12px;color:#176886;}
body.route-builder-page .city-pricing-dialog .route-pricing h2{margin:0;font-size:1.65rem;color:#103b54;}
body.route-builder-page .city-pricing-dialog #detailText{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:10px;row-gap:4px;margin:0;padding:16px 18px;border:1px solid #7eb6c8;background:#e2f5fa;}
body.route-builder-page .pricing-summary-label{grid-column:1 / -1;color:#176886;font:800 .72rem/1 "DM Mono",monospace;letter-spacing:.07em;text-transform:uppercase;}
body.route-builder-page .city-pricing-dialog .detail-usd-summary{font-size:1.4rem;color:#0b4e69;}
body.route-builder-page .city-pricing-dialog .detail-local-summary{color:#426b7a;font-size:.88rem;}
body.route-builder-page .pricing-summary-note{grid-column:1 / -1;color:#426b7a;font-size:.82rem;line-height:1.4;}
body.route-builder-page .city-pricing-dialog .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.route-builder-page .city-pricing-dialog .detail-grid>div{display:grid;gap:5px;min-height:96px;padding:13px;border:1px solid #b4d3df;background:#fff;align-content:start;}
body.route-builder-page .city-pricing-dialog .detail-grid span{color:#1a6683;font:800 .68rem/1 "DM Mono",monospace;letter-spacing:.05em;text-transform:uppercase;}
body.route-builder-page .city-pricing-dialog .detail-grid strong{font-size:1rem;color:#163f56;}
body.route-builder-page .city-pricing-dialog .detail-grid small{color:#526f7e;font-size:.76rem;line-height:1.35;}
body.route-builder-page .city-pricing-dialog .detail-total{border-color:#1684a4;background:#e7f8fb;}
body.route-builder-page .city-pricing-dialog .detail-sources{margin:0;padding:0;color:#466f7e;font-size:.8rem;line-height:1.45;}
body.route-builder-page .city-pricing-dialog .detail-sources details{border:1px solid #b4d3df;background:#fff;}
body.route-builder-page .city-pricing-dialog .detail-sources summary{padding:12px 14px;cursor:pointer;color:#145a75;font-weight:800;}
body.route-builder-page .city-pricing-dialog .detail-sources details>div{padding:0 14px 14px;}
body.route-builder-page .city-pricing-dialog .detail-sources p{margin:0 0 9px;}
body.route-builder-page .city-pricing-dialog .detail-disclaimer{margin:0;color:#577685;font-size:.74rem;line-height:1.4;}
@media(max-width:600px){
  body.route-builder-page .city-pricing-dialog .route-pricing{padding:16px;gap:14px;}
  body.route-builder-page .city-pricing-dialog #detailText{grid-template-columns:1fr;padding:14px;}
  body.route-builder-page .city-pricing-dialog .detail-grid{grid-template-columns:1fr;}
  body.route-builder-page .city-pricing-dialog .route-pricing h2{font-size:1.4rem;}
}
/* Clear selection affordance for the country step. */
body.route-builder-page .country-picker button{display:flex;align-items:center;gap:9px}
body.route-builder-page .country-select-marker{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;border:1px solid #7895a2;background:#fff;color:#157347;font-size:.86rem;font-weight:900;line-height:1}
body.route-builder-page .country-picker button.selected .country-select-marker{border-color:#188754;background:#e8f7ee}
body.route-builder-page .country-choice-copy{min-width:0;display:grid;gap:2px}
body.route-builder-page .country-choice-copy strong,body.route-builder-page .country-choice-copy>span{display:block}

/* Route Builder adopts the shared portal system without compressing decisions. */
body.route-builder-page .site-main{grid-template-columns:216px minmax(0,1fr);gap:22px}
body.route-builder-page .route-hero{border-radius:12px}
body.route-builder-page .starter-trip-templates{border:1px solid var(--nm-line);border-radius:10px;background:rgba(255,255,255,.94);box-shadow:var(--nm-shadow)}
body.route-builder-page .starter-template-card{border:1px solid #bfd2da;border-radius:8px;background:#f9fcfd;box-shadow:none;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
body.route-builder-page .starter-template-card:hover{border-color:#55aca9;transform:translateY(-2px);box-shadow:0 8px 16px rgba(15,80,95,.11)}
body.route-builder-page .planner-step{padding:22px;border-radius:10px}
body.route-builder-page .country-picker button{min-height:74px;justify-content:flex-start;border:1px solid #c5d8de;border-radius:8px;background:#fbfdfe;box-shadow:none;text-align:left}.country-picker button:hover{border-color:#4ba8a6;background:#effaf9}.country-picker button.selected{border-color:#1a9e94;background:#e5f7f4;box-shadow:inset 3px 0 0 #1a9e94}
body.route-builder-page .location-card{border-color:#d0dfe4;background:#fff;border-radius:7px}.route-builder-page .location-card:hover{border-color:#68b5b2;background:#f3fbfb}
body.route-builder-page .route-summary{border:1px solid #1d5167;border-radius:10px;background:linear-gradient(160deg,#0c3045,#104259);box-shadow:0 16px 28px rgba(7,39,55,.2)}
body.route-builder-page .route-stop{border-radius:6px}.route-builder-page .route-totals{gap:8px}.route-builder-page .route-totals>div{border-radius:6px}
body.route-builder-page .route-workspace-map{border-radius:10px;overflow:hidden}.route-builder-page #routeMap{border-radius:7px}
@media(max-width:960px){body.route-builder-page .site-main{grid-template-columns:minmax(0,1fr)}body.route-builder-page .planner-step{padding:18px}}
@media(max-width:600px){body.route-builder-page .starter-template-card{min-height:132px}body.route-builder-page .planner-step{padding:15px}.country-picker button{min-height:68px}}

/* Route planning uses the shared slate-and-blue system. */
body.route-builder-page .route-hero{background:linear-gradient(120deg,#111827 0%,#182c46 58%,#1e3a5f 100%)}
body.route-builder-page .starter-template-card:hover{border-color:#93c5fd;box-shadow:0 8px 16px rgba(37,99,235,.12)}
body.route-builder-page .country-picker button:hover,body.route-builder-page .location-card:hover{border-color:#93c5fd;background:#eff6ff}
body.route-builder-page .country-picker button.selected{border-color:#22c55e;background:#f0fdf4;box-shadow:inset 3px 0 0 #22c55e}
body.route-builder-page .custom-country-context{grid-column:1/-1;min-height:74px;padding:13px 15px;display:grid;align-content:center;gap:3px;border:1px solid #22c55e;border-radius:8px;background:#f0fdf4;box-shadow:inset 3px 0 0 #22c55e;color:#123d55}
body.route-builder-page .custom-country-context strong{font-size:1rem}
body.route-builder-page .custom-country-context span{color:#396779;font-size:.76rem;line-height:1.4}
body.route-builder-page .country-select-marker{color:#15803d}.country-picker button.selected .country-select-marker{border-color:#22c55e;background:#dcfce7}
body.route-builder-page .route-summary{border-color:#334155;background:linear-gradient(160deg,#111827,#1e293b)}

/* Trip Tools is a compact workspace switcher, not a second page header. */
body.route-builder-page .trip-hub{width:100%;margin:0 0 16px;padding:8px 10px;display:flex;align-items:center;gap:5px;border:1px solid var(--nm-line);border-radius:9px;background:rgba(255,255,255,.92);box-shadow:var(--nm-shadow);overflow-x:auto}
body.route-builder-page .trip-hub-title{min-height:34px;padding:0 10px;border:0;background:transparent;color:#111827!important;font:800 .78rem/1 "DM Mono",monospace;letter-spacing:.08em}
body.route-builder-page .trip-hub a{min-height:36px;padding:0 12px;border:1px solid #8299a9;border-radius:5px;background:#fff;color:#111827!important;font-size:.84rem;font-weight:800}
body.route-builder-page .trip-hub a:hover{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8!important}
body.route-builder-page .trip-hub a[aria-current="page"]{border-color:#2563eb;background:#2563eb;color:#fff!important;box-shadow:none}
body.route-builder-page .trip-hub-note{display:none!important}
@media(max-width:700px){body.route-builder-page .trip-hub{padding:7px 8px;border-radius:7px;gap:4px}body.route-builder-page .trip-hub-title{padding:0 6px}body.route-builder-page .trip-hub a{padding:0 9px}}

/* The rebuilt workspace uses one phone column; no desktop summary or map widths may leak through. */
body.route-builder-page .route-hero>div>p:last-child{color:#dcecf5!important}
/* Keep the first screen focused on choosing a country, not reading a blank map. */
body.route-builder-page .route-tool{grid-template-areas:"controls summary" "map map"}
@media(max-width:850px){body.route-builder-page .route-tool{grid-template-areas:"controls" "summary" "map"}}
@media(max-width:600px){body.route-builder-page .route-tool{grid-template-areas:"controls" "summary" "map"!important}}
@media(max-width:850px){
  body.route-builder-page .route-tool{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"map" "controls" "summary";}
  body.route-builder-page .route-summary{position:static;max-height:none;overflow:visible;}
  body.route-builder-page .route-stops{max-height:none;overflow:visible;}
  body.route-builder-page .route-workspace-map{min-height:320px;}
}
@media(max-width:600px){
  body.route-builder-page .route-workspace-map{padding:14px;}
  body.route-builder-page #routeMap{min-height:280px;}
  body.route-builder-page .route-summary{padding:15px;}
  body.route-builder-page .route-hero h1{font-size:2rem;}
}
/* Custom route stops preserve traveler-entered names and keep unsupported data visibly unestimated. */
.route-custom-stop{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(130px,.7fr)) auto;gap:10px;align-items:end;margin-top:18px;padding:16px;border:1px solid #9eb1bc;border-radius:12px;background:#f7faf9}.route-custom-stop>div{display:grid;gap:3px}.route-custom-stop>div span{color:#526a71;font-size:.86rem}.route-custom-stop label{display:grid;gap:5px;font-weight:850}.route-custom-stop label span{font-size:.76rem;color:#60747a}.route-custom-stop input{min-width:0;min-height:44px;padding:9px 11px;border:1px solid #68838a;border-radius:7px;background:#fff;font:inherit}.route-custom-stop button{min-height:44px;padding:8px 14px;border:0;border-radius:7px;background:#173a36;color:#fff;font-weight:900;cursor:pointer}.route-custom-stop p{grid-column:1/-1;margin:0;color:#315c55;font-weight:750}.route-stop.is-custom{border-color:#b28a40;background:#fffaf0}.route-custom-cost{display:inline-block;margin-top:4px;color:#765813;font-weight:800}
@media(max-width:1000px){.route-custom-stop{grid-template-columns:1fr 1fr}.route-custom-stop>div,.route-custom-stop button{grid-column:1/-1}}
@media(max-width:520px){.route-custom-stop{grid-template-columns:1fr}}

/* Saved-trip links resolve the requested account trip before the editor starts. */
.saved-trip-deeplink-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px auto;padding:14px 16px;max-width:1180px;border:1px solid #d49c3f;border-radius:9px;background:#fff8e8;color:#533b0d;box-shadow:0 6px 18px rgba(83,59,13,.08)}
.saved-trip-deeplink-status a{flex:0 0 auto;padding:9px 14px;border-radius:6px;background:#173a36;color:#fff;font-weight:850;text-decoration:none}
body.saved-trip-deeplink-loading main{opacity:.55;pointer-events:none}
@media(max-width:600px){.saved-trip-deeplink-status{align-items:flex-start;flex-direction:column;margin:10px 12px}.saved-trip-deeplink-status a{width:100%;text-align:center}}

/* Make device and account persistence distinct, and guard cross-tool switches. */
body.route-builder-page #routeDeviceSaveStatus[data-save-state="dirty"]{padding:8px 10px;border-left:4px solid #f59e0b;background:#fff7df;color:#4f3500;font-weight:850}
body.route-builder-page #routeDeviceSaveStatus[data-save-state="saving"]{color:#dbeafe}
body.route-builder-page #routeDeviceSaveStatus[data-save-state="synced"]{color:#bbf7d0}
.route-unsaved-dialog{width:min(620px,calc(100% - 28px));padding:0;border:1px solid #9a6815;border-radius:12px;background:#fff;color:#172033;box-shadow:0 24px 70px rgba(15,23,42,.3)}
.route-unsaved-dialog::backdrop{background:rgba(15,23,42,.62)}
.route-unsaved-dialog form{padding:24px;display:grid;gap:12px}
.route-unsaved-dialog h2,.route-unsaved-dialog p{margin:0}
.route-unsaved-dialog .eyebrow{color:#9a5c08}
.route-unsaved-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:8px}
.route-unsaved-actions button{min-height:42px;padding:9px 13px;border:1px solid #718096;border-radius:6px;background:#fff;color:#172033;font-weight:850;cursor:pointer}
.route-unsaved-actions button.primary{border-color:#1d4ed8;background:#1d4ed8;color:#fff}
.route-unsaved-dialog [data-unsaved-status]{min-height:1.3em;color:#8a4f00;font-weight:750}
@media(max-width:600px){.route-unsaved-dialog form{padding:19px}.route-unsaved-actions{display:grid}.route-unsaved-actions button{width:100%}.route-unsaved-actions button.primary{grid-row:1}}

/* Every stop can use a traveler-entered stay cost without losing published guidance. */
body.route-builder-page .route-stop{grid-template-columns:22px minmax(0,1fr) auto 42px minmax(86px,105px) 28px;grid-template-areas:"number city reorder days stay remove"}
body.route-builder-page .route-stop>label.route-stay-cost{grid-area:stay;grid-column:auto;display:grid;grid-template-columns:1fr auto;gap:2px 5px;color:#d7eaf1;font-size:.61rem;font-weight:800}
body.route-builder-page .route-stay-cost span{color:#9fc3d1;font-size:.56rem}
body.route-builder-page .route-stay-cost input{grid-column:1/-1;width:100%;min-width:120px;min-height:30px;justify-self:stretch;box-sizing:border-box}
@media(max-width:600px){body.route-builder-page .route-stop{grid-template-columns:22px minmax(0,1fr) 52px 28px;grid-template-areas:"number city days remove" ". reorder reorder ." ". stay stay stay"}body.route-builder-page .route-stop>label.route-stay-cost{grid-column:2/5;grid-row:3;width:auto;margin-top:3px}}
