:root {
  color-scheme: light;
  --ink: #172e2d;
  --muted: #4e6460;
  --line: #d9e5df;
  --paper: #fff;
  --canvas: #f3f7f5;
  --green: #12674f;
  --green-deep: #0f5844;
  --mint: #e5f4ec;
  --night: #142b2b;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --comparison-clearance: 0px;
  --contact-offset: calc(16px + env(safe-area-inset-bottom, 0px) + var(--comparison-clearance));
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(48px + var(--contact-offset));
}
body.has-selection { --comparison-clearance: 94px; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #248465; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
.frame { width: min(100% - 64px, 1312px); margin-inline: auto; }
.site-header { background: var(--night); color: #fff; }
.header-inner { padding-block: 10px; }
.brand {
  width: clamp(108px, 14vw, 132px);
  aspect-ratio: 512 / 544;
  flex: none;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #404040;
}
/* Frame the upper logo panel within the supplied image. */
.brand img { position: absolute; top: 0; left: 0; width: 200%; height: auto; transform: translate(-25%, -7.03125%); }
.business-contact {
  position: fixed;
  z-index: 6;
  inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  inset-block-end: var(--contact-offset);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border: 1px solid #167044;
  border-radius: 24px;
  background: #25d366;
  color: #092f22;
  font-size: .9375rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px #10292146;
}
.business-contact:hover { background: #50df84; }
.hero {
  margin-block: 28px 27px;
  padding: clamp(26px, 4.4vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(105deg, #e5f1e9, #daf0e5 85%);
  border: 1px solid #d3e8dc;
  border-radius: 20px;
}
.hero::before {
  content: "";
  z-index: -1;
  position: absolute;
  height: 420px;
  width: 420px;
  border-radius: 50%;
  right: -74px;
  top: -175px;
  transform: scaleX(1.24) rotate(-17deg);
  background: repeating-radial-gradient(ellipse at center, transparent 0 17px, #2a76501b 18px 19px, transparent 20px 32px);
  mask-image: linear-gradient(110deg, transparent 7%, #000 68%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.65rem); letter-spacing: -.06em; font-weight: 750; }
.hero p { margin-top: 13px; max-width: 58ch; color: #3b5951; line-height: 1.5; }
.hero-note { flex: 0 0 auto; background: #f6fffae8; border: 1px solid #c6e3d3; padding: 12px 15px; border-radius: 10px; display: grid; gap: 3px; }
.hero-note span { color: var(--muted); font-size: .875rem; }
.hero-note strong { font-variant-numeric: tabular-nums; font-size: .98rem; }
.workspace { display: grid; grid-template-columns: minmax(240px, 284px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 32px; }
.filter-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 1.19rem; }
.text-button { background: transparent; border: 0; border-radius: 5px; padding: 5px 0; color: var(--green-deep); font-weight: 650; font-size: .875rem; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#filters { display: grid; gap: 8px; }
label, legend { color: var(--ink); font-weight: 650; font-size: .875rem; }
#filters > label:not(:first-child):not(.check-label) { margin-top: 7px; }
input:not([type="checkbox"]), select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #c7d7cf;
  border-radius: 8px;
  background-color: #fdfefd;
  padding: 8px 10px;
  color: var(--ink);
  font-size: .91rem;
}
input::placeholder { color: #61736d; opacity: 1; }
select {
  appearance: none;
  padding-right: 31px;
  background-image: linear-gradient(45deg, transparent 48%, #506e62 50%), linear-gradient(135deg, #506e62 50%, transparent 52%);
  background-position: calc(100% - 16px) calc(50% + 1px), calc(100% - 11px) calc(50% + 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.budget { border: 0; padding: 0; margin: 7px 0 0; min-width: 0; }
.budget legend { padding: 0; margin-bottom: 8px; }
.price-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.price-fields label { display: block; margin-bottom: 5px; font-weight: 550; }
#date-hint { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.reservation-notice { font-size: .875rem; color: #714a23; line-height: 1.4; }
.reservation-notice:empty { position: absolute; }
.reservation-notice:not(:empty) { padding: 8px 10px; border-radius: 8px; background: #f8efe2; }
.check-label { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 36px; margin-top: 3px; }
.check-label input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: var(--green); }
.field-error { color: #a62c22; font-size: .875rem; line-height: 1.45; }
[aria-invalid] { border-color: #a62c22 !important; }
.primary, .secondary { min-height: 42px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 650; }
.primary { background: var(--green); color: #fff; }
.primary:hover:enabled { background: var(--green-deep); }
.secondary { background: #fff; border-color: #ceded5; color: var(--green-deep); }
.secondary:hover:enabled { background: #edf6f1; border-color: #9dbfad; }
.search-button { margin-top: 2px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 18px; min-height: 56px; margin-bottom: 15px; }
.results-heading h2 { font-size: clamp(1.38rem, 2.15vw, 1.78rem); letter-spacing: -.035em; }
#results-count { color: var(--muted); margin-top: 5px; font-size: .9rem; }
#jump-to-nearby { display: inline-block; color: var(--green-deep); margin-top: 7px; font-size: .9rem; }
#nearby-results { margin-top: 20px; }
#nearby-title { font-size: 1.22rem; scroll-margin-top: 12px; }
#nearby-results > p { color: var(--muted); margin: 5px 0 13px; font-size: .9rem; }
.sort-control { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.sort-control select { width: auto; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 9px 16px; flex-wrap: wrap; background: var(--mint); border: 1px solid #c6e3d3; border-radius: 10px; padding: 10px 13px; margin-bottom: 13px; }
.contact-panel p { color: var(--green-deep); font-size: .9rem; line-height: 1.4; }
.contact-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; text-align: center; }
.contact-link.primary:hover { background: var(--green-deep); }
.contact-link.secondary:hover { background: #edf6f1; border-color: #9dbfad; }
.dialog-footer { display: flex; justify-content: end; padding: 0 20px 20px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.listing-card { display: flex; flex-direction: column; min-width: 0; gap: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 4px #18352a05; }
.listing-card.selected { border-color: #348563; box-shadow: 0 0 0 1px #348563; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 29px; }
.postcode, .status { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 5px; line-height: 1.1; font-size: .8125rem; font-weight: 680; max-width: 100%; }
.postcode { background: #edf2f0; color: #334d44; letter-spacing: .04em; }
.status { color: #245944; background: #e5f4eb; }
.status[data-state="dated"] { color: #31556b; background: #e8f1f8; }
.status[data-state="listed"] { color: #6a4b12; background: #fff3d6; }
.listing-title { font-size: 1.12rem; margin-top: 14px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.listing-location { color: var(--muted); font-size: .9rem; margin-top: 5px; line-height: 1.35; }
.documents-required { color: #941c18; background: #fff0ef; font-weight: 650; }
.listing-documents { margin-top: 10px; padding: 8px 9px; border: 1px solid #e6a6a3; border-radius: 7px; font-size: .875rem; line-height: 1.4; }
.location-note { display: block; margin-top: 4px; font-size: .82rem; }
.listing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 15px; margin-bottom: 13px; }
.listing-price strong { color: #123b32; font-size: 1.49rem; line-height: 1.2; letter-spacing: -.045em; }
.listing-price span { color: var(--muted); font-size: .84rem; }
.listing-details { display: grid; align-content: start; gap: 6px; border-top: 1px solid #e4ece8; padding-top: 11px; margin-bottom: 14px; flex: 1 1 auto; }
.listing-details div { display: flex; justify-content: space-between; gap: 6px 12px; line-height: 1.25; font-size: .875rem; }
.listing-details dt { color: var(--muted); }
.listing-details dd { font-weight: 600; text-align: right; }
.select-card { width: 100%; display: flex; justify-content: center; align-items: center; gap: 7px; padding-inline: 7px; }
.select-icon { display: inline-flex; justify-content: center; align-items: center; width: 15px; height: 15px; border: 1px solid #7f9f8f; border-radius: 3px; flex-shrink: 0; }
.select-card[aria-pressed="true"] { background: var(--mint); border-color: #8ebca4; }
.select-card[aria-pressed="true"] .select-icon { border-color: var(--green); background: var(--green); }
.select-card[aria-pressed="true"] .select-icon::after { content: ""; width: 7px; height: 4px; transform: translateY(-1px) rotate(-45deg); border-left: 2px solid white; border-bottom: 2px solid white; }
.more { display: block; margin: 17px auto 0; }
.inventory-note { color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: 17px; }
.empty { background: white; border: 1px dashed #b2c8bd; border-radius: 13px; min-height: 220px; display: grid; align-content: center; justify-items: center; padding: 24px; text-align: center; gap: 11px; }
.empty p { color: var(--muted); }
.compare-bar { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; background: var(--night); color: white; box-shadow: 0 -5px 18px #173a2d23; }
.compare-bar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.compare-bar-inner div:first-child { display: grid; gap: 4px; }
.compare-bar span { font-size: .875rem; color: #d2e6dd; }
.compare-actions { display: flex; align-items: center; gap: 14px; }
.compare-actions .text-button { color: #e7f3eb; }
.compare-actions .primary { color: #17392b; background: #b5e8cd; white-space: nowrap; }
.compare-actions .primary:hover:enabled { background: #d3f2df; }
dialog { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; padding: 0; width: min(850px, calc(100% - 24px)); max-height: 86vh; box-shadow: 0 20px 70px #0b251e49; }
dialog::backdrop { background: #1029219c; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px; }
.dialog-heading h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.dialog-heading p { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.comparison-scroll { overflow-x: auto; padding-inline: 15px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { min-width: 115px; vertical-align: top; padding: 11px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
th[scope="col"] { background: #e7f3ec; color: #1c4a39; }
th[scope="row"] { color: #455f55; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.privacy-footer { display: flex; justify-content: end; padding-block: 12px 26px; }
.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; z-index: 20; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1160px) / 2)); color: var(--ink); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 32px #10292124; }
.cookie-consent-copy { max-width: 750px; }
.cookie-consent-copy h2 { font-size: 1.1rem; margin: 0 0 5px; }
.cookie-consent-copy p { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 0; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie-consent-actions button { min-height: 42px; white-space: nowrap; }

@media (max-width: 1150px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .frame { width: calc(100% - 38px); }
  .workspace { grid-template-columns: minmax(220px, 245px) minmax(0, 1fr); gap: 16px; }
  .filter-panel { padding: 15px; }
  .sort-control > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-block: 16px; padding: 23px 17px; }
  .hero-note { padding: 8px 9px; }
  .results-heading { margin-top: 3px; }
  .results-heading h2 { scroll-margin-top: 12px; }
}
@media (max-width: 490px) {
  .hero { align-items: start; flex-direction: column; gap: 15px; }
  .hero-note { display: flex; gap: 8px; align-items: baseline; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .results-heading { align-items: start; }
  .sort-control select { max-width: 145px; }
  .compare-bar-inner { gap: 7px; }
  .compare-bar strong { font-size: .875rem; }
  .compare-bar span { font-size: .8rem; }
  .compare-actions { gap: 4px; flex-direction: column-reverse; align-items: end; }
  .compare-actions .text-button { padding: 0; }
  .compare-actions .primary { min-height: 35px; }
  .dialog-heading { padding: 15px; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px 14px max(15px, env(safe-area-inset-bottom)); }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent-actions button { white-space: normal; }
}

.status[data-state="confirmed"] { color: #245143; background: #e3f4ec; }
