/* Move Homes VIC Lot Finder. The Move Homes look from Prime/movehomes-stock-list-site (mh.css):
   deep purple #301F45, purple #704B9C, orange #F89633, red line #D63338, Poppins, pill buttons and the
   rounded triangle lines from movehomes.com.au. */
:root {
  --plum: #301F45;
  --purple: #704B9C;
  --purple-soft: #F1EEF5;
  --orange: #F89633;
  --mh-red: #D63338;
  --ink: #2A2233;
  --ink-2: #5E566A;
  --muted: #8C8597;
  --bg: #FAF9FB;
  --white: #fff;
  --line: #E7E3EC;
  --green: #2F6B3A;
  --green-bg: #E5F1E7;
  --amber: #8A5A00;
  --amber-bg: #FCEFD6;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 12px; z-index: 200; border-radius: 20px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
::selection { background: var(--orange); color: var(--plum); }
.muted { color: var(--muted); }
.eyebrow { margin: 0; font: 600 15px/1.3 var(--font); color: var(--orange); }

/* ---------- Header + hero: one deep purple block ---------- */
.top { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.top__lines, .footer__lines { position: absolute; right: 0; pointer-events: none; z-index: 1; }
.top__lines { top: -40px; bottom: -40px; width: min(30vw, 360px); }
.top__lines img, .footer__lines img { height: 100%; width: auto; margin-left: auto; opacity: .9; }
.site-header { position: relative; z-index: 2; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 96px; }
.brand img { width: 96px; height: auto; }
.brandgroup { display: flex; align-items: center; gap: 22px; }
.provider { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); }
.provider span { font: 500 9.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.provider img { height: 40px; width: auto; }
.site-header__meta { display: flex; align-items: center; gap: 22px; }
.site-header__label { font: 500 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.signout { font: 500 13px/1 var(--font); color: rgba(255, 255, 255, .7); text-decoration: none; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 40px; }
.signout:hover { color: var(--plum); background: var(--orange); border-color: var(--orange); }

.hero { position: relative; z-index: 2; padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 4.5vw, 64px); }
.hero h1 { margin: 10px 0 14px; font: 700 clamp(48px, 7vw, 96px)/1 var(--font); letter-spacing: -.02em; }
.hero__lede { margin: 0; max-width: 620px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .88); }
.hero__stats { display: flex; flex-wrap: wrap; margin: 32px 0 0; padding: 0; border-top: 1.5px solid rgba(255, 255, 255, .16); max-width: 960px; }
.hero__stats div { flex: 1 1 160px; padding: 18px 24px 0 0; }
.hero__stats dt { font: 500 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero__stats dd { margin: 10px 0 0; font: 600 clamp(26px, 2.6vw, 36px)/1 var(--font); letter-spacing: -.01em; }
.hero__stats dd small { display: block; margin-top: 6px; font: 400 13px/1.2 var(--font); letter-spacing: 0; color: rgba(255, 255, 255, .6); }
.hero__stats div:first-child dd { color: var(--orange); }

/* ---------- Preview notice ---------- */
.notice { background: var(--white); border-bottom: 1px solid var(--line); }
.notice__in { display: flex; gap: 14px; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.notice__tag { flex: none; margin-top: 1px; padding: 5px 12px; border-radius: 20px; background: var(--orange); color: var(--plum); font: 600 11.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.notice p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 1000px; }
.notice strong { color: var(--plum); font-weight: 600; }

/* ---------- Toolbar ---------- */
.toolbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 251, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); background: var(--white); border-radius: 40px; font: 600 13.5px/1 var(--font); cursor: pointer; color: var(--plum); }
.tabs button span { padding: 4px 8px; border-radius: 20px; background: var(--purple-soft); font: 500 11.5px/1 var(--font); color: var(--ink-2); }
.tabs button:hover { border-color: var(--purple); }
.tabs button[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .16); color: #fff; }
.filterbar { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--muted); }
.search input { width: 210px; height: 42px; padding: 0 16px 0 38px; border: 1.5px solid var(--line); border-radius: 40px; background: var(--white); outline: none; font-size: 14px; }
.select select { height: 42px; padding: 0 34px 0 16px; border: 1.5px solid var(--line); border-radius: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23704B9C'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 14px; cursor: pointer; outline: none; }
.search input:focus, .select select:focus { border-color: var(--purple); }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 40px; background: var(--white); font-size: 14px; cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: var(--purple); width: 16px; height: 16px; margin: 0; }
.filterbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1.5px solid var(--plum); border-radius: 40px; background: var(--white); font: 600 13.5px/1 var(--font); color: var(--plum); cursor: pointer; }
.filterbtn svg { width: 15px; height: 15px; fill: currentColor; }
.filterbtn span { padding: 3px 7px; border-radius: 20px; background: var(--orange); color: var(--plum); font-size: 11px; }
.filterbtn[aria-expanded="true"] { background: var(--plum); color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border: 1.5px solid var(--plum); border-radius: 40px; background: var(--plum); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--plum); }
.btn--ghost { background: var(--white); color: var(--plum); }

