/* Share a journey on desktop (≥1024px): the journey's fields inside the shared desktop shell (contribution-desktop.css). */
@media all{
 html body.share-flow.sf-wide .sf-dates-party{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
 html body.share-flow.sf-wide .sf-trip-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
 html body.share-flow.sf-wide .sf-cover-columns{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}
 html body.share-flow.sf-wide .sf-cover-columns>.sf-col{gap:12px}
 html body.share-flow.sf-wide .sf-cover-columns .sf-col>.sf-label+*{margin-top:0}
 html body.share-flow.sf-wide .sf-part-body #cj-type-count{position:absolute;top:0;right:0;margin:0;font-size:12px;line-height:19px}
 html body.share-flow.sf-wide .sf-part-body fieldset:has(>#cj-type-count){position:relative}

 /* Basics */
 html body.share-flow.sf-wide .sf-part-body .cj-dates{gap:10px}
 html body.share-flow.sf-wide .sf-part-body .cj-dates>svg{display:none}
 html body.share-flow.sf-wide .sf-part-body .cj-dates>label>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html body.share-flow.sf-wide .sf-part-body .cj-party-counters{gap:10px}
 html body.share-flow.sf-wide .sf-part-body .cj-party-row{padding:10px 8px;background:var(--sf-field)}
 html body.share-flow.sf-wide .sf-part-body .cj-party-row>label{gap:0;font-size:13px!important}
 html body.share-flow.sf-wide .sf-part-body .cj-counter>input{font-size:17px!important}
 /* Saved travelers and the Garage vehicle sit in the flow instead of boxed panels. */
 html body.share-flow.sf-wide .sf-part-body .cj-account-options{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin:0;padding:0;border:0;border-radius:0;background:none}
 html body.share-flow.sf-wide .sf-part-body .cj-account-options>details[open]{flex-basis:100%}
 html body.share-flow.sf-wide .sf-part-body .cj-account-options :is(a,summary){margin:0;font-size:13px}
 html body.share-flow.sf-wide .sf-part-body [data-account-garage]{flex-direction:column;align-items:flex-start;gap:8px}
 html body.share-flow.sf-wide .sf-part-body [data-account-garage]>label{width:100%}
 html body.share-flow.sf-wide .sf-part-body [data-account-garage]>a{align-self:flex-start;min-height:0}
 html body.share-flow.sf-wide .sf-part-body [data-account-garage] .cj-intro:empty{display:none}

 /* Stops & route */
 html body.share-flow.sf-wide .sf-map-column{align-self:stretch}
 /* The map stays beside the stops as they scroll, sized to the screen rather than the list. */
 html body.share-flow.sf-wide .sf-part-body .sf-map,html body.share-flow.sf-wide .sf-part-body .sf-map[hidden]{display:block!important;position:sticky;top:72px;flex:none;height:min(620px,calc(100vh - 180px));min-height:300px;margin:0;border-radius:16px}
 html body.share-flow.sf-wide .sf-part-body .sf-map:has(.rm-route-adjustment){height:auto;min-height:0}
 html body.share-flow.sf-wide .sf-map .cj-map-preview:has(.rm-route-adjustment) .cj-live-map{height:clamp(300px,calc(100vh - 360px),520px)}
 html body.share-flow.sf-wide .sf-map #cj-open-route{left:10px;right:auto;min-height:34px;background:#00849b!important;color:#fff!important}
 html body.share-flow.sf-wide .sf-map #cj-open-route::after{content:none}
 html body.share-flow.sf-wide #cj-stop-list{margin:0}
 html body.share-flow.sf-wide .sf-part-body .cj-stop{border-radius:16px}
 html body.share-flow.sf-wide .sf-part-body .cj-stop.is-open>:not(.sf-stop-row){margin:0 14px}
 html body.share-flow.sf-wide .sf-stop-row{grid-template-columns:44px minmax(0,1fr) 88px;gap:14px;min-height:88px;padding:12px 14px;border-radius:16px}
 html body.share-flow.sf-wide .sf-stop-number{width:40px;height:40px;font-size:17px}
 html body.share-flow.sf-wide .sf-stop-text{gap:3px}
 html body.share-flow.sf-wide .sf-stop-text strong{font-size:17px}
 html body.share-flow.sf-wide .sf-stop-text small{font-size:14px;color:var(--sf-ink2)}
 html body.share-flow.sf-wide .sf-leg-wide{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 0 35px;padding:10px 0 10px 35px}
 html body.share-flow.sf-wide .sf-leg-wide::after{content:none}
 html body.share-flow.sf-wide .sf-leg-pill{display:inline-flex;align-items:center;gap:8px;height:38px;min-height:38px;padding:0 14px;border:0;border-radius:999px;background:var(--sf-tint);color:var(--sf-ink);font:700 14px/1 Arial,Helvetica,sans-serif;cursor:pointer}
 html body.share-flow.sf-wide .sf-leg-pill.is-set{color:var(--sf-accent)}
 html body.share-flow.sf-wide .sf-leg-pill svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 html body.share-flow.sf-wide .sf-leg-pill svg:last-child{width:14px;height:14px}
 html body.share-flow.sf-wide .sf-part-body .sf-leg-modes{gap:6px}
 html body.share-flow.sf-wide .sf-part-body .sf-leg-modes>.sf-chip{min-height:34px;padding:0 12px;font-size:13px!important}
 html body.share-flow.sf-wide .sf-part-body #cj-add-stop{height:52px;min-height:52px;margin-top:-6px;border-radius:14px;font-size:16px}
 html body.share-flow.sf-wide .sf-part-body .cj-coverage{gap:10px;margin:0}
 html body.share-flow.sf-wide .sf-part-body #cj-countries>span{min-height:44px;padding:0 8px 0 16px;gap:8px;font-size:15px}
 html body.share-flow.sf-wide .sf-part-body .cj-coverage>label:first-of-type{flex:1 1 200px;gap:0}
 html body.share-flow.sf-wide .sf-part-body .cj-coverage>label:first-of-type :is(select,.ts-select-trigger){min-height:44px!important;padding:0 16px!important;font-size:15px!important}
 html body.share-flow.sf-wide .sf-distance{display:flex;align-items:flex-end;gap:14px}
 html body.share-flow.sf-wide .sf-distance>label{flex:none;width:140px;white-space:nowrap}
 /* Labels that the phone layout hides visually (font-size:0) stay hidden here. */
 html body.share-flow.sf-wide .sf-part-body :is(.sf-map .cj-map-preview>label,.cj-coverage>label:first-of-type){font-size:0!important}
 html body.share-flow.sf-wide .sf-distance [name=distance]{width:140px}
 html body.share-flow.sf-wide .sf-part-body #cj-calculate-distance{align-self:flex-end;min-height:48px;margin:0;font-size:14px}

 /* Cover & permission */
 html body.share-flow.sf-wide .sf-part-body .cj-cover-image{height:auto;aspect-ratio:16/8;border-radius:16px}
 html body.share-flow.sf-wide .sf-part-body #cj-change-cover{border-radius:16px}
 html body.share-flow.sf-wide .sf-part-body #cj-adjust-cover{right:12px;bottom:12px;min-height:40px;padding:0 16px;font-size:14px}

 /* The Explore card beside Basics and Cover & permission */

 /* Costs & tips */
 html body.share-flow.sf-wide .sf-part-body .sf-money>input{width:52px!important;font-size:17px!important}
 html body.share-flow.sf-wide .sf-part-body .sf-money::before{font-size:17px}
 html body.share-flow.sf-wide .sf-total{padding:16px 18px;border-radius:14px;font-size:15px;color:var(--sf-ink2)}
 html body.share-flow.sf-wide .sf-total>span>strong{font-size:17px}
 html body.share-flow.sf-wide .sf-total>strong{font-size:19px}
 html body.share-flow.sf-wide .sf-part-body .sf-halves textarea{min-height:140px}
}
/* Narrow desktops: dates stack above travellers so both date fields stay readable. */
@media(min-width:1024px) and (max-width:1199px){
 html body.share-flow.sf-wide .sf-dates-party{grid-template-columns:minmax(0,1fr)}
}
