/*
Theme Name: FernMove
Theme URI: https://fernmove.com
Author: FernMove
Description: Marketing shell for a BidJS-powered property auction site. WordPress owns the pages around the auction; Bidlogix owns every lot, bid and bidder account.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary
Text Domain: fernmove
*/

/* ---------------------------------------------------------------------------
   This stylesheet is enqueued with bidjs--full.min.css as a dependency, so it
   always prints second. That matters: the BidJS bundle contains Bootstrap 3,
   which sets body type, heading type and link colour globally. Equal-specificity
   rules here win on source order.

   Two rules for anything added below:
     1. Never restyle .btn, .container, .row or .col-* — those belong to
        Bootstrap and BidJS renders with them. Our own classes are wm- or BEM.
     2. Never style anything inside .bidjs-app. That subtree is Bidlogix's.
   ------------------------------------------------------------------------ */

:root {
  /* Brand, sampled from the FernMove logo. */
  --navy: #10284f;
  --navy-dark: #0a1b38;
  --fern: #175c2a;
  --fern-dark: #104620;
  --fern-leaf: #2b8a24;
  --fern-soft: #e2efe1;

  /* Neutrals, biased very slightly toward the green. */
  --ground: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #edf2ec;
  --border: #dde4dc;
  --border-strong: #c5cfc4;
  --ink: #16233b;
  --ink-muted: #5a6577;

  /* The wordmark is a heavy rounded sans; headings follow it. */
  --font-display: Lexend, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --clay: #b4491f;
  --clay-soft: #f7e3da;
  --clay-dark: #8c3614;
  --radius: 12px;
  --shell: 1120px;
}

/* --- Reset over Bootstrap ------------------------------------------------ */

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--navy);
  margin: 0;
}

a {
  color: var(--fern);
}
a:hover {
  color: var(--fern-dark);
}

:focus-visible {
  outline: 2px solid var(--fern);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
}

/* --- Layout -------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

#main {
  display: block;
  min-height: 50vh;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.brand__logo {
  display: block;
  width: auto;
  height: 46px;
}
.brand:focus-visible {
  outline: 3px solid var(--fern);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-nav {
  margin-right: auto;
}
.site-nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a {
  color: var(--ink);
}

/* Sign in, and on narrow screens the menu button: always the far right of the row. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

/* Mobile-only parts of the header, hidden on wide screens. */
.site-nav__utility,
.menu-toggle,
.site-nav__expand {
  display: none;
}

/* --- Buttons (ours — Bootstrap owns .btn) -------------------------------- */

.wm-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.wm-btn--primary {
  background: var(--fern);
  color: #fff;
}
.wm-btn--primary:hover {
  background: var(--fern-dark);
  color: #fff;
}
.wm-btn--ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}
.wm-btn--ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}
.wm-btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--fern-soft), var(--ground));
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  padding-top: 72px;
  padding-bottom: 72px;
}
/* Headline and intro centred over the full-width search bar. */
.hero__title {
  max-width: 772px;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern);
}
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -0.015em;
}
.hero__lede {
  margin: 20px auto 0;
  text-align: center;
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 62ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 0;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  padding-top: 72px;
  padding-bottom: 72px;
}
.steps__title {
  font-size: 1.7rem;
  margin-bottom: 36px;
}
.steps__list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps__list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  counter-increment: step;
}
.steps__list li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fern);
  margin-bottom: 10px;
}
.steps__list h3 {
  font-family: Inter, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.steps__list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* --- Partners ------------------------------------------------------------ */

.partners {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners__inner {
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 680px;
}
.partners h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.partners p {
  color: var(--ink-muted);
  margin: 0 0 18px;
}

/* --- Page heads and prose ------------------------------------------------ */

.page-head {
  padding-top: 56px;
  padding-bottom: 8px;
}
.page-head__title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}
.page-head__lede {
  margin: 14px 0 0;
  color: var(--ink-muted);
  max-width: 64ch;
}

.prose {
  padding-top: 24px;
  padding-bottom: 72px;
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 40px 0 12px;
}
.prose p {
  margin: 0 0 1em;
  color: var(--ink);
}
.prose strong {
  font-weight: 600;
}

.plain-list {
  list-style: none;
  padding: 0;
}

/* --- Notices ------------------------------------------------------------- */

.notice {
  margin: 28px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--clay);
  background: #fdf5f2;
  color: var(--ink);
  font-size: 0.95rem;
}
.notice code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* --- BidJS mount --------------------------------------------------------- */

