/* /individuals/where-to-invest — the STR feeder-market map. Ported from the design
   handoff onto the site-wide tokens (tokens.css). Research read, not advice. */

.wti {
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-primary);
}

.wti-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.wti-eyebrow-xs {
  font-size: 9px;
}

/* ---- Header ---- */
.wti-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-raised);
  flex-shrink: 0;
}
.wti-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wti-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}
.wti-brand-mark {
  width: 26px;
  height: 26px;
  background: var(--ulv-forest-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.wti-brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wti-brand-word em {
  font-style: italic;
  font-weight: 500;
}
.wti-divider {
  width: 1px;
  height: 22px;
  background: var(--border-default);
}
.wti-head-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.wti-search {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin: 0 18px;
}
.wti-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  padding: 7px 11px;
}
.wti-search-glyph {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1;
}
.wti-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  min-width: 0;
}
.wti-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow: auto;
}
.wti-result {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
}
.wti-result-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wti-result-body {
  flex: 1;
  min-width: 0;
}
.wti-result-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wti-result-juris {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wti-head-meta {
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.wti-head-meta-faint {
  color: #aeb3ad;
  margin-top: 3px;
}

/* ---- Main + map ---- */
.wti-main {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-canvas);
}
.wti-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface-canvas);
}
.wti-map-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wti-loading {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.wti-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
}

/* ---- Floating controls (chips + zoom) ---- */
.wti-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 52%;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
  padding: 7px 9px;
}
.wti-controls-label {
  margin-right: 3px;
  font-size: 9.5px;
}
.wti-chip {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.wti-chip.is-active {
  border-color: var(--ulv-forest-800);
  background: var(--ulv-forest-800);
  color: #fff;
}
.wti-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--ulv-forest-600);
  background: var(--ulv-forest-100);
  color: var(--ulv-forest-700);
}
.wti-zoom {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.wti-zoom button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface-page);
  color: var(--ulv-forest-700);
  line-height: 1;
  padding: 0;
}
.wti-zoom button:first-child {
  font-size: 17px;
}
.wti-zoom button:last-child {
  border-left: none;
}
.wti-controls-hint {
  flex-basis: 100%;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ---- Quick-look bubble ---- */
.wti-pop {
  position: absolute;
  z-index: 6;
  width: 226px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  padding: 13px 14px 14px;
  font-family: var(--font-body);
}
.wti-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.wti-pop-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.wti-pop-x {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.wti-pop-juris {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.wti-pop-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.wti-pill {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
}
.wti-pop-tax {
  font-size: 10px;
  color: var(--ulv-terra-600);
  font-weight: 600;
  white-space: nowrap;
}
.wti-pop-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
}
.wti-pop-num {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.wti-pop-bands {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 9px;
}
.wti-pop-bands > div {
  flex: 1;
}
.wti-pop-band-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* ---- First-run hint ---- */
.wti-hint {
  position: absolute;
  left: 44%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--ulv-forest-800);
  color: #fff;
  padding: 11px 15px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.wti-hint strong {
  font-weight: 700;
}
.wti-hint-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #86c7ac;
  flex-shrink: 0;
}
.wti-hint-x {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 0 0 4px;
}

/* ---- Legend ---- */
.wti-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
  padding: 9px 12px;
  width: 280px;
}
.wti-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wti-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.wti-legend-ring {
  width: 13px;
  height: 13px;
  border: 1.5px solid #b5552b;
  border-radius: 50%;
}
.wti-legend-diamond {
  width: 9px;
  height: 9px;
  background: var(--ulv-forest-800);
  transform: rotate(45deg);
}
.wti-feas-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface-page);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.wti-feas-btn.is-on {
  border-color: var(--ulv-forest-600);
  background: var(--ulv-forest-100);
  color: var(--ulv-forest-700);
}

/* ---- Reopen tab (collapsed) ---- */
.wti-reopen {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border: 1px solid var(--ulv-forest-800);
  background: var(--ulv-forest-800);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

/* ---- Detail panel ---- */
.wti-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 384px;
  z-index: 4;
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wti-panel-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.wti-panel-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wti-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.wti-breadcrumb {
  background: none;
  border: none;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.wti-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.wti-panel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
}
.wti-panel-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wti-panel-summary {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}
.wti-hubchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.wti-hubchip {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-secondary);
}
.wti-hubchip.is-active {
  border-color: var(--ulv-forest-600);
  background: var(--ulv-forest-100);
  color: var(--ulv-forest-700);
}
.wti-panel-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* Overview state list */
.wti-overview {
  padding: 16px 22px 26px;
}
.wti-overview-lede {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.wti-overview-list {
  display: flex;
  flex-direction: column;
}
.wti-overview-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
}
.wti-overview-ab {
  width: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ulv-forest-700);
}
.wti-overview-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wti-overview-count {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}

