/* Patagonia trip brief interface (patagonia/brief_PAT.js). Load after assets/css/calendar.css.
   Same look as the TMB brief (tmb/brief_TMB.css), with trek cards and Dorms OK / Camping OK toggles. */
.builder { margin-top: 20px; display: grid; gap: 18px; }
.builder .step { scroll-margin-top: 150px; }
.ppl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 18px 38px; }
.ppl .lab { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 26px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stepper button { font: inherit; font-weight: 800; border: 0; background: transparent; color: var(--ink); cursor: pointer; width: 34px; height: 34px; font-size: 18px; line-height: 1; }
.stepper button:disabled { color: var(--empty-ink); cursor: default; }
.stepper button:hover:not(:disabled) { background: var(--chip); }
.stepper output { min-width: 74px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.big button { width: 52px; height: 52px; font-size: 26px; }
.stepper.big output { min-width: 64px; font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.stepper output.skip { color: var(--ink-faint); font-weight: 600; }
.stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 28px; margin-left: 38px; }
.stops ol { list-style: none; margin: 0; padding: 0; }
.stop { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.stop .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; color: var(--ink-faint); width: 20px; text-align: right; flex: none; }
.stop .nm { flex: 1; min-width: 0; font-weight: 600; }
.stop.skipped .nm { color: var(--ink-faint); text-decoration: line-through; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.step-h { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 13px; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.step h2 { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 19px; margin: 0; }
.step .hint { color: var(--ink-soft); font-size: 13px; margin: 0 0 12px 38px; max-width: 75ch; }
.av-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.av-month h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.av-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.av-grid .h { font-size: 10.5px; font-weight: 600; text-align: center; color: var(--ink-faint); }
.ad { font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; padding: 0; }
.ad[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.ad.desel[aria-pressed="true"] { background: var(--accent); cursor: not-allowed; cursor: pointer; box-shadow: inset 0 0 0 2px var(--bg); }
.ad.desel[aria-pressed="false"]:not(:disabled) { border-style: dashed; }
.ad:disabled { background: transparent; color: var(--empty-ink); border-color: transparent; cursor: default; }
.ad:focus-visible, .pref:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; }
.row label { font-size: 13px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.row input[type="date"], .row input[type="number"], .row select { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.row input[type="number"] { width: 64px; }
.prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.pref { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; background: var(--bg); }
.pref input { position: absolute; opacity: 0; pointer-events: none; }
.pref b { font-size: 14px; }
.pref span { font-size: 12.5px; color: var(--ink-soft); }
.pref.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.dormpick { margin-top: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.dormpick button { font: inherit; font-weight: 700; width: 36px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.dormpick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.go .btn { font-size: 14px; padding: 9px 16px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; min-width: 0; }
.plan-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.plan-h h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0; }
.plan-h .dates { color: var(--ink-soft); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--ink-soft); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.ptable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable td.n { font-variant-numeric: tabular-nums; color: var(--ink-faint); width: 1%; white-space: nowrap; }
.ptable td.dt { white-space: nowrap; }
.ptable .alt { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.ptable .none { color: var(--red); font-weight: 700; }
/* every tag is the same size, here and in the Ezus Project Builder */
.kind { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 118px; height: 19px; padding: 0 6px;
  font-size: 10.5px; font-weight: 700; line-height: 1; border-radius: 999px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.kind.P { background: var(--green); } .kind.D { background: var(--orange); }
.kind.on { background: #7A4E2A; } .kind.off { background: #0084B6; }
.kinds { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.plan-top { cursor: pointer; }
.plan-h .plan-toggle { margin-left: auto; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.plan-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.strip i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.strip i.P { background: var(--green); } .strip i.D { background: var(--orange); } .strip i.N { background: var(--red); }
.strip i.off { background: #0084B6; }
.strip i.town { box-shadow: inset 0 0 0 3px #E0B420; }
.start-pick { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.start-pick select { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.start-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.presets { margin: 18px 0 0 38px; display: grid; gap: 8px; }
.presets h3 { font-family: var(--font-display); font-weight: 800; font-size: 15px; margin: 0; }
.presets .row2 { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; text-align: left; display: grid; gap: 2px; }
.preset small { font-weight: 500; font-size: 11.5px; color: var(--ink-faint); }
.preset[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rules-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 4px; }
.rules-h h3 { margin: 0; }
.rules-h h3 button { font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 16px; border: 0; background: transparent; color: var(--ink); padding: 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; }
.rules-h h3 button .chev { color: var(--accent); font-size: 13px; }
.rules-h h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.rules-h .bulk { display: flex; flex-wrap: wrap; gap: 6px; }
.rules-h .bulk button { font: inherit; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 28px; }
.rules ol { list-style: none; margin: 0; padding: 0; }
.rule { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rule .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; color: var(--ink-faint); width: 20px; text-align: right; flex: none; }
.rule .nm { flex: 1; min-width: 110px; font-weight: 600; }
.tog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 6px; cursor: pointer; background: var(--bg); color: var(--ink-faint); user-select: none; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; display: inline-grid; place-items: center; font-size: 9px; line-height: 1; }
.tog.yes.dorm { background: var(--orange); border-color: var(--orange); color: #fff; }
.tog.yes.off { background: #0084B6; border-color: #0084B6; color: #fff; }
.tog:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tog:not(.yes) span.t { text-decoration: line-through; }
.tag.P { background: var(--green); color: #fff; } .tag.D { background: var(--orange); color: #fff; }
.tag.off { background: #0084B6; color: #fff; } .tag.on { background: #7A4E2A; color: #fff; }
.tag.N { background: var(--red); color: #fff; }
.alt-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-size: 11.5px; color: var(--ink-faint); }
.alt-sel { font: inherit; font-size: 12px; max-width: 100%; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.alt-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tagf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 4px; }
.tagf .g { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tagf .gl { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-right: 3px; }
.tagf button { font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.tagf button:hover { border-color: var(--accent); }
.tagf button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tagf button.off[aria-pressed="true"] { background: var(--chip); border-color: var(--line); color: var(--ink-soft); }
.tagf button.clr { border-style: dashed; color: var(--ink-soft); }
.tagf button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tagf-n { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--ink-faint); }
.kind.rs, .tag.rs { background: var(--resale); color: var(--resale-ink); }
.kind.manual { background: #53E9E6; color: #063F3E; }   /* light cyan: dark text so it stays readable */
.kind.ar { background: #1F6E6A; }
.around { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid #1F6E6A; background: var(--surface); }
.around b { color: var(--ink); }
.around .mini { flex-basis: 100%; }
.man { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ptable .none + .alt.mnote { color: var(--ink-soft); }
.strip { align-items: center; }
.strip i.rs { position: relative; width: 17px; height: 17px; margin: -0.5px; border-radius: 0; box-shadow: none; background: var(--resale); clip-path: polygon(50% 0%, 61.8% 35.4%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0% 38.2%, 38.2% 35.4%); }
.strip i.rs::after { content: ""; position: absolute; inset: 3.5px 3.5px 2.5px; clip-path: inherit; background: var(--green); }
.strip i.rs.D::after { background: var(--orange); } .strip i.rs.off::after { background: #0084B6; }
.alt .rsq { display: block; font-size: 11.5px; color: var(--resale-ink); font-weight: 700; }

.ptable .alt.warnl { color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 3px 7px; margin-top: 4px; font-style: normal; }
.ad.arn { outline: 2px solid #1F6E6A; outline-offset: 1px; }
.man .mini { flex-basis: 100%; font-size: 11.5px; color: var(--ink-faint); }
.it-filters h3 { font-family: var(--font-display); font-weight: 800; font-size: 15px; margin: 18px 0 0; }
.builder .notice { margin-top: 12px; }
.builder .mini { font-size: 12.5px; color: var(--ink-soft); }
.stepper.big output.skip { font-size: 20px; }
/* Preferences brief */
.res-foot { margin-top: 14px; }
.brief-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.brief-t { margin: 0 0 10px; white-space: pre-wrap; font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.brief-in { width: 100%; box-sizing: border-box; font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 12.5px; line-height: 1.5; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
.brief-err ul { margin: 6px 0 0 18px; padding: 0; }
.brief-err li { margin: 2px 0; }
.rules-h .presets { align-items: center; }
.rules-h .presets .mini { margin-right: 2px; }
.rules-h .bulk button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Patagonia: trek picker and zone rules (dorms are light blue, camping orange, as on the calendars) */
.treks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 0 0 16px 38px; }
.tog.yes.dorm { background: var(--sky); border-color: var(--sky); color: var(--cell-dark); }
.tog.yes.camp { background: var(--orange); border-color: var(--orange); color: #fff; }
.stops-tot { margin-left: 38px; }
.dormpick .mini { margin-left: 6px; }
/* Patagonia colours for the itineraries: private green, dorm light blue, camping orange (as on the calendars) */
.tag.D, .strip i.D, .kind.D { background: var(--sky); color: var(--cell-dark); }
.tag.C, .strip i.C, .kind.C { background: var(--orange); color: #fff; }
.strip i.rs.D::after { background: var(--sky); } .strip i.rs.C::after { background: var(--orange); }
/* Budget and Single tents */
.pat-ex { display: grid; gap: 8px; margin-top: 12px; }
.exrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tog.yes.ex { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
/* trek, direction and entry/exit pickers; Grey combination; off-trail nights */
.pick-lab { margin: 0 0 6px 38px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft, #6b5a4a); }
.exrow.grey { margin: 0 0 16px 38px; }
.tag.off { background: #0084B6; color: #fff; }
.strip i.C.off, .strip i.D.off, .strip i.P.off { background: #0084B6; }