/*
 * Breathing room around Bidlogix's app, and nothing else. Styling inside
 * .bidjs-app would fight their bundle on every version upgrade.
 */
.bidlogix-app#bidjs,
.container.bidlogix-app {
  margin-top: 24px;
  margin-bottom: 72px;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding-top: 48px;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}
.site-footer__brand {
  margin: 0 0 12px;
}
.site-footer__logo {
  display: block;
  width: auto;
  height: 40px;
}
.site-footer__note,
.site-footer__legal p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.site-footer__heading {
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.site-footer__list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__list a:hover {
  text-decoration: underline;
}
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
}
.site-footer__copy {
  font-size: 0.82rem;
}

/* --- Utility bar --------------------------------------------------------- */

.utility-bar {
  background: var(--navy);
  color: #fff;
  font-size: 0.84rem;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
}
.utility-bar__note {
  margin: 0;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.66);
}
.utility-nav__list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.utility-bar a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}
.utility-bar a:hover {
  color: #fff;
  text-decoration: underline;
}
.utility-bar__phone {
  font-weight: 600;
}

/* --- Primary nav dropdowns ----------------------------------------------- */

/*
 * CSS-only, and keyboard-reachable because of it. The submenu is revealed by
 * :focus-within on the parent <li> — focusing the parent link is enough to open
 * it, which then puts the submenu's own links into the tab order. A JS toggle
 * with aria-expanded would be more conventional, but this has no state to get
 * out of step and nothing to initialise.
 */

.site-nav__list li {
  position: relative;
}
.site-nav__list .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.45em;
  vertical-align: 0.18em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.site-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 60;
  min-width: 236px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(16, 40, 79, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s;
}
.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-nav__list .sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.92rem;
  color: var(--ink);
}
.site-nav__list .sub-menu a:hover {
  background: var(--surface-2);
}

/* --- Hero search bar ---------------------------------------------------- */

/*
 * One pill, four segments and a button, divided by hairlines — the shape of a
 * property portal's search bar, in this site's colours and type.
 */
.search-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  margin-top: 34px;
  padding: 8px 8px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(16, 40, 79, 0.09);
}
.search-bar__segment {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 22px;
}
.search-bar__segment + .search-bar__segment::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background: var(--border);
}
.search-bar__segment--location {
  flex-grow: 1.7;
}
.search-bar__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Inputs that read as text in the bar, not as boxes within it. */
.search-bar__input,
.search-bar__radius,
.search-bar__select {
  min-width: 0;
  padding: 2px 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.search-bar__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}
