:root {
  --bg: #efe8dc;
  --ink: #1c2430;
  --muted: #5d6878;
  --line: #ddd3c3;
  --paper: #fffdf8;
  --green: #0e6b4f;
  --green-dark: #084635;
  --chip: #f3eee4;
  --shadow: 0 16px 40px rgba(40, 32, 18, 0.08);
  --sidebar: 340px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 400px at 10% -10%, #f7f1e6, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

button, input, select { font: inherit; color: inherit; }

.visit-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 6px 28px;
  font-size: 13px;
  font-weight: 700;
}
.visit-flags .flag-extra { display: none; }
.visit-flags.flags-open .flag-extra { display: inline; }
.visit-flags .visit-flags-more {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.visit-flag { position: relative; }
.flag-place {
  display: none;
  position: absolute;
  z-index: 1600;
  left: 0;
  right: auto;
  top: calc(100% + 4px);
  flex-direction: column;
  gap: 3px;
  min-width: 148px;
  max-width: 220px;
  max-height: 240px;
  overflow: auto;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.visit-flag .flag-place.place-left {
  left: auto;
  right: 0;
}
.flag-place strong { font-size: 13px; font-weight: 800; }
.flag-city { display: flex; align-items: center; gap: 6px; }
.flag-city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
@media (min-width: 1101px) {
  .visit-flag:hover .flag-place,
  .visit-flag:focus-within .flag-place { display: flex; }
}
@media (max-width: 1100px) {
  .visit-flag { cursor: pointer; }
  .visit-flag.show-country .flag-place { display: flex; }
}
.map-frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.map-frame .map,
.map-frame .centre-map {
  position: relative;
  box-shadow: none;
}
.map-slot { position: relative; }
.map-slot .map-recenter {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  border: 1px solid var(--green-dark);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--green-dark);
  color: #fff;
  padding: 6px 14px;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
.map-topbar.at-bottom {
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
  border-top: 1px solid var(--green-dark);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.map-topbar.at-left,
.map-topbar.at-right {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-top: 1px solid var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
  padding: 14px 6px;
}
.map-topbar.at-left {
  left: 0;
  right: auto;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}
.map-topbar.at-right {
  left: auto;
  right: 0;
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.map-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.map-find {
  position: relative;
  z-index: 2;
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-find input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  background: #fff;
}
.map-find button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.map-find .map-recenter { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.map-find-list {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.map-find-list[hidden] { display: none !important; }
.map-find-list button, .map-find-list p { text-align: left; font-weight: 650; margin: 0; }
.map-views { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.map-zoom {
  position: absolute;
  z-index: 1000;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-views button, .map-zoom button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.map-views button.picked { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.map-zoom button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(40, 32, 18, 0.18);
}
.map-street {
  position: relative;
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  padding: 8px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.map-street[hidden] { display: none !important; }
.map-street img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.map-street p { margin: 0; font-weight: 650; }
.map-street-close { align-self: flex-end; }
.flag-new {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: var(--green-dark);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}
.visit-total, .visit-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 22px 28px 14px;
}
.top-nav:empty { display: none; }

.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
header.top .brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
}
header.top .brand .logo { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
header.top .brand .brand-copy { display: contents; }
header.top .brand .wordmark { grid-column: 2; grid-row: 1; align-self: end; }
header.top .brand .brand-desc { grid-column: 2; grid-row: 2; align-self: start; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  max-width: 560px;
}
.wordmark, .brand h1 {
  margin: 0;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.logo { width: 144px; height: 144px; display: block; flex: none; }
.cine-link {
  display: flex;
  align-items: center;
  align-self: center;
  flex: none;
  margin-right: auto;
  margin-left: 4px;
}
.cine-link img { display: block; height: 32px; width: auto; }
@media (max-width: 1100px) {
  .cine-link img { height: 26px; }
}
.version {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  border: 1px solid #b7d7cb;
  border-radius: 999px;
  padding: 2px 7px;
}
.eyebrow {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #1b8f6a, #0e6b4f 55%, #083d2e);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 20px;
  height: 14px;
  background: #f4efe4;
  clip-path: polygon(50% 0, 100% 42%, 82% 42%, 82% 100%, 18% 100%, 18% 42%, 0 42%);
}
.tagline {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.top-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gate {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px 48px;
  text-align: center;
}
body > .gate { min-height: 100vh; }
.gate .brand { text-decoration: none; color: inherit; flex-direction: column; gap: 12px; }
.gate .logo { width: 216px; height: 216px; }
.gate-nav { justify-content: center; }
.gate .role-ask { width: min(440px, 100%); text-align: left; }
button.mute-button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
button.mute-button.sound-on {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.share-site {
  appearance: none;
  border: 1px solid var(--green-dark);
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-weight: 750;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1;
}
.share-site:hover { background: #e7f3ee; }
.ai-button, .fields-button {
  appearance: none;
  border: 0;
  background: var(--green-dark);
  color: #fff;
  font-weight: 750;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.fields-button { letter-spacing: 0; background: var(--green); }
.site-spend {
  margin: 10px 28px 0;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 750;
  width: fit-content;
  max-width: calc(100% - 56px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.site-spend:empty { display: none; }
body.ask-page { overflow-x: clip; }
.ask { max-width: 760px; margin: 0 auto; padding: 8px 18px 48px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 2px; }
.ask-examples button {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
}
.ask-examples button:hover { border-color: var(--green); }
.seo-places { max-width: 760px; margin: 0 auto; padding: 0 18px 36px; }
.seo-places h2 { font-size: 15px; margin: 0 0 8px; }
.seo-places ul { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0; padding: 0; }
.seo-places a { color: var(--green-dark); font-weight: 650; }
.start-choices h2 { font-family: Palatino, Georgia, serif; font-size: 28px; margin: 8px 0; }
.start-pair { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.start-pair a { font-size: 16px; padding: 12px 18px; }
.start-choices p { margin: 4px 0; }
.ask-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ask-label-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.ask-form label { width: 100%; font-weight: 750; }
.ask-form .ask-label-row label { width: auto; flex: 1 1 auto; min-width: 0; margin: 0; }
.ask-label-row .mic-button { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; }
.prompt-box {
  flex: none;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.prompt-top > button { white-space: nowrap; min-height: 48px; }
.prompt-top > button.send-ready {
  border: 2px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}
.prompt-size { display: flex; gap: 6px; flex: none; }
.ask-form .prompt-size button {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 750;
  line-height: 1;
}
.ask-form .prompt-size button:disabled { opacity: 0.35; cursor: default; }
.ask-entry { width: 100%; flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 6px; }
.ask-form input, .ask-form textarea { flex: 1; min-width: 200px; font: inherit; font-size: 16px; line-height: 1.35; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; resize: none; overflow: hidden; min-height: 46px; max-height: 50vh; }
.ask-form .ask-entry textarea { width: 100%; min-width: 0; flex: 1 1 auto; }
.prompt-history { display: flex; flex-direction: column; gap: 4px; flex: none; }
.ask-form .prompt-history button {
  flex: 1;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
}
.ask-form .prompt-history button:disabled { opacity: 0.35; cursor: default; }
.ask-filters #ask-max-price { min-width: 16rem; }
.max-price-line { display: flex; align-items: center; gap: 8px; }
#clear-max-price { background: #fff; color: var(--green-dark); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 750; min-height: 42px; }
.prompt-history svg { width: 16px; height: 16px; display: block; }
.ask-form button { border: 0; background: var(--green-dark); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 750; cursor: pointer; }
.top-nav .mic-button,
.ask-form .mic-button { background: #2a9d74; color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 750; }
.top-nav .mic-button.listening,
.ask-form .mic-button.listening { background: #9a3412; }
.ask-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; width: 100%; align-items: end; }
.ask-form .ask-filters label { width: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ask-filters select, .ask-filters input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 8rem; }
.ask-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; width: auto; }
.ask-actions > button { width: auto; min-width: 7.5rem; min-height: 48px; white-space: nowrap; }
.mic-button { min-width: 48px; min-height: 48px; }
.mic-button.listening { background: #9a3412; }
.voice-field, .lang-field, .currency-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; }
.voice-field select, .lang-field select, .currency-field select { font: inherit; font-size: 16px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 16rem; }
#good-deals.on { color: #166534; font-weight: 800; }
.radius-ask { margin: 0 0 8px; }
.centre-ask { margin: 0 0 8px; }
.centre-ask .fine { margin: 0 0 6px; font-weight: 750; }
.centre-ask .map-frame { margin: 0 0 8px; }
.centre-map { height: 320px; min-height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.leaflet-tooltip.centre-pin-label {
  background: #fffdf8;
  color: #1c2430;
  border: 1px solid #1c2430;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
  cursor: pointer;
}
.leaflet-tooltip.centre-pin-label.picked {
  background: #0e6b4f;
  color: #fff;
  border-color: #084635;
}
.band-clock {
  display: none !important;
  position: fixed;
  z-index: 4000;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0;
  transform: translate(16px, 16px);
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.band-clock.flip { transform: translate(calc(-100% - 10px), 16px); }
.band-clock.phone {
  display: none !important;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: max-content;
  height: auto;
  left: 0;
  top: 0;
  transform: none;
  filter: none;
  pointer-events: none;
  touch-action: auto;
  cursor: auto;
  user-select: none;
  -webkit-user-select: none;
}
.band-clock.phone.side-left { flex-direction: row-reverse; }
.band-clock.phone.dragging { cursor: auto; }
.band-clock.phone svg,
.band-clock.phone .band-clock-copy {
  position: static;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
}
.band-clock.phone .band-clock-copy { text-align: left; }
.band-clock[hidden] { display: none; }
.band-clock svg { display: block; width: 36px; height: 36px; flex: none; }
.band-clock-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 240px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(15, 15, 15, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
.band-clock-note, .band-clock-or { font-weight: 650; color: #d7efe4; }
.band-clock-or { display: none; }
.band-clock.after .band-clock-or { display: block; }
.band-clock.after svg,
.band-clock.after .band-clock-range,
.band-clock.after .band-clock-count { display: none; }
.radius-ask .fine { margin: 0 0 6px; font-weight: 750; }
.side-ask { margin: 0 0 8px; }
.side-ask .fine { margin: 0 0 6px; font-weight: 750; }
.land-ask { margin: 0 0 8px; }
.water-distances { margin-top: 8px; }
.water-distances[hidden] { display: none !important; }
.land-ask .fine { margin: 0 0 6px; font-weight: 750; }
.land-ask .asked-role { flex-wrap: wrap; }
.price-ask {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px 8px;
  margin: 0 0 8px;
  background: var(--paper);
}
.price-ask label { display: flex; flex-direction: column; gap: 4px; font-weight: 750; }
.price-ask .max-price-line { display: flex; gap: 8px; align-items: center; }
.max-price-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.price-flag {
  position: static;
  flex: 0 0 auto;
  pointer-events: none;
  font-size: 20px;
  line-height: 1;
}
.max-price-box input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.price-ask .asked-role { flex-wrap: wrap; }
.place-note { margin: 2px 0 0; font-weight: 750; }
.city-aims { position: absolute; inset: 0; z-index: 440; pointer-events: none; overflow: hidden; }
.city-aim-arrow { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.city-aim-arrow svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 0 1px #fff); }
.city-aim-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: rgba(255, 252, 247, 0.94);
  color: #102018;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.asked-role { display: flex; gap: 8px; margin: 0 0 8px; }
.asked-radius, .centre-choices { flex-wrap: wrap; }
.asked-radius { justify-content: center; }
.centre-choices { margin-top: 8px; }
.centre-choices button { flex: 0 1 auto; text-transform: none; letter-spacing: 0; }
.asked-role button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.asked-role.asked-radius button {
  flex: 0 0 5.6rem;
  width: 5.6rem;
  padding: 10px 8px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}
.asked-role button.picked { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.asked-role button[data-next],
.asked-role button[data-all] {
  flex: 0 0 auto;
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
@media (max-width: 700px) {
  .asked-age button { min-width: 0; padding-left: 6px; padding-right: 6px; }
  .asked-age button[data-next] { flex: 0 0 auto; margin-right: 28px; padding-left: 12px; padding-right: 12px; }
}
.asked-furnish button { flex: 0 1 auto; text-transform: none; letter-spacing: 0; padding: 10px 14px; }
.asked-furnish button:disabled { opacity: 0.45; cursor: default; }
.voice-actions { width: 100%; display: flex; gap: 8px; }
.voice-actions[hidden] { display: none !important; }
.voice-actions button { flex: 1; }
.lip-preview {
  width: min(220px, 100%);
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c2430;
  transform: scaleX(-1);
}
.lip-preview[hidden] { display: none !important; }
.role-ask { margin-top: 16px; }
.role-ask h2, .price-board h2 { font-family: Palatino, Georgia, serif; font-size: 22px; margin: 0 0 8px; }
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.price-head h2 { margin: 0; }
.price-hint { margin: 0; font-size: 14px; font-weight: 650; color: var(--muted); }
.role-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.role-choices button, .role-choices button.picked {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
}
.role-choices button.picked, .role-choices button:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.estimate-line { margin: 2px 0 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.deal-line { margin: 2px 0; font-size: 13px; font-weight: 750; color: var(--muted); }
.deal-line.good { color: #166534; }
.deal-line.poor { color: #9a3412; }
.deal-pill { background: #dcfce7; color: #166534; }
.map-column { display: none; }
html.show-map .filters { display: none !important; }
.neighbor-pending .neighbor-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
.rank-table th, .rank-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rank-table th { font-size: 12px; color: var(--muted); }
.rank-table tr.is-focus { background: #e7f2ea; }
.rank-table a { color: #084635; font-weight: 750; }
.search-plan { margin: 8px 0 12px; padding: 0; list-style: none; }
.plan-sources { margin: 2px 0 10px; color: var(--muted); font-size: 0.92em; }
.search-plan li { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: var(--muted); }
.search-plan li.done { color: #166534; font-weight: 750; }
.search-plan li.working { color: #1c2430; font-weight: 750; }
.search-plan .plan-mark {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-plan .plan-name { flex: 1; min-width: 0; }
.search-plan .plan-ball { height: 14px; }
.search-plan .plan-ball i { width: 11px; height: 11px; }
.search-plan .plan-timer {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  color: #1c2430;
}
.search-plan li.done .plan-timer { color: #166534; }
@media (prefers-reduced-motion: reduce) {
  .search-plan .plan-ball i { animation: none; opacity: 1; }
}
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.choice-list button {
  border: 1px solid #084635;
  background: #fff;
  color: #084635;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  cursor: pointer;
}
.filters,
html.show-map .site-foot,
html.show-map .top-nav,
html.show-map .results-bar,
html.show-map .panel-tools {
  display: none !important;
}
html.show-map,
html.show-map body {
  height: auto;
  overflow: visible;
}
html.show-map body {
  display: block;
}
html.show-map .top,
html.show-map #visit-flags,
html.show-map .site-spend,
html.show-map .action-bar {
  flex: none;
}
html.show-map .layout {
  grid-template-columns: 1fr;
  flex: none;
  height: auto;
  min-height: 0;
  overflow: visible;
  width: 100%;
}
html.show-map .workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 0;
  height: auto;
}
html.show-map .map-column,
html.show-map .list-pane {
  width: 100%;
  max-width: none;
}
html.show-map .map-column {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 0;
  min-width: 0;
}
html.show-map #guide { order: 1; }
html.show-map .map-frame { order: 2; flex: 0 0 auto; width: 100%; min-width: 0; }
html.show-map .map-column .map { order: 3; }
html.show-map .price-board { order: 4; }
html.show-map.is-thinking .map-column > .thinking,
html.show-map.is-thinking .map-column > .thinking[hidden] {
  display: flex !important;
}
html.show-map .map,
html.show-map .map-column .map,
html.show-map .map-frame .map {
  height: clamp(220px, calc(100vh - 640px), 480px);
  min-height: 220px;
  flex: none;
  width: 100%;
}
.thinking {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 248, 0.9);
  border-radius: 18px;
  color: #1c2430;
}
.thinking[hidden] { display: none; }
.thinking-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #1c2430;
  border: 1px solid #1c2430;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 750;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.thinking-dots { display: inline-flex; gap: 6px; align-items: flex-end; height: 16px; }
.thinking-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0e6b4f;
  display: block;
  animation: thinking-bounce 1s infinite ease-in-out;
}
.thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes thinking-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-7px); opacity: 1; }
}
.thinking-line .thinking-dots { vertical-align: middle; margin-right: 8px; }
.thinking-line .thinking-label { margin-right: 0.35em; }
.thinking-line .thinking-dots i { width: 8px; height: 8px; }
.thinking-meter { display: inline-flex; align-items: baseline; gap: 10px; font-size: 16px; font-variant-numeric: tabular-nums; color: #1c2430; }
.thinking-speed { color: #084635; }
html.show-map .map-frame {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  overflow: visible;
}
.map-column > .thinking {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.map-column > .thinking[hidden] { display: none; }
html.show-map .list-pane {
  flex: 0 0 auto;
  height: auto;
  overflow: visible;
}
html.show-map .detail {
  position: relative;
  inset: auto;
  height: auto;
  max-height: none;
  overflow: visible;
  scroll-margin-top: calc(var(--bar-h, 40px) + 8px);
}
html.show-map #list-view {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}
html.show-map #list,
html.show-map .cards {
  flex: none;
  height: auto;
  max-height: none;
  overflow: visible;
}
html.show-map .list-pane > .thinking { display: none !important; }
html.show-map.is-thinking .map,
html.show-map.is-thinking .map-frame,
html.show-map.is-thinking .map-tools,
html.show-map.is-thinking #guide,
html.show-map.is-thinking .price-board,
html.show-map.is-thinking .panel-tools,
html.show-map.is-thinking .list-pane { display: none !important; }
html.show-map.is-thinking .map-column {
  display: flex !important;
  min-height: 280px;
  align-items: center;
  justify-content: center;
}
html.show-map .map-column:not(:has(.thinking:not([hidden]))):not(:has(#map)) {
  display: none;
}
html.show-map .sources-badge-float { display: none !important; }
html.show-map .results-lead {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}
html.show-map .results-lead[hidden] { display: none; }
html.show-map.is-thinking .results-lead,
html.show-map.is-thinking .sources-fold,
html.show-map.is-thinking .map-price { display: none !important; }
html.show-map .map-price {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
html.show-map .map-price:not(:has(.price-board:not([hidden]))) {
  grid-template-columns: 1fr;
}
html.show-map .map-price > .map-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
html.show-map .map-price .map-slot {
  flex: 1 1 auto;
  display: flex;
  min-height: 360px;
}
html.show-map .map-price .map-slot > .map {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 360px;
}
html.show-map .map-price > .price-board {
  min-width: 0;
  margin: 0;
}
@media (max-width: 900px) {
  html.show-map .map-price { grid-template-columns: 1fr; }
  html.show-map .map-price .map-slot,
  html.show-map .map-price .map-slot > .map { min-height: 280px; }
}
html.show-map .workspace > #map,
html.show-map .workspace > .map-frame,
html.show-map .workspace > .map-price,
html.show-map .workspace > .list-pane,
html.show-map .workspace > .price-board,
html.show-map .workspace > #guide,
html.show-map .workspace > .results-lead,
html.show-map .workspace > .sources-fold {
  order: 0;
  width: 100%;
  max-width: none;
}
html.show-map .sources-fold caption { display: none; }
html.show-map .sources-fold {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 14px 4px;
}
html.show-map .sources-fold[hidden] { display: none; }
html.show-map .sources-fold summary {
  cursor: pointer;
  font-weight: 750;
  padding: 12px 0;
}
html.show-map .sources-score .won-line,
html.show-map .sources-score .runner-line {
  display: block;
  padding: 0 0 6px;
  font-weight: 650;
  line-height: 1.4;
}
html.show-map .sources-score .won-line { font-weight: 750; }
.panel-tools { display: flex; justify-content: flex-end; gap: 8px; }
.pop-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 750;
  cursor: pointer;
}
.pop-button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.map-column.popped,
.list-pane.popped {
  position: fixed;
  inset: 16px;
  z-index: 80;
  background: #fffdf8;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(28, 36, 48, 0.28);
  padding: 12px;
  overflow: hidden;
}
.map-column.popped { display: flex; }
html.show-map .map-column.popped .map { height: auto; min-height: 0; flex: 1 1 auto; }
.list-pane.popped { display: flex; }
.map-column > .map,
.map-column > .map-frame,
.map-column > .price-board,
.centre-ask > .centre-map,
.centre-ask > .map-frame {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
.price-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px 8px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.price-chart { display: flex; align-items: stretch; gap: 4px; height: 284px; padding-top: 28px; overflow: visible; }
.price-chart button {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  color: #1c2430;
}
.price-chart .bar-lock {
  writing-mode: horizontal-tb;
  align-self: center;
  position: static;
  transform: none;
  z-index: 3;
  margin: 0 0 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
  background: #4c1d95;
  border-radius: 4px;
  padding: 2px 3px;
}
.price-chart .bar-fill > .bar-lock {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
}
.price-chart .bar-picks .bar-lock {
  position: static;
  transform: none;
}
.price-chart .bar-fill {
  position: relative;
  display: block;
  width: 100%;
  background: #7c5cbf;
  border-radius: 7px 7px 2px 2px;
  min-height: 8px;
  overflow: visible;
}
.price-chart .bar-picks {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}
.price-chart .bar-pick {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #084635;
  background: #fff;
  border-radius: 4px;
  padding: 4px 1px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(28, 36, 48, 0.25);
}
.price-chart .bar-count {
  align-self: center;
  margin-top: 4px;
  writing-mode: horizontal-tb;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #4c1d95;
  border-radius: 999px;
  padding: 4px 7px;
  min-width: 1.5em;
  text-align: center;
}
.price-chart .bar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 84px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  color: #1c2430;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
}
.price-chart button.on .bar-fill,
.price-chart button.held .bar-fill,
.price-chart button:hover .bar-fill { background: #c4b5fd; box-shadow: inset 0 0 0 2px #4c1d95; }
.price-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 800; }
.price-board .fine { margin: 4px 0 0; }
.ask-notes h2 { margin: 22px 0 8px; font-size: 22px; }
.ask-notes ul { margin: 8px 0 0; padding-left: 18px; }
.ask-notes li { margin: 4px 0; }
.photo-frame { position: relative; display: block; width: 112px; height: 88px; }
.photo-frame img { width: 112px; height: 88px; object-fit: cover; border-radius: 10px; background: #e7e0d4; }
.photo-note { position: absolute; left: 4px; bottom: 4px; background: rgba(28, 25, 23, 0.72); color: #fff; font-size: 10px; border-radius: 6px; padding: 1px 5px; }
.found-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: transparent;
  vertical-align: middle;
}
.found-dot.on { background: #0e6b4f; }
.detail-photo { position: relative; display: inline-block; flex: none; }
.ai-button:hover { background: var(--green); }
.ai-button:disabled { opacity: 0.55; cursor: wait; }
.ai-note { color: #9a3412; font-size: 13px; font-weight: 650; }
.top-nav a, .text-button {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: none;
}
.top-nav a { border-bottom: 2px solid #b7d7cb; }
.top-nav a.ai-button,
.top-nav a.fields-button,
.start-pair a.ai-button,
.start-pair a.fields-button,
.ask-form button,
.search-button,
.role-choices button.picked,
.role-choices button:hover,
.mic-button.listening {
  color: #fff;
  border-bottom: 0;
}
.role-choices button {
  color: var(--ink);
  background: #fff;
  appearance: none;
}
.watch-button, .text-button {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.sponsors { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ad {
  text-align: left;
  border: 1px dashed #c8b89a;
  background: #fffaf2;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.ad strong { display: block; }
.ad small, .fine { color: var(--muted); font-weight: 500; line-height: 1.4; }
.ad-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a32;
  font-weight: 750;
}
.watch-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(440px, calc(100% - 24px));
  box-shadow: var(--shadow);
}
.watch-dialog form { padding: 18px; }
.watch-dialog h2 { font-family: Palatino, Georgia, serif; margin: 0 0 6px; }
.plan-list { border: 0; padding: 0; margin: 8px 0; }
.plan { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.plan small { display: block; color: var(--muted); }
.dialog-actions { display: flex; gap: 8px; align-items: center; }
.dialog-actions .text-button { width: auto; margin: 0; border: 0; background: transparent; }
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rate, .sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.rate h2, .sheet h2 { font-family: Palatino, Georgia, serif; margin: 0 0 6px; }
.sheet { margin-top: 16px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet th, .sheet td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .rate-grid { grid-template-columns: 1fr; } }

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 16px;
  padding: 0 16px 16px;
  height: calc(100vh - 104px);
  min-height: 560px;
}


.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 16px 16px;
  overflow: auto;
  box-shadow: var(--shadow);
}

fieldset {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
}
legend {
  font-family: Palatino, Georgia, serif;
  font-size: 18px;
  padding: 0;
  margin-bottom: 8px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 650;
}
input[type="text"], input[type="search"], select, input:not([type="range"]):not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 500;
}
select:focus, input:focus { outline: 2px solid #b7d7cb; border-color: var(--green); }

.city-field, .street-field { position: relative; }
.city-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
}
.city-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.city-menu button:hover, .city-menu button[aria-selected="true"] { background: #eef6f2; }
.city-menu small { color: var(--muted); font-weight: 500; }

.radius-field input { accent-color: var(--green); }
.radius-field span { display: flex; justify-content: space-between; }
output { font-weight: 700; color: var(--green-dark); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.segmented label {
  margin: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 13px;
  background: #fff;
}
.segmented input { margin-right: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.source-tools { display: flex; gap: 8px; }
.source-tools button, .back {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sources { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.source {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 12px;
  background: var(--chip);
}
.source input { margin-top: 3px; }
.source p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.source a { color: inherit; }
.source .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.source .count.error { color: #8d2d2d; font-weight: 600; white-space: normal; max-width: 120px; text-align: right; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

html:not(.show-map) .form-actions {
  position: fixed;
  z-index: 40;
  left: 16px;
  bottom: 16px;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
html:not(.show-map) .filters { padding-bottom: 148px; }
html:not(.show-map) .form-actions .search-button,
html:not(.show-map) .form-actions .watch-button { margin-top: 0; }

.search-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--green);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
.search-button:disabled { opacity: 0.65; cursor: progress; }
.search-button:hover:not(:disabled) { background: var(--green-dark); }
.form-status { min-height: 1.2em; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.list-pane, .map {
  min-height: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.list-pane { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#list-view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.results-bar { padding: 16px 16px 8px; }
.results-time {
  margin: 0 0 4px;
  font-weight: 750;
  color: var(--green-dark);
}
.results-sources { margin: 10px 0 0; }
.source-table {
  width: min(100%, 440px);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
}
.source-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.source-table th,
.source-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.source-table th {
  border-top: 0;
  background: #f4f0e8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}
.source-table tbody tr:first-child td { border-top: 0; }
.source-table tr:nth-child(even) td { background: #faf7f2; }
.source-mark { width: 36px; text-align: center; font-weight: 800; font-size: 15px; }
.source-used .source-mark { color: var(--green-dark); }
.source-miss .source-mark { color: #9a3412; }
.source-name { font-weight: 650; color: #1c2430; }
.source-count {
  text-align: right;
  white-space: nowrap;
  color: #1c2430;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.results-bar h2 {
  margin: 0;
  font-family: Palatino, Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.results-bar p { margin: 6px 0 0; color: var(--muted); }
.card-extra { display: block; margin-top: 6px; }
.card-extra[hidden] { display: none; }
.card-extra .also-on { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.card-toggle {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 750;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.detail-toggle {
  display: block;
  margin: 10px 0;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 750;
  cursor: pointer;
  min-height: 44px;
}
.detail-toggle[hidden] { display: none; }
.detail-extra { border-top: 1px dashed var(--line); padding-top: 10px; }
.cards { overflow: auto; flex: 1 1 auto; min-height: 0; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-radius { display: none; }
html.show-map .ai-radius { display: flex; }

.card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
}
.favorite-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.favorite-card .favorite-share { margin: 0 0 8px; max-width: 100%; }
.favorite-card .listing-url,
.visit-home .listing-url {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: unset;
}
.visit-home .visit-share { margin-top: 8px; }
.top-pick-chip {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 2px;
}
.card.has-top-pick { border-color: var(--green); }
.pick-link { font-weight: 750; }
.card.selected { border-color: var(--green); box-shadow: 0 0 0 2px #cfe5db; }
.card img, .photo-fallback {
  width: 112px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #e7e0d4;
}
.photo-fallback { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill {
  background: var(--chip);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
}
.empty {
  padding: 28px 12px;
  color: var(--muted);
}

#list-view[hidden],
.detail[hidden] { display: none !important; }
.detail {
  position: absolute;
  inset: 0;
  background: var(--paper);
  overflow: auto;
  padding: 0 16px 24px;
  z-index: 6;
}
.detail-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 -16px 12px;
  padding: 10px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.listing-share, .place-share {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}
.listing-share { flex: 1 1 160px; }
.listing-share .listing-url,
.place-share .listing-url {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--green-dark);
}
.listing-share .listing-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-share { flex-wrap: wrap; margin: 8px 0 4px; }
.place-share .listing-url { overflow-wrap: anywhere; }
.share-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  cursor: pointer;
  flex: none;
}
.detail-head .back,
.detail-head .favorite-toggle,
.detail-nav button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.favorite-toggle.on {
  background: #0e6b4f;
  color: #fff;
  border-color: #0e6b4f;
}
.detail-nav { display: flex; gap: 8px; margin-left: auto; }
.detail-nav button:disabled { opacity: 0.4; cursor: default; }
.detail-nav button { display: inline-flex; align-items: center; gap: 6px; }
.nav-arrow { display: inline-flex; align-items: center; }
.nav-arrow svg { display: block; }
.detail-count { color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
html.show-map .detail-head {
  top: var(--bar-h, 40px);
  scroll-margin-top: calc(var(--bar-h, 40px) + 12px);
  scroll-margin-bottom: calc(var(--bar-b, 72px) + 12px);
}
.detail-actions button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.detail-actions button:focus-visible,
.card-act:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[aria-busy="true"].share-link,
.card-share[aria-busy="true"],
#strip-share[aria-busy="true"] { opacity: 0.6; cursor: progress; }
#share-notice {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-b, 72px) + 20px);
  transform: translateX(-50%);
  z-index: 2200;
  max-width: min(420px, calc(100vw - 32px));
  width: max-content;
  margin: 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 18px rgba(28, 36, 48, 0.2);
}
#share-notice[hidden] { display: none; }
#share-link-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
#share-link-dialog::backdrop { background: rgba(28, 36, 48, 0.45); }
#share-link-dialog h2 { margin: 0 0 8px; }
.share-link-value { box-sizing: border-box; width: 100%; padding: 10px; font-size: 16px; resize: none; }
.share-link-status { font-size: 14px; color: var(--green-dark); }
.share-link-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.share-link-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; }
.pill.listing-no { color: var(--green); background: #e7f3ed; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  html.listing-open:not(.show-map) .detail {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: max(8px, env(safe-area-inset-top)) 16px 28px;
    border-radius: 0;
  }
}
.detail h2 { margin: 8px 0 4px; font-family: Palatino, Georgia, serif; font-size: 30px; letter-spacing: -0.03em; }
.band-others { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.band-others section + section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.band-others h3 { margin: 0; font-family: Palatino, Georgia, serif; font-size: 22px; letter-spacing: -0.02em; }
.band-others .cards { overflow: visible; flex: none; min-height: 0; padding: 10px 0 4px; }
.address { margin: 0; color: var(--muted); }
.also-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.detail-hero { display: grid; grid-template-columns: minmax(220px, 46%) 1fr; gap: 14px; align-items: start; margin: 12px 0; }
.detail-photos { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.detail-hero .main-photo { margin: 0; width: 100%; min-width: 0; overflow: hidden; }
.detail-hero .photo-frame { display: block; width: 100%; max-width: none; height: auto; }
.detail-hero .listing-gallery { display: flex; flex-direction: column; gap: 8px; }
.detail-hero .main-photo img,
.detail-hero .photo-frame img,
.detail-hero .listing-gallery img { width: 100%; max-width: none; height: 320px; object-fit: cover; border-radius: 12px; background: #e7e0d4; display: block; }
.detail-hero .main-photo.front-wait {
  display: grid;
  place-items: center;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: #e7e0d4;
  color: var(--muted);
  font-size: 14px;
}
.detail-hero figcaption { margin-top: 4px; font-size: 13px; font-weight: 750; }
.detail-copy .description { margin: 0 0 10px; }
.listing-outline { margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.listing-outline .outline-intro { margin: 0; color: #1c2430; }
.listing-outline section { border-radius: 12px; padding: 8px 10px 6px; }
.listing-outline h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: 0.02em; }
.listing-outline ul { margin: 0; padding-left: 1.15rem; }
.listing-outline li { margin: 3px 0; line-height: 1.4; }
.outline-home { background: #e7f2ea; color: #14532d; }
.outline-outdoors { background: #e7f0e4; color: #3f6212; }
.outline-place { background: #e7eef8; color: #1e3a8a; }
.nearby-places { margin: 12px 0; padding: 10px 12px; border-radius: 14px; }
.need-to-know { margin: 12px 0 16px; }
.need-to-know > h3 { margin: 0 0 8px; font-size: 16px; }
.nearby-places h3, .nearby-extra h3 { margin: 8px 0 4px; font-size: 14px; }
.nearby-places ul, .nearby-extra ul { margin: 0; padding-left: 1.15rem; }
.outline-money { background: #f8f1e0; color: #92400e; }
.outline-details { background: #f4f0e8; color: #1c2430; }
.city-roll, .listing-notes {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.city-roll h3, .listing-notes h3 { margin: 0 0 6px; font-size: 16px; }
.city-roll img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f0e8;
}
.city-roll .fine, .listing-notes .fine { color: var(--muted); font-size: 13px; }
.city-roll dl { margin: 8px 0; }
.listing-notes ul { margin: 0; padding-left: 1.15rem; }
.listing-notes li { margin: 8px 0; }
.listing-notes li p { margin: 0 0 2px; line-height: 1.45; }
.testimonials { margin: 12px 0 16px; }
.testimonials h3 { margin: 0 0 6px; font-size: 16px; }
.testimonials > .address { margin: 0 0 8px; }
.testimonial {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
}
.testimonial p { margin: 0 0 6px; line-height: 1.45; }
.testimonial-by, .testimonial-source { color: var(--muted); font-size: 13px; font-weight: 700; }
.testimonial-source a { color: var(--green); }
.buyer-review { margin: 12px 0 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.buyer-review h3 { margin: 0 0 6px; font-size: 16px; }
.buyer-review p, .buyer-review li { line-height: 1.45; }
a.pick-address { color: var(--green-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.pros-cons ul { margin: 0; padding-left: 18px; }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }
.guide .buyer-review { margin: 0 0 4px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.guide .testimonials { margin: 4px 0 12px; }
.guide .guide-assessment:empty { display: none; }
.guide { margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.guide h2, .guide h3 { margin: 10px 0 4px; font-size: 16px; }
.guide h2 { margin-top: 0; }
.guide p { margin: 0 0 8px; line-height: 1.45; }
.guide-status { color: var(--muted); font-weight: 700; }
html.listing-open #guide { display: none !important; }
.neighbor-views {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.neighbor-views figure.neighbor-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  min-width: 0;
}
.neighbor-views .look-notes {
  margin: 4px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.neighbor-views .look-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.neighbor-views .look-summary {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .neighbor-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.neighbor-views[data-neighbors="pending"] { display: block; }
.neighbor-pin-map,
.neighbor-pin-map.leaflet-container,
.neighbor-pin-map.leaflet-container.leaflet-touch-drag,
.neighbor-pin-map.leaflet-container.leaflet-touch-zoom,
.neighbor-pin-map.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  grid-column: 1 / -1;
  justify-self: start;
  width: calc(100% / 3);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e7e0d4;
  overflow: hidden;
  position: relative;
  z-index: 0;
  touch-action: pan-y;
  cursor: default;
}
.neighbor-views[data-neighbors="pending"] .neighbor-pin-map { margin-top: 10px; }
.street-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.street-wait-mark {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #d9d0c2;
  border-top-color: #0e6b4f;
  animation: street-wait-spin 0.9s linear infinite;
}
@keyframes street-wait-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .street-wait-mark { animation: none; }
}
.neighbor-views h3 { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.neighbor-views figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.neighbor-views figure img,
.neighbor-views .neighbor-slot {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #e7e0d4;
  display: block;
}
.neighbor-views .neighbor-card > div { padding: 6px 8px; border-radius: 8px; background: #fff; color: #000; }
.neighbor-views figcaption { margin: 0; color: #000; font-size: 13px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.neighbor-views .taken-date { display: block; margin-top: 3px; font-size: 12px; font-weight: 650; color: #000; }
.neighbor-views .aerial-shot { position: relative; display: block; }
.neighbor-views [data-enlarge] { cursor: zoom-in; }
.neighbor-views [data-enlarge]:hover { filter: brightness(1.06); }
.neighbor-views .aerial-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(16px, 16%, 28px);
  aspect-ratio: 24 / 35;
  height: auto;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(28, 36, 48, 0.55));
}
.neighbor-views .aerial-pin svg { display: block; width: 100%; height: 100%; }
.neighbor-views .aerial-city,
.neighbor-views .aerial-ref {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  max-width: min(180px, 92%);
}
.neighbor-views .aerial-city {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.neighbor-views .aerial-city.above { flex-direction: column-reverse; }
.neighbor-views .aerial-city svg {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 1px 2px #111);
}
.neighbor-views .aerial-city b,
.neighbor-views .aerial-ref b {
  display: block;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-align: center;
  overflow-wrap: break-word;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  color: #102018;
  background: rgba(255, 252, 247, 0.94);
  border-radius: 8px;
  padding: 3px 6px;
  box-shadow: 0 1px 2px rgba(16, 32, 24, 0.28);
}
.neighbor-views .aerial-ref { z-index: 2; text-align: center; }
.neighbor-views .aerial-ref i {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 1px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0e6b4f;
  box-shadow: 0 0 0 1px rgba(28, 36, 48, 0.25);
}
.neighbor-views .neighbor-pending .neighbor-slot { display: flex; align-items: center; justify-content: center; }
.photos { display: flex; gap: 8px; overflow: auto; margin: 12px 0; }
.photos img { height: 180px; width: auto; max-width: 280px; object-fit: cover; border-radius: 12px; background: #e7e0d4; }
.description { line-height: 1.5; }
.facts { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 10px; margin: 14px 0 20px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.original {
  display: inline-block;
  margin: 8px 0 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}
.leaflet-container { font-family: inherit; height: 100%; width: 100%; background: #d9e2dc; }
.pin-arrows {
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  overflow: hidden;
}
.pin-arrow {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  filter: drop-shadow(0 1px 2px rgba(28, 36, 48, 0.35));
  pointer-events: none;
}
.pin-arrow svg { display: block; width: 28px; height: 28px; }
.show-favorites {
  display: inline-flex;
  align-items: center;
  margin: 12px 0 4px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0e6b4f;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}
.new-search {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0e6b4f;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
.goto-favorites {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #084635;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
.rank-favorites {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #0e6b4f;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
.rank-favorites-count,
#rank-favorites-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  color: #084635;
  font-size: 14px;
  font-weight: 800;
}
.favorite-rank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
}
.favorite-rank .pick-place-rank {
  width: auto;
  height: auto;
  padding: 2px 8px;
  border-radius: 999px;
}
.float-nav {
  display: contents;
}
.float-nav button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: #084635;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
.float-nav button:disabled { opacity: 0.45; cursor: default; }
.tax-extra-note {
  margin: 4px 0 6px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}
.pick-price-note,
.pick-place-note {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid #b45309;
  background: #fff7ed;
  color: #1c2430;
  font-size: 14px;
  font-weight: 650;
}
.pick-notes { margin: 12px 0 4px; }
.sold-comps { margin: 8px 0 16px; }
.sold-comps h3 { margin: 8px 0 4px; }

.leaflet-tooltip.pin-balloon {
  background: #fffdf8;
  color: #1c2430;
  border: 1px solid #1c2430;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(40, 32, 18, 0.18);
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  white-space: normal;
  width: 242px;
  min-width: 242px;
  max-width: min(242px, calc(100vw - 20px));
  height: auto;
  max-height: min(280px, calc(100vh - 20px));
  overflow: hidden;
  align-self: flex-start;
  flex: none;
}
.leaflet-tooltip.pin-balloon.pin-balloon-fixed {
  position: fixed;
  z-index: 4500;
  margin: 0;
  pointer-events: auto;
  width: 242px;
  min-width: 242px;
  max-width: min(242px, calc(100vw - 20px));
  height: auto;
  max-height: min(280px, calc(100vh - 20px));
  align-self: flex-start;
  flex: none;
}
.leaflet-tooltip.pin-balloon.pin-balloon-fixed::before { display: none; }
.leaflet-tooltip.pin-balloon.pin-balloon-fixed::after {
  content: "";
  position: absolute;
  pointer-events: auto;
}
.leaflet-tooltip.pin-balloon.pin-balloon-fixed[data-side="top"]::after { left: 0; right: 0; top: 100%; height: 18px; }
.leaflet-tooltip.pin-balloon.pin-balloon-fixed[data-side="bottom"]::after { left: 0; right: 0; bottom: 100%; height: 18px; }
.leaflet-tooltip.pin-balloon.pin-balloon-fixed[data-side="left"]::after { top: 0; bottom: 0; left: 100%; width: 18px; }
.leaflet-tooltip.pin-balloon.pin-balloon-fixed[data-side="right"]::after { top: 0; bottom: 0; right: 100%; width: 18px; }
.pin-balloon-hit {
  display: block;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.leaflet-tooltip-top.pin-balloon::before { border-top-color: #1c2430; }
.pin-balloon-body { display: flex; flex-direction: column; gap: 3px; width: 220px; min-width: 220px; max-width: 220px; font-size: 13px; line-height: 1.35; overflow-wrap: break-word; }
.leaflet-tooltip.pin-balloon .balloon-photo,
.balloon-photo { width: 220px; height: 120px; max-width: 220px; max-height: 120px; object-fit: cover; border-radius: 10px; display: block; background: #efe8dc; }
.balloon-place {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.balloon-price { font-size: 16px; white-space: nowrap; }
.balloon-drop { color: #9a3412; font-weight: 750; }
.balloon-note { font-weight: 700; }
.balloon-source { color: #5d6878; }
.leaflet-div-icon.flag-badge,
.leaflet-div-icon.drop-badge,
.leaflet-div-icon.price-pin { background: transparent; border: 0; }
.leaflet-div-icon.flag-badge,
.leaflet-div-icon.drop-badge { pointer-events: none; }
.flag-badge span, .drop-badge span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: drop-pop 0.4s ease-out;
  white-space: nowrap;
}
.flag-alert span { background: #b91c1c; box-shadow: 0 4px 12px rgba(185, 28, 28, 0.55); }
.flag-warn span { background: #b45309; box-shadow: 0 4px 12px rgba(180, 83, 9, 0.5); }
.flag-drop span { background: #c2410c; box-shadow: 0 4px 12px rgba(194, 65, 12, 0.55); }
.drop-badge svg { width: 14px; height: 14px; display: block; }
.drop-badge em { font-style: normal; letter-spacing: 0.01em; }
.drop-badge strong { font-weight: 800; }
@keyframes drop-pop {
  from { transform: scale(0.7); }
  to { transform: scale(1); }
}
.alert-card, .alert-event { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert-card .dialog-actions button, .dialog-actions button { width: auto; }
.balloon-slides { position: relative; }
.balloon-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(28, 36, 48, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
}
.price-pin > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 4px;
  background: #fffdf8;
  color: #1c2430;
  border: 1px solid #1c2430;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(40, 32, 18, 0.2);
  cursor: pointer;
}
.price-pin > span.pin-drop {
  background: #c2410c;
  color: #fff;
  border-color: #9a3412;
}
.pin-drop-mark { display: inline-flex; align-items: center; gap: 1px; }
.pin-drop-mark svg { width: 12px; height: 12px; display: block; }
.pin-days { font-weight: 750; }

.price-drop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: #c2410c;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.35);
}
.price-drop small { display: block; font-weight: 650; opacity: 0.92; }
.drop-icon { width: 26px; height: 26px; flex: none; }
.sold-flag {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  color: #fff;
}
.sold-flag.under { background: #0e6b4f; }
.sold-flag.over { background: #9a3412; }
.sold-flag.ask { background: #1d4e89; }
.history { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.history th, .history td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.place-list { columns: 2; padding-left: 18px; margin: 8px 0 0; }
.place-list li { margin: 4px 0; break-inside: avoid; }
.place-list a { color: var(--green-dark); font-weight: 700; }
a.search-button.inline, a.watch-button.inline { width: auto; display: inline-block; text-decoration: none; margin-right: 8px; }
.site-foot { padding: 8px 28px calc(108px + env(safe-area-inset-bottom)); color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.site-foot a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.results-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.results-tools .slim { width: auto; margin: 0; border: 0; background: transparent; padding: 0; }
.sort-field { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sort-field select { width: auto; }
.results-note { color: var(--muted); font-size: 13px; }

textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 36px; gap: 8px; align-items: center; font-size: 14px; }
.bar .track { background: var(--chip); border-radius: 99px; height: 8px; }
.bar .fill { display: block; height: 8px; border-radius: 99px; background: var(--green); }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat strong { display: block; font-size: 26px; font-family: Palatino, Georgia, serif; }
.login-box { max-width: 420px; }
@media (max-width: 800px) {
  .admin-grid, .place-list { columns: 1; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .wordmark, .brand h1 { font-size: 26px; }
  .logo { width: 126px; height: 126px; }
  .centre-map { height: 240px; }
}

@media (max-width: 1100px) {
  .top { flex-direction: column; align-items: start; padding-bottom: 8px; }
  .layout, .workspace { grid-template-columns: 1fr; height: auto; }
  html:not(.show-map) .form-actions { left: 16px; right: 16px; width: auto; }
  html.show-map .map,
  html.show-map .map-column .map,
  html.show-map .map-frame .map {
    height: clamp(220px, calc(100vh - 560px), 320px);
    min-height: 220px;
  }
  html.show-map .map-column.popped .map { height: auto; min-height: 0; }
  html.show-map .list-pane { min-height: 0; }
  .detail-hero { grid-template-columns: 1fr; }
  .filters { max-height: none; }
  .list-pane { min-height: 480px; }
}

@media (min-width: 1101px) {
  html.show-map,
  html.show-map body {
    height: auto;
    overflow: visible;
  }
  html.show-map body {
    display: block;
  }
  html.show-map .top { flex: none; }
  html.show-map .site-spend,
  html.show-map #visit-flags { flex: none; }
  html.show-map .layout {
    flex: none;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  html.show-map .workspace {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  html.show-map .map-column {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  html.show-map #guide {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
  html.show-map .price-board {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
  html.show-map .map-frame {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }
  html.show-map .map,
  html.show-map .map-column .map,
  html.show-map .map-frame .map {
    flex: none;
    height: clamp(220px, calc(100vh - 640px), 480px);
    min-height: 220px;
    width: 100%;
  }
  html.show-map .map-column.popped .map {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }
  html.show-map .list-pane {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

.sold-comps { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sold-comps h3 { margin: 4px 0 8px; font-size: 16px; }
.sold-comps ul { margin: 0; padding: 0; list-style: none; }
.sold-comps li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--line); }
.sold-comps li span { flex: 1 1 auto; }
.sold-comps li small { color: var(--muted); }
.sold-comps a.sold-comp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prior-sale { font-weight: 700; margin: 2px 0 8px; }
.comps-median { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.pick-ranking, .pick-refs { margin-top: 8px; }
.pick-close-call { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--muted); font-size: 13px; font-style: italic; color: var(--muted); }
.pick-ranking h4, .pick-refs h4 { margin: 6px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.pick-ranking ul, .pick-refs ul { margin: 0; padding: 0; list-style: none; }
.pick-ranking li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pick-ranking .crit-num { flex: 0 0 auto; min-width: 1.4em; font-weight: 750; color: var(--green-dark); }
.pick-ranking .crit-label { flex: 1 1 auto; }
.pick-ranking .crit-score { font-weight: 750; }
.pick-ranking .crit-weight { color: var(--muted); min-width: 110px; text-align: right; }
.pick-ranking .crit-note { color: var(--muted); text-align: right; }
.pick-refs li { padding: 2px 0; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); }
.pick-refs a { color: var(--green-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }

.pick-runners { margin-top: 8px; }
.pick-runners h4 { margin: 6px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.pick-runners ul { margin: 0; padding: 0; list-style: none; }
.pick-runners li.runner-up { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pick-runners .runner-label { font-weight: 750; color: var(--green); }
.pick-runners li.runner-up small { flex-basis: 100%; color: var(--muted); }

.reveal-beyond { display: block; width: 100%; margin: 10px 0; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--green); font-weight: 700; }
.reveal-beyond:hover { border-color: var(--green); }

.signal-chip.signal-sold {
  background: #334155;
}
.sold-line {
  margin: -6px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.signal-chip {
  grid-column: 1 / -1;
  justify-self: start;
  background: #9a3412;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 2px;
}
.signal-chip.signal-bank_sale, .signal-chip.signal-judicial_sale { background: #b91c1c; }
.signal-chip.signal-below_assessment { background: #b45309; }

.top-pick-copy { margin: 0 0 10px; }
.top-pick-copy .card { border-color: var(--green); box-shadow: 0 0 0 2px #cfe5db; }
.picks-recap { margin-top: 18px; }
.pick-copies { padding: 0 0 4px; }
.pick-copies[hidden] { display: none !important; }
.picks-recap .band-heading { margin-top: 18px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.picks-recap .band-heading span:last-child { color: var(--muted); font-weight: 650; }

body:not(.favorites-view) .visit-report-open { display: none; }
html.band-picked.listing-open .list-pane { overflow: auto; }
html.band-picked.listing-open #list-view {
  display: flex !important;
  overflow: visible;
  flex: none;
  order: 2;
  height: auto;
}
html.band-picked.listing-open #detail {
  position: relative;
  inset: auto;
  z-index: 1;
  overflow: visible;
  flex: none;
  order: 1;
}

.band-heading {
  grid-column: 1 / -1;
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 4px;
}
.band-heading span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.pick-place-note { margin: 0 0 4px; color: var(--green); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

.pick-place-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-right: 4px;
}

.sources-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  vertical-align: middle;
  margin-left: 12px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  max-width: min(92vw, 720px);
  white-space: normal;
}
.sources-badge .runner-line,
.sources-badge-float .runner-line {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.sources-badge[hidden] { display: none; }

.sources-badge-float {
  position: fixed;
  z-index: 1090;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  color: #1c2430;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  width: min(92vw, 440px);
  max-height: min(70vh, 640px);
  overflow: auto;
  text-align: left;
  box-shadow: 0 8px 28px rgba(28, 36, 48, 0.28);
}
.sources-badge-float .won-line,
.sources-badge-float .runner-line {
  display: block;
  padding: 2px 14px;
  background: var(--green);
  color: #fff;
}
.sources-badge-float .won-line { padding-top: 10px; }
.sources-badge-float .source-table {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.sources-badge-float[hidden] { display: none; }

.flag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.flag-dot-human { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25); }
.flag-dot-bot { background: #dc2626; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25); }
.visit-flag .flag-dot { margin-right: 2px; }
.flag-place .flag-dot { margin-right: 6px; }

.business-banner {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #9a3412;
  color: #fff;
  font-weight: 750;
}

.thinking-coffee {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.thinking-coffee[hidden] { display: none; }
.waiting-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  max-width: 46ch;
}
.waiting-fact[hidden] { display: none; }
.waiting-fact .fact-art { flex: 0 0 auto; width: 34px; height: 34px; }
.waiting-fact .fact-art svg { width: 34px; height: 34px; display: block; }

.gear-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.tool-word, .feedback-word {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.gear-panel { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-width: 960px; width: min(960px, calc(100vw - 24px)); max-height: min(84vh, calc(100dvh - 24px)); overflow: auto; }
.gear-float-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 8;
  margin: 0 0 8px 12px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #084635;
  border-radius: 999px;
  background: #fff;
  color: #084635;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.22);
}
.gear-visitor { display: flex; flex-direction: column; gap: 2px; min-width: 8.5rem; font-size: 13px; line-height: 1.3; }
.gear-panel::backdrop { background: rgba(28, 36, 48, 0.45); }
.gear-login label { display: flex; flex-direction: column; gap: 4px; font-weight: 750; margin: 10px 0; }
.gear-login input { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 16px; }
.gear-error { color: #9a3412; font-weight: 700; min-height: 1.2em; }
.gear-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.gear-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gear-models { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 4px; }
.gear-models label { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; min-height: 44px; }
.gear-models input { width: 18px; height: 18px; accent-color: var(--green-dark); }
.gear-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 750; cursor: pointer; min-height: 44px; }
.gear-tabs button.picked { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.gear-tab { overflow: auto; max-height: 55vh; }
.gear-entry { border-top: 1px solid var(--line); padding: 8px 0; }
.gear-entry .gear-time { color: var(--green-dark); font-weight: 750; }
.gear-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gear-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; position: sticky; top: 0; background: #fffdf8; }
.gear-table td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 7px 8px; }
.gear-table td:nth-child(1) { white-space: nowrap; color: var(--green-dark); font-weight: 750; }
.gear-table td:nth-child(3) { max-width: 260px; }
.gear-table td span[title] { cursor: help; }
.gear-table td .gear-fine { display: block; margin-top: 2px; }
.gear-line { margin: 0 0 2px; font-size: 14px; }
.gear-fine { margin: 0; font-size: 13px; color: var(--muted); }
.gear-model { display: inline-block; margin: 0 8px 0 0; padding: 2px 8px; border-radius: 999px; background: var(--chip); }
.gear-model.won { background: #dcfce7; color: #166534; font-weight: 750; }
.gear-status { font-size: 13px; color: var(--muted); }
.gear-found-row { margin: 8px 0 4px; }
.gear-cal { max-width: 560px; }
.gear-day { max-width: 720px; }
.gear-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.gear-cal-nav button { min-height: 44px; }
.gear-cal-label { font-weight: 750; text-align: center; }
.gear-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.gear-cal-head { text-align: center; font-size: 11px; font-weight: 750; color: var(--muted); padding: 4px 0; }
.gear-cal-cell, .gear-cal-blank { min-height: 64px; border-radius: 10px; }
.gear-cal-blank { background: transparent; }
.gear-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  font: inherit;
}
.gear-cal-cell.has { cursor: pointer; }
.gear-cal-cell.has:hover { border-color: var(--green); }
.gear-cal-num { font-weight: 750; font-size: 14px; }
.gear-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.gear-cal-count { font-size: 11px; font-weight: 750; color: var(--green-dark); line-height: 1.1; }
.gear-day-body { overflow: auto; max-height: 60vh; }
@media (max-width: 700px) {
  .gear-cal-cell, .gear-cal-blank { min-height: 52px; }
  .gear-cal-num { font-size: 12px; }
  .gear-cal-count { font-size: 10px; }
}
.gear-tab textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 16px; margin: 8px 0; }
.gear-ask-row { display: flex; align-items: stretch; gap: 6px; width: 100%; }
.gear-ask-row textarea { flex: 1 1 auto; min-width: 0; margin: 8px 0; }
.gear-history { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 0 0 auto; }
.gear-history button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
}
.gear-history button:disabled { opacity: 0.35; cursor: default; }
.gear-history svg { width: 16px; height: 16px; display: block; }
.gear-answer { white-space: pre-wrap; font-size: 14px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.model-note { margin: 6px 0 0; font-size: 13px; font-weight: 750; color: var(--green-dark); white-space: pre-line; }
.model-status { min-height: 1.2em; margin: 4px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }


#ai-lips,
#lip-preview {
  display: none !important;
}
/* Phones come first: the ask box should lead the first screen, every tap
   target should carry a thumb, and desktop-only controls step aside. */
@media (max-width: 700px) {
  #site-spend { display: none; }
  .brand-desc { display: none; }
  .top { padding-top: 6px; padding-bottom: 6px; gap: 6px; }
  .logo { width: 108px; height: 108px; }
  .brand .wordmark, .brand h1 { font-size: 22px; }
  .cine-link { display: inline-flex; align-items: center; padding: 10px 2px; }
  .cine-link img { height: 22px; }
  .top-nav { gap: 6px; }
  .top-nav a, .top-nav select, .top-nav .mic-button, .top-nav .share-site, #mute-button, #lang-pick { min-height: 44px; }

  .ask { padding: 4px 12px 40px; }
  .ask-page .version { display: inline-block; font-size: 11px; padding: 1px 6px; vertical-align: middle; }
  .ask-page .goto-favorites { display: none; }
  .ask-form .prompt-history button[disabled] { display: none; }
  .ask-form .prompt-box { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .prompt-top { order: 2; }
  .prompt-top > button { width: 100%; }
  .prompt-size { display: none; }
  #ai-lips { display: none; }
  .ask-label-row .mic-button, .mic-button { min-height: 44px; }
  .ask-form .prompt-history button { width: 44px; min-height: 44px; }

  .ask-page .new-search { display: inline-flex; }
  .action-bar .action-btn { min-height: 44px; }
  #action-sheet .sheet-group > * { min-height: 48px; }
  .show-favorites { display: inline-flex; align-items: center; min-height: 44px; }

  .ask-examples button { font-size: 13px; padding: 8px 12px; min-height: 40px; color: var(--green-dark); }
  .choice-list button,
  .role-choices button, .asked-furnish button, .asked-age button,
  .voice-actions button { min-height: 44px; }
}

@media (max-width: 500px) {
  header.top .brand { grid-template-columns: minmax(0, 1fr); row-gap: 8px; justify-items: start; }
  header.top .brand .logo { grid-column: 1; grid-row: 1; }
  header.top .brand .wordmark { grid-column: 1; grid-row: 2; align-self: center; }
  header.top .brand .brand-desc { grid-column: 1; grid-row: 3; }
}

.favorite-rank-score {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.visit-report-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  z-index: 1400;
  top: calc(max(16px, env(safe-area-inset-top)) + 174px);
  right: max(12px, env(safe-area-inset-right));
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #084635;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
#visit-report {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: auto;
  background: #fffdf8;
  color: #1c2430;
  padding: 24px 20px 64px;
}
.visit-report-sheet { max-width: 800px; margin: 0 auto; }
.visit-report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.visit-report-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 750;
  cursor: pointer;
}
.visit-brand { margin: 0; color: #0e6b4f; font-weight: 750; letter-spacing: 0.02em; }
.visit-title { margin: 4px 0; font-size: 32px; }
.visit-date, .visit-lead, .visit-map-note { margin: 0 0 8px; color: var(--muted); }
.visit-map {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 0;
  background: #e7e0d4;
}
.visit-pin-wrap { background: none; border: 0; }
.visit-pin, .visit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0e6b4f;
  color: #fff;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(28, 36, 48, 0.35);
}
.visit-home {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
.visit-home img, .visit-photo-fallback {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #e7e0d4;
}
.visit-home h2 { margin: 0 0 4px; font-size: 20px; }
.visit-price { margin: 0; font-weight: 750; }
.visit-place, .visit-meta, .visit-missing { margin: 4px 0; color: var(--muted); }
.visit-contact { display: grid; gap: 4px; margin: 8px 0; }
.visit-contact div { display: flex; gap: 8px; }
.visit-contact dt { font-weight: 750; }
.visit-contact dd { margin: 0; }
.visit-link { margin: 8px 0 0; }
@media (max-width: 700px) {
  .visit-home { grid-template-columns: 1fr; }
  .visit-home img, .visit-photo-fallback { width: 100%; height: 180px; }
}
@media print {
  body.showing-report > *:not(#visit-report) { display: none !important; }
  body.showing-report #visit-report {
    display: block !important;
    position: static;
    overflow: visible;
    height: auto;
    background: #fff;
    padding: 0;
  }
  .visit-report-actions { display: none !important; }
  .visit-map { height: 240px; break-inside: avoid; }
  .visit-pin, .visit-num { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.original-actions { margin: 8px 0 16px; }
button.original-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  min-height: 44px;
  padding: 8px 2px;
}
.original-listing {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
}
.original-listing[hidden] { display: none !important; }
.original-listing > h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: 0;
}
.original-listing h4 { margin: 8px 0 4px; font-size: 14px; }
.original-listing .facts { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 10px; margin: 8px 0; }
.original-listing .facts dt { color: var(--muted); font-size: 13px; }
.original-listing .facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }

.promo-links { display: flex; align-items: center; gap: 12px; }
.promo-links img { height: 32px; display: block; }
.oap-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 220px;
  padding: 0;
  text-decoration: none;
  color: var(--green-dark);
  text-align: center;
}
.oap-shot {
  display: block;
  width: 168px;
  height: 118px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #c8b89a;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.22);
}
.promo-links .oap-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.oap-kicker {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}
.oap-pitch {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}
.promo-links img.oap-item {
  width: 205px;
  max-width: none;
  height: auto;
  margin: -43px 0 0 -18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.gear-attach-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.gear-attach {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 750;
  color: var(--green-dark);
  cursor: pointer;
}
.gear-attach:hover { border-color: var(--green); }
@media (max-width: 700px) {
  .promo-links img { height: 22px; }
  .promo-links { gap: 8px; }
  .oap-link { max-width: 200px; }
  .oap-shot { width: 140px; height: 98px; }
  .oap-kicker { font-size: 18px; }
  .oap-pitch { font-size: 15px; }
  .promo-links img.oap-item { width: 171px; height: auto; margin: -36px 0 0 -15px; }
}


.feedback-pop {
  display: block;
  padding: 0 0 0.4rem;
}

.feedback-pop h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.feedback-pop p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }

.feedback-pop label { display: block; margin: 0 0 0.7rem; font-size: 0.95rem; font-weight: 700; }

.feedback-pop textarea,
.feedback-pop input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.feedback-pop textarea { min-height: 7rem; resize: vertical; }

.feedback-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

.feedback-pop button[type="submit"],
.feedback-cancel {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
}

.feedback-pop button[type="submit"] {
  background: var(--green);
  color: #fff;
}

.feedback-cancel { background: transparent; color: var(--ink); }

.feedback-status { min-height: 1.3rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .action-bar { transition: none; }
}

/* Top action panel, in the style of a store app: a strip under the header
   that swipes sideways, buttons that open a sheet menu, and a vertical
   swipe that shows or hides the strip. */
.action-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1350;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 4px 8px;
  background: var(--paper, #f7f5ef);
  border-bottom: 1px solid var(--line);
}
.action-bar .action-strip {
  min-height: 0;
  align-items: center;
}
.action-bar .action-btn,
.action-bar .action-strip button,
.action-bar .action-strip a,
.action-bar .action-strip label {
  height: 30px !important;
  min-height: 30px !important;
  margin: 0;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  line-height: 1;
  gap: 4px;
  border-radius: 9px;
  white-space: nowrap;
}
.action-bar .action-strip select {
  height: 30px;
  font-size: 12.5px;
}
/* The docked bottom toolbar: a tight button matrix flush with the bottom
   edge. Grid cells reflow as context buttons appear and drop out, so the
   matrix is always compact. */
#action-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1340;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 3px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(28, 36, 48, 0.14);
  padding: 5px 5px calc(5px + env(safe-area-inset-bottom, 0px));
}
#action-bottom > div,
#action-bottom > span {
  display: contents;
}
/* One uniform matrix: every cell the same tight size, no matter whether
   it is a button, link, label, or select. */
#action-bottom button,
#action-bottom a,
#action-bottom label,
#action-bottom .action-btn {
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 2px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12.5px;
  line-height: 1;
  gap: 4px;
  border-radius: 9px;
  white-space: nowrap;
  overflow: visible;
}
#action-bottom .lang-in-strip,
#action-bottom .currency-field {
  display: flex;
}
#action-bottom select,
#action-bottom .mute-button {
  height: 30px !important;
  min-height: 30px;
}
#action-bottom .lang-in-strip select,
#action-bottom .currency-field select {
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 2px;
  font-size: 12.5px;
  text-align: center;
  text-align-last: center;
}
#action-bottom .similar-menu {
  position: fixed;
  bottom: calc(var(--bar-b, 120px) + 6px);
  top: auto;
}
body { padding-bottom: var(--bar-b, 120px); }
.action-bar .action-strip {
  flex-wrap: nowrap;
  overflow-x: visible;
  scroll-snap-type: none;
  row-gap: 3px;
}
.action-row2 .lang-field select, .action-row2 .currency-field select {
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}
.asked-role.awaiting-pick button {
  animation: side-pick-pulse 1.6s ease-in-out infinite;
}
.side-hint {
  font-weight: 750;
  color: #084635;
}
@keyframes side-pick-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14, 107, 79, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(14, 107, 79, 0); }
}
.parsed-fields {
  margin: 4px 0 2px;
}
.parsed-fields p {
  margin: 2px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.parsed-fields b {
  font-weight: 800;
}
.centre-location {
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
}
.action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1px 1px 2px;
}
.action-strip::-webkit-scrollbar { display: none; }
.action-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.14);
}
.action-btn:active { transform: scale(0.97); }
.action-mark { font-size: 17px; line-height: 1; }
.action-ask { background: #0e6b4f; border-color: #0e6b4f; color: #fff; }
.action-hint {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0.85;
}
.action-bar .sources-badge-float {
  flex: 0 0 auto;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The sheet a panel button opens. */
#action-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 calc(14px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(28, 36, 48, 0.22);
}
#action-sheet::backdrop {
  background: rgba(15, 23, 32, 0.45);
}
.action-sheet-wrap { padding: 0 14px; }
.action-sheet-grip {
  width: 44px;
  height: 5px;
  margin: 8px auto 6px;
  border-radius: 999px;
  background: rgba(28, 36, 48, 0.18);
}
.action-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}
.action-sheet-title { margin: 0; font-size: 17px; font-weight: 800; }
.action-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 36, 48, 0.08);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.action-sheet-body { display: block; }
.sheet-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}
.sheet-group[hidden] { display: none; }
#action-sheet .new-search,
#action-sheet .goto-favorites,
#action-sheet .rank-favorites,
#action-sheet .visit-report-open,
#action-sheet .to-top-float,
#action-sheet .float-nav button {
  position: static;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  box-shadow: none;
}
#action-sheet .float-nav { display: contents; }
#action-sheet .to-top-float { display: flex; background: #f2f0e9; color: var(--ink); }
#action-sheet .rank-favorites-count { margin-left: auto; }
@media (max-width: 1100px) {
  .action-bar { padding: 6px 8px 4px; }
  .action-hint { display: none; }
}

/* Strip buttons that wait for a search stay visibly waiting. */
.action-strip .action-btn:disabled,
.action-strip button:disabled {
  opacity: 0.45;
  cursor: default;
}
.action-strip a.new-search {
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  padding: 10px 16px;
}

/* Re-centre and Fit sit side by side at the top of the map. */
.map-topbar {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  margin: 0;
}
.map-topbar .map-recenter {
  position: static;
  transform: none;
  writing-mode: horizontal-tb;
  border-radius: 0 0 12px 12px;
  padding: 6px 14px;
}
.map-topbar .map-recenter.map-fit {
  border-radius: 0 0 12px 12px;
  margin-left: 6px;
}
.map-topbar.at-left,
.map-topbar.at-right {
  flex-direction: column;
  transform: translateY(-50%);
}
.map-topbar.at-left .map-recenter,
.map-topbar.at-right .map-recenter {
  border-radius: 0 12px 12px 0;
}
.map-topbar.at-left .map-recenter,
.map-topbar.at-right .map-recenter,
.map-topbar.at-bottom .map-recenter {
  writing-mode: horizontal-tb;
  padding: 6px 14px;
}
.map-topbar.at-left .map-recenter.map-fit,
.map-topbar.at-right .map-recenter.map-fit {
  margin-left: 0;
  margin-top: 6px;
}

.action-btn.added-flash {
  background: #0e6b4f;
  color: #fff;
  border-color: #0e6b4f;
}

/* Hidden strip buttons announce themselves: a fade and an arrow each side. */
.action-strip { position: relative; user-select: none; }
.action-strip.more-left::before,
.action-strip.more-right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 30px;
  z-index: 1;
  pointer-events: none;
}
.action-strip.more-left::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper, #f7f5ef) 20%, rgba(247, 245, 239, 0));
}
.action-strip.more-right::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper, #f7f5ef) 20%, rgba(247, 245, 239, 0));
}
.strip-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 13px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.18);
  padding: 0;
}
.strip-chevron-left { left: 2px; }
.strip-chevron-right { right: 2px; }
.action-strip.more-left ~ .strip-chevron-left,
.action-strip.more-right ~ .strip-chevron-right {
  display: inline-flex;
  color: #fff;
  background: #000;
  border-color: #000;
  animation: strip-chevron-flash 0.7s steps(2, end) infinite;
}
@keyframes strip-chevron-flash {
  0%, 49% { color: #fff; background: #000; }
  50%, 100% { color: #000; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .action-strip.more-left ~ .strip-chevron-left,
  .action-strip.more-right ~ .strip-chevron-right { animation: none; }
}

/* Per-card quick acts: favourite (the shopping list) and share. */
.card { position: relative; }
.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.card-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.22);
}
.card-act:hover { border-color: var(--green); color: var(--green-dark); }
.card-act.card-fav.on {
  background: #0e6b4f;
  border-color: #0e6b4f;
  color: #fff;
}
.card-act.copied {
  background: #0e6b4f;
  border-color: #0e6b4f;
  color: #fff;
}

.listing-contact {
  margin: 10px 0 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.listing-contact div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 3px 0;
}
.listing-contact dt {
  min-width: 90px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.listing-contact dd { margin: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }

/* Find-similar pull-down on the detail head. */
.similar-wrap { position: relative; display: inline-flex; margin-left: 8px; }
.similar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}
.similar-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(28, 36, 48, 0.22);
}
.similar-menu button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.similar-menu button:hover { background: #eef4f0; }

/* The pull-down stays shut until the button is clicked. */
.similar-menu[hidden] { display: none; }
.similar-menu {
  top: calc(100% + 6px);
  left: auto;
  right: 0;
}

/* The listing navigation lives in one tray row beside the counter, out of
   the listing body itself. */
.tray-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
}
.tray-actions .back,
.tray-actions .listing-share,
.tray-actions [data-action="favorite"] {
  margin: 0;
}
.tray-actions .detail-nav { margin: 0; }

/* Detail acts in the strip: shown only while a listing is open. */
.action-detail-acts { display: inline-flex; gap: 8px; align-items: center; }
.action-strip .similar-wrap { position: relative; display: inline-flex; }
.action-strip .similar-menu { position: absolute; top: calc(100% + 6px); right: 0; }

/* The fixed banner sits over the page; the page clears it. */
header.top { margin-top: var(--bar-h, 104px); }
body > .action-bar + * { margin-top: 0; }

/* The strip pull-downs open over the listings below the bar. */
.action-strip .similar-menu {
  position: fixed;
  top: var(--bar-h, 104px);
  right: 10px;
  left: auto;
}
.action-sheet .similar-menu { position: absolute; }

/* Chevrons centre on the fixed-height strip. */
.strip-chevron { top: 50%; }

/* Buttons that don't apply to this page never show. */
.action-strip .not-here,
.action-strip button.not-here,
.action-strip a.not-here,
.action-bar [disabled],
.action-bar [aria-disabled="true"] {
  display: none !important;
}

/* Language, currency, voice picks inside the strip stay compact. */
.action-strip .lang-in-strip select,
.action-strip .currency-in-strip select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 8px 10px;
  height: 44px;
  cursor: pointer;
}
.action-strip .lang-in-strip,
.action-strip .currency-in-strip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.action-strip .mute-button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.action-strip .mic-button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

/* The Search (ASK AI) chip parks at the far right. */
.action-strip { justify-content: flex-start; }
.action-strip .strip-search {
  margin-left: auto;
  background: #0e6b4f;
  border-color: #0e6b4f;
  color: #fff;
  flex: 0 0 auto;
}

/* The flags strip sits under the fixed banner. */
.visit-flags {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 1340;
  background: var(--paper, #f7f5ef);
  border-bottom: 1px solid var(--line);
  padding: 6px 12px;
  margin: 0;
  max-height: 34px;
  overflow: hidden;
}
.visit-flags[hidden] { display: none; }

/* The tray stays fixed through all page scrolling (it already is; this
   guarantees it on top of every stacking context the page creates). */
.action-bar {
  position: fixed !important;
  top: 0 !important;
  transform: none !important;
}

/* The strip locks to its row: only left-right panning, never vertical
   drag or page scroll from a touch on the buttons. */
.action-strip {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.action-bar {
  touch-action: pan-x;
}

/* The map frame stays clean: no tools bar, no zoom, no search, no chips. */
.map-tools { display: none; }
.map-frame { padding: 0; border: 0; }

/* All map-internal controls are hidden by CSS; they live in the strip. */
.map-tools, .map-views, .map-zoom, .map-find, .map-topbar { display: none !important; }

/* Each published note sits on its own line with breathing room. */
.listing-notes h3 { margin: 0 0 10px; }
.listing-notes li { margin: 0 0 10px; }
.listing-notes li p:first-child { margin: 0 0 4px; }


/* Phone bottom bar matches the OldNouveau dock: one flush row, no gaps. */
@media (max-width: 760px) {
  #action-bottom {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: #faf9f5f7;
    backdrop-filter: blur(12px);
    box-shadow: none;
    border-top: 1px solid var(--line);
  }
  #action-bottom > div,
  #action-bottom > span {
    display: contents;
  }
  #action-bottom {
    gap: 3px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  #action-bottom button,
  #action-bottom a,
  #action-bottom label,
  #action-bottom .action-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0 4px;
    gap: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: none;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #action-bottom .action-mark {
    font-size: 20px;
    line-height: 22px;
  }
  #action-bottom select,
  #action-bottom .lang-in-strip select,
  #action-bottom .currency-field select,
  #action-bottom .mute-button {
    width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 750;
    text-align: center;
    text-align-last: center;
  }
  #action-bottom .similar-menu {
    position: fixed;
  }
  .action-bar {
    overflow: hidden;
  }
  .action-bar .action-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  #action-bottom button,
  #action-bottom a,
  #action-bottom label,
  #action-bottom .action-btn {
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Result row matches the landing top buttons. The extra bottom Share is hidden. */
.detail-head {
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.detail-head .detail-count,
.detail-head .favorite-toggle,
.detail-head .share-link,
.detail-actions button {
  height: 30px !important;
  min-height: 30px !important;
  margin: 0;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.14);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.detail-head .detail-count {
  color: var(--ink);
}
.detail-head .favorite-toggle.on {
  background: #0e6b4f;
  color: #fff;
  border-color: #0e6b4f;
}
#action-bottom #strip-share {
  display: none !important;
}


a.new-search.search-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: calc(var(--bar-h, 40px) + 8px);
  transform: none;
  z-index: 1360;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0e6b4f;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(28, 36, 48, 0.28);
}
header.top {
  margin-top: calc(var(--bar-h, 40px) + 58px);
}
#visit-flags {
  top: calc(var(--bar-h, 40px) + 58px);
}

html.show-map a.new-search.search-float {
  display: inline-flex !important;
  visibility: visible !important;
}
