:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f7f4;
  background: #10231b;
  --bg: #10231b;
  --panel: rgba(32, 60, 48, .88);
  --panel-2: rgba(43, 76, 61, .72);
  --line: rgba(255,255,255,.15);
  --line-strong: rgba(255,255,255,.26);
  --text: #f4f7f4;
  --muted: #c6d1ca;
  --accent: #6d9d7f;
  --accent-strong: #8eb69b;
  --danger: #ffb0b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 18px 36px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(79,123,97,.20), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(90,117,101,.13), transparent 28%),
    linear-gradient(180deg, #1b2a23 0%, #10231b 42%, #0d1c16 100%);
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
}

.brand-header {
  margin: 0 -18px 26px;
  padding: 28px 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29,42,35,.98), rgba(24,38,31,.92));
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}

.brand-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-logo {
  width: 138px;
  height: 138px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.28));
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.brand-name {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.brand-tagline {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  color: #dbe7df;
}


.product-identity {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-name {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #fff;
}

.owl-sketch {
  display: block;
  width: min(620px, 76vw);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  margin: 8px 0 4px;
  opacity: .52;
}

.page-title-block {
  margin-top: 8px;
}

.page-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.16);
}

.sub {
  margin: 7px 0 0;
  max-width: 820px;
  line-height: 1.45;
  color: var(--muted);
  font-size: 14px;
}

.clear-button {
  margin-top: 0;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.clear-button:hover { background: rgba(255,255,255,.13); }

.mode-card,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
}

.mode-card {
  margin-top: 18px;
  padding: 18px 20px;
}

