/* Breadcrumb-search (breadcrumb-search.js) — THE primary header control: every crumb
   is a segmented pill BUTTON (label walks up | chevron opens its dropdown), separated
   by dim chevron-right icons, ending in a search-field-looking trailing slot. Overflow
   must stay visible so the crumb dropdowns can hang below the header. */

.hdr-crumbs { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px;
  white-space: nowrap; font-size: 15px; color: var(--ink-dim); }

/* Each pill carries its depth hue: a coloured left edge + tinted chevron zone.
   [data-depth] is stamped by breadcrumb-search.js (0 = continent … 5 = leafward). */
.crumb { position: relative; display: inline-flex; align-items: stretch; min-width: 0; flex: 0 1 auto;
  --crumb-hue: var(--accent);
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--crumb-hue) 70%, transparent);
  border-radius: 9px; transition: border-color .12s ease, background .12s ease; }
.crumb[data-depth="0"] { --crumb-hue: var(--crumb-c0); }
.crumb[data-depth="1"] { --crumb-hue: var(--crumb-c1); }
.crumb[data-depth="2"] { --crumb-hue: var(--crumb-c2); }
.crumb[data-depth="3"] { --crumb-hue: var(--crumb-c3); }
.crumb[data-depth="4"] { --crumb-hue: var(--crumb-c4); }
.crumb[data-depth="5"] { --crumb-hue: var(--crumb-c5); }
.crumb:hover { border-color: color-mix(in srgb, var(--crumb-hue) 55%, var(--line));
  border-left-color: var(--crumb-hue); }
/* Leaf pill = the most saturated: hue-tinted fill + full-strength edge. */
/* Current location never truncates — ancestor crumbs give way first. */
.crumb.is-leaf { flex: 0 0 auto; background: color-mix(in srgb, var(--crumb-hue) 13%, var(--panel));
  border-color: color-mix(in srgb, var(--crumb-hue) 45%, var(--line));
  border-left-color: var(--crumb-hue); }
.crumb-btn { display: inline-block; min-width: 0;
  background: none; border: 0; border-radius: 8px 0 0 8px; padding: 8px 12px;
  color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .12s ease, color .12s ease; }
.crumb-btn:only-child { border-radius: 8px; }
.crumb-btn:hover { background: rgba(255,255,255,.07); }
.crumb-btn.is-current { font-weight: 700; }
/* Caret zone: standing hue tint (it should read "click me" without hovering),
   brighter + white chevron on hover/open. */
.crumb-caret { display: inline-flex; align-items: center; flex: none;
  background: color-mix(in srgb, var(--crumb-hue) 14%, transparent);
  border: 0; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0;
  padding: 0 9px; color: var(--crumb-hue); cursor: pointer;
  transition: background .12s ease, color .12s ease; }
.crumb-caret:hover, .crumb-caret[aria-expanded="true"] {
  color: var(--ink); background: color-mix(in srgb, var(--crumb-hue) 38%, transparent); }
.crumb-icon { width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.crumb-caret .crumb-icon { width: 18px; height: 18px; }
/* Separators: BIG chevrons that walk the crumb depth ramp (sep i is stamped
   data-depth = the crumb it points to), reading as a flowing rainbow arrow chain. */
.crumb-sep { display: inline-flex; align-items: center; flex: none;
  --crumb-hue: var(--accent);
  color: var(--crumb-hue); margin: 0 -3px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--crumb-hue) 45%, transparent)); }
.crumb-sep[data-depth="0"] { --crumb-hue: var(--crumb-c0); }
.crumb-sep[data-depth="1"] { --crumb-hue: var(--crumb-c1); }
.crumb-sep[data-depth="2"] { --crumb-hue: var(--crumb-c2); }
.crumb-sep[data-depth="3"] { --crumb-hue: var(--crumb-c3); }
.crumb-sep[data-depth="4"] { --crumb-hue: var(--crumb-c4); }
.crumb-sep[data-depth="5"] { --crumb-hue: var(--crumb-c5); }
.crumb-sep .crumb-icon { width: 27px; height: 27px; stroke-width: 3.25; }
/* Trailing area: a ROW of inline search FIELDS — one per jurisdiction target
   (engine/search-flow.js), e.g. Barbados shows [Parish] [Street] side by side.
   It sizes to its fields — it does NOT stretch to fill leftover header width. */
.crumb-tail { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center;
  gap: 5px; margin-left: 5px; background: none; border: 0; }
/* Each field reads as the placeholder for an unfilled crumb (dashed = "type here");
   on focus it goes solid and opens its own typeahead dropdown below. The placeholder
   text is "Search by <noun>" ("Search by City", "Parish", "Street"). Fixed comfortable
   width — the box is only as wide as it needs to be, never a full-header bar. */
.crumb-field { position: relative; flex: 0 0 auto; width: 200px; background: none; border: 0; }
.ss-field-input { width: 100%; min-width: 0; box-sizing: border-box;
  background: rgba(11,21,15,.96);
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 9px; padding: 8px 12px;
  color: var(--ink); font: 600 14.5px/1.3 var(--font);
  transition: border-color .12s ease, box-shadow .15s ease; }
.ss-field-input::placeholder { color: var(--ink-dim); font-weight: 600; opacity: 1; }
.ss-field-input:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.ss-field-input:focus { outline: 0; border-style: solid; border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.crumb-dropdown { position: absolute; z-index: 180; top: calc(100% + 8px); left: 0;
  display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 10px; white-space: normal;
  background: linear-gradient(180deg, rgba(20,36,26,.97), rgba(11,21,15,.98));
  box-shadow: 0 18px 46px rgba(0,0,0,.46); }
/* A trailing field's dropdown collapses until the field is focused (class rule
   would otherwise beat the [hidden] UA display:none). */
.crumb-dropdown[hidden] { display: none; }
.crumb-recent-tag { color: var(--gold); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; }

/* ss-* combobox pieces — shared look, hosted by the crumb dropdowns. */
.ss-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(72,102,82,.92);
  border-radius: 8px;
  background: rgba(11,21,15,.96);
  color: var(--ink);
  font: 15px/1.35 var(--font);
  font-weight: 600;
  padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.ss-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
}
.ss-options {
  display: grid;
  gap: 2px;
  max-height: 340px;
  overflow: auto;
}
.ss-options:empty {
  display: none;
}
.ss-option {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.ss-option:hover,
.ss-option:focus {
  outline: 0;
  background: rgba(30,50,38,.96);
  box-shadow: inset 3px 0 0 var(--gold);
}
.ss-option span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.ss-option-empty {
  color: var(--ink-dim);
  font-size: 13.5px;
  padding: 9px 11px;
}
/* Wizard sections: "Browse areas" / "Streets" headers inside the dropdown list. */
.ss-group-label {
  color: var(--ink-dim);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 8px 11px 3px;
}
/* Muted guidance row ("2,845 streets — start typing") — informational, not clickable. */
.ss-option-hint {
  color: var(--ink-dim);
  font-size: 13.5px;
  font-style: italic;
  padding: 7px 11px 9px;
}
/* Right-aligned option metadata (unit count on a civic number, geocoded place type). */
.ss-option-meta {
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* Attribution footer under geocoder-sourced ("Places") results. */
.ss-option-attribution {
  color: var(--ink-dim);
  font-size: 11px;
  font-style: italic;
  padding: 5px 11px 8px;
  opacity: 0.8;
}
