:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #66706b;
  --line: #d9ded9;
  --panel: #ffffff;
  --field: #f7f8f5;
  --green: #176b4d;
  --blue: #245b9c;
  --gold: #b56b19;
  --rose: #a43f5f;
  --shadow: 0 18px 46px rgba(31, 43, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #eef1ed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

main.lean {
  max-width: 100%;
  min-width: 0;
  padding: 12px clamp(14px, 4vw, 56px) 48px;
  overflow-x: hidden;
}

.browse,
.netflix-rows,
.rail,
.rail-shell,
.search-panel {
  max-width: 100%;
  min-width: 0;
}

button,
input,
select {
  font: inherit;
}

.topbar.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  min-height: auto;
  padding: 22px clamp(14px, 4vw, 40px) 18px;
  background:
    linear-gradient(120deg, rgba(247, 250, 247, 0.94), rgba(238, 244, 240, 0.88)),
    url("images/categories/hero.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.topbar.compact h1 {
  font-size: clamp(26px, 5vw, 40px);
}

.topbar.compact .hero-copy {
  margin-top: 10px;
  font-size: 15px;
}

.topbar.compact .hero-ctas {
  margin-top: 0;
}

.primary-deals {
  margin-top: 12px;
}

.browse {
  margin-top: 12px;
}

.netflix-rows {
  display: grid;
  gap: 22px;
}

.rail-heading {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.88), rgba(23, 33, 29, 0.35)),
    var(--cover) center/cover no-repeat;
  color: #fff;
}

.rail-heading h3 {
  margin: 0;
  font-size: 20px;
}

