.routes-page { --bg:var(--cp-bg); --surface:var(--cp-surface); --ink:var(--cp-text); --muted:var(--cp-text-muted); --line:var(--cp-border); --accent:var(--cp-accent); --soft:var(--cp-accent-soft); min-height:100dvh; }
.routes-page .nav-actions a { display:inline-flex; align-items:center; min-height:44px; }
.routes-page .skip-link { color:var(--ink); background:var(--surface); }
.routes-page h1,.routes-page h2,.routes-page h3,.routes-page p,.routes-page li { overflow-wrap:anywhere; }
.routes-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:24px; padding:32px 0 20px; }
.routes-hero h1 { font:400 clamp(2rem,3.6vw,3.25rem)/1.12 Georgia,serif; letter-spacing:-.035em; margin:10px 0 12px; }
.routes-hero p { color:var(--muted); line-height:1.7; max-width:64ch; font-size:14px; margin:0; }
.route-hero-link { align-self:end; margin-bottom:2px; }
.routes-intro-note { border-left:1px solid var(--line); padding-left:30px; }
.routes-intro-note h2 { font:500 21px/1.4 Manrope,system-ui,sans-serif; margin:16px 0; }
.routes-intro-note p { font-size:12px; }
.route-text-link { color:var(--accent); display:inline-flex; align-items:center; min-height:44px; font-size:12px; }
.routes-stats { display:flex; flex-wrap:wrap; gap:10px 22px; padding:12px 0; margin:0 0 20px; border-block:1px solid var(--line); }
.routes-stats>div { display:flex; align-items:baseline; gap:7px; border-left:1px solid var(--line); padding-left:22px; }
.routes-stats>div:first-child { border-left:0; padding-left:0; }
.routes-stats dt { color:var(--muted); font-size:11px; }
.routes-stats dd { order:-1; margin:0; font-size:17px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.route-section-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:28px; }
.route-section-heading h2,.route-collection-note h2 { font:400 clamp(1.8rem,2.8vw,2.6rem)/1.15 Georgia,serif; margin:12px 0; letter-spacing:-.025em; }
.route-section-heading>p { max-width:38ch; color:var(--muted); font-size:12px; margin:0 0 12px; }
.route-library-layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:26px; align-items:start; }
.route-controls,.route-results-column { min-width:0; }
.route-filter-panel { min-width:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); overflow:hidden; }
.route-filter-panel>summary { min-height:48px; cursor:pointer; padding:14px 16px; color:var(--accent); font-size:13px; font-weight:600; }
.route-filter-panel[open]>summary { border-bottom:1px solid var(--line); }
.route-filter-panel summary span { margin-left:6px; font-size:11px; font-weight:400; color:var(--muted); }
.route-filter-panel>summary:focus-visible { outline:3px solid var(--accent); outline-offset:-4px; }
.route-quick-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; border:1px solid var(--line); border-radius:10px; padding:14px 16px; background:var(--surface); margin:0 0 20px; }
.route-quick-search .route-field { margin:0; }
.route-quick-search input { background:var(--surface); border-radius:5px; font-size:15px; }
.route-quick-search input:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.route-popular-cities { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.route-popular-cities>span { color:var(--muted); font-size:11px; margin-right:6px; }
.route-popular-cities .route-button { border-radius:999px; padding:8px 12px; font-size:11px; color:var(--accent); max-width:100%; }
.route-filter-form { padding:16px; }
.route-controls h3 { margin:0 0 10px; font-size:15px; font-weight:600; }
.route-filter-help { margin:0 0 16px; color:var(--muted); font-size:11px; line-height:1.7; }
.route-field { margin-bottom:15px; min-width:0; }
.route-field label { display:block; font-size:11px; color:var(--muted); margin-bottom:7px; }
.route-field input,.route-field select { width:100%; min-width:0; max-width:100%; box-sizing:border-box; min-height:44px; padding:11px 10px; border:1px solid var(--line); border-radius:0; color:var(--ink); background:var(--bg); font-size:12px; }
.route-field small,.route-small { display:block; font-size:11px; line-height:1.8; color:var(--muted); }
.route-field small { margin-top:8px; }
.route-field-pair { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.route-controls details { border-top:1px solid var(--line); padding-top:12px; }
.route-controls summary { min-height:44px; cursor:pointer; font-size:12px; padding:10px 0; }
.route-controls details p,.route-purpose-form>p { font-size:11px; line-height:1.8; color:var(--muted); margin:4px 0 14px; }
.route-choice-list { border:0; padding:0; margin:8px 0 16px; display:flex; flex-wrap:wrap; gap:7px; min-width:0; }
.route-choice-list label { display:flex; align-items:center; gap:7px; border:1px solid var(--line); padding:6px 9px; min-height:44px; font-size:11px; cursor:pointer; }
.route-choice-list label:has(input:checked) { background:var(--soft); border-color:var(--accent); color:var(--accent); }
.route-choice-list input { accent-color:var(--accent); margin:0; flex:0 0 auto; }
.route-region-choices { max-height:260px; overflow-y:auto; overscroll-behavior:contain; padding:2px; }
.route-control-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.route-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; background:var(--surface); border:1px solid var(--line); color:var(--ink); font-size:12px; text-decoration:none; text-align:center; transition:transform .15s; }
.route-primary { background:var(--accent); border-color:var(--accent); color:var(--cp-accent-fg); }
.route-button:active { transform:scale(.98); }
.route-button:focus-visible,.route-controls input:focus-visible,.route-controls select:focus-visible,.route-controls summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.route-purpose-form { padding:16px; margin:0; border-top:1px solid var(--line); }
.route-purpose-form h3 { margin:12px 0; line-height:1.6; }
.route-controls>#routeFilterNotice { margin:0; padding:0 16px; }
.route-controls>#routeFilterNotice:not(:empty) { padding-block:12px; }
.route-applied-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:36px; margin-bottom:10px; }
.route-applied-controls p { margin:0; }
.route-clear-all { flex-shrink:0; min-height:44px; padding:8px 0; border:0; background:transparent; color:var(--accent); text-decoration:underline; text-underline-offset:3px; font-size:12px; }
.route-active-filters { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 16px; }
.route-active-filters button { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:40px; padding:7px 10px; border:1px solid var(--line); border-radius:5px; background:var(--soft); color:var(--accent); font-size:11px; text-align:left; overflow-wrap:anywhere; }
.route-active-filters button>span:first-child { min-width:0; }
.route-active-filters button>span:last-child { flex:none; font-size:15px; }
.route-active-filters button:focus-visible,.route-clear-all:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.route-results-heading { border-bottom:1px solid var(--line); padding:0 0 17px; margin-bottom:22px; min-height:57px; }
.route-results-heading p { margin:0; }
#routeCount { font-size:13px; }
#routeMatchStatus { margin-top:7px; }
.route-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.route-card { border:1px solid var(--line); background:var(--surface); display:flex; flex-direction:column; min-width:0; }
.route-card-content { padding:22px; display:flex; flex-direction:column; flex:1; }
.route-card-overline { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:var(--accent); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.route-card h3 { font:400 clamp(1.2rem,1.7vw,1.4rem)/1.3 Georgia,serif; letter-spacing:-.02em; margin:14px 0; }
.route-card h3 a { text-decoration:none; }
.route-card h3 a:hover { text-decoration:underline; }
.route-card-summary { font-size:12px; line-height:1.85; color:var(--muted); margin:0 0 17px; }
.route-city-line { margin:0 0 18px; padding:12px 0; border-block:1px solid var(--line); font-size:11px; line-height:1.9; }
.route-tag-list { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:0; margin:0 0 18px; }
.route-tag-list li { font-size:10px; color:var(--muted); border:1px solid var(--line); padding:4px 8px; }
.route-tag-list a { color:var(--accent); min-height:30px; display:inline-flex; align-items:center; }
.route-match-reason { font-size:11px; line-height:1.8; color:var(--accent); border-left:2px solid var(--accent); padding-left:10px; margin:0 0 18px; }
.route-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.route-card .account-save-button { align-self:start; margin-top:12px; max-width:100%; }
.route-figure { margin:0; border-bottom:1px solid var(--line); }
.route-figure img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.route-figure figcaption { padding:10px 16px; color:var(--muted); font-size:9px; line-height:1.8; overflow-wrap:anywhere; }
.route-figure a { color:inherit; }
.route-loading,.route-empty { grid-column:1/-1; padding:32px; border:1px solid var(--line); background:var(--surface); }
.route-loading p,.route-empty p { color:var(--muted); font-size:13px; line-height:1.8; }
.route-empty h3 { font:400 26px/1.3 Georgia,serif; margin:0 0 15px; }
.route-skeleton { height:140px; background:var(--soft); animation:route-pulse 1.6s ease-in-out infinite alternate; }
@keyframes route-pulse { to { opacity:.4; } }
.route-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:30px 0 0; padding:22px 0; border-top:1px solid var(--line); font-size:11px; }
.route-collection-note { margin:50px 0 60px; padding:30px 0; border-top:1px solid var(--line); max-width:85ch; }
.route-collection-note p { color:var(--muted); font-size:13px; line-height:1.9; }
.route-back { margin-top:24px; }
.route-detail-hero { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr); gap:55px; padding:30px 0 45px; align-items:start; }
.route-detail-hero h1 { font:400 clamp(2rem,3.2vw,2.8rem)/1.15 Georgia,serif; letter-spacing:-.03em; margin:17px 0 22px; }
.route-detail-summary { color:var(--muted); font-size:15px; line-height:1.9; }
.route-detail-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:25px 0; }
.route-detail-hero .route-tag-list { margin-top:20px; }
.route-ledger { border:1px solid var(--line); background:var(--surface); padding:28px; }
.route-ledger h2 { font:400 26px/1.3 Georgia,serif; margin:0 0 22px; }
.route-ledger dl { margin:0; }
.route-ledger dl>div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:16px; padding:15px 0; border-top:1px solid var(--line); }
.route-ledger dt { font-size:11px; color:var(--muted); }
.route-ledger dd { font-size:13px; margin:0; overflow-wrap:anywhere; }
.route-detail-media { max-width:1000px; margin:0 0 42px; }
.route-detail-media img { max-height:440px; }
.route-detail-media figcaption { padding:12px 0; }
.route-planning-note { background:var(--soft); border-left:3px solid var(--accent); padding:22px 26px; margin-bottom:38px; }
.route-planning-note h2 { font:500 17px/1.4 Manrope,system-ui,sans-serif; margin:0 0 12px; }
.route-planning-note p,.route-planning-note li { font-size:12px; line-height:1.9; color:var(--muted); }
.route-stops { display:flex; flex-wrap:wrap; list-style:none; padding:0; margin:22px 0 34px; gap:12px; }
.route-stops li { border:1px solid var(--line); padding:14px 18px; font-size:13px; }
.route-stops small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.route-days-heading h2,.route-sources h2 { font:400 31px/1.25 Georgia,serif; margin:12px 0; }
.route-days-heading p { font-size:12px; color:var(--muted); }
.route-day-nav { display:flex; flex-wrap:wrap; gap:7px; margin:24px 0; }
.route-day-nav a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:1px solid var(--line); padding:8px; font-size:11px; color:var(--accent); }
.route-day { display:grid; grid-template-columns:130px minmax(0,1fr); gap:40px; border-top:1px solid var(--line); padding:30px 0; scroll-margin-top:24px; }
.route-day-label { color:var(--accent); font-size:12px; line-height:1.9; }
.route-day-label strong { display:block; font-size:24px; font-weight:400; }
.route-day-label span { display:block; font-size:10px; }
.route-day h3 { font:400 27px/1.3 Georgia,serif; margin:0 0 23px; }
.route-day dl { margin:0; }
.route-day dl>div { display:grid; grid-template-columns:95px minmax(0,1fr); gap:20px; margin:16px 0; }
.route-day dt { color:var(--accent); font-size:11px; }
.route-day dd { margin:0; font-size:13px; line-height:1.9; color:var(--muted); }
.route-day-note { font-size:11px; line-height:1.85; color:var(--muted); padding:14px 18px; background:var(--surface); border:1px solid var(--line); margin-top:20px; }
.route-detail-page .planner-trip-overview { margin-top:12px; }
.route-detail-page .planner-route-chapters { margin-top:0; }
.route-detail-page .planner-city-meta { color:var(--muted); font-size:12px; }
.route-detail-page .planner-postcard-title { font-size:clamp(1.6rem,2.7vw,2.5rem); max-width:none; }
.route-detail-page .planner-plan-intro { font-size:14px; line-height:1.85; }
.route-postcard-facts { font-size:12px; font-weight:600; color:var(--accent); }
.route-theme { color:var(--muted); font-size:11px; line-height:1.8; }
.route-detail-page .route-tag-list { margin:16px 0; gap:7px; }
.route-detail-page .route-tag-list li { padding:0; border:0; background:transparent; }
.route-detail-page .route-tag-list a { padding:7px 10px; min-height:44px; border:1px solid var(--planner-paper-border); border-radius:999px; background:var(--surface); font-size:10px; }
.route-detail-page .route-detail-actions { gap:8px; margin:18px 0 10px; }
.route-detail-page .planner-overview-copy { position:relative; }
.route-detail-page .route-postcard-actions { position:absolute; top:0; right:0; z-index:2; display:flex; align-items:center; gap:8px; }
.route-detail-page .planner-overview-copy>.eyebrow { display:flex; align-items:center; box-sizing:border-box; min-height:44px; padding-right:104px; }
.route-score { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--accent); font-size:11px; line-height:1.5; }
.route-rating { display:inline-flex; gap:3px; }
.route-rating-star { position:relative; display:inline-block; width:14px; height:14px; }
.route-rating-star svg { display:block; width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
.route-rating-star-fill { position:absolute; inset:0 auto 0 0; overflow:hidden; }
.route-rating-star-fill svg { fill:currentColor; }
.route-score-note { margin:0 0 18px; font-size:11px; line-height:1.7; color:var(--muted); }
.route-detail-page .route-postcard-meta>.route-small { font-size:10px; }
.route-detail-page .route-detail-media { margin:0; }
.route-detail-page .planner-photo img { display:block; width:100%; height:auto; object-fit:cover; aspect-ratio:4/3; }
.route-detail-page .planner-photo figcaption { color:var(--muted); font-size:9px; line-height:1.8; overflow-wrap:anywhere; padding:10px 0 0; }
.route-detail-page .planner-photo figcaption a { color:inherit; }
.route-photo-context { display:block; margin-top:6px; font-size:10px; font-style:italic; }
.route-detail-page .route-day-nav { display:block; margin:0; }
.route-detail-page .route-day-nav a { display:grid; justify-content:start; justify-items:start; text-align:left; border:0; border-left:2px solid transparent; padding:12px 16px; }
.route-card-summary strong,.route-detail-page .planner-plan-intro strong { font-weight:700; color:var(--accent); }
.route-detail-page .route-day-nav a:is(:hover,:focus-visible) { border-left-color:var(--accent); }
.route-detail-page .route-day { display:block; padding:28px; border:1px solid var(--planner-paper-border); }
.route-detail-page .route-day-label strong { display:inline-block; justify-self:start; font-size:11px; font-weight:700; }
.route-detail-page .route-day-label .planner-day-city { display:inline; font-size:13px; }
.route-transfer-label { grid-column:1/-1; color:var(--muted); }
.route-detail-page .route-day h3 { margin:8px 0 0; font-family:inherit; font-size:clamp(1.35rem,2.5vw,1.9rem); font-weight:600; }
.route-day-content { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:28px; align-items:start; }
.route-day-content:not(:has(.route-day-photos)) { grid-template-columns:minmax(0,1fr); }
.route-day-photos,.route-day-copy,.route-daily-content { min-width:0; }
.route-day-photos { display:grid; gap:20px; }
.route-day-photos .planner-photo { margin:0; }
.route-day-photos img { border-radius:4px; }
.route-detail-page .route-day dl>div { display:block; border-left:2px solid var(--line); padding-left:16px; margin:0 0 22px; }
.route-detail-page .route-day dt { margin-bottom:8px; text-transform:uppercase; font-weight:600; letter-spacing:.08em; }
.route-detail-page .route-day dd { font-size:12px; line-height:1.85; }
.route-detail-page .route-day-note { margin:0; border-radius:6px; }
.route-detail-page :is(a,button,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1100px) {
  .route-day-content { grid-template-columns:minmax(0,1fr); }
  .route-day-photos { grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); }
}
@media(max-width:760px) {
  .route-detail-page .planner-plan-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  .route-detail-page .route-day-nav { position:static; max-height:none; }
  .route-detail-page .route-day-nav ol { display:flex; flex-wrap:wrap; gap:6px; border:0; }
  .route-detail-page .route-day-nav a { margin:0; padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
  .route-detail-page .route-day { padding:20px; }
}
@media(max-width:420px) {
  .route-detail-page .planner-trip-overview { padding:16px; }
  .route-detail-page .route-day { padding:16px; }
  .route-detail-page .route-detail-actions>a { width:100%; }
}
.route-sources { border-top:1px solid var(--line); margin:30px 0; padding:24px 0; }
.route-sources>p { font-size:12px; line-height:1.9; color:var(--muted); max-width:85ch; }
.route-sources ul { padding-left:20px; }
.route-sources a { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); font-size:12px; overflow-wrap:anywhere; }
.route-final-cta { display:flex; justify-content:space-between; gap:30px; align-items:center; background:var(--surface); border:1px solid var(--line); padding:32px; margin:25px 0 60px; }
.route-final-cta h2 { font:400 30px/1.2 Georgia,serif; margin:0 0 12px; }
.route-final-cta p { font-size:12px; color:var(--muted); max-width:65ch; margin:0; }
.route-final-cta .route-button { flex:0 0 auto; }
.route-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1100px) { .route-library-layout { grid-template-columns:250px minmax(0,1fr); gap:25px; } .route-card-content { padding:18px; } .route-results { gap:18px; } }
@media(max-width:900px) { .route-library-layout { grid-template-columns:minmax(0,1fr); gap:16px; } .route-controls { display:grid; grid-template-columns:1fr 1fr; gap:0; } .route-purpose-form { margin:0; padding:16px; border-top:0; border-left:1px solid var(--line); align-self:start; } .route-controls>#routeFilterNotice { grid-column:1/-1; margin:0; } .routes-hero { grid-template-columns:minmax(0,1fr); gap:8px; } .route-hero-link { justify-self:start; } .route-detail-hero { gap:30px; } }
@media(max-width:720px) { .routes-page .shell { width:calc(100% - 36px); } .routes-page .nav { flex-wrap:wrap; gap:8px; padding-block:15px; } .routes-page .nav-actions { gap:18px; flex-wrap:wrap; } .routes-hero { grid-template-columns:minmax(0,1fr); padding-top:38px; } .routes-intro-note { border-left:0; border-top:1px solid var(--line); padding:22px 0 0; } .routes-stats { margin-bottom:35px; } .routes-stats>div { padding-inline:14px; } .routes-stats dt { font-size:9px; } .routes-stats dd { font-size:26px; } .route-section-heading { display:block; } .route-section-heading>p { max-width:none; } .route-controls { grid-template-columns:minmax(0,1fr); gap:18px; } .route-filter-form { padding:18px; } .route-purpose-form { padding:20px 0; } .route-results { grid-template-columns:minmax(0,1fr); } .route-detail-hero { grid-template-columns:minmax(0,1fr); padding-top:18px; } .route-detail-hero h1 { font-size:2rem; } .route-ledger { padding:22px; } .route-day { grid-template-columns:minmax(0,1fr); gap:12px; } .route-day-label strong { display:inline; font-size:17px; margin-right:12px; } .route-day-label span { display:inline; margin-left:10px; } .route-day dl>div { grid-template-columns:75px minmax(0,1fr); gap:14px; } .route-planning-note { padding:20px; } .route-final-cta { flex-direction:column; align-items:start; padding:24px; } }
@media(max-width:720px) { .routes-hero { padding:24px 0 16px; } .routes-hero h1 { font-size:2rem; } .routes-hero p { font-size:13px; } .routes-stats { margin-bottom:16px; gap:8px 16px; padding:10px 0; } .routes-stats>div { padding:0; border:0; gap:5px; } .routes-stats dt { font-size:10px; } .routes-stats dd { font-size:16px; } .route-quick-search { margin-bottom:14px; padding:12px; gap:10px; } .route-quick-search input { font-size:16px; } .route-quick-search .route-button { padding:10px 12px; } .route-controls { gap:0; } .route-filter-form,.route-purpose-form { padding:16px; } .route-purpose-form { border-left:0; border-top:1px solid var(--line); } .route-results-heading { margin-bottom:16px; } .route-applied-controls { margin-bottom:6px; } }
@media(max-width:420px) { .route-quick-search { grid-template-columns:minmax(0,1fr); } .route-quick-search .route-button { justify-self:stretch; } }
@media(prefers-reduced-motion:reduce) { .route-skeleton { animation:none; } .route-button { transition:none; } }
