/* Hut Hound · TMB · Ezus Project Builder (prototype) */
.ezus { padding: 4px 0 6px; }
.ez-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.ez-head h3 { margin: 0; font-size: 19px; }
.ez-proto { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A5A00; background: #FBF3E4; border: 1px solid #EBD9B6; border-radius: 999px; padding: 2px 9px; }
.ez-row { margin: 10px 0 2px; }
.ez-foot { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* step colours */
.ezus { --c-acc: #40AD48; --c-summary: #4A4243; --c-transfer: #0084B6; --c-leisure: #F0F263; --c-baggage: #000000; --c-hike: #AE895E; --c-activity: #8EB8B0; }

/* days: one card each, coloured strip by type of day */
.ez-days { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.ez-day { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px 14px; }
.ez-day.t-travel { border-left-color: var(--c-summary); }
.ez-day.t-leisure { border-left-color: var(--c-leisure); }
.ez-day.t-hiking { border-left-color: var(--c-hike); }
.ez-day.t-activity { border-left-color: var(--c-activity); }
.ez-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.ez-n { font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.ez-dt { color: var(--ink-soft); font-size: 13px; }
.ez-zone { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ez-zone::before { content: "· "; }
.ez-warn { font-size: 12px; font-weight: 700; color: #9A4A00; background: #FFF1DC; border: 1px solid #F1CF9A; border-radius: 999px; padding: 1px 8px; }
.ez-ctl { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.ez-ctl select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.ez-fixed { font-size: 12.5px; color: var(--ink-soft); }
.ez-title { margin: 4px 0 10px; font-size: 18px; font-weight: 800; line-height: 1.25; }

/* steps: every row the same width and height, an icon tile in the step's colour, then the step */
.ez-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ez-step { position: relative; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; column-gap: 12px; min-height: 52px; box-sizing: border-box;
  padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.ez-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); }
.ez-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ez-t { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ez-s { font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; margin-top: 1px; }
.ez-aside { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ez-step.k-acc { --c: var(--c-acc); }
.ez-step.k-summary { --c: var(--c-summary); }
.ez-step.k-transfer { --c: var(--c-transfer); }
.ez-step.k-leisure { --c: var(--c-leisure); }
.ez-step.k-leisure .ez-ic { color: #3A3A00; }
.ez-step.k-baggage { --c: var(--c-baggage); }
.ez-step.k-hike { --c: var(--c-hike); }
.ez-step.k-activity { --c: var(--c-activity); }
.ez-step.k-nobag { --c: transparent; border-style: dashed; }
.ez-step.k-nobag .ez-ic { color: var(--ink-soft); border: 1px dashed var(--ink-soft); }
.ez-step.k-nobag .ez-t { color: var(--ink-soft); font-weight: 500; }
/* a thin line of the step's colour on the left of each row */
.ez-step::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.ez-step.k-nobag::before, .ez-step.none::before { display: none; }

/* steps with alternatives: the whole row opens the list */
.ez-step.pick { cursor: pointer; }
.ez-step.pick:hover { border-color: var(--c); }
.ez-sel.ez-over { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; }
.ez-step .ez-aside, .ez-step .ez-manrow, .ez-step .ez-opts { position: relative; z-index: 2; }
.ez-step .ez-aside { pointer-events: none; }
.ez-step .ez-aside label, .ez-step .ez-aside button { pointer-events: auto; }
.ez-step.pick:hover .ez-t { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 3px; }
.ez-sel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 0; margin: 0; width: 100%; cursor: pointer; text-overflow: ellipsis; }
.ez-sel:focus-visible { outline: none; }
.ez-step.pick:focus-within { outline: 2px solid var(--c); outline-offset: 1px; }
.ez-chev { font-size: 12px; color: var(--ink-soft); pointer-events: none; }
/* the empty morning transfer slot */
.ez-step.none { border-style: dashed; background: transparent; }
.ez-step.none .ez-ic { background: transparent; color: var(--c-transfer); border: 1px dashed var(--c-transfer); }
.ez-step.none .ez-t { color: var(--c-transfer); font-weight: 500; }

.ez-bag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.ez-bag input { margin: 0; accent-color: var(--c-acc); }
.ez-reset { font: inherit; font-size: 12px; border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }

@media (max-width: 560px) {
  .ez-ctl { margin-left: 0; width: 100%; }
  .ez-step { grid-template-columns: 32px 1fr; }
  .ez-ic { width: 32px; height: 32px; }
  .ez-aside { grid-column: 2; padding-top: 4px; }
}
.ez-manrow { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.ez-man { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); max-width: 100%; }

/* a step's options (meal plan, rooms, transfer type): quiet lines under the step's name. Closed, a list reads as
   text with a dotted underline; open, its options look like the itinerary builder's lists. */
.ez-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 3px; }
.ez-opt { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.ez-opt select { font: inherit; font-size: 13px; color: var(--ink-soft); border: 0; border-bottom: 1px dotted currentColor; border-radius: 0; background: transparent; padding: 0 16px 0 0; margin: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none; field-sizing: content; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 5px top 55%, right 1px top 55%; background-size: 4px 4px; background-repeat: no-repeat; }
.ez-opt select:hover { color: var(--ink); }
.ez-opt select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* the open list: same font, size and colours as the builder's lists */
.ez-opt select option, .ez-sel option, .ez-man option { font-family: inherit; font-size: 12px; font-weight: 400; color: var(--ink); background: var(--bg); }

/* collapsing days */
.ez-folds { display: flex; gap: 14px; justify-content: flex-end; margin: 6px 0 -4px; }
.ez-fold { font: inherit; font-size: 13px; width: 24px; height: 24px; margin: 0 -2px 0 -4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.ez-fold:hover { background: var(--bg); color: var(--ink); }
.ez-day.folded { padding-bottom: 10px; }
.ez-day.folded .ez-title { font-size: 15.5px; margin: 2px 0 6px; cursor: pointer; }
.ez-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ez-mi { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }
.ez-mic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.ez-mic svg { width: 13px; height: 13px; }
.ez-mi.k-acc { --c: var(--c-acc); } .ez-mi.k-summary { --c: var(--c-summary); } .ez-mi.k-transfer { --c: var(--c-transfer); }
.ez-mi.k-leisure { --c: var(--c-leisure); } .ez-mi.k-leisure .ez-mic { color: #3A3A00; } .ez-mi.k-baggage { --c: var(--c-baggage); }
.ez-mi.k-hike { --c: var(--c-hike); } .ez-mi.k-activity { --c: var(--c-activity); }
.ez-mi.k-nobag { --c: transparent; } .ez-mi.k-nobag .ez-mic { color: var(--ink-soft); border: 1px dashed var(--ink-soft); }
.ez-mi.k-acc > span:last-child, .ez-mi.k-hike > span:last-child { color: var(--ink); font-weight: 600; }
.ez-s.ez-rs { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--resale); color: var(--resale-ink); }

/* export / import */
.ez-io { margin: 8px 0 2px; gap: 8px; }
.ez-io .btn.on { border-color: var(--accent); }
.ez-iobox { margin: 8px 0 4px; }
.ez-iobox textarea { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 12px; }
.ez-file { font-size: 12.5px; max-width: 260px; }

/* the products in a stay: one line per room type */
.ez-prods { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; }
.ez-prods li { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--ink); }
.ez-pq { min-width: 14px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ez-px { color: var(--ink-faint); font-size: 11px; }

/* the project's filters */
.ez-filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ez-fg { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ez-fl { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-right: 3px; }
.ez-chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); cursor: pointer; }
.ez-chip:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-faint); }
.ez-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ez-chip:disabled { opacity: .5; cursor: default; }

/* the accommodation's tags (same as the itinerary builder) */
.ez-kinds { margin: 3px 0 1px; }
.kind.nothing { background: var(--violet); color: #fff; }   /* size and the other colours come from brief_TMB.css */

/* the rooms: the product lines open the other room options for that place and night */
.ez-prodw { position: relative; display: inline-flex; align-items: flex-end; gap: 6px; margin-top: 2px; border-radius: 6px; }
.ez-prodw .ez-prods { margin: 0; }
.ez-prodw.pick { cursor: pointer; padding-right: 2px; }
.ez-prodw.pick .ez-prods li > span:last-child { border-bottom: 1px dotted var(--ink-faint); }
.ez-prodw.pick:hover .ez-prods li > span:last-child { border-bottom-color: var(--ink); }
.ez-prodsel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 12px; }
.ez-prodw:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ez-pchev { font-size: 11px; color: var(--ink-soft); pointer-events: none; line-height: 1.6; }
