/* Travel preferences: a shared readout relocated into the exposed map viewport.
   A compact two-row variant is used below 340px of free map width. */
body:not([data-view=year]) .control-dock{display:none}
.travel-preferences{display:flex;align-items:center;gap:0;width:max-content;box-sizing:border-box;padding:6px 8px;border:1px solid var(--strong);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 3px 12px #142b3026;font:500 13px/20px var(--font-body)}
.interactive-map-stage>.travel-preferences{position:absolute;transform:translateX(-50%);z-index:12}
#travel-preferences #edit-preferences,#travel-preferences #preview-relax{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;min-width:32px;height:32px;min-height:32px;margin:0 8px 0 0;padding:5px;border:1px solid var(--strong);border-radius:8px;background:var(--control-background);color:var(--green)}
#travel-preferences #edit-preferences .control-icon{width:20px;height:20px}
#travel-preferences #preference-chips{display:flex;align-items:center;gap:0;width:auto;min-width:0;margin:0;padding:0;background:transparent;color:inherit;border-radius:0}
#travel-preferences .preference-readout-row{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:28px;height:28px;width:auto;margin:0;padding:0 8px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;color:inherit;font:500 13px/20px var(--font-body);white-space:nowrap}
#travel-preferences .preference-readout-value{display:inline-flex;align-items:center;gap:3px}
#travel-preferences .readout-icon{display:inline-flex;align-items:center;width:15px;height:20px;flex:0 0 15px}#travel-preferences .readout-icon-plain{display:block;width:15px;height:20px}#travel-preferences .readout-icon-halo{display:none}
#travel-preferences .activity{width:20px;min-width:20px;height:20px;line-height:20px;font-size:12px}
#travel-preferences .preference-limit-arrow{display:inline-flex;align-items:center}#travel-preferences .preference-limit-arrow svg{width:9px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#travel-preferences .preference-readout-row:hover,#travel-preferences #edit-preferences:hover{background:var(--control-background)}#travel-preferences button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
#travel-preferences.is-compact{padding:5px 6px}
#travel-preferences.is-compact #preference-chips{display:grid;grid-template-columns:auto auto;row-gap:3px}
#travel-preferences.is-compact .preference-readout-row{font-size:12px;padding-inline:6px;min-height:24px;height:24px}
#travel-preferences.is-compact [data-edit-pref=low]{grid-row:2;grid-column:1/3}
#travel-preferences.is-compact [data-edit-pref=maxRain]{grid-row:1;grid-column:2}
#travel-preferences.is-compact #edit-preferences,#travel-preferences.is-compact #preview-relax{margin-right:6px;width:30px;min-width:30px;height:30px;min-height:30px}
.map-layout.travel-top-strip .map-results-shell{top:calc(var(--travel-control-height,44px) + 28px)}
/* Preserve access in the year-table view, which has no map viewport. */
body[data-view=year] .control-dock .entry>.travel-preferences{position:static;transform:none;max-width:100%}
@media print{.travel-preferences{display:none!important}}
/* The narrow-map navigation uses two columns so all four controls clear the panels. */
@media(max-width:899px){.map-layout .map-navigation-stack{display:grid;grid-template-columns:repeat(2,36px)}.map-layout .map-navigation-stack button{border-radius:0}.map-layout .map-navigation-stack button:nth-child(2n){border-left:1px solid var(--line)}.map-layout .map-navigation-stack button:nth-child(n+3){border-top:1px solid var(--line)}}
body.dark #travel-preferences .readout-icon-plain{display:none}body.dark #travel-preferences .readout-icon-halo{display:block;width:20px;height:20px;max-width:none}

#travel-preferences .compromise-separator{align-self:stretch;width:1px;background:var(--line);margin:0 8px 0 0}#travel-preferences #preview-relax{margin:0}#travel-preferences.is-compact #preview-relax{margin:0}#travel-preferences #preview-relax .control-icon{width:20px;height:20px}#travel-preferences #preview-relax[aria-pressed=true]{background:var(--control-active);border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.no-full-matches{margin:0;font-size:14px;line-height:20px;color:var(--ink)}
