/* Thrive Well marketplace UI — tokens + components */

.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-secondary, var(--muted)); margin-bottom: 12px;
}
.crumbs a { color: var(--secondary, var(--teal)); font-weight: 600; }
.crumbs span { opacity: .5; }

.header-search {
  display: flex; align-items: center; gap: 0;
  min-width: 220px; max-width: 360px; width: 100%;
  border: 1px solid var(--border, var(--line));
  background: var(--surface, #fff);
  border-radius: 10px;
  overflow: hidden;
}
.header-search input {
  flex: 1; border: 0; background: transparent; padding: 10px 12px; min-width: 0; font-size: 14px;
}
.header-search input:focus { outline: none; }
.header-search button {
  border: 0; background: var(--primary, var(--navy)); color: #fff;
  padding: 10px 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.header-search button:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

.site-header.is-compact .brand img { height: 56px; }
.site-header.is-compact .header-row { padding: 4px 0; }
.topbar.is-hidden { display: none; }

.ico {
  width: 18px; height: 18px; display: block; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.toast-stack {
  position: fixed; right: 16px; top: 88px; z-index: 80; display: grid; gap: 8px; width: min(360px, calc(100% - 24px));
}
.toast {
  background: #fff; border: 1px solid var(--border, var(--line));
  border-left: 4px solid var(--success, #0f7a45);
  border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11,44,74,.08));
  font-weight: 600; color: var(--text, var(--ink));
}
.toast.is-error { border-left-color: var(--danger, #b42318); }

.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.empty-state {
  text-align: center; padding: 48px 20px; background: #fff;
  border: 1px dashed var(--border, var(--line)); border-radius: 12px;
}
.empty-state h3 { margin: 0 0 6px; color: var(--primary, var(--navy)); }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

.skel { background: linear-gradient(90deg, #eef3f8 25%, #f7fafc 37%, #eef3f8 63%); background-size: 400% 100%; animation: skel 1.2s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.account-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-nav {
  background: #fff; border: 1px solid var(--border, var(--line)); border-radius: 12px; padding: 10px;
  position: sticky; top: 96px;
}
.account-nav a, .account-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink);
  border: 0; background: none; text-align: left; cursor: pointer;
}
.account-nav a:hover, .account-nav a.active { background: var(--mint, #e8f1f8); color: var(--navy); }
.account-nav .nav-label { margin: 12px 12px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.account-main { min-width: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative; padding: 0 0 18px 28px; color: var(--muted); font-size: 14px;
}
.timeline li:before {
  content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 99px;
  background: #fff; border: 2px solid var(--line);
}
.timeline li:after {
  content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child:after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done:before { background: var(--secondary, var(--teal)); border-color: var(--secondary, var(--teal)); }
.timeline li.current { color: var(--navy); font-weight: 800; }
.timeline li.current:before { background: var(--navy); border-color: var(--navy); }

.price-break { display: grid; gap: 8px; margin: 14px 0; }
.price-break div { display: flex; justify-content: space-between; font-size: 14px; }
.price-break .total { font-weight: 800; font-size: 16px; color: var(--navy); border-top: 1px solid var(--line); padding-top: 8px; }

.filter-bar {
  display: grid; grid-template-columns: 1.4fr repeat(4, .8fr) auto; gap: 8px; margin-bottom: 18px;
}
.filter-bar .field, .filter-bar select { margin: 0; }

.hero-search {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(11,44,74,.06));
  margin-top: 22px;
}
.hero-search .field { margin: 0; border: 0; background: var(--cream); }
.search-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }

.btn { border-radius: 10px !important; }
.loc-btn, .icon-btn { border-radius: 10px !important; }
.btn:focus-visible, .field:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(26,123,168,.35); outline-offset: 1px;
}

.mobile-book {
  display: none;
  position: sticky; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(11,44,74,.08);
}

.stars { color: #c47b12; font-weight: 800; letter-spacing: .04em; }

.nav > .header-search { display: none; }
@media (max-width: 1100px) {
  .header-row > .header-search { display: none; }
  .nav.mobile-open > .header-search { display: flex; max-width: none; margin-bottom: 12px; }
  .account-shell { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .account-nav a, .account-nav button { white-space: nowrap; width: auto; }
  .account-nav .nav-label, .account-nav form { display: none; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  .mobile-book { display: flex; gap: 8px; }
}
@media (max-width: 640px) {
  .filter-bar { grid-template-columns: 1fr; }
}