.rail-heading p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.rail-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.rail-page {
  min-width: 64px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.rail-arrow {
  width: 40px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.rail-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.36);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.rail-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.rail-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.rail-track {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 48px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-side {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.18);
  transform: translateY(-60%);
  font-size: 26px;
  line-height: 1;
}

.rail-side-prev {
  left: 6px;
}

.rail-side-next {
  right: 6px;
}

.rail-side:hover:not(:disabled) {
  background: #fff;
  color: var(--green);
  border-color: rgba(23, 107, 77, 0.35);
}

.rail-side:disabled {
  opacity: 0;
  pointer-events: none;
}

.rail.at-start .rail-fade-left,
.rail.at-end .rail-fade-right {
  opacity: 0;
}

.rail-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rail-track.is-dragging .poster-card {
  cursor: grabbing;
}

.rail-track:focus-visible {
  outline: 3px solid rgba(36, 91, 156, 0.35);
  outline-offset: 2px;
}

.rail-fade {
  position: absolute;
  top: 0;
  bottom: 14px;
  z-index: 2;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rail-fade-left {
  left: 0;
  background: linear-gradient(90deg, #eef1ed 20%, transparent);
}

.rail-fade-right {
  right: 0;
  background: linear-gradient(270deg, #eef1ed 20%, transparent);
}

.rail:not(.at-start) .rail-fade-left,
.rail:not(.at-end) .rail-fade-right {
  opacity: 1;
}

.rail-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7ddd8;
}

.rail-progress span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.12s ease;
}

.poster-card {
  display: flex;
  flex: 0 0 auto;
  width: clamp(168px, 28vw, 220px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111814;
  color: #fff;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.16);
}

.poster-card:hover {
  border-color: #7bb896;
  color: #fff;
  transform: translateY(-2px);
}

.poster-art {
  position: relative;
  display: block;
  width: 100%;
  height: 132px;
  overflow: hidden;
  background: #24352c var(--cover) center/cover no-repeat;
}

.poster-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.poster-logo {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  object-fit: contain;
  pointer-events: none;
}

.poster-initials {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-weight: 850;
}

.poster-body {
  display: grid;
  gap: 4px;
  padding: 10px 11px 12px;
  pointer-events: none;
}

.poster-body strong {
  font-size: 14px;
  line-height: 1.25;
}

.poster-body span,
.poster-body em {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}

@media (min-width: 900px) {
  .poster-card {
    width: 240px;
  }

  .poster-art {
    height: 150px;
  }
}

.primary-deals .showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-results {
  margin-top: 14px;
}

.more-tools {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.more-tools summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--muted);
}

.more-tools[open] summary {
  margin-bottom: 12px;
  color: var(--ink);
}

.compact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-form input {
  flex: 1 1 140px;
  min-height: 40px;
}

.compact-form button {
  min-height: 40px;
  padding: 0 14px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.foot-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.showcase-card {
  min-height: 150px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: #4e5d56;
  font-size: 18px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.hero-ctas button {
  min-height: 44px;
  padding: 0 16px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.hero-ctas button:hover {
  background: #0f543b;
  color: #fff;
}

.hero-secondary {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.value-board {
  display: grid;
  gap: 10px;
}

.value-board article {
  padding: 12px 13px;
  border: 1px solid rgba(23, 107, 77, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(31, 43, 37, 0.08);
}

.value-board strong,
.value-board span {
  display: block;
}

.value-board strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.value-board span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  display: none;
}

.stats {
  min-width: 142px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  text-align: right;
}

.stats span {
  display: block;
  font-size: 27px;
  font-weight: 800;
}

.stats small {
  color: var(--muted);
}

main {
  padding: 18px clamp(14px, 4vw, 56px) 48px;
}

.search-panel,
.filters,
.summary,
.deal-showcase,
.buy-path,
.signal-panel,
.save-strip,
.feedback-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.save-strip {
  margin-bottom: 16px;
  padding: 16px;
}

.save-strip h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.save-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.save-grid strong,
.save-grid p {
  display: block;
}

.save-grid strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.save-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.benchmark-highlight {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8ee;
  border: 1px solid rgba(181, 107, 25, 0.28);
  color: #6f3d0e;
  font-size: 14px;
}

.benchmark-highlight em {
  font-style: normal;
  font-weight: 850;
}

.benchmark-highlight .bench-meta {
  display: block;
  margin-top: 4px;
  color: #8a5a28;
  font-size: 12px;
}

.price-strip {
  margin: 8px 0 18px;
}

.price-strip-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 210px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.price-chip {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-align: left;
  scroll-snap-align: start;
  cursor: default;
}

button.price-chip {
  cursor: pointer;
  font: inherit;
}

.price-chip.benchmark {
  background: #fff8ee;
  border-color: rgba(181, 107, 25, 0.28);
}

.price-chip.observed {
  background: #f3faf6;
  border-color: rgba(23, 107, 77, 0.22);
}

.price-chip-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-chip strong {
  font-size: 22px;
  font-weight: 850;
}

.price-chip span,
.price-chip em {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.price-chip em {
  color: var(--muted);
  font-style: normal;
}

.poster-price {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.profile-prices,
.profile-benchmarks,
.affiliate-box {
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--field);
}

.profile-prices ul,
.profile-benchmarks ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.profile-prices li,
.profile-benchmarks li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2px 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.profile-prices li span,
.profile-benchmarks li span {
  font-weight: 800;
}

.profile-prices li em,
.profile-benchmarks li em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.muted-block p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-box {
  background: #f4f7fb;
  border: 1px solid rgba(36, 91, 156, 0.18);
}

.affiliate-box p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.affiliate-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #c8d0ca;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.affiliate-disclosure {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
}

.feedback-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feedback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.buy-path {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.buy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.buy-steps li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.buy-steps li.active {
  border-color: rgba(36, 91, 156, 0.45);
  background: #f3f7fc;
  box-shadow: inset 0 0 0 1px rgba(36, 91, 156, 0.12);
}

.buy-steps li.done {
  border-color: rgba(23, 107, 77, 0.35);
  background: #f3faf6;
}

.buy-steps strong,
.buy-steps span {
  display: block;
}

.buy-steps strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.buy-steps span {
  color: var(--muted);
  font-size: 13px;
}

.buy-path-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
}

.signal-copy h2,
.mini-form h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.signal-copy p,
.mini-form .muted,
.bench-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.signal-form,
.mini-form {
  display: grid;
  gap: 10px;
}

.signal-form {
  grid-template-columns: 1fr 1fr;
}

.signal-full,
.signal-actions {
  grid-column: 1 / -1;
}

.signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.signal-actions button,
.actions .primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.signal-actions button:hover,
.actions .primary-action:hover {
  background: #0f543b;
  color: #fff;
  border-color: #0f543b;
}

.form-status {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.buy-hint {
  margin: 0 0 4px;
  color: #375147;
  font-size: 12px;
  font-weight: 700;
}

.buy-checklist {
  margin: 14px 0 0;
  padding: 12px 12px 12px 30px;
  border-radius: 8px;
  background: #f3f7fc;
  color: #24384f;
}

.buy-checklist li + li {
  margin-top: 6px;
}

.request-box strong {
  display: block;
  margin-bottom: 8px;
}

.request-box p {
  margin: 0 0 8px;
}

.profile-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mini-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.search-panel {
  padding: 16px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 7px;
  color: #33413a;
  font-size: 13px;
  font-weight: 750;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd2cc;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 3px solid rgba(36, 91, 156, 0.18);
  border-color: var(--blue);
}

button {
  min-height: 40px;
  border: 1px solid #c8d0ca;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.location-row button {
  padding: 0 14px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.location-row button:hover {
  background: #0f543b;
  color: #fff;
}

#locationStatus,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.quick-searches button,
.pill {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.deal-showcase {
  margin-top: 16px;
  padding: 14px;
}

.showcase-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.showcase-heading h2 {
  margin: 0;
  font-size: 22px;
}

.showcase-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.showcase-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  border-color: #bdd7c4;
  background: #f7fcf8;
  text-align: left;
}

.showcase-card:disabled {
  cursor: default;
  opacity: 1;
}

.showcase-card strong,
.showcase-card span,
.showcase-card em,
.showcase-card small {
  display: block;
}

.showcase-card strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.showcase-card span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.showcase-card em {
  margin-top: 8px;
  color: #375147;
  font-size: 12px;
  font-style: normal;
}

.showcase-card small {
  margin-top: auto;
  padding-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.showcase-kind {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8f4ec;
  color: var(--green) !important;
  font-weight: 850;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 22px 0 0;
  padding: 0 11px;
  border: 1px solid #cbd2cc;
  border-radius: 8px;
  background: var(--field);
}

.toggle input {
  width: 18px;
  min-height: 18px;
}

.content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.explore {
  min-width: 0;
}

.summary {
  position: sticky;
  top: 16px;
  padding: 16px;
}

.summary h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.summary p {
  margin: 0 0 14px;
  color: var(--muted);
}

.summary h2 + #offerSummary {
  margin-bottom: 18px;
}

.offer {
  display: block;
  width: 100%;
  min-height: auto;
  margin: 8px 0;
  padding: 10px;
  border-color: #e1cdb6;
  background: #fffaf3;
  text-align: left;
}

.price-ref {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #c9d7e8;
  border-radius: 8px;
  background: #f5f9ff;
}

.price-ref strong,
.price-ref span {
  display: block;
}

.price-ref strong {
  color: #214d83;
  font-size: 13px;
}

.price-ref span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.offer strong,
.offer span {
  display: block;
}

.offer strong {
  color: #6f3d0e;
  font-size: 13px;
}

.offer.observed {
  border-color: #a7c4ad;
  background: #f3fbf5;
}

.offer.observed strong {
  color: #176b4d;
}

.offer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: #37423d;
  font-size: 13px;
}

.bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe6;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.map-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8fc;
}

.map-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.map-panel h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.map-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-shell {
  margin-top: 10px;
}

#map {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #c9d7e8;
  border-radius: 8px;
  background: #e8eef5;
}

#map.map-fallback {
  background:
    linear-gradient(rgba(23, 107, 77, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 77, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 28% 34%, rgba(36, 91, 156, 0.18), transparent 22%),
    radial-gradient(circle at 68% 58%, rgba(181, 107, 25, 0.16), transparent 26%),
    #f7faf7;
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%, auto;
}

.card {
  display: flex;
  min-height: 305px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

button.card-button {
  width: 100%;
  min-height: 220px;
  text-align: left;
  cursor: pointer;
}

button.card-button:hover {
  border-color: var(--green);
  color: inherit;
  box-shadow: var(--shadow);
}

.card-cta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

a.profile-field.linkish {
  color: inherit;
  text-decoration: none;
}

a.profile-field.linkish:hover {
  outline: 2px solid rgba(36, 91, 156, 0.25);
  background: #eef5fb;
}

.profile-extra {
  margin-top: 14px;
}

.profile-extra summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 750;
}

.biz-image {
  position: relative;
  display: flex;
  width: 100%;
  height: 110px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d5ddd7;
  border-radius: 8px;
  background: #dfe8e2 var(--cover, none) center/cover no-repeat;
}

.biz-image.large {
  width: 100%;
  height: 160px;
  margin-bottom: 14px;
}

.biz-image .biz-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.biz-image .biz-logo {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.16);
}

.biz-image.large .biz-logo {
  width: 68px;
  height: 68px;
}

.biz-image span {
  position: relative;
  z-index: 1;
  display: none;
  min-width: 52px;
  min-height: 52px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  font-weight: 850;
}

.biz-image.fallback span {
  display: grid;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  color: #fff;
  border-color: transparent;
  background: #1d3b2f;
  text-align: left;
}

.showcase-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 32, 26, 0.28), rgba(17, 32, 26, 0.82)),
    var(--cover) center/cover no-repeat;
}

.showcase-card > *:not(.showcase-cover) {
  position: relative;
  z-index: 1;
}

.showcase-card strong,
.showcase-card span,
.showcase-card em,
.showcase-card small {
  color: inherit;
}

.showcase-card span:not(.showcase-kind):not(.showcase-cover) {
  color: rgba(255, 255, 255, 0.82);
}

.showcase-card em {
  color: rgba(255, 255, 255, 0.9);
}

.showcase-card small {
  color: #d7f3e4;
}

.showcase-kind {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.offer-line {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff5e8;
  color: #6f3d0e;
  font-size: 13px;
  font-weight: 750;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef5f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.badge.source {
  background: #f8efe4;
  color: var(--gold);
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.actions a,
.actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #c8d0ca;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed #b9c2bc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
  outline: none;
}

dialog {
  position: relative;
  width: min(680px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 20px 18px 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 33, 29, 0.48);
  cursor: pointer;
}

.dialog-chrome {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin: -8px -6px 0 0;
  pointer-events: none;
}

.dialog-close {
  pointer-events: auto;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 33, 29, 0.12);
}

.dialog-close:hover {
  background: #fff;
  border-color: #b7c0ba;
}

#dialogContent {
  position: relative;
  z-index: 1;
}

.profile h2 {
  max-width: calc(100% - 44px);
  margin: 0 0 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.profile-field {
  padding: 10px;
  border-radius: 8px;
  background: var(--field);
}

.profile-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.request-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f1f4;
  color: #4b2634;
}

@media (max-width: 760px) {
  .topbar,
  .filters,
  .profile-grid,
  .map-panel,
  .buy-steps,
  .signal-panel,
  .signal-form,
  .profile-forms,
  .mini-row,
  .save-grid,
  .feedback-panel,
  .feedback-form {
    grid-template-columns: 1fr;
  }

  .content {
    display: flex;
    flex-direction: column;
  }

  .explore {
    display: contents;
  }

  .deal-showcase {
    order: 1;
    margin-top: 12px;
    padding: 10px;
  }

  .summary {
    order: 2;
  }

  .results {
    order: 3;
  }

  .map-panel {
    order: 4;
    margin-top: 12px;
    padding: 10px;
  }

  .topbar {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .stats {
    text-align: left;
  }

  .toggle {
    margin-top: 0;
  }

  .summary {
    position: static;
  }

  .results {
    grid-template-columns: 1fr;
  }

  #map {
    min-height: 260px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-heading {
    display: block;
  }

  .showcase-heading p {
    margin-top: 6px;
  }

  .primary-deals .showcase-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .primary-deals .showcase-card {
    min-width: 82vw;
    min-height: 160px;
    scroll-snap-align: start;
  }

  .topbar.compact {
    display: grid;
    grid-template-columns: 1fr;
  }
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
