:root {
    --color-text: #1f2933;
    --color-accent: #1d4e6b;
    --color-bg: #ffffff;
    --color-muted: #f3f5f7;
    --color-border: #d5dbe1;
    --color-text-secondary: #52606d;
  /* TY3W-7: calculator and header button */
  --color-cta: #f2b43a;
  --color-cta-hover: #e0a224;
  --color-selected: #e8f0f5;
  --color-accent-hover: #163d54;
  --color-error: #b3261e;
  --color-success: #1e6b3a;
  --radius-card: 1rem;
  --motion-step: 300ms;
}
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}
.site-header { background: var(--color-accent); color: #fff; }
.site-header__inner, .site-main, .site-footer__inner { max-width: 70rem; margin: 0 auto; padding: 1rem; }
.site-header__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-header a { color: #fff; }
.site-header__brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-footer { background: var(--color-muted); padding: 1rem; text-align: center; }

/* Property list (TY3W-2) */
.property-list__header{font-size:1.5rem;font-weight:700;margin:0 0 .5rem}
.property-list__count{font-size:.875rem;color:var(--color-text-secondary);margin:0 0 1rem}
.property-list__empty{background:var(--color-muted);padding:1.5rem;border-radius:.5rem;margin:0}
.property-list__items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:40rem){.property-list__items{grid-template-columns:repeat(2,1fr)}}
@media(min-width:64rem){.property-list__items{grid-template-columns:repeat(3,1fr)}}
.property-card{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;background:var(--color-bg);border:1px solid var(--color-border);border-radius:.5rem;overflow:hidden}
.property-card__media{position:relative;aspect-ratio:4/3;background:var(--color-muted)}
.property-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.property-card__placeholder{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;color:var(--color-text-secondary)}
.property-card__badges{position:absolute;top:.75rem;left:.75rem;display:flex;gap:.5rem}
.badge{font-size:.75rem;font-weight:700;padding:.25rem .5rem;border-radius:.25rem;line-height:1.4}
.badge--type{background:var(--color-accent);color:#fff;border:1px solid var(--color-accent)}
.badge--reserved{background:#fff;color:var(--color-text);border:1px solid var(--color-text)}
.property-card__body{display:flex;flex-direction:column;gap:.5rem;padding:1rem;flex:1}
.property-card__title{font-size:1.125rem;font-weight:700;margin:0;line-height:1.4}
.property-card__location,.property-card__teaser{margin:0}
.property-card__location{color:var(--color-text-secondary)}
.property-card__facts{display:flex;gap:.5rem;background:var(--color-muted);padding:.75rem;border-radius:.25rem;margin:0}
.property-card__facts div{display:flex;flex-direction:column;flex:1}
.property-card__facts dd{margin:0;font-weight:700;order:1}
.property-card__facts dt{font-size:.75rem;color:var(--color-text-secondary);order:2}
.property-card__price{margin:auto 0 0;padding-top:.5rem;font-size:1.25rem;font-weight:700;color:var(--color-accent)}
.property-card__price small{font-size:.875rem;font-weight:400;color:var(--color-text-secondary)}
.property-list__items>li{display:flex}

/* Header button to the calculator (TY3W-7) */
.header-cta{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--color-cta);color:var(--color-text);font-weight:700;font-size:.9375rem;padding:.5rem 1rem;border-radius:999px;text-decoration:none;order:3}
.site-header a.header-cta{color:var(--color-text)}
.header-cta svg{width:1.125rem;height:1.125rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.header-cta:hover,.header-cta:focus-visible{background:var(--color-cta-hover)}
.header-cta:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:39.99rem){.site-header__brand{order:1}.site-nav{order:2}.header-cta{flex:0 0 100%;height:2.75rem}}

/* Price calculator (TY3W-7) */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.valuation__header{max-width:44rem;margin:0 auto 1rem}
.calc-card{max-width:44rem;margin:0 auto 2rem;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-card);padding:1.5rem;box-shadow:0 8px 24px rgba(31,41,51,.08);overflow:hidden}
@media(min-width:40rem){.calc-card{padding:2.5rem}}
.calc-noscript{margin:0}
.calc-count{font-size:.875rem;color:var(--color-text-secondary);margin:0 0 .5rem}
.calc-bar{height:.5rem;background:var(--color-muted);border-radius:999px;margin-bottom:1.5rem;overflow:hidden}
.calc-bar span{display:block;height:100%;width:0;background:var(--color-accent);border-radius:999px;transition:width 400ms ease-out}
.calc fieldset,.calc-card fieldset{border:0;margin:0;padding:0;min-width:0}
.calc-card legend{padding:0;float:left;width:100%}
.calc-q{font-size:1.25rem;font-weight:700;margin:0 0 .25rem;line-height:1.3}
.calc-q:focus{outline:none}
.calc-help{clear:both;color:var(--color-text-secondary);margin:0 0 1rem;font-size:1rem}
@media(min-width:40rem){.calc-q{font-size:1.5rem}}
.calc-step{animation:calc-in var(--motion-step) ease-out both;clear:both}
.calc-step.back{animation-name:calc-inback}
.calc-step.out{animation:calc-out var(--motion-step) ease-out both}
@keyframes calc-in{from{opacity:0;transform:translateX(2rem)}to{opacity:1;transform:none}}
@keyframes calc-inback{from{opacity:0;transform:translateX(-2rem)}to{opacity:1;transform:none}}
@keyframes calc-out{to{opacity:0;transform:translateX(-2rem)}}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;clear:both;margin-top:1rem}
@media(min-width:40rem){.tiles--3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-height:7rem;padding:.75rem;background:#fff;border:1px solid var(--color-border);border-radius:.75rem;font:inherit;color:inherit;text-align:left;cursor:pointer;transition:transform 150ms,border-color 150ms}
.tile:hover{border-color:var(--color-accent);transform:translateY(-2px)}
.tile:focus-visible,.tile--check:focus-within,.calc-card input:focus-visible,.calc-card select:focus-visible,.calc-card textarea:focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}
.tile svg.ic{width:2.5rem;height:2.5rem;stroke:var(--color-accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tile b{font-size:.875rem;overflow-wrap:break-word;hyphens:manual}
.tile small{font-size:.8125rem;color:var(--color-text-secondary);line-height:1.4;overflow-wrap:break-word;hyphens:manual}
.tile .badge{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--color-accent);display:grid;place-items:center;transform:scale(0);transition:transform 200ms;padding:0;line-height:1}
.tile .badge svg{width:.875rem;height:.875rem;stroke:#fff;fill:none;stroke-width:3}
.tile[aria-pressed=true],.tile.is-selected{background:var(--color-selected);border:2px solid var(--color-accent);padding:calc(.75rem - 1px)}
.tile[aria-pressed=true] .badge,.tile.is-selected .badge{transform:scale(1)}
.tile--check .tile__input{position:absolute;opacity:0;width:1px;height:1px}
@media(min-width:40rem){.tile{padding:1rem}.tile[aria-pressed=true],.tile.is-selected{padding:calc(1rem - 1px)}.tile b{font-size:1rem}.tile small{font-size:.875rem}}
.field{margin-bottom:1rem;position:relative}
.field label,.field .lbl{display:block;font-weight:700;font-size:.9375rem;margin-bottom:.25rem}
.field label.consent{font-weight:400;display:flex;margin:0}
.field--flush{margin:0}
.field .opt{font-weight:400;color:var(--color-text-secondary)}
.field .hint{font-size:.875rem;color:var(--color-text-secondary);margin:.25rem 0 0}
.calc-card input[type=text],.calc-card input[type=email],.calc-card input[type=tel],.calc-card select,.calc-card textarea{width:100%;height:3rem;border:1px solid var(--color-border);border-radius:.5rem;padding:0 .75rem;font:inherit;font-size:1rem;background:#fff;color:inherit}
.calc-card textarea{height:7rem;padding:.75rem;resize:vertical}
.calc-card input:focus-visible,.calc-card select:focus-visible,.calc-card textarea:focus-visible{border-color:var(--color-accent)}
.unit{position:relative}
.unit span{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--color-text-secondary);pointer-events:none}
.unit input{padding-right:2.5rem!important}
.field.err input,.field.err select{border-color:var(--color-error)}
.err-msg{display:none;align-items:center;gap:.375rem;color:var(--color-error);font-size:.875rem;margin:.375rem 0 0}
.err-msg svg{width:1rem;height:1rem;flex:none;stroke:currentColor;fill:none;stroke-width:2}
.field.err .err-msg{display:flex}
.banner{display:flex;gap:.5rem;color:var(--color-error);font-size:.875rem;margin:1rem 0 0}
.nav-row{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;gap:1rem;flex-wrap:wrap}
.nav-row .btn{margin-left:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;height:3rem;padding:0 1.5rem;border-radius:999px;border:0;background:var(--color-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--color-accent-hover)}
.btn:disabled{opacity:.7;cursor:wait}
.btn:focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}
.btn-back{background:none;border:0;color:var(--color-accent);font:inherit;cursor:pointer;display:inline-flex;gap:.375rem;align-items:center;padding:.5rem 0;min-height:2.75rem;white-space:nowrap}
.btn-back:hover{text-decoration:underline}
.btn-back:focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}
.calc-card a{color:var(--color-accent);text-decoration:underline}
.calcing{text-align:center;padding:2rem 0}
.calcing svg{width:6rem;height:6rem;stroke:var(--color-accent);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:200;stroke-dashoffset:200;animation:calc-draw 1.1s ease-out forwards}
@keyframes calc-draw{to{stroke-dashoffset:0}}
.result{background:var(--color-muted);border-radius:var(--radius-card);padding:2rem;text-align:center}
.result__label{font-size:1rem;font-weight:400;color:var(--color-text-secondary);margin:0}
.result__label:focus{outline:none}
.result .val{font-size:2.25rem;font-weight:700;color:var(--color-accent);font-variant-numeric:tabular-nums;margin:0;line-height:1.2}
@media(min-width:40rem){.result .val{font-size:3rem}}
.result .max{font-size:1.25rem;font-weight:700;margin:.25rem 0 1rem}
.range{height:.5rem;background:var(--color-border);border-radius:999px;max-width:20rem;margin:0 auto;overflow:hidden}
.range span{display:block;height:100%;background:var(--color-accent);border-radius:999px}
.note{display:flex;gap:.5rem;font-size:.875rem;color:var(--color-text-secondary);margin:1rem 0}
.note svg{width:1.25rem;height:1.25rem;flex:none;margin-top:.125rem;stroke:var(--color-accent);fill:none;stroke-width:2}
.note p{margin:0}
.note strong{color:var(--color-text)}
.calc-card details{font-size:.875rem;margin-bottom:1.5rem}
.calc-card summary{cursor:pointer;color:var(--color-accent);text-decoration:underline;font-weight:700}
.calc-card summary:focus-visible{outline:3px solid var(--color-accent);outline-offset:2px}
.sum h3{font-size:1.125rem;margin:0 0 .5rem}
.sum dl{display:grid;grid-template-columns:1fr;gap:.25rem 1.5rem;margin:0 0 .75rem}
@media(min-width:40rem){.sum dl{grid-template-columns:1fr 1fr}}
.sum dl div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--color-border);padding:.25rem 0}
.sum dt{color:var(--color-text-secondary)}
.sum dd{margin:0;font-weight:700;text-align:right}
.other-note{background:var(--color-muted);border-radius:var(--radius-card);padding:1.5rem}
.other-note p{margin:0 0 .5rem}
.other-note:focus{outline:none}
.contact{border-top:1px solid var(--color-border);margin-top:2rem;padding-top:2rem}
.contact h2{font-size:1.5rem;margin:0 0 .5rem}
.contact h2:focus{outline:none}
.cols{display:grid;grid-template-columns:1fr;gap:0 1rem}
@media(min-width:40rem){.cols{grid-template-columns:1fr 1fr}}
.privacy{background:var(--color-muted);border-radius:.5rem;padding:1rem;font-size:.875rem;color:var(--color-text-secondary);margin-bottom:1rem}
.privacy p{margin:0 0 .75rem}
.consent{display:flex;gap:.75rem;align-items:flex-start;color:var(--color-text);font-size:.9375rem}
.consent input{width:1.25rem;height:1.25rem;accent-color:var(--color-accent);flex:none;margin-top:.2rem}
.hp{position:absolute;left:-9999px}
.success{text-align:center;padding:2rem 0;animation:calc-in var(--motion-step) ease-out both}
.success svg{width:5rem;height:5rem;stroke:var(--color-success);fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.success circle{stroke-dasharray:160;stroke-dashoffset:160;animation:calc-draw .6s ease-out forwards}
.success path{stroke-dasharray:40;stroke-dashoffset:40;animation:calc-draw .4s .5s ease-out forwards}
.success p{margin:.5rem 0 0}
.success b:focus{outline:none}
@media(prefers-reduced-motion:reduce){
    .calc-step,.calc-step.back,.success,.calcing svg,.success circle,.success path{animation:none}
    .calc-step.out{animation:none}
    .calcing svg,.success circle,.success path{stroke-dashoffset:0}
    .tile:hover{transform:none}
    .tile,.tile .badge,.calc-bar span{transition:none}
}
.calc-card,.calc-card *,.calc-card *::before,.calc-card *::after{box-sizing:border-box}