.search-bar__input:focus-visible,
.search-bar__radius:focus-visible,
.search-bar__select:focus-visible,
.search-bar__summary:focus-visible {
  outline: 2px solid var(--fern);
  outline-offset: 3px;
}
.search-bar__location {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar__input {
  flex: 1;
}
.search-bar__input::-webkit-search-cancel-button {
  display: none;
}

/* A select drawn as text plus a chevron. */
.search-bar__radius,
.search-bar__select {
  appearance: none;
  padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23241f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
  cursor: pointer;
}
.search-bar__radius {
  flex: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.search-bar__select {
  width: 100%;
  color: var(--ink-muted);
}

/* Price and beds: a <details> whose summary looks like the other segments. */
.search-bar__summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 22px;
  list-style: none;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23241f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right calc(100% - 3px) / 16px;
  border-radius: 4px;
}
.search-bar__summary::-webkit-details-marker {
  display: none;
}
.search-bar__range[open] > .search-bar__summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23241f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 15 6-6 6 6'/%3E%3C/svg%3E");
}
.search-bar__value {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-bar__range.is-set .search-bar__value {
  color: var(--ink);
  font-weight: 600;
}
/*
 * Set here, not inherited. The theme's `box-sizing: inherit` chain breaks at
 * <details>: its content sits in a user-agent slot that author styles cannot
 * reach, and box-sizing is not an inherited property, so the slot falls back
 * to content-box and everything in the panel inherits that — each select's
 * padding then lands outside its column and the two overlap.
 */
.search-bar,
.search-bar *,
.search-bar *::before,
.search-bar *::after {
  box-sizing: border-box;
}

/*
 * The min/max panel. minmax(0, 1fr) rather than 1fr: a bare 1fr track will
 * not shrink below its content, and a select's content width is its longest
 * option ("£5,000,000").
 */
.search-bar__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(16, 40, 79, 0.14);
}
.search-bar__panel-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.search-bar__panel-field select {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 34px 0 12px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-overflow: ellipsis;
  color: var(--ink);
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23241f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  cursor: pointer;
}
.search-bar__panel-field select:hover {
  border-color: var(--ink-muted);
}

.search-bar__submit {
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.search-bar__button {
  height: 100%;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 1rem;
}

/* Below this the bar stacks: one segment per row, the button full width. */
@media (max-width: 820px) {
  .search-bar {
    flex-direction: column;
    padding: 6px;
    border-radius: 20px;
  }
  .search-bar__segment {
    padding: 12px 16px;
  }
  .search-bar__segment + .search-bar__segment::before {
    top: 0;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
  }
  .search-bar__panel {
    position: static;
    width: auto;
    margin-top: 12px;
    box-shadow: none;
  }
  .search-bar__submit {
    padding: 6px 0 0;
  }
  .search-bar__button {
    width: 100%;
    border-radius: 14px;
  }
}

.hero__actions {
  margin-top: 22px;
}

/* --- Search page --------------------------------------------------------- */

.wm-search-section {
  padding-top: 26px;
}
.wm-search {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.wm-search__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.wm-search__field {
  display: grid;
  gap: 6px;
  flex: 1 1 170px;
}
.wm-search__field--wide {
  flex: 2 1 280px;
}
.wm-search__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.wm-search__input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
/* Selects get the same chevron as the home page bar, not each browser's own. */
select.wm-search__input {
  appearance: none;
  min-width: 0;
  padding-right: 34px;
  text-overflow: ellipsis;
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23241f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  cursor: pointer;
}
select.wm-search__input:hover {
  border-color: var(--ink-muted);
}
.wm-search__input:focus-visible {
  outline: 2px solid var(--fern);
  outline-offset: 1px;
}
.wm-search__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.wm-search__clear {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.wm-results {
  padding-top: 34px;
  padding-bottom: 72px;
}
.wm-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.wm-results__title {
  font-size: 1.3rem;
  margin: 0;
}
.wm-results__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.wm-results__sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.wm-results__sort .wm-search__input {
  width: auto;
  min-width: 170px;
}
.wm-results__criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.wm-results__criteria li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 13px;
  background: var(--fern-soft);
  border-radius: 999px;
  font-size: 0.88rem;
}
.wm-results__key {
  color: var(--ink-muted);
}
.wm-results__val {
  font-weight: 600;
}
.wm-results__empty {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 62ch;
}
.wm-results__empty h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.wm-results__empty p {
  color: var(--ink-muted);
  margin: 0 0 1em;
}

/* --- Home cards ---------------------------------------------------------- */

.cards {
  padding-top: 64px;
}
.cards__list {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card__title {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.card__body {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
}
.card__link:hover {
  text-decoration: underline;
}

/* --- Latest properties (read from Bidlogix) ------------------------------ */

.latest {
  padding: 64px 0 8px;
}
.latest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.latest__title {
  margin: 0;
}
.latest__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.latest__all {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.latest__all:hover {
  text-decoration: underline;
}

/*
 * The home page's row: four cards across, scrolling sideways for the fifth.
 * Padded and pulled back out by the same amount, because a scroll container
 * clips its children and would otherwise cut off the cards' shadows.
 */
.lot-row {
  --lot-row-gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--lot-row-gap)) / 4);
  gap: var(--lot-row-gap);
  list-style: none;
  margin: 0 -12px;
  padding: 10px 12px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
}
.lot-row::-webkit-scrollbar {
  display: none;
}
.lot-row > .lot-card {
  scroll-snap-align: start;
}
.lot-row__nav {
  display: flex;
  gap: 8px;
}
.lot-row__nav[hidden] {
  display: none;
}
.lot-row__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lot-row__arrow:hover:not(:disabled) {
  background: var(--fern);
  border-color: var(--fern);
  color: #fff;
}
.lot-row__arrow:focus-visible {
  outline: 3px solid var(--fern);
  outline-offset: 2px;
}
.lot-row__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 960px) {
  .lot-row {
    grid-auto-columns: calc((100% - var(--lot-row-gap)) / 2.2);
  }
}
@media (max-width: 600px) {
  .lot-row {
    grid-auto-columns: 84%;
  }
}

/* The search page's results: as many across as fit. */
.lot-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.lot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 40, 79, 0.06), 0 4px 14px rgba(16, 40, 79, 0.07);
  transition: box-shadow 0.18s, transform 0.18s;
}
.lot-card:hover,
.lot-card:focus-within {
  box-shadow: 0 2px 4px rgba(16, 40, 79, 0.08), 0 12px 28px rgba(16, 40, 79, 0.13);
  transform: translateY(-2px);
}

