/* Candidate menu for one base — the picking step.
   Shared brand tokens from styles.css; text-labelled controls, no bare glyphs
   (see CLAUDE.md UI rules). */

.pool.plan-shell { padding-top: 1rem; }

.pool-head { margin-bottom: 1.6rem; }
.pool-intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: .75rem 0 0;
  max-width: 60ch;
}

.pool-loading, .pool-error {
  color: var(--text-secondary);
  padding: 1.5rem 1rem;
}
.pool-error { color: var(--brand-4); }

/* ── Groups ──────────────────────────────────────────────────── */
.pool-group { margin-bottom: 1.9rem; }

.pool-group-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0 0 .25rem;
}

.pool-group-note {
  color: var(--text-secondary);
  font-size: .87rem;
  line-height: 1.55;
  margin: 0 0 .8rem;
  max-width: 38rem;
}

.pool-group-longshot .pool-group-title { color: var(--brand-3); }

/* ── Cards ───────────────────────────────────────────────────── */
.pool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .7rem;
  margin-top: .75rem;
}

/* A card is a panel with a day picker at the bottom, not a toggle button: the
   day select is the control, and choosing a day is what marks it chosen. */
/* min-width:0 so a wide day select cannot push the card past its grid track —
   the select's widest option ("Wel doen, dag nog open") otherwise sets the
   card's min-content width and the whole grid overflows the column. */
.pool-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  min-width: 0;
  padding: .95rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.pool-card:hover { border-color: var(--brand-primary); }
.pool-card:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
/* Background tint on top of the border/shadow so "chosen" reads at a glance,
   not only on close inspection of a 1px border. */
.pool-card.is-chosen {
  border-color: var(--brand-primary);
  background: #f0f9f9;
  box-shadow: inset 0 0 0 1.5px var(--brand-primary);
}
.pool-card.is-longshot { border-style: dashed; }
.pool-card.is-longshot.is-chosen { border-style: solid; }

.pool-card-body { flex: 1 1 auto; min-width: 0; display: block; }

.pool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.pool-card-name {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: -.005em;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Says "gekozen" in words. The border alone carried it before, which is the
   kind of state a colour-blind traveller has to guess at. */
.pool-card-flag {
  display: none;
  flex: 0 0 auto;
  margin-top: .05rem;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-primary);
  border-radius: 5px;
  padding: .15rem .35rem;
  white-space: nowrap;
}
.pool-card.is-chosen .pool-card-flag { display: inline-block; }

/* ── Day picker on a card ────────────────────────────────────── */
/* Hidden until the tile is chosen: picking a day is a refinement of "I want
   this", not how you say it in the first place. Its own cursor so it doesn't
   look like part of the tile-click surface, even though a click here is
   still swallowed before it reaches the tile toggle (see pool-picker.js). */
.pool-card-day {
  display: none;
  min-width: 0;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
  cursor: default;
}
.pool-card.is-chosen .pool-card-day { display: flex; }

.pool-card-day-label {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.pool-card.is-chosen .pool-card-day-label { color: var(--brand-primary); }

.pool-day-select {
  /* basis 0, not auto: the widest option ("Wel doen, dag nog open") otherwise
     sets the select's base width and pushes it past the card. */
  flex: 1 1 0;
  min-width: 0;
  padding: .4rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.pool-day-select:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.pool-card.is-chosen .pool-day-select {
  border-color: #b9e0e1;
  background: #f0f9f9;
  font-weight: 600;
}

.pool-card-hours {
  display: inline-block;
  margin: .25rem 0 0;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--brand-gray);
  border-radius: 5px;
  padding: 0 .35rem;
}

.pool-card-desc {
  display: block;
  margin-top: .4rem;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pool-card-loc {
  display: block;
  margin-top: .35rem;
  font-size: .76rem;
  color: var(--text-secondary);
  opacity: .8;
}

/* ── Day rail ────────────────────────────────────────────────── */
/* The days beside the menu, not under it: every next pick depends on what is
   already on a day, and on the hours it adds up to. */
.pool-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .6rem;
}
.pool-rail-head .plan-rail-title { margin: 0; }

.pool-count { font-size: .75rem; font-weight: 600; color: #2f8083; }

.pool-day {
  padding: .55rem 0;
  border-top: 1px solid #f1f5f9;
}
.pool-day.is-open { border-top: 1px dashed #cbd5e1; }

.pool-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .3rem;
}

.pool-day-label { font-size: .78rem; font-weight: 700; color: var(--text-primary); }
.pool-day.is-open .pool-day-label { color: var(--text-secondary); }
.pool-day-load  { font-size: .68rem; font-weight: 500; color: #64748b; }

.pool-day-item {
  display: block;
  padding: .15rem 0 .15rem .7rem;
  font-size: .75rem;
  line-height: 1.45;
  color: var(--text-primary);
  border-left: 2px solid var(--brand-primary);
  margin-left: .1rem;
}

.pool-day-empty {
  display: block;
  font-size: .72rem;
  font-style: italic;
  color: #94a3b8;
}

.pool-bar-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.pool-btn-primary,
.pool-btn-secondary {
  width: 100%;
  padding: .85rem 1.1rem;
  border-radius: 13px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}
.pool-btn-primary { background: var(--brand-primary); color: #fff; }
.pool-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.pool-btn-primary:disabled,
.pool-btn-secondary:disabled { opacity: .6; cursor: default; }
.pool-btn-secondary {
  background: none;
  border-color: #e2e8f0;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
  padding: .75rem 1.1rem;
}
.pool-btn-secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pool-cost-note {
  margin: 0;
  font-size: .72rem;
  line-height: 1.55;
  color: #64748b;
}

/* ── Picked but didn't fit ───────────────────────────────────── */
/* Overflow from the day assembler. Rendered inside the chunk preview, not on
   the menu screen, because that is where the traveller notices the gap. */
.unscheduled-block {
  margin: 1rem 0 .5rem;
  padding: .85rem 1rem;
  border: 1px dashed var(--brand-gray);
  border-radius: 12px;
  background: var(--bg-card-soft);
}

.unscheduled-title {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.unscheduled-note {
  margin: .25rem 0 .6rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 44rem;
}

.unscheduled-list { list-style: none; margin: 0; padding: 0; }

.unscheduled-item {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: baseline;
  padding: .35rem 0;
  border-top: 1px solid var(--brand-gray);
}
.unscheduled-item:first-child { border-top: none; }

.unscheduled-name { font-size: .88rem; font-weight: 600; color: var(--text-primary); }
.unscheduled-loc  { font-size: .78rem; color: var(--text-secondary); }

.unscheduled-actions {
  margin-left: auto;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}

.unscheduled-actions select {
  padding: .3rem .5rem;
  border: 1px solid var(--brand-gray);
  border-radius: 7px;
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: .8rem;
}

.unscheduled-place-btn {
  padding: .3rem .7rem;
  border: 1px solid var(--brand-primary);
  border-radius: 7px;
  background: none;
  color: var(--brand-primary);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.unscheduled-place-btn:hover { background: var(--brand-primary); color: #fff; }

/* Empty menu / cost note */
.pool-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--brand-gray);
  border-radius: 13px;
  background: var(--bg-card-soft);
}
.pool-empty p { color: var(--text-secondary); margin: 0 0 1rem; }