.card {
  padding: 20px;
  margin-top: 22px;
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.mode-label {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 0;
  color: #eef5f0;
}

.mode-switch {
  display: flex;
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.mode-button {
  border: 0;
  background: transparent;
  padding: 10px 21px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: #d7e2db;
}

.mode-button.active {
  background: #dfe9e2;
  color: #1d3327;
}

.mode-help {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

#searchForm { display: flex; flex-direction: column; }
.search-section {
  position: relative;
  z-index: 1;
  transition: order .15s ease;
}

/* Keep an open autocomplete card above every card that follows it.
   The JS class is more reliable than focus alone when the pointer moves
   from the input into the dropdown. */
.search-section:focus-within { z-index: 800; }
.search-section.dropdown-open { z-index: 1200; }
.section-title { margin: 0 0 18px; font-size: 24px; color: #fff; }

.location-grid {
  display: grid;
  grid-template-columns: 115px 135px 180px minmax(170px, .9fr) minmax(280px, 1.6fr);
  gap: 12px;
  align-items: start;
}

.bird-row { max-width: 740px; }

.field,
label {
  display: grid;
  gap: 7px;
  font-weight: 650;
  color: #f0f5f2;
}

.field > label {
  display: block;
}

label span { color: var(--danger); }
input, select, button { font: inherit; }

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(247,250,248,.95);
  color: #18251e;
  outline: none;
}

input:focus,
select:focus {
  border-color: #a7cab2;
  box-shadow: 0 0 0 3px rgba(167,202,178,.18);
}

input:disabled {
  background: rgba(229,235,231,.72);
  color: #677169;
}

.autocomplete { position: relative; }

.suggestions {
  position: absolute;
  z-index: 1400;
  left: 0;
  right: 0;
  top: 73px;
  max-height: 360px;
  overflow-y: auto;
  background: #f7faf8;
  border: 1px solid #bdc9c1;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.suggestions.hidden { display: none; }

.suggestion-heading {
  padding: 8px 12px;
  background: #e8eee9;
  color: #445248;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #d5ddd7;
}

.suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e0e6e2;
  background: #f7faf8;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: #17211b;
}

.suggestion:hover { background: #eaf1ec; }
.group-suggestion { background: #edf4ef; }
.suggestion strong, .suggestion small { display: block; }
.suggestion small { margin-top: 3px; color: #657067; line-height: 1.35; }
.no-result { padding: 12px; color: #59655d; }

.selected {
  min-height: 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.action-row {
  order: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}

.primary-button {
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  cursor: pointer;
  background: #7fa58b;
  color: #112219;
  font-weight: 850;
}

.primary-button:hover { background: #93b39d; }
.primary-button:disabled { cursor: wait; opacity: .78; }

.group-search-notice {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(127,165,139,.10);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.mandatory {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-head h2 { margin: 0; color: #fff; }
#status { font-size: 14px; color: var(--muted); }
.summary { margin: 12px 0; color: #e8f0eb; }
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #dce7e0;
}
td { color: #f0f4f1; }
td small { color: var(--muted); }

footer {
  padding: 18px 2px;
  font-size: 12px;
  color: #aebdb4;
}

.bird-choice {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.choice-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 320px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
}

.choice-option input { width: auto; min-height: 0; margin-top: 3px; }
.choice-option span { color: inherit; }
.choice-option strong { display: block; color: #fff; }
.choice-option small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .mode-card-top { align-items: flex-start; }
  .bird-row { max-width: none; }
  .action-row { align-items: flex-start; flex-direction: column; }
  .brand-wrap { align-items: flex-start; }
  .brand-logo { width: 96px; height: 96px; }
  .brand-name { font-size: 30px; }
  .page-title { font-size: 26px; }
}

@media (max-width: 620px) {
  body { padding-left: 12px; padding-right: 12px; }
  .brand-header { margin-left: -12px; margin-right: -12px; }
  .brand-wrap { gap: 14px; }
  .brand-logo { width: 72px; height: 72px; }
  .brand-name { font-size: 24px; }
  .brand-tagline { font-size: 13px; }
  
.product-identity {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-name {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #fff;
}

.owl-sketch {
  display: block;
  width: min(620px, 76vw);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  margin: 8px 0 4px;
  opacity: .52;
}

.page-title-block { margin-top: 14px; }
  .page-title { font-size: 22px; }
  .card, .mode-card { padding: 16px; }
}

.result-tools { display:grid; grid-template-columns:minmax(160px,1fr) minmax(200px,1.25fr) 120px auto auto; gap:10px; align-items:end; margin:14px 0 8px; }
.result-tools label { font-size:12px; }
.result-tools button { min-height:44px; }
.filtered-summary { margin: 6px 0 10px; font-size:12px; color:var(--muted); }
.sort-button { border:0; padding:0; background:transparent; color:inherit; cursor:pointer; font:inherit; font-weight:inherit; text-transform:inherit; letter-spacing:inherit; }
.sort-button:hover { color:#fff; text-decoration:underline; }
@media (max-width: 900px) { .result-tools { grid-template-columns:1fr 1fr; } }
@media (max-width: 620px) { .result-tools { grid-template-columns:1fr; } }

.bird-profile-link { color:#fff; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; cursor:pointer; }
.bird-profile-link:hover { opacity:.82; }

/* v2.8 WKH contextual chat */
.ask-wkh-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2)}
.ask-wkh-bar span{font-size:13px;color:var(--muted)}
.ask-wkh-button{padding:10px 14px;border:1px solid rgba(255,255,255,.16);border-radius:9px;background:#bfeee4;color:#17352f;font-weight:800;cursor:pointer}
.chat-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.5);display:flex;justify-content:flex-end}
.chat-panel{width:min(440px,100%);height:100%;background:#10231c;border-left:1px solid var(--line);display:flex;flex-direction:column}
.chat-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px;border-bottom:1px solid var(--line)}
.chat-head strong{display:block;color:#fff}.chat-head small{display:block;margin-top:4px;color:var(--muted)}
.chat-close{border:0;background:transparent;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.chat-message{display:flex;gap:9px;align-items:flex-start}.chat-message img{width:30px;height:30px;object-fit:contain;border-radius:50%}
.chat-message>div{max-width:84%;padding:10px 12px;border-radius:12px;background:#1a3329;color:#f0f4f1;white-space:pre-wrap;line-height:1.5}
.chat-message.user{justify-content:flex-end}.chat-message.user>div{background:#315647}.chat-message.loading>div{color:var(--muted)}
.chat-compose{padding:12px;border-top:1px solid var(--line);display:flex;gap:8px;align-items:flex-end}.chat-compose textarea{flex:1;resize:none}
@media(max-width:620px){.chat-panel{width:100%;border-left:0}.ask-wkh-bar{align-items:flex-start}.ask-wkh-button{width:100%}}

@media (max-width: 640px) {
  .brand-wrap { gap: 14px; align-items: flex-start; }
  .brand-logo { width: 88px; height: 88px; }
  .product-identity { margin-top: 16px; padding-top: 15px; }
  .owl-sketch { width: 92vw; max-height: 105px; }
}

/* v3.2_1 product identity update */
.product-identity {
  text-align: center;
}
.product-title-image {
  display: block;
  width: min(760px, 76vw);
  height: 76px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 2px;
}
.product-identity .owl-sketch {
  display: block;
  width: min(700px, 72vw);
  height: auto;
  max-height: 112px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 10px;
  opacity: .72;
}
@media (max-width: 640px) {
  .product-title-image { width: 92vw; height: 58px; }
  .product-identity .owl-sketch { width: 90vw; max-height: 86px; }
}

/* v3.2_2 compact product identity */
.product-identity {
  margin-top: 14px;
  padding-top: 12px;
}
.product-title-image {
  width: min(760px, 76vw);
  height: 56px;
  margin: 0 auto;
}
.product-identity .owl-sketch {
  width: min(520px, 52vw);
  max-height: 62px;
  margin: -2px auto 4px;
  opacity: .72;
}
.product-identity .page-title-block {
  text-align: left;
  margin-top: 6px;
}
.product-identity .sub {
  margin-top: 5px;
}
@media (max-width: 640px) {
  .product-title-image { width: 88vw; height: 46px; }
  .product-identity .owl-sketch { width: 62vw; max-height: 50px; }
}

/* v11.0_2 Bird Profile information on demand */
.bird-topic-prompt{margin:16px 0 8px;font-weight:750;color:#fff}
.bird-topic-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.bird-topic-button{min-height:36px;padding:8px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.07);color:#f4f7f5;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.bird-topic-button:hover,.bird-topic-button.active{background:#bfeee4;color:#17352f}
.bird-info-section{margin:0 0 14px}
.bird-info-section h3{margin:0 0 6px;font-size:17px}
.bird-info-section p{margin:0;line-height:1.55;white-space:pre-line}
.bird-info-detail{padding-top:2px}
.bird-info-detail .bird-info-section{padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}


/* v11.0_5 Bird Profile progressive topic display and conservation badge */
.about-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.conservation-badge{display:inline-flex;align-items:center;min-height:34px;padding:6px 13px;border-radius:999px;font-size:13px;font-weight:800;border:1px solid rgba(255,255,255,.22)}
.conservation-low{background:#0f5a2a;border-color:#2f8a4c;color:#fff}
.conservation-medium{background:#d2a900;border-color:#f1cf3e;color:#241c00}
.conservation-high{background:#a61f1f;border-color:#d45a5a;color:#fff}
.conservation-unknown{background:rgba(255,255,255,.07);color:#f4f7f5}
.conservation-source{width:100%;margin:-5px 0 8px;text-align:right;font-size:10px;line-height:1.2;opacity:.58}
.bird-info-detail{padding:2px 0 4px}
.bird-info-detail .bird-info-section{padding:12px 0;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
.bird-info-kept{padding:10px 0;border-top:1px solid rgba(255,255,255,.10)}
.bird-info-keep{margin-top:10px;min-height:32px;padding:6px 11px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.07);color:#f4f7f5;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.bird-info-keep:hover{background:#bfeee4;color:#17352f}
.bird-info-keep:disabled{opacity:.65;cursor:default}

/* WKH Integrated V15 Trip Planner handoff */
.trip-target-head,.trip-target-cell{width:58px;text-align:center}.trip-target-checkbox{width:18px;height:18px;accent-color:#245b3a;cursor:pointer}.trip-planner-button:disabled{opacity:.5;cursor:not-allowed}

/* V15.3 Trip Planner bulk selection and Bird Intel travel Ask entry */
.trip-selection-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.trip-selection-tools>span{font-size:13px;color:var(--muted)}
.trip-selection-actions{display:flex;gap:8px;flex-wrap:wrap}
.trip-selection-actions button{min-height:38px}
.primary-button:disabled,.clear-button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:620px){.trip-selection-tools{align-items:flex-start;flex-direction:column}.trip-selection-actions{width:100%}.trip-selection-actions button{flex:1}}

/* V15.5 Ask WKH Travel nearby-stay connections */
.travel-stay-panel{padding:12px 14px;border-top:1px solid var(--line);background:#0d1f19;max-height:38vh;overflow:auto}
.travel-stay-panel.hidden{display:none}
.travel-stay-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.travel-stay-head strong{color:#fff;font-size:14px}.travel-stay-head span{color:var(--muted);font-size:11px;text-align:right}
.travel-stay-list{display:grid;gap:9px}
.travel-stay-card{padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#173028}
.travel-stay-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.travel-stay-title strong{font-size:14px;color:#fff}.travel-stay-match{font-size:10px;font-weight:800;padding:3px 7px;border-radius:999px;background:#bfeee4;color:#17352f;white-space:nowrap}
.travel-stay-meta{margin-top:5px;font-size:11px;color:var(--muted);line-height:1.4}
.travel-stay-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.travel-stay-actions a{display:inline-flex;align-items:center;min-height:32px;padding:6px 9px;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#f2f7f4;text-decoration:none;font-size:12px;font-weight:750;background:rgba(255,255,255,.05)}
.travel-stay-actions a:hover{background:#bfeee4;color:#17352f}
.travel-stay-empty{font-size:12px;color:var(--muted);line-height:1.45}
.travel-trip-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:#12271f;font-size:12px;color:var(--muted)}
.travel-trip-button{padding:8px 11px;border:0;border-radius:8px;background:#bfeee4;color:#17352f;font-weight:800;cursor:pointer}
@media(max-width:620px){.travel-trip-cta{align-items:flex-start;flex-direction:column}.travel-trip-button{width:100%}.travel-stay-panel{max-height:34vh}}

/* V15.6 Ask WKH Travel location-first card and optional follow-up */
.travel-location-panel{padding:14px;background:#10251e;border-top:1px solid var(--line)}
.travel-location-card{padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#173028}
.travel-location-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.travel-location-title strong{font-size:17px;color:#fff}.travel-location-title span{font-size:10px;font-weight:800;padding:4px 8px;border-radius:999px;background:rgba(191,238,228,.12);color:#bfeee4;text-align:right}
.travel-location-card p{margin:0;color:#f0f5f2;font-size:13px;line-height:1.58}
.travel-location-booking-note{margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.1);font-size:11px;line-height:1.45;color:var(--muted)}
.travel-location-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.travel-location-actions a{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#f2f7f4;text-decoration:none;font-size:12px;font-weight:750;background:rgba(255,255,255,.05)}
.travel-location-actions a:hover{background:#bfeee4;color:#17352f}
.travel-location-loading,.travel-location-error{font-size:12px;line-height:1.5;color:var(--muted)}
.travel-followup{border-top:1px solid var(--line);background:#0d1f19}
.travel-followup>summary{padding:11px 14px;cursor:pointer;color:#bfeee4;font-size:12px;font-weight:800;list-style-position:inside}
.travel-followup[open]>summary{border-bottom:1px solid rgba(255,255,255,.08)}
.travel-followup-messages{max-height:28vh;min-height:0;padding:10px 14px}
.travel-followup .chat-compose{border-top:1px solid rgba(255,255,255,.08)}
@media(max-width:620px){.travel-location-title{flex-direction:column}.travel-location-title span{align-self:flex-start}.travel-location-panel{padding:10px}.travel-followup-messages{max-height:24vh}}

/* WKH Integrated V17.2 · clickable Bird Intel result locations */
.location-profile-link{
  border:0;
  padding:0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-weight:700;
  text-align:left;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  cursor:pointer;
}
.location-profile-link:hover{opacity:.82}
.location-profile-link:focus-visible{
  outline:2px solid #bfeee4;
  outline-offset:3px;
  border-radius:3px;
}


/* WKH Integrated V17.2 · WKH Partner / Verified travel treatment */
.travel-location-name-wrap,
.travel-stay-name-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.wkh-partner-badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.wkh-partner-badge,
.wkh-verified-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:850;
  letter-spacing:.02em;
}
.wkh-partner-badge{
  border:1px solid rgba(191,238,228,.45);
  background:rgba(191,238,228,.14);
  color:#dff8f1;
}
.wkh-verified-badge{
  border:1px solid rgba(255,255,255,.30);
  background:#bfeee4;
  color:#17352f;
}
.travel-place-type{
  flex:0 0 auto;
}


/* WKH Integrated V17.2 · stay priority, verified public treatment and paging */
.wkh-public-badges{display:flex;gap:6px;flex-wrap:wrap}
.wkh-verified-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  padding:4px 9px;
  border:1px solid rgba(191,238,228,.72);
  border-radius:999px;
  background:#bfeee4;
  color:#17352f;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.025em;
  box-shadow:0 2px 10px rgba(191,238,228,.12);
}
.wkh-verified-location-card,
.wkh-verified-stay-card{
  border-color:rgba(191,238,228,.58);
  background:linear-gradient(135deg,rgba(35,75,61,.98),rgba(23,48,40,.98));
  box-shadow:0 0 0 1px rgba(191,238,228,.09),0 10px 24px rgba(0,0,0,.16);
}
.wkh-verified-stay-card .travel-stay-title strong{font-size:15px}
.travel-stay-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.10);
}
.travel-stay-pagination span{font-size:11px;color:var(--muted);font-weight:750}
.travel-stay-page-button{
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#f2f7f4;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.travel-stay-page-button:hover:not(:disabled){background:#bfeee4;color:#17352f}
.travel-stay-page-button:disabled{opacity:.38;cursor:not-allowed}
/* Legacy public Partner label is intentionally hidden. Partner status remains internal. */
.wkh-partner-badge{display:none!important}


/* WKH Integrated V18.0 · exact-location search and Saved Searches */
.compact-help{display:block;margin-top:2px;color:var(--muted);font-size:10px;line-height:1.35;font-weight:500}
.action-row{flex-wrap:wrap}
.saved-search-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.save-search-overlay{position:fixed;inset:0;z-index:1600;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:18px}
.save-search-dialog{width:min(560px,100%);max-height:92vh;overflow:auto;border:1px solid var(--line-strong);border-radius:16px;background:#10231c;box-shadow:0 24px 70px rgba(0,0,0,.45)}
.save-search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.save-search-head strong{display:block;font-size:18px;color:#fff}.save-search-head small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}
.save-search-body{padding:18px}.save-search-name{font-size:12px}.save-search-name input{margin-top:2px}
.save-search-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}
.save-search-summary>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.04)}
.save-search-summary span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.save-search-summary strong{display:block;margin-top:4px;color:#fff;font-size:12px}
.save-alert-choice{display:flex;grid-template-columns:none;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);cursor:pointer}
.save-alert-choice input{width:18px;min-height:18px;margin:2px 0 0;accent-color:#bfeee4}.save-alert-choice span{color:inherit}.save-alert-choice strong{display:block;color:#fff;font-size:13px}.save-alert-choice small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4;font-weight:400}
.save-search-message{min-height:20px;margin-top:12px;color:var(--muted);font-size:12px}.save-search-message.success{color:#c9f2d2}.save-search-message.error{color:#ffc5c5}
.save-search-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid var(--line)}
@media(max-width:620px){.save-search-summary{grid-template-columns:1fr}.save-search-actions button{flex:1}.saved-search-link{width:100%}}
/* =========================================================
   V21 Bird Profile visual redesign
   Scoped to .bird-profile-page so Bird Intel search pages
   keep the tested V20 styling and behavior.
   ========================================================= */

.bird-profile-page{
  --bp-bg:#f2eee4;
  --bp-paper:#fbfaf6;
  --bp-paper-2:#f6f2e8;
  --bp-ink:#18211d;
  --bp-muted:#667069;
  --bp-green:#173f34;
  --bp-green-2:#225a49;
  --bp-green-soft:#dce8e0;
  --bp-sand:#d9bd79;
  --bp-line:#d8d2c5;
  --bp-danger:#a44b48;
  margin:0;
  padding:0 0 42px;
  min-height:100vh;
  color:var(--bp-ink);
  background:
    radial-gradient(circle at 82% 4%,rgba(217,189,121,.20),transparent 28%),
    linear-gradient(180deg,#f6f2e9 0%,var(--bp-bg) 100%);
}

.bird-profile-page .wkh-integrated-nav{
  margin:0;
}

.bird-profile-shell{
  width:min(1220px,calc(100% - 40px));
  margin:28px auto 0;
}

.bird-profile-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  gap:34px;
  align-items:end;
  min-height:340px;
  padding:42px 46px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:26px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 16%,rgba(217,189,121,.20),transparent 25%),
    radial-gradient(circle at 95% 85%,rgba(115,158,137,.20),transparent 30%),
    linear-gradient(120deg,#132a24 0%,#173f34 58%,#245a49 100%);
  box-shadow:0 24px 60px rgba(38,43,39,.16);
}

.bird-profile-hero::after{
  content:"";
  position:absolute;
  right:-70px;
  top:-110px;
  width:360px;
  height:360px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:50%;
  box-shadow:
    -80px 120px 0 -36px rgba(255,255,255,.025),
    -160px 190px 0 -70px rgba(217,189,121,.05);
  pointer-events:none;
}

.bird-profile-hero-copy{
  position:relative;
  z-index:1;
  max-width:860px;
}

.bird-profile-eyebrow,
.bird-profile-section-kicker,
.bird-profile-page-label{
  font-size:12px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.bird-profile-eyebrow{color:var(--bp-sand);margin-bottom:30px}
.bird-profile-page-label{color:#b9d1c5;margin-bottom:8px}

.bird-profile-hero-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.bird-profile-hero h1{
  margin:0;
  max-width:820px;
  color:#fff;
  font-size:clamp(42px,6vw,76px);
  line-height:.98;
  letter-spacing:-.045em;
  font-weight:820;
}

.bird-profile-page .species-note{
  margin:12px 0 0;
  color:#d7e3dd;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(17px,2vw,22px);
  font-style:italic;
}

.bird-profile-hero-intro{
  max-width:720px;
  margin:26px 0 0;
  color:#d9e4de;
  font-size:15px;
  line-height:1.65;
}

.bird-profile-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

.bird-profile-page .profile-back-button,
.bird-profile-page #addBirdToTrip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 17px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
}

.bird-profile-page .profile-back-button{
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
}

.bird-profile-page .profile-back-button:hover{
  background:rgba(255,255,255,.14);
}

.bird-profile-page #addBirdToTrip{
  border:1px solid #e8d59f;
  background:var(--bp-sand);
  color:#243028;
}

.bird-profile-page #addBirdToTrip:hover{background:#e4cb8d}

.bird-profile-page .conservation-badge{
  flex:0 0 auto;
  margin-top:24px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:none;
}

.bird-profile-hero-mark{
  position:relative;
  z-index:1;
  justify-self:end;
  display:grid;
  place-items:center;
  width:148px;
  height:148px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:50%;
  text-align:center;
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(6px);
}

.bird-profile-hero-mark span,
.bird-profile-hero-mark small{
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#d6e2dc;
}

.bird-profile-hero-mark strong{
  margin:-7px 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:26px;
  line-height:.88;
  color:#fff;
}

.bird-profile-grid{
  display:grid;
  grid-template-columns:minmax(320px,.88fr) minmax(0,1.35fr);
  gap:22px;
  margin-top:24px;
}

.bird-profile-media-card,
.bird-profile-info-card{
  min-width:0;
  border:1px solid var(--bp-line);
  border-radius:22px;
  background:rgba(251,250,246,.96);
  box-shadow:0 14px 34px rgba(46,52,48,.08);
}

.bird-profile-media-card{padding:22px}
.bird-profile-info-card{padding:28px 30px}

.bird-profile-section-kicker{
  margin-bottom:10px;
  color:#8a7650;
}

.bird-profile-card-heading,
.bird-profile-page .about-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.bird-profile-page h2{
  margin:0;
  color:var(--bp-ink);
  font-size:clamp(24px,2.5vw,34px);
  letter-spacing:-.025em;
}

.bird-profile-section-subtitle{
  margin:7px 0 0;
  color:var(--bp-muted);
  font-size:13px;
  line-height:1.5;
}

.bird-photo-stage{
  position:relative;
  display:grid;
  place-items:center;
  min-height:420px;
  margin-top:18px;
  overflow:hidden;
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(23,63,52,.025),rgba(23,63,52,.07)),
    #ebe7dd;
}

.bird-profile-page .bird-photo{
  width:100%;
  max-height:580px;
  object-fit:contain;
  border-radius:0;
  background:transparent;
}

.bird-profile-page .loading{
  color:var(--bp-muted);
}

.bird-profile-page .photo-credit{
  margin-top:12px;
  color:var(--bp-muted);
  font-size:12px;
  line-height:1.5;
}

.bird-profile-page .photo-credit a{
  color:var(--bp-green-2);
  font-weight:750;
}

.bird-profile-page .photo-refresh,
.bird-profile-page .photo-feedback-button{
  min-height:38px;
  margin:0;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--bp-line);
  background:var(--bp-paper);
  color:var(--bp-green);
  font-weight:800;
  cursor:pointer;
}

.bird-profile-page .photo-refresh:hover,
.bird-profile-page .photo-feedback-button:hover{
  background:var(--bp-green-soft);
  border-color:#b5cabc;
}

.bird-profile-page .photo-actions-row{
  display:flex;
  gap:8px;
  margin-top:12px;
}

.bird-profile-page .image-feedback-panel{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--bp-line);
  border-radius:14px;
  background:var(--bp-paper-2);
  color:var(--bp-ink);
}

.bird-profile-page #imageFeedbackComment{
  width:100%;
  margin-top:10px;
  border:1px solid var(--bp-line);
  border-radius:10px;
  background:#fff;
  color:var(--bp-ink);
}

.bird-profile-page .feedback-choice{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.bird-profile-page .feedback-choice button{
  min-height:38px;
  border-radius:999px;
  border:1px solid var(--bp-line);
  font-weight:800;
}

.bird-profile-page .feedback-choice.yes{
  background:#dce8e0;
  color:#183d32;
}

.bird-profile-page .feedback-choice.no{
  background:#f0dfdb;
  color:#7d3734;
}

.bird-profile-page .feedback-cancel{
  background:#fff;
  color:var(--bp-ink);
}

.bird-profile-page .bird-info-sections{
  margin-top:20px;
}

.bird-profile-page .bird-info-overview{
  padding:20px 0 22px;
  border-top:1px solid var(--bp-line);
  border-bottom:1px solid var(--bp-line);
}

.bird-profile-page .bird-info-section{
  margin:0;
  padding:18px 0;
  border-top:1px solid var(--bp-line);
  color:var(--bp-ink);
}

.bird-profile-page .bird-info-section:first-child{
  border-top:0;
}

.bird-profile-page .bird-info-section h3{
  margin:0 0 8px;
  color:var(--bp-green);
  font-size:17px;
}

.bird-profile-page .bird-info-section p{
  margin:0;
  color:#36423c;
  line-height:1.72;
  white-space:pre-line;
}

.bird-profile-page .bird-topic-prompt{
  margin:24px 0 10px;
  color:var(--bp-ink);
  font-size:13px;
  font-weight:800;
}

.bird-profile-page .bird-topic-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.bird-profile-page .bird-topic-button{
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--bp-line);
  border-radius:999px;
  background:#fff;
  color:var(--bp-green);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.bird-profile-page .bird-topic-button:hover,
.bird-profile-page .bird-topic-button.active{
  border-color:#adc4b7;
  background:var(--bp-green-soft);
  color:#173f34;
}

.bird-profile-page .bird-info-detail .bird-info-section{
  margin-top:10px;
  padding:18px;
  border:1px solid var(--bp-line);
  border-radius:14px;
  background:var(--bp-paper-2);
}

.bird-profile-page .bird-info-kept{
  margin-top:12px;
  padding:16px 18px;
  border:1px solid var(--bp-line);
  border-radius:14px;
  background:#f8f5ed;
}

.bird-profile-page .bird-info-keep{
  margin-top:12px;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #b9cbbf;
  border-radius:999px;
  background:#fff;
  color:var(--bp-green);
  font-size:12px;
  font-weight:800;
}

.bird-profile-page .bird-info-ready{
  margin:12px 0 0;
  color:#607068;
  font-size:12px;
}

.bird-profile-page .error-box{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #dfc4bd;
  border-radius:12px;
  background:#f7e9e5;
  color:#7b3e39;
}

.bird-profile-page .bird-chat-launch{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--bp-line);
}

.bird-profile-page .bird-chat-launch button{
  min-height:42px;
  padding:9px 14px;
  border:1px solid #b5cabc;
  border-radius:999px;
  background:var(--bp-green);
  color:#fff;
  font-weight:800;
}

.bird-profile-page .bird-chat{
  margin-top:14px;
  overflow:hidden;
  border:1px solid var(--bp-line);
  border-radius:16px;
  background:#fff;
}

.bird-profile-page .bird-chat-messages{
  max-height:420px;
  overflow:auto;
  padding:16px;
}

.bird-profile-page .bird-msg div{
  background:#edf1ed;
  color:var(--bp-ink);
}

.bird-profile-page .bird-msg.user div{
  background:var(--bp-green);
  color:#fff;
}

.bird-profile-page .bird-chat-compose{
  display:flex;
  gap:8px;
  padding:12px;
  border-top:1px solid var(--bp-line);
}

.bird-profile-page .bird-chat-compose textarea{
  flex:1;
  resize:none;
  border:1px solid var(--bp-line);
  border-radius:10px;
  background:#fff;
  color:var(--bp-ink);
}

.bird-profile-page .bird-chat-compose .primary-button{
  background:var(--bp-green);
  color:#fff;
}

.bird-profile-trust-strip{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:24px;
  align-items:center;
  margin-top:22px;
  padding:20px 24px;
  border:1px solid var(--bp-line);
  border-radius:18px;
  background:rgba(251,250,246,.78);
}

.bird-profile-trust-strip div:not(.bird-profile-trust-rule){
  display:grid;
  gap:5px;
}

.bird-profile-trust-strip strong{
  color:var(--bp-green);
  font-size:13px;
}

.bird-profile-trust-strip span{
  color:var(--bp-muted);
  font-size:12px;
  line-height:1.5;
}

.bird-profile-trust-rule{
  width:1px;
  height:38px;
  background:var(--bp-line);
}

.bird-profile-footer{
  width:min(1220px,calc(100% - 40px));
  margin:18px auto 0;
  color:#7c817d;
  font-size:11px;
}

@media(max-width:900px){
  .bird-profile-hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:34px 30px;
  }

  .bird-profile-hero-mark{
    display:none;
  }

  .bird-profile-grid{
    grid-template-columns:1fr;
  }

  .bird-photo-stage{
    min-height:360px;
  }
}

@media(max-width:620px){
  .bird-profile-shell,
  .bird-profile-footer{
    width:min(100% - 24px,1220px);
  }

  .bird-profile-shell{margin-top:14px}

  .bird-profile-hero{
    padding:28px 22px;
    border-radius:20px;
  }

  .bird-profile-eyebrow{margin-bottom:20px}

  .bird-profile-hero-title-row{
    display:block;
  }

  .bird-profile-page .conservation-badge{
    margin-top:16px;
  }

  .bird-profile-hero h1{
    font-size:42px;
  }

  .bird-profile-hero-actions{
    flex-direction:column;
  }

  .bird-profile-page .profile-back-button,
  .bird-profile-page #addBirdToTrip{
    width:100%;
  }

  .bird-profile-media-card,
  .bird-profile-info-card{
    padding:20px;
    border-radius:18px;
  }

  .bird-photo-stage{
    min-height:280px;
  }

  .bird-profile-card-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .bird-profile-trust-strip{
    grid-template-columns:1fr;
    gap:14px;
  }

  .bird-profile-trust-rule{
    width:100%;
    height:1px;
  }
}
/* =========================================================
   V21 Bird Profile hero alignment correction
   CSS only. No HTML, JavaScript, API, or functionality changes.
   Keeps bird name, conservation status, and IUCN source together
   in a clean two-column title area.
   ========================================================= */

.bird-profile-page .bird-profile-hero-copy{
  max-width:none;
  width:100%;
}

.bird-profile-page .bird-profile-hero-title-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,230px);
  column-gap:36px;
  row-gap:6px;
  align-items:start;
  justify-content:stretch;
}

.bird-profile-page .bird-profile-hero-title-row > div:first-child{
  min-width:0;
  max-width:720px;
}

.bird-profile-page .bird-profile-hero h1{
  max-width:720px;
  font-size:clamp(44px,5.1vw,68px);
  line-height:1.00;
  letter-spacing:-.04em;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

.bird-profile-page .bird-profile-hero-title-row > .conservation-badge{
  grid-column:2;
  grid-row:1;
  justify-self:start;
  align-self:end;
  margin:30px 0 0;
  white-space:nowrap;
}

.bird-profile-page .bird-profile-hero-title-row > #conservationSource{
  grid-column:2;
  grid-row:2;
  width:auto;
  margin:5px 0 0;
  text-align:left;
  color:#d5e0da;
  font-size:10px;
  line-height:1.35;
  opacity:.78;
  white-space:nowrap;
}

.bird-profile-page .bird-profile-hero-intro{
  max-width:700px;
  margin-top:24px;
}

@media(max-width:1000px){
  .bird-profile-page .bird-profile-hero-title-row{
    grid-template-columns:minmax(0,1fr) 180px;
    column-gap:24px;
  }

  .bird-profile-page .bird-profile-hero h1{
    font-size:clamp(42px,5.4vw,60px);
  }
}

@media(max-width:760px){
  .bird-profile-page .bird-profile-hero-title-row{
    grid-template-columns:1fr;
    row-gap:10px;
  }

  .bird-profile-page .bird-profile-hero-title-row > .conservation-badge,
  .bird-profile-page .bird-profile-hero-title-row > #conservationSource{
    grid-column:1;
    grid-row:auto;
    justify-self:start;
    margin-left:0;
  }

  .bird-profile-page .bird-profile-hero-title-row > .conservation-badge{
    margin-top:10px;
  }

  .bird-profile-page .bird-profile-hero-title-row > #conservationSource{
    margin-top:0;
    white-space:normal;
  }
}

@media(max-width:620px){
  .bird-profile-page .bird-profile-hero h1{
    font-size:clamp(38px,12vw,48px);
    line-height:1.02;
  }
}
/* =========================================================
   V21 Location / Ask WKH Travel full-page profile
   Uses the existing travel panel IDs and APIs.
   No new JS file, backend route, API, or module.
   ========================================================= */

.travel-profile-overlay{
  position:fixed;
  inset:0;
  z-index:1700;
  overflow-y:auto;
  background:
    radial-gradient(circle at 84% 4%,rgba(217,189,121,.18),transparent 28%),
    linear-gradient(180deg,#f6f2e9 0%,#f2eee4 100%);
  color:#18211d;
  padding:0 0 42px;
}

.travel-profile-page{
  width:min(1220px,calc(100% - 40px));
  margin:28px auto 0;
}

.travel-profile-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  gap:34px;
  align-items:end;
  min-height:330px;
  padding:42px 46px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:26px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 16%,rgba(217,189,121,.18),transparent 25%),
    radial-gradient(circle at 96% 88%,rgba(115,158,137,.18),transparent 30%),
    linear-gradient(120deg,#132a24 0%,#173f34 58%,#245a49 100%);
  box-shadow:0 24px 60px rgba(38,43,39,.16);
}

.travel-profile-hero::after{
  content:"";
  position:absolute;
  right:-70px;
  top:-110px;
  width:360px;
  height:360px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:50%;
  box-shadow:
    -80px 120px 0 -36px rgba(255,255,255,.025),
    -160px 190px 0 -70px rgba(217,189,121,.05);
  pointer-events:none;
}

.travel-profile-hero-copy{
  position:relative;
  z-index:1;
  max-width:850px;
}

.travel-profile-eyebrow,
.travel-profile-kicker,
.travel-profile-label{
  font-size:12px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.travel-profile-eyebrow{
  color:#d9bd79;
  margin-bottom:30px;
}

.travel-profile-label{
  color:#b9d1c5;
  margin-bottom:8px;
}

.travel-profile-hero h1{
  margin:0;
  max-width:820px;
  color:#fff;
  font-size:clamp(42px,5.5vw,70px);
  line-height:1;
  letter-spacing:-.045em;
  font-weight:820;
  text-wrap:balance;
}

.travel-profile-context{
  margin:14px 0 0;
  color:#d7e3dd;
  font-size:14px;
  line-height:1.5;
}

.travel-profile-intro{
  max-width:720px;
  margin:24px 0 0;
  color:#d9e4de;
  font-size:15px;
  line-height:1.65;
}

.travel-profile-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

.travel-profile-back,
.travel-profile-primary,
.travel-profile-secondary{
  min-height:46px;
  padding:0 17px;
  border-radius:999px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.travel-profile-back{
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
}

.travel-profile-back:hover{
  background:rgba(255,255,255,.14);
}

.travel-profile-primary{
  border:1px solid #e8d59f;
  background:#d9bd79;
  color:#243028;
}

.travel-profile-primary:hover{
  background:#e4cb8d;
}

.travel-profile-hero-mark{
  position:relative;
  z-index:1;
  justify-self:end;
  display:grid;
  place-items:center;
  width:148px;
  height:148px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:50%;
  text-align:center;
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(6px);
}

.travel-profile-hero-mark span,
.travel-profile-hero-mark small{
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#d6e2dc;
}

.travel-profile-hero-mark strong{
  margin:-7px 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  line-height:.9;
  color:#fff;
}

.travel-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.65fr);
  gap:22px;
  margin-top:24px;
}

.travel-profile-main-card,
.travel-profile-side-card,
.travel-profile-stays-card{
  border:1px solid #d8d2c5;
  border-radius:22px;
  background:rgba(251,250,246,.96);
  box-shadow:0 14px 34px rgba(46,52,48,.08);
}

.travel-profile-main-card,
.travel-profile-side-card{
  padding:28px 30px;
}

.travel-profile-stays-card{
  margin-top:22px;
  padding:28px 30px 30px;
}

.travel-profile-kicker{
  margin-bottom:10px;
  color:#8a7650;
}

.travel-profile-side-card h2,
.travel-profile-stays-card h2{
  margin:0;
  color:#18211d;
  font-size:clamp(24px,2.5vw,34px);
  letter-spacing:-.025em;
}

.travel-profile-side-card p,
.travel-profile-section-head p{
  margin:8px 0 0;
  color:#667069;
  font-size:13px;
  line-height:1.6;
}

.travel-profile-secondary{
  margin-top:20px;
  border:1px solid #b9c9be;
  background:#fff;
  color:#173f34;
}

.travel-profile-secondary:hover{
  background:#dce8e0;
}

/* Re-skin the existing dynamically rendered location summary. */
.travel-profile-overlay .travel-location-panel{
  padding:0;
  background:transparent;
  border:0;
}

.travel-profile-overlay .travel-location-card{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#18211d;
}

.travel-profile-overlay .travel-location-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.travel-profile-overlay .travel-location-title strong{
  color:#173f34;
  font-size:clamp(25px,2.4vw,34px);
  letter-spacing:-.02em;
}

.travel-profile-overlay .travel-location-title span{
  flex:0 0 auto;
  padding:5px 10px;
  border:1px solid #c9c1b0;
  border-radius:999px;
  background:#f5efe1;
  color:#695a3b;
  font-size:11px;
  font-weight:850;
}

.travel-profile-overlay .travel-location-card p{
  margin:0;
  color:#36423c;
  font-size:15px;
  line-height:1.75;
}

.travel-profile-overlay .travel-location-booking-note{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #d8d2c5;
  color:#667069;
  font-size:12px;
  line-height:1.55;
}

.travel-profile-overlay .travel-location-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.travel-profile-overlay .travel-location-actions a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #b9c9be;
  border-radius:999px;
  background:#fff;
  color:#173f34;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.travel-profile-overlay .travel-location-actions a:hover{
  background:#dce8e0;
}

.travel-profile-overlay .travel-location-loading,
.travel-profile-overlay .travel-location-error{
  color:#667069;
  font-size:13px;
  line-height:1.6;
}

/* Re-skin the existing dynamically rendered stays. */
.travel-profile-overlay .travel-stay-panel{
  padding:0;
  border:0;
  background:transparent;
  max-height:none;
  overflow:visible;
}

.travel-profile-overlay .travel-stay-head{
  margin-bottom:16px;
}

.travel-profile-overlay .travel-stay-head strong{
  color:#18211d;
  font-size:14px;
}

.travel-profile-overlay .travel-stay-head span{
  color:#667069;
  font-size:11px;
}

.travel-profile-overlay .travel-stay-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.travel-profile-overlay .travel-stay-card{
  padding:18px;
  border:1px solid #d8d2c5;
  border-radius:16px;
  background:#fff;
}

.travel-profile-overlay .wkh-verified-stay-card{
  border-color:#abc5b5;
  background:linear-gradient(180deg,#fbfdfb 0%,#f1f7f3 100%);
  box-shadow:inset 0 3px 0 #6d9d7f;
}

.travel-profile-overlay .travel-stay-title strong{
  color:#173f34;
  font-size:18px;
  line-height:1.25;
}

.travel-profile-overlay .travel-stay-match{
  border:1px solid #d4c69f;
  background:#f4ecd6;
  color:#6a5a35;
}

.travel-profile-overlay .wkh-verified-badge{
  border:1px solid #adc4b7;
  background:#dce8e0;
  color:#173f34;
  box-shadow:none;
}

.travel-profile-overlay .travel-stay-meta{
  margin-top:10px;
  color:#667069;
  font-size:12px;
  line-height:1.55;
}

.travel-profile-overlay .travel-stay-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.travel-profile-overlay .travel-stay-actions a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #b9c9be;
  border-radius:999px;
  background:#fff;
  color:#173f34;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.travel-profile-overlay .travel-stay-actions a:hover{
  background:#dce8e0;
}

.travel-profile-overlay .travel-stay-empty{
  color:#667069;
}

.travel-profile-overlay .travel-stay-pagination{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #d8d2c5;
}

.travel-profile-overlay .travel-stay-pagination span{
  color:#667069;
}

.travel-profile-overlay .travel-stay-page-button{
  border:1px solid #d8d2c5;
  border-radius:999px;
  background:#fff;
  color:#173f34;
}

.travel-profile-overlay .travel-stay-page-button:hover:not(:disabled){
  background:#dce8e0;
  color:#173f34;
}

.travel-profile-trust-strip{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:24px;
  align-items:center;
  margin-top:22px;
  padding:20px 24px;
  border:1px solid #d8d2c5;
  border-radius:18px;
  background:rgba(251,250,246,.78);
}

.travel-profile-trust-strip div:not(.travel-profile-trust-rule){
  display:grid;
  gap:5px;
}

.travel-profile-trust-strip strong{
  color:#173f34;
  font-size:13px;
}

.travel-profile-trust-strip span{
  color:#667069;
  font-size:12px;
  line-height:1.5;
}

.travel-profile-trust-rule{
  width:1px;
  height:38px;
  background:#d8d2c5;
}

@media(max-width:900px){
  .travel-profile-hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:34px 30px;
  }

  .travel-profile-hero-mark{
    display:none;
  }

  .travel-profile-grid,
  .travel-profile-overlay .travel-stay-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .travel-profile-page{
    width:min(100% - 24px,1220px);
    margin-top:14px;
  }

  .travel-profile-hero{
    padding:28px 22px;
    border-radius:20px;
  }

  .travel-profile-eyebrow{
    margin-bottom:20px;
  }

  .travel-profile-hero h1{
    font-size:clamp(38px,12vw,48px);
  }

  .travel-profile-actions{
    flex-direction:column;
  }

  .travel-profile-back,
  .travel-profile-primary{
    width:100%;
  }

  .travel-profile-main-card,
  .travel-profile-side-card,
  .travel-profile-stays-card{
    padding:20px;
    border-radius:18px;
  }

  .travel-profile-trust-strip{
    grid-template-columns:1fr;
    gap:14px;
  }

  .travel-profile-trust-rule{
    width:100%;
    height:1px;
  }
}
/* =========================================================
   V21 Bird Profile conservation placement correction
   CSS only. Keeps IUCN status directly with bird identity.
   ========================================================= */

.bird-profile-page .bird-profile-hero-title-row{
  display:grid;
  grid-template-columns:1fr;
  row-gap:7px;
  align-items:start;
  justify-content:start;
}

.bird-profile-page .bird-profile-hero-title-row > div:first-child{
  min-width:0;
  max-width:720px;
}

.bird-profile-page .bird-profile-hero-title-row > .conservation-badge{
  grid-column:1;
  grid-row:2;
  justify-self:start;
  align-self:start;
  margin:6px 0 0;
  white-space:nowrap;
}

.bird-profile-page .bird-profile-hero-title-row > #conservationSource{
  grid-column:1;
  grid-row:3;
  justify-self:start;
  width:auto;
  margin:0;
  text-align:left;
  color:#d5e0da;
  font-size:10px;
  line-height:1.35;
  opacity:.78;
  white-space:nowrap;
}

@media(max-width:1000px){
  .bird-profile-page .bird-profile-hero-title-row{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .bird-profile-page .bird-profile-hero-title-row > .conservation-badge{
    margin-top:6px;
  }

  .bird-profile-page .bird-profile-hero-title-row > #conservationSource{
    margin-top:0;
    white-space:normal;
  }
}
/* =========================================================
   V21 Bird Profile photo controls
   Bottom row: WKH verified state, photo navigation, feedback.
   ========================================================= */

.bird-profile-page .photo-actions-row{
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr);
  gap:12px;
  align-items:center;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--bp-line);
}

.bird-profile-page .photo-verified-slot{
  justify-self:start;
  min-width:0;
}

.bird-profile-page .photo-feedback-slot{
  justify-self:end;
  min-width:0;
}

.bird-profile-page .photo-verified-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 11px;
  border:1px solid #adc4b7;
  border-radius:999px;
  background:#dce8e0;
  color:#173f34;
  font-size:11px;
  font-weight:850;
  letter-spacing:.01em;
}

.bird-profile-page .photo-navigation{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.bird-profile-page .photo-nav-button,
.bird-profile-page .photo-feedback-button{
  min-height:36px;
  margin:0;
  padding:7px 11px;
  border:1px solid var(--bp-line);
  border-radius:999px;
  background:#fff;
  color:var(--bp-green);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.bird-profile-page .photo-nav-button:hover:not(:disabled),
.bird-profile-page .photo-feedback-button:hover{
  background:var(--bp-green-soft);
  border-color:#b5cabc;
}

.bird-profile-page .photo-nav-button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.bird-profile-page .photo-counter{
  min-width:52px;
  text-align:center;
  color:var(--bp-muted);
  font-size:12px;
  font-weight:800;
}

@media(max-width:760px){
  .bird-profile-page .photo-actions-row{
    grid-template-columns:1fr;
    justify-items:stretch;
  }

  .bird-profile-page .photo-verified-slot,
  .bird-profile-page .photo-feedback-slot{
    justify-self:center;
  }

  .bird-profile-page .photo-navigation{
    grid-row:1;
  }
}
/* =========================================================
   Bird Intel V21 main page, Step 1 only
   ========================================================= */
.bird-intel-entry{
  margin:26px auto 0;
  padding:34px;
  border:1px solid #d8d2c5;
  border-radius:24px;
  background:radial-gradient(circle at 88% 12%,rgba(217,189,121,.16),transparent 30%),linear-gradient(180deg,#fbfaf6 0%,#f3efe5 100%);
  color:#18211d;
  box-shadow:0 20px 48px rgba(0,0,0,.16);
}
.bird-intel-entry-copy{max-width:760px}
.bird-intel-entry-eyebrow{
  margin-bottom:10px;color:#8a7650;font-size:11px;font-weight:850;letter-spacing:.16em;text-transform:uppercase;
}
.bird-intel-entry h2{
  margin:0;color:#173f34;font-size:clamp(30px,4vw,48px);line-height:1.04;letter-spacing:-.035em;
}
.bird-intel-entry-copy p{margin:12px 0 0;color:#667069;font-size:14px;line-height:1.6}
.bird-intel-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}
.bird-intel-entry-choice{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;min-height:148px;padding:22px;
  border:1px solid #d3ccbd;border-radius:18px;background:#fff;color:#18211d;text-align:left;cursor:pointer;
  box-shadow:0 8px 22px rgba(48,54,50,.05);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.bird-intel-entry-choice:hover{
  transform:translateY(-2px);border-color:#9fb7aa;background:#f8fbf8;box-shadow:0 14px 28px rgba(37,55,46,.10);
}
.bird-intel-entry-choice:focus-visible{outline:3px solid rgba(34,90,73,.22);outline-offset:3px}
.bird-intel-entry-number{
  display:grid;place-items:center;width:48px;height:48px;border:1px solid #c7d3cb;border-radius:50%;
  background:#edf3ef;color:#225a49;font-size:12px;font-weight:850;
}
.bird-intel-entry-choice-copy{display:grid;gap:5px;min-width:0}
.bird-intel-entry-choice-copy small{color:#8a7650;font-size:10px;font-weight:850;letter-spacing:.14em}
.bird-intel-entry-choice-copy strong{color:#173f34;font-size:23px;line-height:1.12;letter-spacing:-.02em}
.bird-intel-entry-choice-copy>span{color:#667069;font-size:12px;line-height:1.5}
.bird-intel-entry-arrow{color:#225a49;font-size:28px;line-height:1}
.bird-intel-entry-foot{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:22px;padding-top:16px;
  border-top:1px solid #d8d2c5;color:#7c817d;font-size:11px;
}
.bird-intel-entry-hidden,.bird-intel-workspace-hidden{display:none!important}
.bird-intel-workspace{scroll-margin-top:16px}
@media(max-width:760px){
  .bird-intel-entry{padding:24px;border-radius:20px}
  .bird-intel-entry-grid{grid-template-columns:1fr}
  .bird-intel-entry-choice{min-height:132px}
}
@media(max-width:520px){
  .bird-intel-entry{padding:20px}
  .bird-intel-entry-choice{grid-template-columns:auto minmax(0,1fr)}
  .bird-intel-entry-arrow{display:none}
}
/* =========================================================
   Bird Intel V21 main page, Step 3 progressive search
   Selected-item summary + focused second-stage card.
   Existing APIs, inputs and search behavior are unchanged.
   ========================================================= */

.bird-intel-progress-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:22px 0 0;
  padding:16px 18px;
  border:1px solid #d8d2c5;
  border-radius:16px;
  background:rgba(251,250,246,.96);
  color:#18211d;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
}

.bird-intel-progress-summary-copy{
  display:grid;
  gap:3px;
  min-width:0;
}

.bird-intel-progress-summary-copy > span{
  color:#8a7650;
  font-size:10px;
  font-weight:850;
  letter-spacing:.14em;
}

.bird-intel-progress-summary-copy > strong{
  overflow:hidden;
  color:#173f34;
  font-size:18px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bird-intel-progress-summary-copy > small{
  color:#667069;
  font-size:11px;
  line-height:1.45;
}

.bird-intel-progress-change{
  flex:0 0 auto;
  min-height:38px;
  padding:8px 13px;
  border:1px solid #b9c9be;
  border-radius:999px;
  background:#fff;
  color:#173f34;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.bird-intel-progress-change:hover{
  background:#dce8e0;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus{
  margin-top:18px;
  padding:28px 30px 30px;
  border:1px solid #d8d2c5;
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 8%,rgba(217,189,121,.14),transparent 25%),
    linear-gradient(180deg,#fbfaf6 0%,#f4f0e7 100%);
  color:#18211d;
  box-shadow:0 18px 40px rgba(0,0,0,.13);
  backdrop-filter:none;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus::before{
  content:attr(data-progressive-label);
  display:block;
  margin-bottom:10px;
  color:#8a7650;
  font-size:10px;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .section-title{
  margin-bottom:22px;
  color:#173f34;
  font-size:clamp(27px,3vw,36px);
  letter-spacing:-.025em;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus label,
#birdIntelWorkspace .search-section.bird-intel-progressive-focus .field{
  color:#27342e;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .compact-help,
#birdIntelWorkspace .search-section.bird-intel-progressive-focus .selected{
  color:#667069;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option{
  border-color:#d8d2c5;
  background:#fff;
  color:#18211d;
  box-shadow:0 6px 16px rgba(48,54,50,.04);
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option:hover{
  border-color:#adc4b7;
  background:#f7faf7;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option strong{
  color:#173f34;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option small{
  color:#667069;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .suggestions{
  box-shadow:0 16px 36px rgba(31,43,36,.20);
}

@media(max-width:760px){
  .bird-intel-progress-summary{
    align-items:flex-start;
    flex-direction:column;
  }

  .bird-intel-progress-summary-copy > strong{
    white-space:normal;
  }

  #birdIntelWorkspace .search-section.bird-intel-progressive-focus{
    padding:22px;
    border-radius:18px;
  }
}
/* =========================================================
   Bird Intel V21 progressive Bird-choice correction
   Neutral by default. The whole selected card is highlighted.
   ========================================================= */

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option{
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option:hover{
  transform:translateY(-1px);
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option.is-selected{
  border-color:#6f9c84;
  background:#dce8e0;
  box-shadow:0 0 0 2px rgba(34,90,73,.08),0 10px 22px rgba(37,55,46,.08);
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option.is-selected strong{
  color:#173f34;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option.is-selected small{
  color:#4f6258;
}

#birdIntelWorkspace .search-section.bird-intel-progressive-focus .choice-option input{
  accent-color:#225a49;
}
/* =========================================================
   Bird Intel V21 persistent workspace controls
   Clear / New Search remains available after Step 1.
   ========================================================= */

.bird-intel-workspace-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0 0;
  padding:10px 12px 10px 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(18,42,34,.80);
  box-shadow:0 8px 22px rgba(0,0,0,.10);
}

.bird-intel-workspace-tools > span{
  color:#cbd8d0;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bird-intel-workspace-clear{
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.bird-intel-workspace-clear:hover{
  background:rgba(255,255,255,.13);
}

/* =========================================================
   Bird Intel V21 dedicated Sightings view
   Same page and existing result functions, new presentation only.
   ========================================================= */

.bird-intel-results-view{
  scroll-margin-top:18px;
}

.bird-intel-sightings-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:start;
  margin:-20px -20px 22px;
  padding:30px;
  border-radius:16px 16px 0 0;
  background:
    radial-gradient(circle at 88% 10%,rgba(217,189,121,.16),transparent 30%),
    linear-gradient(135deg,#fbfaf6 0%,#f2eee4 100%);
  color:#18211d;
  border-bottom:1px solid #d8d2c5;
}

.bird-intel-sightings-eyebrow{
  margin-bottom:8px;
  color:#8a7650;
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em;
}

.bird-intel-sightings-hero h2{
  margin:0;
  color:#173f34;
  font-size:clamp(30px,4vw,46px);
  line-height:1.03;
  letter-spacing:-.035em;
}

.bird-intel-sightings-hero-copy > p{
  margin:10px 0 0;
  color:#667069;
  font-size:13px;
  line-height:1.55;
}

.bird-intel-sightings-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:22px;
}

.bird-intel-sightings-summary > div{
  min-width:0;
  padding:13px 14px;
  border:1px solid #d8d2c5;
  border-radius:13px;
  background:rgba(255,255,255,.78);
}

.bird-intel-sightings-summary span{
  display:block;
  margin-bottom:5px;
  color:#8a7650;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}

.bird-intel-sightings-summary strong{
  display:block;
  overflow:hidden;
  color:#173f34;
  font-size:14px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bird-intel-sightings-actions{
  display:flex;
  justify-content:flex-end;
}

.bird-intel-sightings-modify{
  min-height:42px;
  padding:9px 15px;
  border:1px solid #b9c9be;
  border-radius:999px;
  background:#fff;
  color:#173f34;
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}

.bird-intel-sightings-modify:hover{
  background:#dce8e0;
}

/* In the dedicated result state, make the existing results card read like
   a light professional content page while preserving all existing controls. */
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-results-view{
  border-color:#d8d2c5;
  background:#fbfaf6;
  color:#18211d;
  box-shadow:0 20px 46px rgba(0,0,0,.14);
  backdrop-filter:none;
}

#birdIntelWorkspace.bird-intel-results-mode .result-head{
  padding:0 2px 10px;
  border-bottom:1px solid #e0dbd0;
}

#birdIntelWorkspace.bird-intel-results-mode .result-head h2{
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode #status{
  color:#667069;
  font-weight:750;
}

#birdIntelWorkspace.bird-intel-results-mode .summary,
#birdIntelWorkspace.bird-intel-results-mode .filtered-summary{
  color:#5e6963;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools{
  margin-top:18px;
  padding:16px;
  border:1px solid #d8d2c5;
  border-radius:14px;
  background:#f5f1e8;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools label{
  color:#35423c;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .clear-button{
  border-color:#c9c1b4;
  background:#fff;
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .clear-button:hover{
  background:#e5eee8;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .primary-button{
  border-color:#b5cabb;
  background:#dce8e0;
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .primary-button:hover{
  background:#cbded2;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools{
  border-color:#d8d2c5;
  background:#f5f1e8;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools > span{
  color:#5e6963;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools .clear-button{
  border-color:#c9c1b4;
  background:#fff;
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode .ask-wkh-bar{
  border-color:#d8d2c5;
  background:#f5f1e8;
}

#birdIntelWorkspace.bird-intel-results-mode .ask-wkh-bar span{
  color:#5e6963;
}

#birdIntelWorkspace.bird-intel-results-mode .ask-wkh-button{
  border-color:#b5cabb;
  background:#dce8e0;
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode .table-wrap{
  margin-top:16px;
  border:1px solid #d8d2c5;
  border-radius:14px;
  overflow:auto;
  background:#fff;
}

#birdIntelWorkspace.bird-intel-results-mode table{
  color:#18211d;
}

#birdIntelWorkspace.bird-intel-results-mode th{
  color:#5e6963;
  background:#f3f0e8;
  border-bottom-color:#d8d2c5;
}

#birdIntelWorkspace.bird-intel-results-mode td{
  color:#27342e;
  border-bottom-color:#e5e0d6;
}

#birdIntelWorkspace.bird-intel-results-mode td small{
  color:#6d7771;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-profile-link,
#birdIntelWorkspace.bird-intel-results-mode .location-profile-link{
  color:#173f34;
}

#birdIntelWorkspace.bird-intel-results-mode .sort-button:hover{
  color:#173f34;
}

@media(max-width:820px){
  .bird-intel-sightings-hero{
    grid-template-columns:1fr;
  }

  .bird-intel-sightings-actions{
    justify-content:flex-start;
  }

  .bird-intel-sightings-summary{
    grid-template-columns:1fr;
  }

  .bird-intel-sightings-summary strong{
    white-space:normal;
  }
}

@media(max-width:620px){
  .bird-intel-workspace-tools{
    align-items:flex-start;
    flex-direction:column;
  }

  .bird-intel-workspace-clear{
    width:100%;
  }

  .bird-intel-sightings-hero{
    margin:-16px -16px 20px;
    padding:22px;
  }

  .bird-intel-sightings-modify{
    width:100%;
  }
}
/* =========================================================
   Bird Intel V21 final review
   Figma-D / Trip Planner V20 visual language.
   Keeps the search progressive and avoids reopening the old form.
   ========================================================= */

.bird-intel-review{
  scroll-margin-top:18px;
  margin-top:22px;
  padding:30px;
  border:1px solid #d8d2c5;
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 8%,rgba(217,189,121,.14),transparent 26%),
    linear-gradient(180deg,#fbfaf6 0%,#f4f0e7 100%);
  color:#18211d;
  box-shadow:0 18px 40px rgba(0,0,0,.13);
}

.bird-intel-review-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.bird-intel-review-eyebrow{
  margin-bottom:9px;
  color:#8a7650;
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em;
}

.bird-intel-review h2{
  margin:0;
  color:#173f34;
  font-size:clamp(28px,3.2vw,40px);
  line-height:1.05;
  letter-spacing:-.03em;
}

.bird-intel-review-head p{
  margin:10px 0 0;
  color:#667069;
  font-size:13px;
  line-height:1.55;
}

.bird-intel-review-grid{
  display:grid;
  grid-template-columns:1.1fr 1.35fr .75fr .85fr;
  gap:12px;
  margin-top:24px;
}

.bird-intel-review-item{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:16px;
  border:1px solid #d8d2c5;
  border-radius:15px;
  background:rgba(255,255,255,.82);
}

.bird-intel-review-item > span{
  color:#8a7650;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}

.bird-intel-review-item > strong{
  width:100%;
  margin-top:6px;
  overflow:hidden;
  color:#173f34;
  font-size:16px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bird-intel-review-item > small{
  margin-top:4px;
  color:#667069;
  font-size:11px;
  line-height:1.4;
}

/* Editable values on the review screen, sharing the existing search settings. */
.bird-intel-review-item > .bird-intel-review-select{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:44px;
  margin-top:6px;
  padding:7px 24px 7px 9px;
  border:1px solid #bccdc1;
  border-radius:9px;
  background-color:#fff;
  color:#173f34;
  font:inherit;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.bird-intel-review-item > .bird-intel-review-select:focus-visible{
  outline:2px solid #225a49;
  outline-offset:2px;
}

.bird-intel-review-item > button{
  margin-top:auto;
  padding:9px 0 0;
  border:0;
  background:transparent;
  color:#225a49;
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}

.bird-intel-review-item > button:hover{
  color:#173f34;
}

.bird-intel-review-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid #d8d2c5;
}

.bird-intel-review-primary{
  min-height:46px;
  padding:10px 20px;
  border:1px solid #b5cabb;
  border-radius:999px;
  background:#173f34;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.bird-intel-review-primary:hover:not(:disabled){
  background:#225a49;
}

.bird-intel-review-primary:disabled{
  cursor:wait;
  opacity:.72;
}

.bird-intel-review-message{
  min-height:20px;
  color:#667069;
  font-size:12px;
  line-height:1.45;
}

.bird-intel-review-message.loading{
  color:#5e6963;
}

.bird-intel-review-message.error{
  color:#9a403d;
  font-weight:750;
}

@media(max-width:900px){
  .bird-intel-review-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:620px){
  .bird-intel-review{
    padding:22px;
    border-radius:18px;
  }

  .bird-intel-review-grid{
    grid-template-columns:1fr;
  }

  .bird-intel-review-item > strong{
    white-space:normal;
  }

  .bird-intel-review-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .bird-intel-review-primary{
    width:100%;
  }
}

/* =========================================================
   Bird Intel V21 · Sightings visual polish
   Approved design direction: deeper forest hero, warm paper
   results, stronger hierarchy, no external bird imagery.
   ========================================================= */

#birdIntelWorkspace.bird-intel-results-mode{
  --bi-paper:#f7f4ec;
  --bi-paper-strong:#fffdf8;
  --bi-ink:#17231d;
  --bi-muted:#657169;
  --bi-green:#123d31;
  --bi-green-2:#1d5745;
  --bi-green-3:#2b6b55;
  --bi-sage:#dce9df;
  --bi-sage-2:#edf4ef;
  --bi-sand:#d6bd83;
  --bi-line:#d8d3c8;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-workspace-tools{
  margin-bottom:14px;
  border-color:rgba(255,255,255,.18);
  background:rgba(11,40,31,.86);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-results-view{
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:var(--bi-paper);
  box-shadow:0 24px 60px rgba(0,0,0,.20);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:start;
  margin:0;
  padding:38px 40px 34px;
  border:0;
  border-radius:0;
  color:#fff;
  background:
    radial-gradient(circle at 86% 18%,rgba(214,189,131,.22),transparent 24%),
    radial-gradient(circle at 8% 110%,rgba(80,142,110,.25),transparent 32%),
    linear-gradient(125deg,#0b2c23 0%,#123d31 45%,#1c5945 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero::before{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-165px;
  bottom:-210px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  box-shadow:
    -88px -34px 0 -42px rgba(255,255,255,.035),
    -168px -70px 0 -78px rgba(214,189,131,.06);
  pointer-events:none;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero-copy,
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-actions{
  position:relative;
  z-index:1;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-eyebrow{
  margin-bottom:10px;
  color:#dfc98f;
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero h2{
  margin:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(38px,4.6vw,58px);
  line-height:1;
  letter-spacing:-.035em;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero-copy > p{
  margin:12px 0 0;
  max-width:650px;
  color:#d7e5de;
  font-size:14px;
  line-height:1.55;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary{
  display:grid;
  grid-template-columns:1.05fr 1.35fr .82fr .9fr;
  gap:10px;
  margin-top:28px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary-card{
  min-width:0;
  padding:14px 15px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:14px;
  background:rgba(7,31,24,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(5px);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary span{
  display:block;
  margin-bottom:5px;
  color:#bbd0c5;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary strong{
  display:block;
  overflow:hidden;
  color:#fff;
  font-size:14px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-actions{
  padding-top:2px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-modify{
  min-height:44px;
  padding:9px 16px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#fff;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-modify:hover{
  border-color:#fff;
  background:rgba(255,255,255,.14);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-results-content{
  padding:28px 30px 30px;
  color:var(--bi-ink);
  background:
    linear-gradient(180deg,rgba(255,255,255,.50),rgba(255,255,255,.05)),
    var(--bi-paper);
}

#birdIntelWorkspace.bird-intel-results-mode .result-head{
  padding:0 0 12px;
  border-bottom:1px solid var(--bi-line);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-results-kicker{
  margin-bottom:4px;
  color:#8a7650;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}

#birdIntelWorkspace.bird-intel-results-mode .result-head h2{
  margin:0;
  color:var(--bi-green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:32px;
  letter-spacing:-.02em;
}

#birdIntelWorkspace.bird-intel-results-mode #status{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border:1px solid #c8d8ce;
  border-radius:999px;
  background:#e7f0ea;
  color:#285542;
  font-size:11px;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .summary{
  margin:12px 0 0;
  color:#526059;
  font-size:14px;
  line-height:1.55;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools{
  display:grid;
  grid-template-columns:minmax(170px,1fr) minmax(220px,1.25fr) minmax(120px,.62fr) auto auto;
  gap:11px;
  align-items:end;
  margin:20px 0 8px;
  padding:16px;
  border:1px solid #cbd9cf;
  border-radius:16px;
  background:linear-gradient(180deg,#edf4ef 0%,#e6efe9 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools label{
  gap:7px;
  color:#2d4137;
  font-size:11px;
  font-weight:800;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools select{
  min-height:42px;
  border-color:#c9d4cc;
  background:#fff;
  color:#1d2b24;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .clear-button,
#birdIntelWorkspace.bird-intel-results-mode .result-tools .primary-button{
  min-height:42px;
  border-radius:10px;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .clear-button{
  border-color:#bcc9c1;
  background:#fff;
  color:#1d513e;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools .clear-button:hover{
  background:#f5f8f6;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools #downloadCsv{
  border-color:#1f604a;
  background:#1f604a;
  color:#fff;
}

#birdIntelWorkspace.bird-intel-results-mode .result-tools #downloadCsv:hover{
  background:#174d3a;
}

#birdIntelWorkspace.bird-intel-results-mode .filtered-summary{
  min-height:18px;
  margin:7px 2px 10px;
  color:#68756e;
}

#birdIntelWorkspace.bird-intel-results-mode .table-wrap{
  margin-top:14px;
  overflow:auto;
  border:1px solid var(--bi-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 20px rgba(39,49,43,.045);
}

#birdIntelWorkspace.bird-intel-results-mode table{
  color:var(--bi-ink);
  background:#fff;
}

#birdIntelWorkspace.bird-intel-results-mode th{
  padding:13px 10px;
  border-bottom:1px solid #cfd8d2;
  color:#36483f;
  background:#edf2ee;
  font-size:11px;
  letter-spacing:.04em;
}

#birdIntelWorkspace.bird-intel-results-mode td{
  padding:13px 10px;
  border-bottom:1px solid #e7e3da;
  color:#27352e;
  line-height:1.35;
}

#birdIntelWorkspace.bird-intel-results-mode tbody tr:nth-child(even){
  background:#fcfbf7;
}

#birdIntelWorkspace.bird-intel-results-mode tbody tr:hover{
  background:#f0f6f2;
}

#birdIntelWorkspace.bird-intel-results-mode td small{
  color:#748078;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-profile-link,
#birdIntelWorkspace.bird-intel-results-mode .location-profile-link{
  color:#174f3c;
  font-weight:800;
  text-decoration-color:#98b3a4;
  text-underline-offset:3px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-profile-link:hover,
#birdIntelWorkspace.bird-intel-results-mode .location-profile-link:hover{
  color:#0c382a;
  opacity:1;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-target-checkbox{
  accent-color:#1f604a;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-next-actions{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  margin-top:16px;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools,
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint{
  min-height:104px;
  margin:0;
  padding:17px 18px;
  border:1px solid var(--bi-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 7px 18px rgba(39,49,43,.04);
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-copy{
  display:grid;
  gap:5px;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-copy strong{
  color:var(--bi-green);
  font-size:15px;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-copy span{
  color:var(--bi-muted);
  font-size:12px;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions .clear-button{
  min-height:38px;
  padding:8px 11px;
  border-color:#c5cec8;
  background:#fff;
  color:#315044;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions .trip-planner-button{
  min-height:38px;
  padding:8px 12px;
  border:1px solid #a9c7b5;
  border-radius:10px;
  background:#dcebe2;
  color:#174b39;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions .trip-planner-button:not(:disabled):hover{
  background:#cce0d4;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint{
  display:flex;
  align-items:center;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint span{
  color:#536159;
  font-size:12px;
  line-height:1.55;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint strong{
  display:block;
  margin-bottom:5px;
  color:var(--bi-green);
  font-size:15px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:14px 0 0;
  padding:18px 20px;
  border:1px solid #b9d1c2;
  border-radius:16px;
  background:
    radial-gradient(circle at 5% 120%,rgba(70,126,98,.09),transparent 36%),
    linear-gradient(180deg,#f0f7f2 0%,#e7f1ea 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta span{
  max-width:820px;
  color:#526159;
  font-size:12px;
  line-height:1.55;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta strong{
  display:block;
  margin-bottom:4px;
  color:var(--bi-green);
  font-size:15px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button{
  flex:0 0 auto;
  min-height:42px;
  padding:9px 16px;
  border:1px solid #123d31;
  border-radius:10px;
  background:#123d31;
  color:#fff;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button:hover{
  background:#0b2f25;
}

/* Keep generic hidden behavior authoritative after the more specific
   Sightings card layout rules above. */
#birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools.hidden,
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint.hidden,
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta.hidden,
#birdIntelWorkspace.bird-intel-results-mode .result-tools.hidden{
  display:none!important;
}

@media(max-width:980px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary{
    grid-template-columns:1fr 1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .result-tools{
    grid-template-columns:1fr 1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-next-actions{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-hero{
    grid-template-columns:1fr;
    padding:28px 22px;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-actions{
    justify-content:flex-start;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary{
    grid-template-columns:1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-sightings-summary strong{
    white-space:normal;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-results-content{
    padding:22px 16px;
  }

  #birdIntelWorkspace.bird-intel-results-mode .result-tools{
    grid-template-columns:1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .trip-selection-tools,
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta{
    align-items:flex-start;
    flex-direction:column;
  }

  #birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions,
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button{
    width:100%;
  }

  #birdIntelWorkspace.bird-intel-results-mode .trip-selection-actions button{
    flex:1;
  }
}

/* =========================================================
   Bird Intel V21 · Promote Trip Planner / Explore / WKH Travel
   These next-step actions now appear above Results and filters.
   Presentation only; existing IDs and JavaScript behavior remain intact.
   ========================================================= */

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-actions{
  display:grid;
  grid-template-columns:1.35fr .85fr 1.05fr;
  gap:12px;
  margin:0 0 24px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-card{
  min-width:0;
  min-height:138px;
  margin:0;
  padding:18px;
  border:1px solid #cbd7cf;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(39,49,43,.05);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  background:
    radial-gradient(circle at 95% 0%,rgba(214,189,131,.12),transparent 32%),
    linear-gradient(180deg,#eef5f0 0%,#e5efe8 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-profile-hint{
  display:flex;
  align-items:flex-start;
  background:#fffdf8;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-direction:column;
  gap:14px;
  background:
    radial-gradient(circle at 100% 0%,rgba(214,189,131,.14),transparent 36%),
    linear-gradient(180deg,#edf5ef 0%,#e3eee6 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-kicker{
  display:block;
  margin-bottom:7px;
  color:#8a7650;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-card strong{
  display:block;
  margin-bottom:6px;
  color:#123d31;
  font-size:16px;
  line-height:1.25;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-card span{
  color:#59665f;
  font-size:12px;
  line-height:1.52;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .trip-selection-actions{
  width:100%;
  justify-content:flex-start;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .clear-button{
  border-color:#bfcac3;
  background:#fff;
  color:#274a3b;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .trip-planner-button{
  border-color:#9dbbab;
  background:#cfe2d7;
  color:#123d31;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .trip-planner-button:not(:disabled):hover{
  background:#bed6c8;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button{
  align-self:flex-start;
  min-height:40px;
  padding:8px 14px;
  border:1px solid #123d31;
  border-radius:10px;
  background:#123d31;
  color:#fff;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button:hover{
  background:#0b2f25;
}

/* The promoted cards are controlled by the existing hidden class. */
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-card.hidden{
  display:none!important;
}

@media(max-width:980px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-actions{
    grid-template-columns:1fr 1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip{
    grid-column:1 / -1;
  }
}

@media(max-width:720px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-actions{
    grid-template-columns:1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip{
    grid-column:auto;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .trip-selection-actions{
    flex-direction:column;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-priority-trip .trip-selection-actions button,
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-travel-cta .ask-wkh-button{
    width:100%;
  }
}

/* =========================================================
   Bird Intel V21 · Wildlife Trip Planner + Explore hierarchy
   - Wildlife Trip Planner is promoted near the top
   - Bird and Location exploration are explained separately
   - Selection controls sit directly above the sightings list
   - Ask WKH Travel promotion is intentionally removed
   ========================================================= */

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-discovery-actions{
  display:grid;
  gap:12px;
  margin:0 0 26px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  min-height:154px;
  padding:24px 26px;
  border:1px solid #b9c9be;
  border-radius:18px;
  background:
    radial-gradient(circle at 91% 10%,rgba(217,189,121,.22),transparent 28%),
    linear-gradient(125deg,#173f34 0%,#215845 100%);
  box-shadow:0 12px 28px rgba(31,54,43,.12);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo::after{
  content:"";
  position:absolute;
  right:-52px;
  bottom:-92px;
  width:220px;
  height:220px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  pointer-events:none;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo-copy{
  position:relative;
  z-index:1;
  max-width:760px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo .bird-intel-priority-kicker{
  color:#dfc98f;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo h3{
  margin:7px 0 7px;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(24px,2.6vw,34px);
  line-height:1.08;
  letter-spacing:-.025em;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo p{
  margin:0;
  max-width:720px;
  color:#d6e4dc;
  font-size:13px;
  line-height:1.6;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-create-trip-button{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  min-height:46px;
  padding:10px 18px;
  border:1px solid #e6d297;
  border-radius:999px;
  background:#d9bd79;
  color:#253027;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(0,0,0,.10);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-create-trip-button:hover{
  background:#e4cb8d;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-card{
  min-width:0;
  padding:18px 20px;
  border:1px solid #d4d3ca;
  border-radius:16px;
  background:#fffdf8;
  box-shadow:0 7px 18px rgba(39,49,43,.035);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-card:nth-child(2){
  background:linear-gradient(180deg,#f3f8f4 0%,#ecf4ef 100%);
  border-color:#c6d7cc;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-card .bird-intel-priority-kicker{
  margin-bottom:7px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-card strong{
  display:block;
  margin-bottom:6px;
  color:#173f34;
  font-size:16px;
  line-height:1.25;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-card p{
  margin:0;
  color:#5d6962;
  font-size:12px;
  line-height:1.58;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:14px 0 14px;
  padding:16px 18px;
  border:1px solid #b9cfc0;
  border-radius:14px;
  background:
    radial-gradient(circle at 98% 0%,rgba(217,189,121,.12),transparent 28%),
    linear-gradient(180deg,#edf5f0 0%,#e5efe8 100%);
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy > strong{
  color:#173f34;
  font-size:15px;
  line-height:1.25;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy > span:last-child{
  color:#657169;
  font-size:12px;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .clear-button{
  min-height:39px;
  border-color:#c0cbc4;
  background:#fff;
  color:#24493a;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-planner-button{
  min-height:39px;
  border:1px solid #9fbead;
  background:#cfe2d7;
  color:#123d31;
  font-weight:850;
}

#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-planner-button:not(:disabled):hover{
  background:#bed6c8;
}

/* Keep JavaScript-controlled visibility authoritative. */
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-grid.hidden,
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools.hidden{
  display:none!important;
}

@media(max-width:820px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo{
    align-items:flex-start;
    flex-direction:column;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-create-trip-button{
    width:100%;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-explore-grid{
    grid-template-columns:1fr;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools{
    align-items:flex-start;
    flex-direction:column;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions{
    width:100%;
    justify-content:flex-start;
  }
}

@media(max-width:620px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-trip-promo{
    padding:20px;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions{
    flex-direction:column;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions button{
    width:100%;
  }
}

/* Bird Intel Near Me, Step 1: persistent search navigation, no GPS calls yet. */
.bird-intel-search-paths{
  position:sticky;
  top:8px;
  z-index:1450;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:20px 0 0;
  padding:12px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:#143226;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.bird-intel-search-paths-label{
  flex:0 0 auto;
  color:#c9d9ce;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
}
.bird-intel-search-path-buttons{display:flex;gap:8px;flex-wrap:wrap}
.bird-intel-search-path{
  min-height:44px;
  padding:10px 20px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#f3f8f4;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.bird-intel-search-path:hover{background:rgba(255,255,255,.15)}
.bird-intel-search-path.active{
  background:#e4eee6;
  border-color:#e4eee6;
  color:#173f34;
}
.bird-intel-search-path:focus-visible{outline:3px solid #d6bd83;outline-offset:3px}
.bird-intel-near-panel{margin-top:18px}
.bird-intel-near-status{
  margin-top:24px;
  padding:22px;
  border:1px solid #c7d3cb;
  border-radius:16px;
  background:#fff;
}
.bird-intel-near-status strong{font-size:20px;color:#173f34}
.bird-intel-near-status p{margin:9px 0 0;color:#57665b;font-size:14px;line-height:1.55}
@media(max-width:620px){
  .bird-intel-search-paths{gap:8px;flex-direction:column;align-items:stretch;padding:12px;top:4px}
  .bird-intel-search-paths-label{font-size:10px}
  .bird-intel-search-path-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .bird-intel-search-path{min-width:0;min-height:44px;padding:9px 4px;font-size:12px}
  .bird-intel-near-status{padding:18px}
}
/* Leave room for the persistent search choices when a step scrolls into view. */
#birdIntelEntry,
#birdIntelWorkspace,
#birdIntelReview{
  scroll-margin-top:112px;
}


/* Bird Intel Near Me, Step 2A: consent-first location detection. */
.bird-intel-near-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.bird-intel-near-actions button {
  min-height: 44px;
  margin: 0;
}
.bird-intel-near-actions .clear-button {
  border-color: #b4c4b8;
  background: #edf4ef;
  color: #173f34;
}
.bird-intel-near-actions .clear-button:hover { background: #e0ece3; }
.bird-intel-near-coordinates {
  font-size: 12px !important;
  font-weight: 650;
  color: #365a47 !important;
}
.bird-intel-near-privacy {
  display: block;
  margin-top: 16px;
  color: #657366;
  font-size: 12px;
  line-height: 1.45;
}
@media(max-width: 620px) {
  .bird-intel-near-actions { flex-direction: column; align-items: stretch; }
  .bird-intel-near-actions button { width: 100%; }
}


/* Bird Intel Near Me, Step 2B: nearby eBird hotspot list. */
.bird-intel-near-hotspots{
  /* Align the map/list heading beneath the sticky Search By buttons. */
  scroll-margin-top:100px;
  margin-top:16px;
  padding:18px 20px;
  border:1px solid #c7d3cb;
  border-radius:16px;
  background:#f7faf8;
  color:#173f34;
}
.bird-intel-near-hotspots-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.bird-intel-near-hotspots-head h3{
  margin:0;
  font-size:20px;
  color:#173f34;
}
.bird-intel-near-hotspots-head p{
  margin:7px 0 0;
  font-size:13px;
  line-height:1.45;
  color:#516457;
}
.bird-intel-near-hotspots-retry{
  flex-shrink:0;
  min-height:40px;
  padding:8px 14px;
  border:1px solid #a9bfae;
  border-radius:9px;
  background:#e7f0e8;
  color:#173f34;
  font-weight:750;
  cursor:pointer;
}
.bird-intel-near-hotspots-list{
  display:grid;
  gap:0;
  margin-top:12px;
  max-height:410px;
  overflow-y:auto;
}
.bird-intel-near-hotspot-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding:12px 3px;
  border-bottom:1px solid #dce6df;
}
.bird-intel-near-hotspot-row strong{
  font-size:14px;
  font-weight:750;
  color:#183f32;
  overflow-wrap:anywhere;
}
.bird-intel-near-hotspot-distance{
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  color:#496b54;
  white-space:nowrap;
}
.bird-intel-near-hotspots-footnote{
  display:block;
  margin-top:13px;
  font-size:11px;
  line-height:1.45;
  color:#687b6c;
}
@media(max-width:620px){
  .bird-intel-near-hotspots{padding:16px;scroll-margin-top:110px}
  .bird-intel-near-hotspots-head{flex-direction:column;gap:8px}
  .bird-intel-near-hotspot-row{align-items:flex-start}
  .bird-intel-near-hotspot-row strong{font-size:13px}
  .bird-intel-near-hotspot-distance{font-size:11px}
}


/* Bird Intel Near Me, Step 2C: interactive Map / List hotspot selection. */
.bird-intel-near-view-switcher{
  display:inline-flex;
  gap:5px;
  margin-top:15px;
  padding:4px;
  border:1px solid #bdd2c2;
  border-radius:11px;
  background:#edf4ef;
}
.bird-intel-near-view-button{
  min-height:42px;
  padding:9px 18px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#173f34;
  font-weight:750;
  cursor:pointer;
}
.bird-intel-near-view-button.active{background:#246849;color:#fff}
.bird-intel-near-view-button:focus-visible,
.bird-intel-near-hotspot-row:focus-visible{
  outline:3px solid #b67d28;
  outline-offset:2px;
}
.bird-intel-near-hotspots-map{
  margin-top:12px;
  width:100%;
  height:420px;
  border:1px solid #d1ddd5;
  border-radius:12px;
  overflow:hidden;
  background:#e3eee7;
  z-index:0;
}
.bird-intel-near-map-notice{
  margin:12px 0 0;
  color:#5a5739;
  font-size:13px;
}
.bird-intel-near-hotspot-row{
  width:100%;
  border:0;
  border-bottom:1px solid #dce6df;
  border-radius:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.bird-intel-near-hotspot-row:hover,
.bird-intel-near-hotspot-row.is-selected{background:#e0eee5}
.bird-intel-near-hotspots-map .leaflet-container{font-family:inherit}
@media(max-width:620px){
  .bird-intel-near-view-switcher{display:flex;width:100%}
  .bird-intel-near-view-button{flex:1;min-width:0}
  .bird-intel-near-hotspots-map{height:350px}
}

/* Bird Intel Screen 1: compact phone header and Near Me landing area only.
   All rules are restricted to the Bird Intel home page at phone widths. */
.bird-intel-home .wkh-mobile-nav-current,
.bird-intel-home .wkh-mobile-nav-toggle { display:none; }

@media (max-width:620px) {
  body.bird-intel-home .wkh-integrated-nav {
    gap:8px !important;
    margin:0 -12px;
    padding:5px 12px !important;
    min-height:46px;
  }
  body.bird-intel-home .wkh-mobile-nav-current {
    display:block;
    order:0;
    flex:1 1 auto;
    color:#f0f5f2;
    font-size:16px;
    font-weight:800;
  }
  body.bird-intel-home .wkh-mobile-nav-toggle {
    display:inline-flex;
    order:1;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:7px 15px;
    border:1px solid rgba(255,255,255,.32);
    border-radius:9px;
    background:#203a2e;
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:750;
    cursor:pointer;
  }
  body.bird-intel-home .wkh-mobile-nav-toggle:focus-visible {
    outline:3px solid #d9bd79;
    outline-offset:2px;
  }
  body.bird-intel-home .wkh-integrated-nav > a,
  body.bird-intel-home .wkh-integrated-nav > [data-wkh-auth-status],
  body.bird-intel-home .wkh-integrated-nav > span:not(.wkh-mobile-nav-current) {
    display:none !important;
  }
  body.bird-intel-home .wkh-integrated-nav.wkh-mobile-nav-open > a {
    display:block !important;
    order:2;
    flex:1 0 100%;
    min-height:36px;
    padding:8px 10px;
    border-top:1px solid rgba(255,255,255,.12);
    font-size:14px;
  }
  body.bird-intel-home .wkh-integrated-nav.wkh-mobile-nav-open > [data-wkh-auth-status] {
    display:flex !important;
    order:3;
    flex:1 0 100%;
    align-items:center;
    justify-content:flex-start;
    margin-left:0 !important;
    padding:8px 10px;
    border-top:1px solid rgba(255,255,255,.12);
    font-size:14px;
  }
  body.bird-intel-home .wkh-integrated-nav.wkh-mobile-nav-open > span:not(.wkh-mobile-nav-current) {
    display:block !important;
    order:4;
    margin-left:0 !important;
    padding:5px 10px;
    font-size:11px;
  }

  body.bird-intel-home .brand-header {
    margin-bottom:8px;
    padding:9px 12px 10px;
    box-shadow:none;
  }
  body.bird-intel-home .brand-wrap {
    align-items:center;
    gap:10px;
  }
  body.bird-intel-home .brand-logo {
    width:52px;
    height:52px;
  }
  body.bird-intel-home .brand-name {
    font-size:clamp(17px,4.5vw,20px);
    line-height:1.12;
    letter-spacing:0;
  }
  body.bird-intel-home .brand-tagline {
    margin-top:3px;
    font-size:12px;
    line-height:1.25;
  }
  body.bird-intel-home .product-identity {
    margin-top:6px;
    padding-top:6px;
  }
  body.bird-intel-home .product-title-image {
    width:min(94%,420px);
    height:30px;
    object-fit:contain;
  }
  body.bird-intel-home .product-identity .owl-sketch {
    display:none;
  }
  body.bird-intel-home .product-identity .page-title-block {
    margin-top:3px;
  }
  body.bird-intel-home .page-title {
    font-size:23px;
    line-height:1.1;
  }
  body.bird-intel-home .product-identity .sub {
    margin-top:3px;
    font-size:13px;
    line-height:1.3;
  }

  body.bird-intel-home .bird-intel-search-paths {
    top:4px;
    gap:4px;
    margin-top:8px;
    padding:8px;
    border-radius:13px;
  }
  body.bird-intel-home .bird-intel-search-paths-label {
    font-size:10px;
    line-height:1.2;
  }
  body.bird-intel-home .bird-intel-search-path-buttons {
    gap:5px;
  }
  body.bird-intel-home .bird-intel-search-path {
    min-height:44px;
    padding:8px 2px;
    font-size:clamp(12px,3.2vw,14px);
    line-height:1.2;
  }

  body.bird-intel-home .bird-intel-near-panel {
    margin-top:8px;
  }
  body.bird-intel-home .bird-intel-entry {
    padding:13px;
    border-radius:16px;
  }
  /* The Near Me status already gives the heading and instructions.
     Avoid repeating them in a second large introductory block. */
  body.bird-intel-home .bird-intel-entry-copy {
    display:none;
  }
  body.bird-intel-home .bird-intel-near-status {
    margin-top:0;
    padding:14px;
    border-radius:12px;
  }
  body.bird-intel-home .bird-intel-near-status strong {
    display:block;
    font-size:17px;
    line-height:1.25;
  }
  body.bird-intel-home .bird-intel-near-status p {
    margin-top:6px;
    font-size:14px;
    line-height:1.4;
  }
  body.bird-intel-home .bird-intel-near-actions {
    gap:8px;
    margin-top:11px;
  }
  body.bird-intel-home .bird-intel-near-actions button {
    min-height:44px;
    padding:9px 10px;
    white-space:normal;
    font-size:14px;
    line-height:1.25;
  }
  body.bird-intel-home .bird-intel-near-privacy {
    margin-top:10px;
    font-size:12px;
    line-height:1.35;
  }
  body.bird-intel-home .bird-intel-entry-foot {
    margin-top:10px;
    padding-top:8px;
    gap:4px;
    font-size:10px;
  }
  body.bird-intel-home #birdIntelEntry,
  body.bird-intel-home #birdIntelWorkspace {
    scroll-margin-top:95px;
  }
}

/* Bird Intel Screen 3: compact review on phones only.
   Keep the desktop review layout and all existing search controls intact. */
@media (max-width: 620px) {
  body.bird-intel-home #birdIntelReview.bird-intel-review {
    margin-top: 12px;
    padding: 15px 16px 16px;
    border-radius: 16px;
  }

  body.bird-intel-home #birdIntelReview .bird-intel-review-eyebrow {
    margin-bottom: 5px;
  }
  body.bird-intel-home #birdIntelReview h2 {
    font-size: clamp(18px, 4.8vw, 20px);
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-head p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
  }

  body.bird-intel-home #birdIntelReview .bird-intel-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 12px;
  }
  /* Bird and Location get one row each, with the change link at the side. */
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(-n + 2) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(-n + 2) > span {
    grid-column: 1 / -1;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(-n + 2) > strong {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin-top: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 16px;
    line-height: 1.25;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(-n + 2) > button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    min-height: 40px;
    margin: 0;
    padding: 4px 0 4px 6px;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(2) > small {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-item:nth-child(2) > button {
    grid-row: 2 / 4;
  }
  /* Keep radius and recent period next to each other. */
  body.bird-intel-home #birdIntelReview .bird-intel-review-item > .bird-intel-review-select {
    min-height:44px;
    font-size:clamp(13px,3.7vw,15px);
    padding:7px 21px 7px 7px;
  }

  body.bird-intel-home #birdIntelReview .bird-intel-review-actions {
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-primary {
    min-height: 44px;
    padding: 9px 16px;
    font-size: 14px;
  }
  body.bird-intel-home #birdIntelReview .bird-intel-review-message:empty {
    display: none;
  }
}

/* Bird Intel Screen 4: optional results filters on mobile only. */
.mobile-results-filter-bar,
.mobile-apply-result-filters {
  display:none!important;
}

@media (max-width: 720px) {
  #birdIntelWorkspace.bird-intel-results-mode .mobile-results-filter-bar:not(.hidden) {
    display:flex!important;
    justify-content:flex-start;
    margin:14px 0 6px;
  }

  #birdIntelWorkspace.bird-intel-results-mode #mobileResultsFilterToggle {
    width:auto;
    min-height:44px;
    padding:9px 17px;
    border:1px solid #abc8b6;
    border-radius:999px;
    background:#e7f1ea;
    color:#173f34;
    font-weight:850;
    cursor:pointer;
  }

  #birdIntelWorkspace.bird-intel-results-mode #mobileResultsFilterToggle[aria-expanded="true"] {
    background:#d2e7d9;
  }

  #birdIntelWorkspace.bird-intel-results-mode .result-tools:not(.mobile-filters-open) {
    display:none;
  }

  #birdIntelWorkspace.bird-intel-results-mode .result-tools.mobile-filters-open:not(.hidden) {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    margin:8px 0 10px;
    padding:14px;
  }

  #birdIntelWorkspace.bird-intel-results-mode .result-tools.mobile-filters-open label {
    min-width:0;
  }

  #birdIntelWorkspace.bird-intel-results-mode #mobileApplyResultsFilters {
    display:block!important;
    width:100%;
    min-height:46px;
    padding:10px 16px;
    border:1px solid #154534;
    border-radius:10px;
    background:#173f34;
    color:#fff;
    font:inherit;
    font-weight:850;
    cursor:pointer;
  }
  #birdIntelWorkspace.bird-intel-results-mode #mobileApplyResultsFilters:hover {
    background:#245d49;
  }
}


/* Bird Intel Screen 4: mobile results layout refinement only.
   Existing filtering/Trip Planner handlers and desktop presentation are unchanged. */
.trip-add-label-short { display:none; }

@media (max-width:720px) {
  /* Clear Filters is directly accessible. It invokes the existing clear action. */
  #birdIntelWorkspace.bird-intel-results-mode .mobile-results-filter-bar:not(.hidden) {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:9px;
  }

  #birdIntelWorkspace.bird-intel-results-mode .mobile-results-filter-bar > button {
    min-width:0;
    width:100%;
    min-height:44px;
    padding:9px 10px;
    border-radius:999px;
    font:inherit;
    font-size:clamp(12px,3.35vw,15px);
    font-weight:850;
    line-height:1.2;
    white-space:normal;
    cursor:pointer;
  }

  #birdIntelWorkspace.bird-intel-results-mode #mobileClearResultsFilters {
    border:1px solid #b6c9bb;
    background:#fff;
    color:#173f34;
  }

  #birdIntelWorkspace.bird-intel-results-mode #mobileClearResultsFilters:hover {
    background:#f0f5f1;
  }

  /* The original Clear Filters control remains present for its existing
     click handler and desktop layout, but does not duplicate the mobile action. */
  #birdIntelWorkspace.bird-intel-results-mode #resultTools #clearFilters {
    display:none;
  }

  /* Compact Trip Planner controls, keeping the same three buttons and IDs. */
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools {
    padding:14px 15px;
    gap:13px;
    border-color:#2c5445;
    background:#142a22;
    box-shadow:0 8px 22px rgba(0,0,0,.12);
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy > .bird-intel-priority-kicker {
    color:#e4cb90;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy > strong {
    color:#fff;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-copy > span:last-child {
    color:#dae8df;
  }

  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:7px;
    flex-direction:row;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions button {
    min-width:0;
    width:100%;
    min-height:48px;
    padding:8px 4px;
    border-radius:10px;
    font-size:clamp(11px,2.8vw,13px);
    line-height:1.15;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions .clear-button {
    background:#f5f8f5;
    color:#173f34;
    border-color:#d2ded5;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions .trip-planner-button {
    background:#9cc6a9;
    color:#143025;
    border-color:#9cc6a9;
  }
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions button:disabled {
    opacity:.48;
    cursor:not-allowed;
  }
  .trip-add-label-full { display:none; }
  .trip-add-label-short { display:inline; }
}


/* Bird Intel Screen 4: mobile five-column results table.
   Keep the original table, sorting, links and Trip Planner checkboxes.
   Horizontal scrolling is intentional to protect readable column widths. */
.bird-intel-datetime-mobile { display:none; }

@media (max-width:720px) {
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap {
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap table {
    display:table;
    width:768px;
    min-width:768px;
    table-layout:fixed;
    border-collapse:collapse;
  }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap thead { display:table-header-group; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap tbody { display:table-row-group; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap tbody tr { display:table-row; }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th,
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td {
    display:table-cell;
    box-sizing:border-box;
    padding:10px 8px;
    vertical-align:middle;
    white-space:normal;
    line-height:1.35;
    overflow:hidden;
  }

  /* Trip checkbox, bird, full date/time, count and two-line location. */
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(1),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(1) { width:54px; text-align:center; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(2),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(2) { width:210px; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(3),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(3) { width:170px; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(4),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(4) { width:64px; text-align:center; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(5),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(5) { width:270px; }

  /* Keep the existing sortable button, but label it 'Date' on phones. */
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(3) .sort-button { font-size:0; }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(3) .sort-button::before {
    content:"Date";
    font-size:12px;
  }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(3) .sort-button span { font-size:12px; }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .trip-target-checkbox {
    display:inline-block;
    width:19px;
    height:19px;
    min-height:19px;
    margin:0;
    vertical-align:middle;
  }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap tbody td:nth-child(2) br,
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap tbody td:nth-child(2) small { display:none; }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .bird-profile-link,
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .location-profile-link {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    max-height:2.7em;
    max-width:100%;
    overflow:hidden;
    overflow-wrap:break-word;
    white-space:normal;
    text-overflow:ellipsis;
    line-height:1.35;
    text-align:left;
  }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .location-profile-link {
    width:100%;
  }

  /* The original, full observation date/time remains available on mobile. */
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(3) {
    font-size:16px;
    color:#44564c;
    font-variant-numeric:tabular-nums;
  }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .bird-intel-datetime-full {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    max-height:2.7em;
    overflow:hidden;
    overflow-wrap:anywhere;
    white-space:normal;
    line-height:1.35;
  }
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap .bird-intel-datetime-mobile { display:none; }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(4) {
    font-weight:750;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
  }

  /* Private filtering stays available, only its table column is hidden. */
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap th:nth-child(6),
  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td:nth-child(6) { display:none; }

  #birdIntelWorkspace.bird-intel-results-mode .table-wrap td[colspan] {
    display:table-cell;
    width:100%;
    padding:12px;
    white-space:normal;
  }
}

/* Bird Intel Explore Here: shared desktop and touch-friendly mobile map action. */
.bird-intel-near-map-shell{
  position:relative;
  margin-top:12px;
  isolation:isolate;
}
.bird-intel-near-map-shell .bird-intel-near-hotspots-map{margin-top:0}
.bird-intel-explore-here{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:800;
  width:auto;
  min-height:44px;
  padding:10px 20px;
  border:2px solid #fff;
  border-radius:999px;
  background:#173f34;
  color:#fff;
  box-shadow:0 3px 15px rgba(0,0,0,.28);
  font:inherit;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  touch-action:manipulation;
}
.bird-intel-explore-here:hover:not(:disabled){background:#245f4d}
.bird-intel-explore-here:focus-visible{outline:3px solid #d9bd79;outline-offset:3px}
.bird-intel-explore-here:disabled{opacity:.76;cursor:wait}
@media(max-width:620px){
  .bird-intel-explore-here{top:10px;padding:10px 16px;font-size:13px;max-width:calc(100% - 90px)}
  .bird-intel-near-map-shell .bird-intel-near-hotspots-map{height:350px}
}

.bird-intel-near-view-button:disabled{opacity:.5;cursor:not-allowed}

/* Product A, Phase 1, Step 2: Add selected Bird Intel species to a private list. */
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .bird-list-action-button{
  min-height:39px;padding:8px 13px;border:1px solid #165440;border-radius:10px;
  background:#18533e;color:#fff;font-weight:850;cursor:pointer;
}
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .bird-list-action-button:not(:disabled):hover{background:#23694f}
#birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .bird-list-action-button:disabled{opacity:.48;cursor:not-allowed}
.bird-list-overlay{position:fixed;inset:0;z-index:1800;display:grid;place-items:center;padding:14px;background:rgba(0,0,0,.64)}
.bird-list-dialog{width:min(520px,100%);max-height:min(90vh,760px);overflow:auto;background:#fbfaf6;color:#18211d;border:1px solid #c9d5cb;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.bird-list-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 16px;border-bottom:1px solid #d8d2c5}
.bird-list-dialog-head h2{margin:0;color:#173f34;font-size:23px}
.bird-list-dialog-head p{margin:7px 0 0;color:#55645c;font-size:13px}
.bird-list-close{flex:0 0 auto;border:0;background:transparent;color:#173f34;font-size:30px;line-height:1;cursor:pointer}
.bird-list-dialog-body{display:grid;gap:11px;padding:20px}
.bird-list-dialog-body label{display:block;color:#273e32;font-weight:800;font-size:13px}
.bird-list-dialog-body select,.bird-list-dialog-body input{width:100%;min-width:0;min-height:46px;border:1px solid #b7cabe;border-radius:10px;background:#fff;color:#18211d}
.bird-list-name-wrap input{margin-top:8px}
.bird-list-source{margin:4px 0 0;font-size:12px;color:#52685b;overflow-wrap:anywhere}
.bird-list-message{min-height:19px;margin:2px 0 0;font-size:13px;color:#465a4d;line-height:1.45;overflow-wrap:anywhere}
.bird-list-message.error{color:#9b3836}.bird-list-message.success{color:#1d6a43;font-weight:750}
.bird-list-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #d8d2c5}
.bird-list-dialog-actions button{min-height:44px;padding:10px 18px;border-radius:10px;font-weight:850;cursor:pointer}
.bird-list-cancel{background:#fff;border:1px solid #b6c8b8;color:#173f34}
.bird-list-save{background:#173f34;border:1px solid #173f34;color:#fff}
.bird-list-save:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:720px){
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions{grid-template-columns:repeat(2,minmax(0,1fr));flex-direction:row}
  #birdIntelWorkspace.bird-intel-results-mode .bird-intel-list-trip-tools .trip-selection-actions .bird-list-action-button{width:100%;min-width:0;min-height:48px;padding:8px 5px;font-size:clamp(11px,2.8vw,13px);white-space:normal}
  .bird-list-dialog-actions button{flex:1}
}

/* Product A: explicit Bird List save-result acknowledgment. */
.bird-list-result-overlay{z-index:1810}
.bird-list-result-dialog .bird-list-dialog-body{gap:14px}
.bird-list-result-summary{margin:0;color:#273e32;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.bird-list-result-duplicates{font-size:13px;color:#384b3f;line-height:1.5}
.bird-list-result-duplicates p{margin:0 0 8px;font-weight:800;color:#80541c}
.bird-list-result-duplicates ul{margin:0;padding-left:20px;max-height:34vh;overflow:auto}
.bird-list-result-duplicates li{margin:3px 0;overflow-wrap:anywhere}
.bird-list-result-error .bird-list-dialog-head h2{color:#9b3836}
.bird-list-result-error .bird-list-result-summary{color:#7a3030}
