:root {
      --sun: #FFD77A;
      --orange: #F57A3E;
      --mauve: #A94768;
      --plum: #5A315B;

      --ink: #25283A;
      --ink-dark: #181725;

      --paper: #FFF9F0;
      --cream: #FFF4E1;
      --panel: #F7EDD9;
      --soft: #F2E5CE;

      --muted: #746874;
      --line: #D9CDBD;
      --line-dark: #40313F;
      --shadow: #A5A09A;
      --font-controls: "Space Grotesk", system-ui, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: var(--paper);
      color: var(--ink);
      font-family: "Space Grotesk", system-ui, sans-serif;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button,
    input,
    select {
      outline: none;
    }

    .page-shell {
      width: min(1480px, 94vw);
      margin: 0 auto;
      padding: 0 0 64px;
    }

    /* ==========================================
       INTRO
    ========================================== */

    .dataset-intro {
      padding: 26px 0 22px;
      max-width: 780px;
    }

    .pixel-accent {
      display: flex;
      gap: 5px;
      margin-bottom: 11px;
    }

    .pixel-accent span {
      width: 8px;
      height: 8px;
      background: var(--orange);
    }

    .pixel-accent span:nth-child(2) { background: var(--mauve); }
    .pixel-accent span:nth-child(3) { background: var(--plum); }
    .pixel-accent span:nth-child(4) { background: var(--sun); }

    h1 {
      margin: 0;
      font-size: clamp(32px, 3.8vw, 50px);
      line-height: .98;
      letter-spacing: -.045em;
      font-weight: 700;
    }

    .intro-copy {
      margin: 12px 0 0;
      max-width: 680px;
      font-size: 15px;
      line-height: 1.55;
      color: var(--muted);
    }

    /* ==========================================
       MAIN LAYOUT
    ========================================== */

    .dataset-layout {
      display: grid;
      grid-template-columns: 286px minmax(0, 1fr);
      gap: 32px;
      align-items: start;
      margin-top: 34px;
    }

    /* ==========================================
       FILTERS
    ========================================== */

    .filters {
      position: sticky;
      top: 18px;
      display: flex;
      flex-direction: column;
      max-height: var(--filters-height, calc(100dvh - 180px));
      min-height: 0;
      min-width: 0;
      padding-right: 24px;
      border-right: 1px solid var(--line);
      font-family: "Press Start 2P", monospace;
    }

    #filtersForm {
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior-y: contain;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: var(--plum) var(--cream);
      padding: 3px 8px 4px 3px;
    }

    #filtersForm:focus-visible {
      outline: 2px solid var(--plum);
      outline-offset: 2px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    .agency-selections {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      list-style: none;
      padding: 0;
      margin: 12px 0 0;
    }

    .agency-selections[hidden] { display: none; }
    .agency-selections li { min-width: 0; max-width: 100%; }
    .agency-chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
    .agency-chip-remove { flex-shrink: 0; font-size: 17px; line-height: 1; }
    .filters button.choice-ui { cursor: pointer; }
    .filters button.choice-ui:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

    .filters-header {
      flex-shrink: 0;
      min-height: 31px;
      margin-bottom: 22px;
      padding: 0 9px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line-dark);
      background: var(--plum);
      box-shadow: 3px 3px 0 var(--shadow);
    }

    .filters-title {
      margin: 0;
      font-family: "Press Start 2P", monospace;
      font-size: 7px;
      line-height: 1;
      text-transform: uppercase;
      color: var(--paper);
    }

    .filters-close-icon {
      position: relative;
      width: 12px;
      height: 12px;
      flex: 0 0 auto;
      border: 2px solid #382B3A;
      background: #8D8D8D;
      box-shadow:
        inset 1px 1px 0 #D8D8D8,
        inset -1px -1px 0 #555,
        1px 1px 0 rgba(0,0,0,.14);
    }

    .filters-close-icon::after {
      content: "";
      position: absolute;
      top: 2px;
      left: 2px;
      width: 4px;
      height: 4px;
      border: 1px solid #5B5B5B;
      background: #C7C7C7;
    }

    .filter-group {
      padding-bottom: 20px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--line);
    }

    .filter-group:last-of-type {
      margin-bottom: 14px;
    }

    .filter-label {
      display: block;
      margin-bottom: 10px;
      font-family: "Press Start 2P", monospace;
      font-size: 7px;
      line-height: 1.5;
      text-transform: uppercase;
      color: var(--ink);
    }

    .retro-input {
      width: 100%;
      height: 34px;
      padding: 0 9px;
      border: 1px solid var(--line-dark);
      border-radius: 0;
      background: var(--cream);
      box-shadow: 1px 1px 0 var(--shadow);
      color: var(--ink);
      font-family: var(--font-controls);
      font-size: 11px;
      font-weight: 600;
      line-height: 1.5;
    }

    .retro-input:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 2px rgba(245,122,62,.12);
    }

    .retro-input::placeholder {
      color: #A19499;
    }

    .choice-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .choice {
      position: relative;
      cursor: pointer;
      user-select: none;
    }

    .choice input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .choice-ui {
      min-height: 34px;
      max-width: 100%;
      padding: 3px 9px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      border: 1px solid var(--line-dark);
      border-radius: 0;
      background: var(--cream);
      box-shadow: 1px 1px 0 var(--shadow);
      color: var(--ink);
      font-family: var(--font-controls);
      font-size: 11px;
      font-weight: 600;
      line-height: 1.45;
      transition:
        transform .10s ease,
        box-shadow .10s ease,
        background .10s ease,
        border-color .10s ease;
    }

    .choice-ui:hover {
      border-color: var(--plum);
      background: #FFF7EA;
    }

    .choice input:checked + .choice-ui,
    #allBedrooms[aria-pressed="true"] {
      border-color: var(--ink-dark);
      background: var(--sun);
      color: var(--ink-dark);
      box-shadow: 1px 1px 0 var(--shadow);
    }

    .choice input + .choice-ui::before,
    #allBedrooms::before {
      content: "";
      width: 5px;
      height: 5px;
      flex: 0 0 auto;
      background: var(--plum);
      visibility: hidden;
    }

    .choice input:checked + .choice-ui::before,
    #allBedrooms[aria-pressed="true"]::before {
      visibility: visible;
    }

    .choice input:focus-visible + .choice-ui {
      outline: 2px solid var(--plum);
      outline-offset: 3px;
    }

    .choice:active .choice-ui { transform: translateY(1px); }

    .stable-choice-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stable-choice-grid .choice {
      min-width: 0;
    }

    .stable-choice-grid .choice-ui {
      width: 100%;
    }

    .period-choice-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
    }

    .period-choice-grid .choice-ui { width: 100%; padding: 4px; }

    #bedroomChoices {
      display: grid;
      grid-template-columns: minmax(0, 1fr) repeat(5, 22px) 30px;
      gap: 3px;
      max-width: 280px;
    }

    #bedroomChoices .choice { min-width: 0; }
    #bedroomChoices .choice-ui {
      width: 100%;
      padding: 3px 2px;
      gap: 3px;
      white-space: nowrap;
    }
    #bedroomChoices .choice-ui::before { width: 4px; height: 4px; }

    .price-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .price-no-value {
      margin-top: 12px;
    }

    .check-line {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      user-select: none;
    }

    .check-line input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .checkbox-ui {
      width: 16px;
      height: 16px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid var(--line-dark);
      background: var(--cream);
      box-shadow: 1px 1px 0 var(--shadow);
    }

    .check-line input:checked + .checkbox-ui {
      background: var(--sun);
    }

    .check-line input:checked + .checkbox-ui::after {
      content: "";
      width: 6px;
      height: 6px;
      background: var(--plum);
    }

    .check-line span:last-child {
      font-family: var(--font-controls);
      font-size: 11px;
      font-weight: 600;
      line-height: 1.55;
      color: #5D525E;
    }

    .filters-actions {
      margin-bottom: 20px;
      padding-bottom: 18px;
      display: flex;
      gap: 8px;
      border-bottom: 1px solid var(--line);
    }

    .retro-button {
      min-height: 38px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 6px solid transparent;
      border-image: url("/assets/img/pixel-frame-gold.svg?no-inline&v=ogabit-20261010121634") 8 / 6px stretch;
      border-radius: 0;
      background: linear-gradient(#FFF6CE 0 20%, #FFD77A 20% 80%, #EDB453 80%);
      background-clip: padding-box;
      color: var(--ink-dark);
      filter: drop-shadow(1px 2px 0 rgb(90 49 91 / 25%));
      cursor: pointer;
      font-family: var(--font-controls);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.35;
      text-align: center;
      text-decoration: none;
      text-transform: uppercase;
      transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
    }

    .retro-button.primary {
      border-image-source: url("/assets/img/pixel-frame-orange.svg?no-inline&v=ogabit-20261010121634");
      background-image: linear-gradient(#FFD595 0 20%, #FFA260 20% 80%, #E77C41 80%);
    }

    .retro-button:hover {
      transform: translate(1px, 1px);
      filter: drop-shadow(0 1px 0 rgb(90 49 91 / 25%));
    }

    .retro-button:active {
      transform: translate(3px, 3px);
      box-shadow: none;
    }

    .filters .retro-button {
      border: 1px solid var(--line-dark);
      border-image: none;
      border-radius: 0;
      background: var(--cream);
      filter: none;
      box-shadow: 1px 1px 0 var(--shadow);
      min-height: 34px;
      font-size: 11px;
      font-weight: 600;
    }

    .filters .retro-button.primary { background: var(--orange); }
    .filters .retro-button:hover { box-shadow: 1px 1px 0 var(--shadow); }
    .filters .retro-button:active { transform: translate(2px, 2px); box-shadow: none; }

    /* ==========================================
       RESULTS
    ========================================== */

    .results {
      min-width: 0;
    }

    .results-header {
      min-height: 52px;
      margin-bottom: 8px;
      padding: 8px 0 10px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 1px solid var(--line);
    }

    .results-header h2 {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: "Press Start 2P", monospace;
      font-size: 8px;
      line-height: 1.5;
      letter-spacing: 0;
      text-transform: uppercase;
      color: var(--plum);
    }

    .results-header h2 #resultsCount {
      color: var(--orange);
      font-size: 10px;
    }

    .results-tools {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 7px;
    }

    .sort-control {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      white-space: nowrap;
    }

    .sort-label {
      font-family: var(--font-controls);
      font-size: 13px;
      font-weight: 600;
      color: var(--plum);
      line-height: 1.5;
    }

    .sort-select {
      height: 36px;
      min-width: 220px;
      padding: 0 28px 0 10px;
      border: 1px solid var(--line-dark);
      border-radius: 0;
      background: var(--cream);
      color: var(--ink);
      cursor: pointer;
      font-family: var(--font-controls);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.5;
      box-shadow: 1px 1px 0 var(--shadow);
    }

    .sort-select:focus {
      border-color: var(--orange);
      box-shadow:
        2px 2px 0 var(--shadow),
        0 0 0 2px rgba(245,122,62,.12);
    }

    .results-table-wrap {
      width: 100%;
      overflow-x: auto;
    }

    .results-table-head,
    .property-row {
      min-width: 980px;
      display: grid;
      grid-template-columns:
        112px
        minmax(210px, 1.45fr)
        118px
        78px
        68px
        112px
        minmax(135px, .9fr)
        105px;
      gap: 13px;
      align-items: center;
    }

    .results-table-head {
      min-height: 32px;
      padding: 8px 10px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line-dark);
      background: rgba(242, 229, 206, .72);
      font-family: "Press Start 2P", monospace;
      font-size: 5.5px;
      line-height: 1.45;
      color: var(--plum);
      text-transform: uppercase;
    }

    .results-list {
      display: flex;
      flex-direction: column;
      min-width: 980px;
    }

    .property-row {
      position: relative;
      padding: 17px 10px;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
      transition:
        background .12s ease,
        padding-left .12s ease;
    }

    .property-row:hover {
      padding-left: 28px;
      background: #FFF4E2;
    }

    .property-row::before {
      content: "▶";
      position: absolute;
      left: 9px;
      top: 50%;
      transform: translateY(-50%);
      opacity: 0;
      color: var(--orange);
      font-family: "Press Start 2P", monospace;
      font-size: 7px;
      line-height: 1;
      transition: opacity .12s ease;
    }

    .property-row:hover::before {
      opacity: 1;
    }

    .mini-tag {
      min-height: 19px;
      padding: 0 6px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line-dark);
      background: var(--cream);
      font-family: "Press Start 2P", monospace;
      font-size: 5.5px;
      line-height: 1;
      text-transform: uppercase;
    }

    .mini-tag.operation {
      background: var(--sun);
    }

    .address-title {
      margin: 0;
      font-size: 17px;
      line-height: 1.25;
      font-weight: 700;
    }

    .address-sub {
      margin: 4px 0 0;
      font-size: 13px;
      color: var(--muted);
    }

    .property-price {
      font-size: 18px;
      line-height: 1.2;
      font-weight: 700;
      color: var(--plum);
    }

    .property-price.no-price {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
    }

    .table-value {
      min-width: 0;
      font-size: 13px;
      line-height: 1.35;
      color: #615762;
    }

    .table-value strong {
      color: var(--ink);
      font-weight: 700;
    }

    .type-value {
      font-weight: 600;
      color: var(--ink);
    }

    .agency {
      margin: 0;
      font-size: 13px;
      line-height: 1.35;
      font-weight: 700;
    }

    .source-line {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--muted);
    }

    .source-pixel {
      width: 7px;
      height: 7px;
      background: var(--orange);
    }

    .publication-link {
      min-height: 25px;
      padding: 0 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      border: 1px solid var(--line-dark);
      border-radius: 2px;
      background: var(--cream);
      box-shadow: 2px 2px 0 var(--shadow);
      color: var(--plum);
      font-family: "Press Start 2P", monospace;
      font-size: 4.8px;
      line-height: 1;
      text-decoration: none;
      text-transform: uppercase;
      white-space: nowrap;
      transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
    }

    .publication-link::before {
      content: "";
      width: 6px;
      height: 6px;
      flex: 0 0 auto;
      border: 1px solid var(--line-dark);
      background: var(--sun);
    }

    .publication-link:hover {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0 var(--shadow);
      background: #FFF0D4;
    }

    .publication-link:active {
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .empty-state {
      display: none;
      padding: 40px 0;
      text-align: center;
      color: var(--muted);
    }

    .empty-state strong {
      display: block;
      margin-bottom: 10px;
      font-family: "Press Start 2P", monospace;
      font-size: 8px;
      color: var(--plum);
    }

    .results-footer {
      padding-top: 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .data-note {
      max-width: 600px;
      font-size: 12px;
      color: var(--muted);
    }

    .pager {
      display: flex;
      gap: 6px;
    }

    .pager-btn {
      width: 34px;
      height: 32px;
      border: 1px solid var(--ink-dark);
      border-radius: 2px;
      background: white;
      box-shadow: 2px 2px 0 var(--shadow);
      cursor: pointer;
      font-family: "Press Start 2P", monospace;
      font-size: 6px;
    }

    .pager-btn.active {
      background: var(--sun);
    }

    /* ==========================================
       RESPONSIVE
    ========================================== */

    @media (max-width: 1100px) {
      .dataset-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 24px;
      }

      .results-table-head,
      .property-row,
      .results-list {
        min-width: 980px;
      }
    }

    @media (max-width: 820px) {
      .dataset-layout {
        grid-template-columns: 1fr;
      }

      .filters {
        position: static;
        max-height: min(70dvh, 620px);
        padding-right: 0;
        padding-bottom: 22px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .results-table-wrap {
        padding-bottom: 6px;
      }
    }

    @media (max-width: 560px) {
      .page-shell {
        width: 92vw;
      }

      .dataset-intro {
        padding-top: 24px;
      }

      .intro-copy {
        font-size: 14px;
      }

      .choice-grid {
        gap: 6px;
      }

      .results-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .results-tools {
        width: 100%;
        align-items: flex-start;
      }

      .sort-control {
        width: 100%;
        justify-content: space-between;
      }

      .sort-select {
        flex: 1;
        min-width: 0;
        max-width: 280px;
      }

      .results-footer {
        align-items: flex-start;
        flex-direction: column;
      }
    }

/* Real dataset states and list results */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--ink-dark);
  background: var(--sun);
  color: #181725;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }

.results-actions-panel {
  margin: 16px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
}
.dataset-action-card {
  position: relative;
  min-width: 0;
  padding: 38px 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: end;
  overflow: hidden;
  border: 2px solid var(--line-dark);
  border-radius: 2px;
  background: #FFF7EA;
  box-shadow: 6px 6px 0 rgba(90, 49, 91, .18);
}
.dataset-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--sun);
}
.dataset-action-card::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow:
    -12px 0 0 var(--sun),
    -24px 0 0 var(--plum);
}
.total-card::before {
  background: var(--orange);
}
.total-card::after {
  background: var(--plum);
  box-shadow:
    -12px 0 0 var(--orange),
    -24px 0 0 var(--sun);
}
.action-titlebar {
  position: absolute;
  top: 0;
  left: 7px;
  right: 0;
  min-height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--plum);
}
.action-titlebar span {
  width: 6px;
  height: 6px;
  background: var(--sun);
}
.action-titlebar span:nth-child(2) {
  background: var(--orange);
}
.action-titlebar span:nth-child(3) {
  background: var(--paper);
}
.dataset-action-card strong,
.dataset-action-card p {
  grid-column: 1;
  position: relative;
  z-index: 1;
}
.dataset-action-card strong {
  color: var(--plum);
  font-family: "Press Start 2P", monospace;
  font-size: 8.5px;
  line-height: 1.65;
  text-transform: uppercase;
}
.dataset-action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.dataset-action-card .retro-button {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 150px;
  min-height: 40px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.results-feed {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  list-style: none;
}
.result-row {
  position: relative;
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(240px, min(32%, 340px)) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  background: #FFFCF7;
  box-shadow: 3px 3px 0 rgba(155, 148, 144, .3);
  transition: box-shadow .15s ease;
}
.result-row:hover {
  box-shadow: 4px 4px 0 rgba(155, 148, 144, .5);
}
.result-row--new {
  padding-top: 38px;
  border-color: #E8B18B;
  border-left-color: var(--orange);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, #FFF0DF, #FFE2C7 30%, #FFF5E4 55%, #F7DFC8 75%, #FFF0DF);
  box-shadow: 3px 3px 0 #E8B18B;
}
.result-row--new:hover {
  box-shadow: 4px 4px 0 #D9986C;
}
.result-row--new::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 215, 122, .32) 43%, rgba(255, 255, 255, .65) 49%, rgba(245, 122, 62, .14) 55%, transparent 67%);
  transform: translateX(-110%);
  animation: today-hologram 7s ease-in-out infinite;
}
@keyframes today-hologram {
  0%, 15% { transform: translateX(-110%); }
  65%, 100% { transform: translateX(110%); }
}
.result-row--new::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  box-shadow: 9px 0 0 var(--sun), 18px 0 0 var(--plum);
}
.result-new-badge {
  position: absolute;
  top: 0;
  right: 0;
  max-width: calc(100% - 56px);
  padding: 4px 10px;
  border: 0;
  border-left: 1px solid #C77745;
  border-bottom: 1px solid #C77745;
  border-radius: 0 0 0 2px;
  background: #FFBF8A;
  color: var(--ink-dark);
  font-family: var(--font-controls);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.result-photo {
  min-width: 0;
  transform: rotate(-1deg);
}
.results-feed > li:nth-child(even) .result-photo { transform: rotate(1deg); }
.result-photo .image-carousel {
  margin: 0;
  border-radius: 0;
}
.result-photo .image-carousel--empty { aspect-ratio: 5 / 4; }
.result-photo .image-carousel--empty,
.result-photo .image-carousel-error {
  padding: 12px;
  font-size: 12px;
}
.result-content {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.result-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: baseline;
  gap: 15px;
}
.result-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.result-location {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.result-price {
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.result-price-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-height: 26px;
}
.result-currency {
  display: inline;
  color: var(--plum);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.result-value {
  display: inline;
  color: var(--plum);
  font-size: 22px;
  line-height: 1.1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.result-expenses {
  margin: 3px 0 0;
  height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-offer-kind { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.result-price--unavailable .result-value { color: var(--muted); font-size: 14px; line-height: 1.4; white-space: normal; }
.result-facts {
  margin: 16px 0 0;
  padding: 13px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.result-facts li { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 6px; }
.result-facts svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--plum); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.result-fact-value { color: var(--ink); font-size: 13px; line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.result-card-footer {
  margin-top: 14px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}
.result-metadata { min-width: 0; display: grid; gap: 6px; grid-column: 1; grid-row: 1; }
.result-date { margin: 0; color: var(--plum); font-size: 12px; line-height: 1.6; font-weight: 400; }
.result-date:has(time) { font-size: 14px; font-weight: 500; }
.result-card-footer .publication-link {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin-left: auto;
  min-width: 118px;
  min-height: 38px;
  padding: 0 8px;
  gap: 7px;
  border: 8px solid transparent;
  border-image: url("/assets/img/pixel-frame-orange.svg?no-inline&v=ogabit-20261010121634") 8 / 8px stretch;
  border-radius: 0;
  background: linear-gradient(#FFD595 0 20%, #FFA260 20% 80%, #E77C41 80%);
  background-clip: padding-box;
  color: var(--ink-dark);
  box-shadow: none;
  filter: drop-shadow(2px 2px 0 rgb(90 49 91 / 35%));
  font: 700 13px/1.4 var(--font-controls);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  transition: transform .1s steps(2), box-shadow .1s steps(2), background .1s ease;
}
.result-card-footer .publication-link::before { content: none; }
.result-card-footer .publication-link::after { content: none; }
.result-card-footer .publication-link:hover {
  background-image: linear-gradient(#FFE6B0 0 20%, #FFB578 20% 80%, #EF8A4B 80%);
  transform: translate(1px, 1px);
  filter: drop-shadow(1px 1px 0 rgb(90 49 91 / 35%));
}
.result-card-footer .publication-link:active { transform: translate(2px, 2px); filter: none; }
.result-card-footer .publication-link:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; }
.result-origin {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.result-origin strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.status-card {
  min-height: 180px;
  margin-top: 12px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.status-card strong {
  color: var(--plum);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.6;
}
.status-card p { margin: 10px 0 0; color: var(--muted); }
.status-card .retro-button { margin-top: 18px; }
.loader {
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  border: 5px solid var(--line);
  border-top-color: var(--orange);
  animation: spin .8s steps(8) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state:not([hidden]) { display: block; }
.results-footer[hidden] { display: none; }
.data-note { display: grid; gap: 3px; }
.page-status {
  width: 100%;
  align-self: center;
  color: var(--plum);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 13px;
  text-align: center;
}
.pager { align-items: center; justify-content: flex-end; flex-wrap: wrap; max-width: 100%; }
.page-numbers { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager-btn { width: auto; min-width: 36px; height: 38px; padding: 0 7px; font: 500 13px var(--font-controls); }
.pager-btn.active { background: var(--orange); color: var(--ink-dark); border-color: var(--plum); }
.pager-btn:hover:not(:disabled), .pager-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.page-jump { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 14px; }
.page-jump[hidden] { display: none; }
.page-jump input { width: 76px; min-height: 38px; border: 1px solid var(--line-dark); border-radius: 2px; padding: 6px; background: white; }
.pager-btn:disabled { cursor: not-allowed; opacity: .45; }
.dataset-note {
  margin: 25px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.noscript {
  margin: 20px;
  padding: 18px;
  border: 2px solid var(--orange);
  background: var(--cream);
  text-align: center;
}
@media (max-width: 1100px) {
  .results-actions-panel { grid-template-columns: 1fr; }
  .result-row { gap: 18px; padding: 16px; }
  .result-row--new { padding-top: 38px; }
  .result-card-heading { gap: 10px; }
}
@media (max-width: 1000px) {
  .result-row { grid-template-columns: minmax(0, 1fr); }
  .result-photo { max-width: 360px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .filters-actions { flex-direction: column; }
  .sort-control { align-items: stretch; flex-direction: column; gap: 6px; }
  .sort-select { width: 100%; max-width: none; flex: initial; }
  .pager { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; justify-content: center; width: 100%; }
  .page-numbers { grid-column: 1 / -1; grid-row: 1; gap: 4px; }
  #previousPage { grid-column: 1; grid-row: 2; }
  #nextPage { grid-column: 3; grid-row: 2; }
  .page-status { grid-column: 2; grid-row: 2; }
  .pager-btn { min-width: 32px; padding: 0 5px; }
  .page-jump { grid-column: 1 / -1; justify-content: center; }
  .filters-actions .retro-button { width: 100%; }
  .dataset-action-card {
    padding-right: 16px;
    grid-template-columns: 1fr;
  }
  .dataset-action-card .retro-button {
    grid-row: auto;
    grid-column: 1;
    width: 100%;
  }
  .result-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 12px; }
  .result-row--new { padding-top: 38px; }
  .result-photo .image-carousel--empty,
  .result-photo .image-carousel-error { padding: 12px; font-size: 14px; }
  .result-title { font-size: 18px; }
  .result-location { font-size: 12px; overflow-wrap: anywhere; }
  .result-card-heading { grid-template-columns: minmax(0, 1fr) 145px; }
  .result-value, .result-currency { font-size: 20px; }
  .result-facts { margin-top: 10px; padding: 10px 0; gap: 10px 14px; }
  .result-card-footer { display: flex; align-items: stretch; flex-direction: column; gap: 12px; }
  .result-card-footer .publication-link { margin-left: auto; min-height: 38px; align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .result-row { transition: none; }
  .result-card-footer .publication-link { transition: none; }
  .choice-ui, .retro-button { transition: none; }
  .result-row--new::after { animation: none; transform: none; opacity: .45; }
}