/* ---------- Lot list ---------- */
.results { margin: 22px 0 12px; font: 500 13px/1 var(--font); color: var(--ink-2); }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.row:hover, .row.is-open { border-color: #CFC6DA; }
.row.is-open { box-shadow: 0 10px 30px rgba(48, 31, 69, .08); }
.row__btn { display: grid; grid-template-columns: 74px minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(130px, .9fr) minmax(110px, .8fr) minmax(130px, .9fr) 24px; align-items: center; gap: 18px; width: 100%; padding: 16px 22px; border: 0; background: none; text-align: left; cursor: pointer; }
.row__btn small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.row__lot { font: 700 24px/1 var(--font); color: var(--plum); }
.row__lot small { margin: 0 0 4px; font: 500 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row__main strong { font-weight: 600; font-size: 16px; color: var(--plum); }
.row__size { font-size: 14px; font-variant-numeric: tabular-nums; }
.row__titles { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 20px; background: var(--purple-soft); color: var(--plum); font: 500 12px/1 var(--font); white-space: nowrap; }
.chip--titled { background: var(--green-bg); color: var(--green); }
.chip--hold { background: var(--amber-bg); color: var(--amber); }
.row__fits { font-weight: 600; font-size: 14px; color: var(--plum); }
.row__price { text-align: right; font: 700 19px/1.1 var(--font); color: var(--plum); font-variant-numeric: tabular-nums; }
.row__price small { margin: 0 0 3px; font: 500 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chev { width: 24px; height: 24px; border-radius: 50%; background: var(--purple-soft); position: relative; }
.chev::after { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s; }
.row.is-open .chev { background: var(--orange); }
.row.is-open .chev::after { border-color: var(--plum); transform: translate(-50%, -20%) rotate(-135deg); }

/* ---------- Open lot ---------- */
.detail { display: grid; grid-template-columns: 1.25fr 1fr .85fr; gap: 28px; padding: 6px 22px 26px; border-top: 1px solid var(--line); }
.detail__col { min-width: 0; padding-top: 18px; }
.detail h4 { margin: 0 0 12px; font: 600 15px/1.3 var(--font); color: var(--plum); }
.detail__sub { margin: -6px 0 12px; font-size: 13px; color: var(--ink-2); }
.designs { width: 100%; border-collapse: collapse; font-size: 14px; }
.designs th { padding: 0 10px 8px; text-align: left; font: 500 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--plum); }
.designs td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.designs tbody tr { cursor: pointer; }
.designs tbody tr:hover td { background: var(--purple-soft); }
.designs tr.is-sel td { background: #FFF3E6; }
.designs tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.designs strong { font-weight: 600; color: var(--plum); }
.designs small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.designs .dk { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 20px; background: var(--plum); color: #fff; font: 500 10px/1 var(--font); letter-spacing: .04em; vertical-align: 2px; }
.r { text-align: right; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.calc small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.calc .sum td { font-weight: 600; color: var(--plum); border-bottom-color: #CFC6DA; }
.calc .sum--big td { font-size: 19px; font-weight: 700; padding: 12px 0; }
.calc .sum--big td:last-child { color: var(--purple); }
.why { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--purple-soft); font-size: 14px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--purple); }
.notes { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.more { display: flex; justify-content: center; margin: 22px 0 0; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.loading { padding: 40px 0; color: var(--ink-2); }
.stock { padding-bottom: 64px; }

/* ---------- How prices are worked out ---------- */
.how { background: var(--white); border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 72px) 0; }
.how h2 { margin: 0 0 28px; font: 700 clamp(28px, 3vw, 40px)/1.1 var(--font); letter-spacing: -.01em; color: var(--plum); }
.how__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 36px; margin: 0; }
.how__grid div { padding-top: 14px; border-top: 2px solid var(--purple-soft); }
.how__grid dt { font-weight: 600; color: var(--plum); margin-bottom: 4px; }
.how__grid dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.footer__hero { padding: clamp(56px, 7vw, 96px) 0; }
.footer__hero .wrap { position: relative; z-index: 2; }
.footer__lines { top: -20px; bottom: -120px; width: min(26vw, 300px); }
.footer__big { margin: 12px 0 0; max-width: 900px; font: 700 clamp(32px, 4.4vw, 60px)/1.08 var(--font); letter-spacing: -.02em; text-wrap: balance; }
.footer__bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.footer__bar p { margin: 0; }
.footer__note { opacity: .7; }
.footer__top { color: var(--orange); font-weight: 600; text-decoration: none; }
.footer__top:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .row__btn { grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(120px, auto) 24px; }
  .row__titles { display: none; }
  .detail { grid-template-columns: 1fr 1fr; }
  .detail__col:last-child { grid-column: 1 / -1; }
  .filters { margin-left: 0; }
}
@media (max-width: 900px) {
  .filterbar { display: flex; margin-left: auto; }
  .filters { display: none; width: 100%; }
  .filters.is-open { display: flex; }
  .search, .search input { width: 100%; }
  .select { flex: 1 1 calc(50% - 8px); }
  .select select { width: 100%; }
  .row__btn { grid-template-columns: 52px minmax(0, 1fr) auto 24px; gap: 4px 14px; padding: 14px 16px; }
  .row__lot { grid-row: 1 / 3; font-size: 21px; }
  .row__main { grid-column: 2; }
  .row__size { grid-column: 2; grid-row: 2; font-size: 13px; }
  .row__size small { display: inline; margin-left: 4px; }
  .row__fits { display: none; }
  .row__price { grid-column: 3; grid-row: 1 / 3; font-size: 17px; }
  .chev { grid-column: 4; grid-row: 1 / 3; }
  .detail { grid-template-columns: 1fr; gap: 6px; padding: 0 16px 20px; }
  .detail__calc { order: -1; scroll-margin-top: calc(var(--tb, 120px) + 12px); }
  .detail__col { border-top: 1px solid var(--line); margin-top: 12px; }
  .detail__calc { border-top: 0; margin-top: 0; }
}
@media (max-width: 767px) {
  .site-header__in { height: 76px; }
  .brand img { width: 70px; }
  .brandgroup { gap: 12px; }
  .provider { padding-left: 12px; gap: 5px; }
  .provider span { font-size: 8.5px; letter-spacing: .08em; }
  .provider img { height: 30px; }
  .site-header__label { display: none; }
  .signout { padding: 7px 11px; font-size: 12px; }
  .top__lines { width: 34vw; top: -60px; opacity: .5; }
  .hero { padding-top: 10px; }
  .hero__stats div { flex: 1 1 45%; padding-right: 12px; }
  .notice__in { flex-direction: column; gap: 8px; }
  .tabs { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .tabs button { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 13px; height: 40px; white-space: nowrap; }
  .tabs button span { display: none; }
  .row__btn { grid-template-columns: 44px minmax(0, 1fr) auto 22px; gap: 2px 12px; padding: 14px 14px; }
  .row__lot { font-size: 18px; }
  .row__main strong { font-size: 15px; }
  .row__size small { display: block; margin-left: 0; }
  .row__price { font-size: 16px; }
  .chev { width: 22px; height: 22px; }
  .toolbar__in { gap: 10px; }
  .filterbar { width: 100%; }
  .filterbtn { width: 100%; justify-content: center; }
  .footer__lines { width: 34vw; opacity: .5; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