/* Market list */
.wti-list {
  padding: 14px 22px 26px;
}
.wti-list-lede {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.wti-list-hubhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wti-list-hubhead-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.wti-list-hubhead-text b {
  color: var(--text-primary);
}
.wti-list-hubhead-text b.wti-hub-accent {
  color: var(--ulv-forest-700);
}
.wti-list-showall {
  flex: none;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-secondary);
  border-radius: 4px;
}
.wti-list-rows {
  display: flex;
  flex-direction: column;
}
.wti-list-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 12px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
}
.wti-list-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.wti-list-body {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wti-list-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.wti-list-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wti-list-tax {
  font-size: 10px;
  color: var(--ulv-terra-600);
  white-space: nowrap;
}
.wti-list-juris {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.3;
}
.wti-list-fig {
  text-align: right;
  flex-shrink: 0;
}
.wti-list-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.wti-list-verdict {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 1px;
}

/* Market dossier */
.wti-detail {
  padding: 18px 22px 26px;
  position: relative;
  overflow: hidden;
}
.wti-detail-chip {
  position: absolute;
  top: 12px;
  right: 14px;
  pointer-events: none;
}
.wti-theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: 999px;
}
.wti-theme-chip svg {
  display: block;
}
.wti-theme-chip > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.wti-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 0 14px;
}
.wti-detail-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wti-detail-pills .wti-pill {
  padding: 4px 9px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.wti-tax-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #9a4322;
  border: 1px solid #ebb89f;
  background: #faebe0;
}
.wti-detail-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wti-detail-juris {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.wti-detail-hub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.wti-detail-permit {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.wti-detail-permit span {
  color: var(--text-secondary);
  font-weight: 600;
}
.wti-detail-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
  margin-top: 12px;
}
.wti-detail-score {
  margin-top: 8px;
}
.wti-detail-score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}
.wti-detail-score-head span:last-child {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.wti-detail-score-track {
  height: 5px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.wti-detail-score-fill {
  height: 100%;
}
.wti-detail-figs {
  margin-top: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  padding: 16px;
}
.wti-detail-figs-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.wti-detail-fig {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.wti-detail-fig-terra {
  color: var(--ulv-terra-600);
}
.wti-detail-figs-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-top: 10px;
}
.wti-detail-bands-wrap {
  margin-top: 18px;
}
.wti-detail-bands-label {
  margin-bottom: 8px;
}
.wti-bands {
  border: 1px solid var(--border-default);
}
.wti-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.wti-band:last-child {
  border-bottom: none;
}
.wti-band-info {
  min-width: 0;
}
.wti-band-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wti-band-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.wti-band-price {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wti-band-ded {
  color: var(--ulv-terra-600);
  font-weight: 600;
}
.wti-band-link {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ulv-forest-700);
  text-decoration: none;
  border: 1px solid var(--ulv-forest-300);
  padding: 6px 10px;
  white-space: nowrap;
}
.wti-bands-empty {
  border: 1px dashed var(--border-strong);
  padding: 14px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.wti-detail-cta {
  display: block;
  text-align: center;
  margin-top: 18px;
  background: var(--ulv-forest-800);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 14px;
  text-decoration: none;
}
.wti-detail-block {
  margin-top: 18px;
}
.wti-detail-block-label {
  margin-bottom: 5px;
}
.wti-detail-why {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}
.wti-detail-verify {
  margin-top: 14px;
  border-left: 3px solid var(--ulv-forest-600);
  background: var(--surface-canvas);
  padding: 11px 14px;
}
.wti-detail-verify-label {
  margin-bottom: 4px;
  color: var(--ulv-terra-700);
}
.wti-detail-verify-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.wti-detail-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #aeb3ad;
  margin-top: 18px;
  line-height: 1.55;
}

/* ---- Footer ---- */
.wti-footer {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 28px;
  border-top: 1px solid var(--border-default);
  background: var(--surface-raised);
  font-size: 12px;
  color: var(--text-secondary);
}
.wti-footer-label {
  color: var(--ulv-terra-700);
  flex-shrink: 0;
}
.wti-footer-text {
  line-height: 1.4;
}
.wti-footer-text strong {
  font-weight: 700;
  color: var(--text-primary);
}
.wti-footer-links {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wti-footer-links a,
.wti-footer-links button {
  color: var(--text-tertiary);
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.wti-footer-links a:hover,
.wti-footer-links button:hover {
  color: var(--ulv-forest-700);
}

/* ---- SVG map element classes + keyframes ---- */
.ulv-state,
.ulv-ring {
  transition: fill 0.18s ease, stroke 0.18s ease;
}
.ulv-state {
  cursor: default;
}
.ulv-state.launch {
  cursor: pointer;
}
.ulv-arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ulvArc 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ulv-hubpulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ulvHubPing 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}
.ulv-hubglow {
  transform-box: fill-box;
  transform-origin: center;
  animation: ulvHubGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}
.ulv-launch-pulse {
  animation: ulvLaunchPulse 1.8s ease-in-out infinite;
}
.ulv-hintdot {
  animation: ulvHintDot 1.6s ease-out infinite;
}
@keyframes ulvArc {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ulvHubPing {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  70% {
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@keyframes ulvHubGlow {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.48;
  }
}
@keyframes ulvLaunchPulse {
  0%,
  100% {
    fill-opacity: 1;
  }
  50% {
    fill-opacity: 0.66;
  }
}
@keyframes ulvHintDot {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 199, 172, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(134, 199, 172, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 199, 172, 0);
  }
}

/* Custom scrollbar (matches the design's ulv-scroll) */
.wti-scroll::-webkit-scrollbar {
  width: 8px;
}
.wti-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
}

/* ---- Estimate CTA + email-capture modal ---- */
.wti-estimate-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  background: var(--ulv-terra-600);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 14px;
  cursor: pointer;
}
.wti-estimate-cta:hover {
  background: var(--ulv-terra-700);
}
.wti-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 28, 24, 0.42);
  padding: 24px;
}
.wti-modal {
  width: 420px;
  max-width: 100%;
  background: var(--surface-raised);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}