.lot-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.lot-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lot-card__badge,
.lot-card__photos {
  position: absolute;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}
.lot-card__badge {
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--fern-dark);
}
.lot-card__photos {
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(10, 27, 56, 0.72);
}

.lot-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.lot-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.lot-card__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay-dark);
  font-size: 0.74rem;
  font-weight: 600;
}
.lot-card__tag--method {
  background: var(--fern-soft);
  color: var(--fern-dark);
}
.lot-card__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.lot-card__link {
  color: var(--ink);
  text-decoration: none;
}
/* The heading's link covers the whole card, so the card is one tab stop. */
.lot-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.lot-card__link:focus-visible {
  outline: none;
}
.lot-card:has(.lot-card__link:focus-visible) {
  outline: 3px solid var(--fern);
  outline-offset: 3px;
}
.lot-card__area {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.lot-card__blurb {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.lot-card__price {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.lot-card__price strong {
  font-size: 1.12rem;
}
.lot-card__price--live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fern);
}
.lot-card__live-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fern-leaf);
  box-shadow: 0 0 0 3px var(--fern-soft);
}
.lot-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 18px;
}
.lot-card__cta {
  padding-bottom: 3px;
  border-bottom: 3px solid var(--fern-soft);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.18s;
}
.lot-card:hover .lot-card__cta {
  border-color: var(--fern);
}
.lot-card__closes {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Explainer band ------------------------------------------------------ */

.explainer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explainer__inner {
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 68ch;
}
.explainer h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.explainer p {
  color: var(--ink-muted);
  margin: 0 0 18px;
}

/* --- Page body and section nav ------------------------------------------- */

.breadcrumb {
  margin-bottom: 10px;
  font-size: 0.87rem;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.page-body {
  display: block;
}
.page-body--with-aside {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 246px;
  align-items: start;
}
@media (max-width: 860px) {
  .page-body--with-aside {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.section-nav {
  position: sticky;
  top: 24px;
  margin-top: 30px;
  margin-bottom: 72px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-nav__title {
  font-family: Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.section-nav__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}
.section-nav__list a:hover {
  background: var(--surface-2);
}
.section-nav__list .is-current a {
  background: var(--fern-soft);
  font-weight: 600;
}

/* --- Prose additions ----------------------------------------------------- */

.prose h3 {
  font-size: 1.12rem;
  margin: 28px 0 8px;
}
.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.5em;
}

/* --- Narrow screens ------------------------------------------------------ */

/*
 * Below 1080px the main nav becomes a panel opened by the square menu button.
 * The full desktop row needs about 1060px; any narrower and Sign in wraps.
 *
 * Two layers. The first is the no-JavaScript fallback: the nav sits below the
 * header as an always-open list, every sub-page shown, so nothing is ever out
 * of reach. The second applies once assets/site-nav.js has run and marked the
 * header .has-menu-toggle: the panel starts closed, opens from the button, and
 * each parent item expands its own sub-pages.
 */
@media (max-width: 1080px) {
  .site-header__inner {
    gap: 12px;
  }
  .brand__logo {
    height: 38px;
  }
  .site-header__signin {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin-right: 0;
  }
  .utility-bar__note {
    display: none;
  }

  /* Fallback: an always-open list. */
  .site-nav__list {
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .site-nav__list .menu-item-has-children > a::after {
    display: none;
  }
  .site-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0;
    margin: 4px 0 8px 14px;
    background: none;
    border: none;
    box-shadow: none;
  }
  .site-nav__list .sub-menu a {
    padding: 5px 0;
    color: var(--ink-muted);
    font-size: 0.89rem;
  }
  .site-nav__list .sub-menu a:hover {
    background: none;
    color: var(--ink);
  }

  /* The menu button: a square with three lines that turn into a cross. */
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--navy);
    cursor: pointer;
  }
  /* Until the script runs it stays hidden: the fallback list needs no button. */
  .menu-toggle[hidden] {
    display: none;
  }
  .menu-toggle:hover {
    border-color: var(--navy);
  }
  .menu-toggle:focus-visible {
    outline: 3px solid var(--fern);
    outline-offset: 2px;
  }
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, background 0.18s ease;
  }
  .menu-toggle__bars {
    position: relative;
  }
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-toggle__bars::before {
    top: -6px;
  }
  .menu-toggle__bars::after {
    top: 6px;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars {
    background: transparent;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* With the script: a closed panel that the button opens. */
  .has-menu-toggle .site-nav {
    display: none;
  }
  .has-menu-toggle.is-menu-open .site-nav {
    display: block;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .has-menu-toggle .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  .has-menu-toggle .site-nav__list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .has-menu-toggle .site-nav__list > li > a {
    flex: 1;
    padding: 14px 2px;
    color: var(--ink);
    font-size: 1rem;
  }

  /* Each parent item's expand button: a chevron that flips when open. */
  .site-nav__expand {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--ink-muted);
    cursor: pointer;
  }
  .site-nav__expand::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
  }
  .site-nav__expand[aria-expanded="true"]::before {
    transform: translateY(2px) rotate(-135deg);
  }
  .site-nav__expand:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
  .site-nav__expand:focus-visible {
    outline: 3px solid var(--fern);
    outline-offset: -3px;
  }

  /* Sub-pages stay folded until their parent is expanded. */
  .has-menu-toggle .site-nav__list .sub-menu {
    display: none;
    flex-basis: 100%;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--fern-soft);
  }
  .has-menu-toggle .site-nav__list .is-expanded > .sub-menu {
    display: block;
  }
  .has-menu-toggle .site-nav__list .sub-menu a {
    padding: 9px 2px;
    font-size: 0.95rem;
  }

  /* The top bar's links move into the panel, under the main pages. */
  .has-menu-toggle .site-nav__utility {
    display: block;
    padding: 6px 0 14px;
  }
  .site-nav__utility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-nav__utility-list a {
    display: inline-block;
    padding: 8px 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    text-decoration: none;
  }
  .site-nav__utility-list a:hover {
    color: var(--ink);
  }
  body:has(.has-menu-toggle) .utility-nav {
    display: none;
  }
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
