/* Presentation only. Distances, routing, selection and saved plans are unchanged. */
body.buyer-v5 .commute-tool.v5-map .intro{padding-top:16px;padding-bottom:18px}
body.buyer-v5 .commute-tool.v5-map .intro h1{font-size:clamp(27px,2.3vw,36px);margin-bottom:8px}
body.buyer-v5 .commute-tool.v5-map .workspace{min-height:0;align-items:stretch}
body.buyer-v5 .commute-tool.v5-map .sidebar{min-width:0;scrollbar-width:none}
body.buyer-v5 .commute-tool.v5-map .sidebar::-webkit-scrollbar{display:none;width:0}
body.buyer-v5 .commute-tool.v5-map .sidebar:focus-visible{outline:3px solid #968363;outline-offset:-3px}
body.buyer-v5 .commute-tool.v5-map .map-column{position:relative;top:auto;min-width:0}
body.buyer-v5 .v5-map-comparison{padding:24px 0 12px}
body.buyer-v5 .v5-map-comparison header>p{margin:4px 0 12px;font-size:14px}
body.buyer-v5 .v5-map-comparison .v5-area-grid>article{padding:16px 20px}
body.buyer-v5 .v5-map-comparison .v5-area-grid h3{margin:0 0 8px;font-size:21px}
body.buyer-v5 .v5-map-comparison .v5-area-grid p{margin:0;font-size:14px}
body.buyer-v5 .v5-map-comparison .v5-next-inquiry{margin-top:20px;padding-top:16px}
body.buyer-v5 .v5-map-comparison .v5-next-inquiry h3{margin-bottom:8px}
body.buyer-v5 .v5-map-comparison .v5-next-inquiry>p{margin:0 0 12px}
body.buyer-v5 .v5-map-comparison .v5-save-status:empty{display:none}
body.buyer-v5 .v5-map-comparison .v5-export-actions{margin:4px 0 0}
body.buyer-v5 .commute-tool.v5-map .v5-map-saved-actions{margin:0;padding:0}
body.buyer-v5 .commute-tool.v5-map .page-foot{display:flex;justify-content:flex-end;padding:8px 0 20px;gap:0}
body.buyer-v5 .commute-tool.v5-map .page-foot details{max-width:650px}
@media(min-width:1001px){
 body.buyer-v5 .commute-tool.v5-map .workspace{height:clamp(420px,calc(100svh - 340px),700px)}
 body.buyer-v5 .commute-tool.v5-map .quick-places{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.buyer-v5 .commute-tool.v5-map .quick-places button{padding:6px 3px;font-size:11px;line-height:1.4}
 body.buyer-v5 .commute-tool.v5-map .sidebar{height:100%;overflow-y:auto;overscroll-behavior-y:auto}
 body.buyer-v5 .commute-tool.v5-map .map-column{height:100%;overflow:hidden}
 body.buyer-v5 .commute-tool.v5-map #map{height:100%}
 body.buyer-v5 .commute-tool.v5-map .map-detail{max-height:calc(100% - 88px);overflow-y:auto;bottom:24px;right:16px}
 body.buyer-v5 .commute-tool.v5-map .map-detail .range-back{padding-bottom:6px}
 body.buyer-v5 .commute-tool.v5-map .map-detail .detail-kicker{margin:4px 0}
 body.buyer-v5 .commute-tool.v5-map .map-legend{bottom:16px;top:auto}
 body.buyer-v5 .commute-tool.v5-map .map-gesture-hint{bottom:62px;top:auto}
}
@media(min-width:701px) and (max-width:1000px){
 body.buyer-v5 .commute-tool.v5-map .workspace{display:grid;grid-template-columns:minmax(0,1fr);height:auto}
 body.buyer-v5 .commute-tool.v5-map .sidebar{display:contents}
 body.buyer-v5 .commute-tool.v5-map .filters{order:0;border-right:0}
 body.buyer-v5 .commute-tool.v5-map .map-column{order:1;height:auto;overflow:visible}
 body.buyer-v5 .commute-tool.v5-map #map{height:420px}
 body.buyer-v5 .commute-tool.v5-map .map-legend{top:365px;bottom:auto}
 body.buyer-v5 .commute-tool.v5-map .map-gesture-hint{top:320px;bottom:auto}
 body.buyer-v5 .commute-tool.v5-map .results{order:2;max-height:300px;overflow-y:auto;scrollbar-width:none}
 body.buyer-v5 .commute-tool.v5-map .results::-webkit-scrollbar{display:none}
}
@media(max-width:700px){
 body.buyer-v5 .commute-tool.v5-map .workspace{height:auto}
 body.buyer-v5 .commute-tool.v5-map .map-column{position:relative;top:auto}
 body.buyer-v5 .commute-tool.v5-map #cards{scrollbar-width:none}
 body.buyer-v5 .commute-tool.v5-map #cards::-webkit-scrollbar{display:none}
 body.buyer-v5 .commute-tool.v5-map .page-foot{display:block;padding-top:0}
 body.buyer-v5 .commute-tool.v5-map .page-foot details{margin-top:0}
 body.buyer-v5 .v5-map-comparison{padding-top:20px}
}
@media print{
 body.buyer-v5 .commute-tool.v5-map .workspace{height:auto}
 body.buyer-v5 .commute-tool.v5-map .sidebar{height:auto;overflow:visible}
}

/* Softer controls in the existing map workspace. */
body.buyer-v5 .commute-tool.v5-map .search-box{border-radius:10px;overflow:hidden}
body.buyer-v5 .commute-tool.v5-map .quick-places{gap:6px}
body.buyer-v5 .commute-tool.v5-map .quick-places button{border:0;border-radius:18px;background:#f1eee7;padding:8px 5px}
body.buyer-v5 .commute-tool.v5-map .segmented{border:0;border-radius:24px;padding:4px;background:#eeece6}
body.buyer-v5 .commute-tool.v5-map .segmented button{border:0;border-radius:20px;background:transparent}
body.buyer-v5 .commute-tool.v5-map .segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #26272416}
body.buyer-v5 .commute-tool.v5-map .unit-row>div{border:0;border-radius:20px;background:#eeece6;padding:3px}
body.buyer-v5 .commute-tool.v5-map .unit-row button{border:0;border-radius:16px;background:transparent}
body.buyer-v5 .commute-tool.v5-map .unit-row button[aria-pressed=true]{background:#e2d9c9}
body.buyer-v5 .commute-tool.v5-map .radius-entry input{border-radius:8px;background:#faf9f6}
body.buyer-v5 .commute-tool.v5-map .map-detail{border-radius:12px}
body.buyer-v5 .commute-tool.v5-map .v5-route-direction{gap:6px;padding:4px;border-radius:24px;background:#eeece6}
body.buyer-v5 .commute-tool.v5-map .v5-route-direction button{border:0;border-radius:20px}

body.buyer-v5 .commute-tool.v5-map .filters{padding-top:16px;padding-bottom:16px}
body.buyer-v5 .commute-tool.v5-map .field-label[for=place-search]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.buyer-v5 .commute-tool.v5-map .v5-map-range{gap:6px;margin-top:8px;padding-top:8px}

body.buyer-v5 .commute-tool.v5-map .map-toolbar{justify-content:flex-end}

/* Keep selected-area details concise without shrinking touch targets. */
@media(max-width:700px){
 body.buyer-v5 .commute-tool.v5-map .results .map-detail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px;margin-top:8px;border-top-width:2px}
 body.buyer-v5 .commute-tool.v5-map .map-detail .detail-top{grid-column:1/-1;align-items:center;min-width:0}
 body.buyer-v5 .commute-tool.v5-map .map-detail h3{font-size:23px;line-height:1.3;overflow-wrap:anywhere}
 body.buyer-v5 .commute-tool.v5-map .map-detail .detail-metric{margin:0;align-self:center;font-size:12px;line-height:1.4}
 body.buyer-v5 .commute-tool.v5-map .map-detail .v5-route-direction{margin:0;gap:2px;padding:2px;width:132px}
 body.buyer-v5 .commute-tool.v5-map .map-detail .v5-route-direction button{min-height:44px;padding:4px 8px;font-size:13px}
 body.buyer-v5 .commute-tool.v5-map .map-detail #road-estimate{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:center;padding:10px 12px;margin:0;border-radius:6px}
 body.buyer-v5 .commute-tool.v5-map .map-detail #road-estimate strong{grid-column:1;grid-row:1/3;font-size:27px;white-space:nowrap}
 body.buyer-v5 .commute-tool.v5-map .map-detail #road-estimate>small,
 body.buyer-v5 .commute-tool.v5-map .map-detail #road-estimate>span{grid-column:2;font-size:11px;line-height:1.5}
 body.buyer-v5 .commute-tool.v5-map .map-detail #road-estimate>p{grid-column:1/-1;margin:0}
 body.buyer-v5 .commute-tool.v5-map .map-detail .detail-actions{grid-column:1/-1;gap:4px 16px;padding-top:4px;align-items:center}
 body.buyer-v5 .commute-tool.v5-map .map-detail .detail-actions :is(button,a){min-height:44px;padding:4px 0;font-size:13px;line-height:1.4}
}

/* Selected areas are a compact comparison list, followed by one contact action. */
body.buyer-v5 .v5-map-comparison h2{font-size:23px;line-height:1.4}
body.buyer-v5 .v5-map-comparison header>p{font-size:12px;color:var(--muted);margin:4px 0 12px}
body.buyer-v5 .v5-map-comparison .v5-area-grid{display:block;border-top:1px solid var(--line)}
body.buyer-v5 .v5-map-comparison .v5-area-grid>article{display:grid;grid-template-columns:minmax(140px,.35fr) minmax(0,1fr);align-items:center;gap:4px 16px;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:12px 0}
body.buyer-v5 .v5-map-comparison .v5-area-grid h3{font-size:18px;line-height:1.4;margin:0}
body.buyer-v5 .v5-map-comparison .v5-area-grid p{font-size:13px;line-height:1.6;margin:0;color:#586054}
body.buyer-v5 .v5-map-comparison .v5-map-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;align-items:flex-start}
body.buyer-v5 .v5-map-comparison .v5-map-contact{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;background:var(--ink);color:white;font-size:14px;text-decoration:none;border:1px solid var(--ink);border-radius:6px}
body.buyer-v5 .v5-map-comparison .v5-map-more{flex:1;min-width:0;margin:0;padding:0;border:1px solid var(--line);border-radius:6px}
body.buyer-v5 .v5-map-comparison .v5-map-more>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:44px;padding:10px 14px;font-size:14px;line-height:1.6;cursor:pointer}
body.buyer-v5 .v5-map-comparison .v5-map-more>summary::-webkit-details-marker{display:none}
body.buyer-v5 .v5-map-comparison .v5-map-more>summary:after{content:'＋';font-size:18px;line-height:1}
body.buyer-v5 .v5-map-comparison .v5-map-more[open]>summary:after{content:'−'}
body.buyer-v5 .v5-map-comparison .v5-map-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:8px 14px;border-top:1px solid var(--line)}
body.buyer-v5 .v5-map-comparison .v5-map-menu :is(a,button){display:flex;align-items:center;min-width:0;min-height:44px;padding:6px 0;font:inherit;font-size:13px;line-height:1.5;text-align:left;color:var(--ink);background:transparent;border:0;text-decoration:none;overflow-wrap:anywhere;cursor:pointer}
body.buyer-v5 .v5-map-comparison .v5-map-menu :is(a,button):hover{text-decoration:underline;text-underline-offset:4px}
body.buyer-v5 .v5-map-comparison>.v5-save-status{margin:8px 0 0;font-size:12px}
@media(max-width:700px){
 body.buyer-v5 .v5-map-comparison .v5-area-grid>article{display:block;padding:10px 0}
 body.buyer-v5 .v5-map-comparison .v5-area-grid h3{margin:0 0 3px}
 body.buyer-v5 .v5-map-comparison .v5-map-contact{flex:1 0 100%}
 body.buyer-v5 .v5-map-comparison .v5-map-more{flex-basis:100%}
}