.wti-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.wti-modal-body {
  padding: 26px 26px 24px;
}
.wti-modal-eyebrow {
  color: var(--ulv-terra-700);
}
.wti-modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 6px;
}
.wti-modal-figs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-canvas);
  border: 1px solid var(--border-default);
}
.wti-modal-fig {
  flex: 1;
}
.wti-modal-fig-right {
  flex: none;
  text-align: right;
}
.wti-modal-fig-ded {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ulv-terra-600);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.wti-modal-fig-val {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.wti-modal-lede {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 14px 0 0;
}
.wti-modal-label {
  display: block;
  margin: 14px 0 6px;
}
.wti-modal-names {
  display: flex;
  gap: 12px;
}
.wti-modal-names > div {
  flex: 1;
  min-width: 0;
}
.wti-modal-input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-page);
  color: var(--text-primary);
  outline: none;
}
.wti-modal-submit {
  width: 100%;
  margin-top: 14px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 14px;
  background: var(--ulv-forest-800);
  color: #fff;
  cursor: pointer;
}
.wti-modal-submit:disabled {
  background: var(--surface-sunken);
  color: #aeb3ad;
  cursor: not-allowed;
}
.wti-modal-fine {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #aeb3ad;
  margin: 12px 0 0;
  line-height: 1.5;
}
.wti-modal-sent {
  padding: 32px 26px;
  text-align: center;
}
.wti-modal-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ulv-forest-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.wti-modal-sent-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.wti-modal-sent-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 8px 0 0;
}
.wti-modal-sent-text strong {
  font-weight: 700;
  color: var(--text-primary);
}
.wti-modal-back {
  margin-top: 20px;
  background: var(--ulv-forest-800);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .ulv-arc,
  .ulv-hubpulse,
  .ulv-hubglow,
  .ulv-launch-pulse,
  .ulv-hintdot {
    animation: none;
  }
}

/* Mobile: the overlay panel becomes a bottom sheet so the map fills the top.
   Header trims to the brand + search; the legend collapses (verdict colors are
   labelled in the dossier). The design is desktop-first; this keeps it usable. */
@media (max-width: 768px) {
  .wti-header {
    padding: 12px 16px;
    gap: 12px;
  }
  .wti-head-titles,
  .wti-divider,
  .wti-head-meta {
    display: none;
  }
  .wti-search {
    margin: 0;
    max-width: none;
  }
  .wti-controls {
    left: 8px;
    right: 8px;
    top: 8px;
    max-width: none;
    padding: 8px 10px;
    gap: 6px;
  }
  .wti-controls-hint,
  .wti-legend {
    display: none;
  }
  .wti-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 56%;
  }
  .wti-reopen {
    top: 8px;
    right: 8px;
    padding: 10px 16px;
    font-size: 13px;
  }
  /* Quick-look bubble assumes mouse hover/collapse; on touch the sheet covers it. */
  .wti-hint,
  .wti-pop {
    display: none;
  }
}
