:root {
  --ink: #18362d;
  --ink-soft: #2d4b42;
  --muted: #6f7f79;
  --green: #1f654e;
  --green-deep: #114333;
  --green-soft: #e7f1ec;
  --gold: #c5914e;
  --cream: #fbfaf6;
  --sand: #f3eee5;
  --white: #ffffff;
  --line: rgba(37, 79, 65, .13);
  --line-strong: rgba(37, 79, 65, .23);
  --shadow: 0 28px 80px rgba(38, 68, 57, .13);
  --shell: min(1320px, calc(100% - 72px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Tajawal", system-ui, sans-serif;
  overflow-x: hidden;
}
body.dialog-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; right: 10px; padding: 10px 14px; color: white; background: var(--green-deep); border-radius: 9px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: max(24px, calc((100% - 1440px) / 2));
  left: max(24px, calc((100% - 1440px) / 2));
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(38, 80, 66, .11);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(40, 72, 61, .1);
  backdrop-filter: blur(18px);
  transition: top .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled { top: 8px; background: rgba(255,255,255,.96); border-color: rgba(31,101,78,.2); }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 21px; font-weight: 500; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand b { color: var(--green-deep); font-weight: 900; }
.brand small { margin-top: 6px; color: #8b9994; font: 700 7px/1 Arial, sans-serif; letter-spacing: .18em; }
.brand-mark { position: relative; width: 39px; height: 39px; border: 1px solid rgba(31,101,78,.25); border-radius: 12px; transform: rotate(45deg); }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; }
.brand-mark::before { inset: 7px; border: 2px solid var(--green); border-top: 0; border-left: 0; }
.brand-mark::after { width: 8px; height: 8px; right: 5px; top: 5px; background: var(--gold); border-radius: 2px; }
.brand-mark i { width: 5px; height: 5px; right: 10px; bottom: 9px; background: var(--green); border-radius: 50%; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 7px; }
.main-nav a { position: relative; padding: 11px 13px; color: #61726c; font-size: 13px; font-weight: 700; transition: color .25s ease; }
.main-nav a::after { content: ""; position: absolute; right: 13px; bottom: 4px; width: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: width .25s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.main-nav a.active::after { width: calc(100% - 26px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link { padding: 11px 15px; color: var(--green-deep); border: 1px solid var(--line-strong); border-radius: 11px; font-size: 12px; font-weight: 700; transition: border-color .25s ease, background .25s ease; }
.back-link:hover { background: var(--green-soft); border-color: rgba(31,101,78,.35); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: #f4f8f6; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--green); transition: transform .25s ease; }

.button {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; background: linear-gradient(135deg, #15513e, #24745a); box-shadow: 0 15px 36px rgba(26,91,70,.22); }
.button-primary:hover { box-shadow: 0 20px 44px rgba(26,91,70,.3); }
.button-ghost { color: var(--green-deep); background: rgba(255,255,255,.78); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(44,73,63,.06); }
.button-ghost:hover { background: var(--green-soft); border-color: rgba(31,101,78,.35); }

.hero { position: relative; min-height: 100svh; padding: 132px 0 62px; display: grid; align-content: center; overflow: hidden; background: radial-gradient(circle at 10% 30%, rgba(197,145,78,.13), transparent 31%), radial-gradient(circle at 91% 12%, rgba(77,146,118,.12), transparent 28%), linear-gradient(145deg, #fbfaf6 0%, #ffffff 52%, #edf5f0 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 23%; background: linear-gradient(transparent, rgba(238,245,241,.9)); pointer-events: none; }
.hero-orb { position: absolute; border: 1px solid rgba(31,101,78,.08); border-radius: 50%; }
.orb-one { width: 510px; height: 510px; top: -180px; right: -110px; box-shadow: 0 0 0 74px rgba(31,101,78,.022), 0 0 0 148px rgba(31,101,78,.015); }
.orb-two { width: 380px; height: 380px; left: -140px; bottom: -150px; box-shadow: 0 0 0 55px rgba(197,145,78,.025); }
.hero-grid { position: relative; z-index: 2; min-height: 610px; }
.hero-copy { position: absolute; z-index: 6; top: 50%; right: clamp(24px, 4.5vw, 68px); width: min(520px, 44%); padding: clamp(26px, 3vw, 40px); translate: 0 -50%; background: rgba(251,250,246,.91); border: 1px solid rgba(255,255,255,.72); border-radius: 28px 8px 28px 28px; box-shadow: 0 32px 85px rgba(25,61,48,.2); backdrop-filter: blur(18px); }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 14px; font-weight: 800; }
.eyebrow span { width: 25px; height: 2px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 12px rgba(197,145,78,.35); }
.hero h1, .section-heading h2, .journey-copy h2, .finance-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(36px, 3.45vw, 54px); font-weight: 900; line-height: 1.16; letter-spacing: -.035em; }
.hero h1 em, .section-heading h2 em, .journey-copy h2 em, .finance-copy h2 em, .contact-copy h2 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 560px; margin: 24px 0 0; color: #61716c; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 29px; }
.trust-list { margin: 24px 0 0; padding: 0; display: flex; gap: 22px; list-style: none; color: #61726c; font-size: 13px; }
.trust-list li { display: flex; align-items: center; gap: 7px; }
.trust-list b { display: grid; place-items: center; width: 19px; height: 19px; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 10px; }
.hero-media { position: absolute; inset: 0; min-height: 0; display: block; }
.hero-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border: 7px solid rgba(255,255,255,.9); border-radius: 42px 42px 110px 42px; box-shadow: 0 38px 100px rgba(40,74,61,.22); }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,34,26,.04) 0%, transparent 34%, rgba(250,249,244,.18) 100%), linear-gradient(transparent 54%, rgba(9,34,26,.72)); pointer-events: none; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; animation: estateFloat 8s ease-in-out infinite; }
.property-badge { position: absolute; z-index: 2; top: 24px; right: auto; left: 24px; padding: 8px 11px; color: var(--green-deep); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.5); border-radius: 10px; backdrop-filter: blur(12px); font-size: 10px; font-weight: 800; }
.hero-property { position: absolute; z-index: 2; right: auto; left: 35px; bottom: 29px; color: white; text-align: right; }
.hero-property span, .hero-property strong, .hero-property b { display: block; }
.hero-property span { color: #d9e6e0; font-size: 11px; }
.hero-property strong { margin-top: 5px; font-size: 21px; }
.hero-property b { margin-top: 7px; color: #f0c98f; font-size: 15px; }
.floating-card { position: absolute; z-index: 4; background: rgba(255,255,255,.91); border: 1px solid rgba(31,101,78,.14); box-shadow: 0 18px 50px rgba(39,73,60,.14); backdrop-filter: blur(14px); }
.card-area { top: 24%; left: 3%; width: 92px; min-height: 88px; padding: 12px; display: grid; text-align: center; border-radius: 18px; }
.card-area small, .card-area span { color: var(--muted); font-size: 10px; }
.card-area strong { color: var(--green-deep); font: 900 28px/1 Arial, sans-serif; }
.card-status { right: 3%; left: auto; bottom: 4%; padding: 12px 15px; display: flex; align-items: center; gap: 9px; border-radius: 14px; }
.card-status i { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 9px; font-style: normal; font-size: 12px; }
.card-status span { color: #61716c; font-size: 10px; line-height: 1.5; }
.card-status b { color: var(--green-deep); font-size: 11px; }
.quick-search { position: relative; z-index: 7; width: min(1100px, calc(100% - 110px)); margin-top: -48px; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 25px 65px rgba(39,73,60,.16); backdrop-filter: blur(16px); }
.quick-search label { color: #63736d; font-size: 11px; font-weight: 700; }
.quick-search label span { display: block; margin: 0 3px 7px; }
.quick-search select { width: 100%; height: 48px; padding: 0 13px; color: var(--ink); background: #f7f9f7; border: 1px solid #dce7e1; border-radius: 11px; outline: 0; }
.quick-search select:focus { border-color: rgba(31,101,78,.5); box-shadow: 0 0 0 3px rgba(31,101,78,.09); }

.section { position: relative; padding: 108px 0; }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-heading h2 { font-size: clamp(30px, 2.7vw, 42px); }
.section-heading > p { width: min(470px, 42%); margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.properties { background: #f2f6f3; }
.filter-bar { padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 9px; align-items: end; background: white; border: 1px solid #dce6e0; border-radius: 18px; box-shadow: 0 18px 50px rgba(35,73,59,.06); }
.filter-bar label { color: #66766f; font-size: 11px; font-weight: 700; }
.filter-bar select { width: 100%; height: 46px; margin-top: 7px; padding: 0 12px; color: var(--ink); background: #f7f9f8; border: 1px solid #dde7e1; border-radius: 10px; outline: 0; }
.filter-bar select:focus { border-color: rgba(31,101,78,.45); box-shadow: 0 0 0 3px rgba(31,101,78,.08); }
.reset-filter { height: 46px; padding: 0 17px; color: var(--green); background: var(--green-soft); border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; }
.results-row { min-height: 42px; margin: 11px 3px 5px; display: flex; align-items: center; justify-content: space-between; color: #7a8984; font-size: 11px; }
.results-row p { margin: 0; }
.property-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.property-card { overflow: hidden; background: white; border: 1px solid #dce5e0; border-radius: 22px; box-shadow: 0 18px 50px rgba(35,73,59,.07); transition: transform .3s ease, box-shadow .3s ease, opacity .25s ease; }
.property-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.18fr .82fr; min-height: 410px; }
.property-card:first-child .property-image { height: 100%; min-height: 410px; }
.property-card:first-child .property-body { padding: 32px; align-self: center; }
.property-card:first-child .property-title h3 { font-size: 27px; }
.property-card:hover { transform: translateY(-7px); box-shadow: 0 28px 65px rgba(35,73,59,.13); }
.property-card[hidden] { display: none; }
.property-image { position: relative; height: 270px; overflow: hidden; background: #e7eee9; }
.property-image::after { content: ""; position: absolute; inset: auto 0 0; height: 27%; background: linear-gradient(transparent, rgba(11,43,32,.38)); pointer-events: none; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.property-card:hover .property-image img { transform: scale(1.045); }
.listing-label { position: absolute; z-index: 3; top: 14px; right: 14px; padding: 7px 10px; color: var(--green-deep); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.5); border-radius: 9px; backdrop-filter: blur(10px); font-size: 10px; font-weight: 800; }
.favorite { position: absolute; z-index: 4; top: 13px; left: 13px; width: 37px; height: 37px; padding: 0; color: var(--green-deep); background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 21px; line-height: 1; box-shadow: 0 8px 22px rgba(20,46,37,.1); }
.favorite.active { color: #c15463; background: white; }
.property-body { padding: 20px; }
.location { margin: 0; color: #788781; font-size: 10px; font-weight: 600; }
.location span { color: var(--gold); font-size: 14px; }
.property-title { margin-top: 9px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.property-title h3 { margin: 0; color: var(--ink); font-size: 21px; }
.property-title span { padding: 6px 8px; color: var(--green); background: var(--green-soft); border-radius: 7px; font-size: 9px; font-weight: 800; }
.property-price { display: block; margin-top: 9px; color: var(--green); font-size: 15px; }
.property-specs { margin: 17px 0; padding: 13px 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid #e9eeeb; border-bottom: 1px solid #e9eeeb; }
.property-specs li { display: flex; align-items: center; justify-content: center; gap: 5px; color: #65766f; text-align: center; border-left: 1px solid #e7ece9; font-size: 10px; }
.property-specs li:last-child { border-left: 0; }
.property-specs b { color: var(--gold); font-size: 13px; }
.card-action { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: var(--green-deep); background: #f4f8f5; border: 1px solid #dfe8e3; border-radius: 11px; font-size: 12px; font-weight: 800; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.card-action:hover { color: white; background: var(--green); border-color: var(--green); }
.empty-state { padding: 60px 20px; text-align: center; color: #7b8b85; background: white; border: 1px dashed #cbd9d2; border-radius: 20px; }
.empty-state span { display: block; color: var(--gold); font-size: 42px; }
.empty-state h3 { margin: 8px 0; color: var(--ink); }
.empty-state p { margin: 0; }

.journey { overflow: hidden; background: linear-gradient(145deg, #fbfaf6, #f1eee7); }
.journey::before { content: ""; position: absolute; width: 430px; height: 430px; top: -210px; left: -110px; background: rgba(197,145,78,.09); border-radius: 50%; }
.journey-grid { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.journey-copy h2, .finance-copy h2, .contact-copy h2 { font-size: clamp(31px, 2.9vw, 44px); }
.journey-copy > p:not(.eyebrow), .finance-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.text-link { margin-top: 25px; display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; font-weight: 800; }
.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translateX(-5px); }
.journey-steps { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: none; }
.journey-steps li { min-height: 94px; padding: 17px 19px; display: grid; grid-template-columns: 42px 1fr 46px; align-items: center; gap: 14px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 15px 38px rgba(42,72,61,.06); transition: transform .3s ease, border-color .3s ease; }
.journey-steps li:hover { transform: translateX(-7px); border-color: rgba(31,101,78,.27); }
.journey-steps > li > span { color: #9a8a73; font: 800 10px/1 Arial, sans-serif; }
.journey-steps strong { font-size: 16px; }
.journey-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.journey-steps i { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 13px; font-style: normal; font-size: 20px; }

.finance { background: linear-gradient(145deg, #eaf3ee, #f7faf8); }
.finance-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.calculator { padding: 29px; background: rgba(255,255,255,.9); border: 1px solid rgba(31,101,78,.14); border-radius: 24px; box-shadow: var(--shadow); }
.calculator-head { margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; }
.calculator-head span { font-size: 21px; font-weight: 900; }
.calculator-head b { padding: 7px 10px; color: var(--green); background: var(--green-soft); border-radius: 8px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .12em; }
.calculator label { position: relative; display: block; color: #5f7169; font-size: 12px; font-weight: 700; }
.calculator input[type="range"] { width: 100%; margin: 24px 0 7px; accent-color: var(--green); }
.calculator output { display: block; color: var(--ink); font-size: 21px; font-weight: 900; }
.calculator-row { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calculator select { width: 100%; height: 48px; margin-top: 8px; padding: 0 12px; color: var(--ink); background: #f5f8f6; border: 1px solid var(--line-strong); border-radius: 11px; }
.monthly-result { margin: 24px 0 17px; padding: 20px; display: grid; text-align: center; background: linear-gradient(135deg, rgba(31,101,78,.12), rgba(197,145,78,.08)); border: 1px solid rgba(31,101,78,.17); border-radius: 16px; }
.monthly-result span { color: #667870; font-size: 11px; }
.monthly-result strong { margin: 6px 0; color: var(--green); font-size: 32px; }
.monthly-result small { color: #85918d; font-size: 9px; }
.calculator .button { width: 100%; }
.finance-copy ul { margin: 25px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; color: #5d7068; font-size: 13px; }
.finance-copy li::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-left: 8px; color: var(--green); background: rgba(31,101,78,.11); border-radius: 50%; font-size: 10px; }

.contact { background: #f4f5f1; }
.contact-panel { padding: 40px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(45px, 7vw, 95px); background: white; border: 1px solid #dde5df; border-radius: 28px; box-shadow: 0 26px 70px rgba(38,69,57,.09); }
.contact-copy h2 { font-size: clamp(30px, 2.8vw, 42px); }
.contact-note { margin-top: 25px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--green-soft); border-radius: 12px; }
.contact-note b { padding: 7px 9px; color: white; background: var(--green); border-radius: 8px; font-size: 9px; }
.contact-note span { color: #62736c; font-size: 11px; }
.viewing-form { padding: 25px; background: #f7f8f5; border: 1px solid #e1e7e2; border-radius: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.viewing-form label { display: block; margin-bottom: 13px; color: #5e7068; font-size: 11px; font-weight: 700; }
.viewing-form input, .viewing-form select { width: 100%; height: 48px; margin-top: 7px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid #d8e2dc; border-radius: 10px; outline: 0; }
.viewing-form input:focus, .viewing-form select:focus { border-color: rgba(31,101,78,.5); box-shadow: 0 0 0 3px rgba(31,101,78,.08); }
.viewing-form .button { width: 100%; }
.form-note { margin: 10px 0 0; color: #89958f; text-align: center; font-size: 9px; }

.site-footer { padding: 29px 0; background: white; border-top: 1px solid var(--line); }
.site-footer .shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-brand { font-size: 17px; }
.footer-brand .brand-mark { width: 31px; height: 31px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.site-footer .shell > a:last-child { justify-self: end; color: var(--green); font-size: 11px; font-weight: 700; }

.property-dialog { width: min(980px, calc(100% - 32px)); max-height: min(770px, calc(100svh - 32px)); padding: 0; overflow: hidden; color: var(--ink); background: white; border: 1px solid rgba(31,101,78,.16); border-radius: 25px; box-shadow: 0 40px 130px rgba(26,52,43,.3); }
.property-dialog[open] { display: grid; grid-template-columns: 1.07fr .93fr; animation: dialogIn .3s ease both; }
.property-dialog::backdrop { background: rgba(24,54,45,.5); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 4; top: 13px; left: 13px; width: 38px; height: 38px; padding: 0; color: var(--green-deep); background: rgba(255,255,255,.92); border: 1px solid rgba(31,101,78,.15); border-radius: 50%; box-shadow: 0 8px 24px rgba(30,64,52,.14); font-size: 25px; }
.dialog-image { min-height: 580px; background: #e8efeb; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: 33px; overflow-y: auto; }
.dialog-category { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; }
.dialog-content h2 { margin: 0; font-size: 34px; }
.dialog-location { margin: 8px 0 0 !important; color: var(--gold) !important; font-weight: 700; }
.dialog-content > p:not(.dialog-category) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.dialog-price { margin-top: 20px; padding: 15px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(31,101,78,.1), rgba(197,145,78,.07)); border: 1px solid rgba(31,101,78,.16); border-radius: 13px; }
.dialog-price span { color: var(--muted); font-size: 10px; }
.dialog-price strong { color: var(--green); font-size: 18px; }
.dialog-specs { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-specs div { padding: 11px; background: #f3f6f4; border: 1px solid #e3eae6; border-radius: 10px; }
.dialog-specs dt { color: #7c8c85; font-size: 9px; }
.dialog-specs dd { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.dialog-features { margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; color: #566a61; font-size: 11px; }
.dialog-features li::before { content: "✓"; margin-left: 6px; color: var(--green); }
.dialog-content .button { width: 100%; }

.toast { position: fixed; z-index: 200; left: 22px; bottom: 22px; max-width: 390px; padding: 13px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: white; border: 1px solid #dce5df; border-radius: 15px; box-shadow: 0 25px 70px rgba(29,60,48,.2); transform: translateY(140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.toast.show { transform: none; opacity: 1; }
.toast > span { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 10px; font-weight: 900; }
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; margin-top: 3px; color: #75867f; font-size: 9px; }
.toast button { margin-right: auto; color: #89958f; background: transparent; border: 0; font-size: 22px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: none; }
@keyframes estateFloat { 0%,100% { transform: scale(1.01) translateY(0); } 50% { transform: scale(1.025) translateY(-4px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 46px, 1000px); }
  .site-header { right: 15px; left: 15px; }
  .main-nav { gap: 1px; }
  .main-nav a { padding-inline: 9px; font-size: 11px; }
  .back-link { display: none; }
  .hero-grid { min-height: 560px; }
  .hero-copy { right: 32px; width: min(470px, 48%); padding: 28px; }
  .hero-frame { height: 100%; }
  .property-image { height: 225px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 720px); }
  html { scroll-padding-top: 90px; }
  .site-header { top: 10px; min-height: 66px; padding: 0 15px; }
  .site-header.scrolled { top: 5px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle { display: block; }
  .menu-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: fixed; top: 86px; right: 10px; left: 10px; padding: 8px; display: grid; background: rgba(255,255,255,.98); border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero { padding-top: 105px; }
  .hero-grid, .journey-grid, .finance-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; display: grid; gap: 18px; }
  .hero-copy { position: relative; top: auto; right: auto; width: auto; padding: 27px; translate: none; text-align: center; border-radius: 22px; order: 0; }
  .hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-media { position: relative; inset: auto; order: -1; min-height: 415px; }
  .hero-frame { width: 100%; height: 400px; border-radius: 28px 28px 80px 28px; }
  .card-area { left: 1%; }
  .quick-search { width: var(--shell); margin-top: 20px; grid-template-columns: 1fr 1fr; }
  .section { padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading > p { width: auto; margin-top: 15px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .property-card:first-child { grid-column: auto; display: block; min-height: 0; }
  .property-card:first-child .property-image { height: min(58vw, 390px); min-height: 0; }
  .property-card:first-child .property-body { padding: 20px; }
  .property-card:first-child .property-title h3 { font-size: 21px; }
  .property-image { height: min(58vw, 390px); }
  .journey-copy, .finance-copy { text-align: center; }
  .journey-copy .eyebrow, .finance-copy .eyebrow { justify-content: center; }
  .journey-copy > p:not(.eyebrow), .finance-copy > p:not(.eyebrow) { margin-inline: auto; }
  .finance-copy { order: -1; }
  .finance-copy ul { width: max-content; max-width: 100%; margin-inline: auto; text-align: right; }
  .contact-panel { padding: 28px; }
  .property-dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-image { min-height: 300px; height: 300px; }
  .dialog-content { overflow: visible; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 24px); }
  .site-header { right: 7px; left: 7px; padding-inline: 12px; border-radius: 14px; }
  .brand small { display: none; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .hero-media { min-height: 315px; }
  .hero-frame { height: 300px; border-width: 5px; border-radius: 22px 22px 55px 22px; }
  .hero-property { right: auto; left: 18px; bottom: 17px; }
  .hero-property strong { font-size: 16px; }
  .property-badge { top: 13px; left: 13px; }
  .card-area { width: 76px; min-height: 72px; top: 20%; left: 2%; }
  .card-area strong { font-size: 21px; }
  .card-status { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-list { flex-wrap: wrap; gap: 11px; }
  .quick-search, .filter-bar { grid-template-columns: 1fr; }
  .quick-search .button { width: 100%; }
  .section { padding: 70px 0; }
  .property-image { height: 260px; }
  .journey-steps li { grid-template-columns: 34px 1fr 40px; padding: 14px; }
  .journey-steps i { width: 40px; height: 40px; }
  .calculator, .contact-panel, .viewing-form { padding: 20px; }
  .calculator-row, .form-row { grid-template-columns: 1fr; gap: 0; }
  .monthly-result strong { font-size: 27px; }
  .site-footer .shell { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer .shell > a:last-child { justify-self: center; }
  .dialog-content { padding: 23px; }
  .dialog-features { grid-template-columns: 1fr; }
  .toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Phone layout: image-led property browsing without floating or clipped panels. */
@media (max-width: 767px) {
  :root { --shell: calc(100% - 24px); }
  html { scroll-padding-top: 80px; }
  body { overflow-x: clip; }
  a, button, select, input { touch-action: manipulation; }

  .site-header {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 64px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 16px;
  }

  .site-header.scrolled { top: 4px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { gap: 0; }
  .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; }

  .main-nav {
    top: 79px;
    right: 8px;
    left: 8px;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 15px;
  }

  .main-nav a {
    min-height: 47px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .hero { min-height: 0; padding: 92px 0 58px; }
  .hero-orb { display: none; }
  .hero-grid { gap: 17px; }
  .hero-copy { padding: 23px 18px; border-radius: 20px; }
  .hero h1 { font-size: clamp(29px, 8.8vw, 35px); line-height: 1.27; letter-spacing: -.025em; }
  .hero-lead { margin-top: 16px; font-size: 16px; line-height: 1.8; }
  .eyebrow { margin-bottom: 13px; font-size: 14px; line-height: 1.6; }
  .hero-actions { margin-top: 21px; gap: 9px; }
  .button { min-height: 50px; font-size: 14px; }
  .trust-list { margin-top: 18px; gap: 9px 14px; font-size: 13px; }

  .hero-media { min-height: 280px; }
  .hero-frame {
    height: 270px;
    border-width: 4px;
    border-radius: 22px 22px 48px 22px;
  }

  .hero-frame img { animation: none; }
  .hero-property { right: 12px; left: 12px; bottom: 12px; padding: 12px; }
  .hero-property span { font-size: 11px; }
  .hero-property strong { font-size: 15px; }
  .hero-property b { font-size: 13px; }
  .property-badge { top: 11px; left: 11px; font-size: 10px; }
  .floating-card { display: none; }

  .quick-search {
    margin-top: 17px;
    padding: 12px;
    gap: 9px;
    border-radius: 16px;
  }

  .quick-search label, .filter-bar label, .viewing-form label, .calculator label { font-size: 14px; }
  .quick-search select, .filter-bar select, .viewing-form input, .viewing-form select, .calculator select { font-size: 16px; }

  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2, .journey-copy h2, .finance-copy h2, .contact-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.3;
    letter-spacing: -.02em;
  }

  .section-heading > p, .journey-copy > p:not(.eyebrow), .finance-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
    margin-top: 13px;
    font-size: 16px;
    line-height: 1.8;
  }

  .filter-bar { padding: 12px; gap: 9px; border-radius: 16px; }
  .reset-filter { min-height: 48px; }
  .property-grid { gap: 14px; }
  .property-card { border-radius: 18px; }
  .property-image, .property-card:first-child .property-image { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .property-body, .property-card:first-child .property-body { padding: 18px; }
  .property-title { display: grid; gap: 8px; }
  .property-title h3, .property-card:first-child .property-title h3 { font-size: 20px; }
  .property-title > strong { justify-self: start; font-size: 15px; }
  .property-specs { margin: 15px 0; }
  .property-specs span { font-size: 11px; }
  .property-specs b { font-size: 13px; }
  .card-action { min-height: 46px; font-size: 13px; }

  .journey-grid, .finance-grid, .contact-panel { gap: 28px; }
  .journey-steps { margin-top: 22px; }
  .journey-steps li { min-height: 82px; padding: 13px; grid-template-columns: 32px minmax(0, 1fr) 38px; gap: 10px; }
  .journey-steps strong { font-size: 15px; }
  .journey-steps p { font-size: 13px; }
  .journey-steps i { width: 38px; height: 38px; }
  .calculator, .contact-panel, .viewing-form { padding: 20px; border-radius: 19px; }
  .finance-copy ul { width: 100%; font-size: 14px; }
  .monthly-result strong { font-size: 26px; }
  .contact-copy { text-align: center; }
  .contact-copy .eyebrow { justify-content: center; }
  .contact-meta { text-align: right; }
  .contact-meta span { font-size: 14px; line-height: 1.7; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .viewing-form .button { width: 100%; }

  .site-footer { padding: 25px 0; }
  .site-footer .shell { gap: 14px; }
  .site-footer p, .site-footer .shell > a:last-child { font-size: 13px; line-height: 1.7; }

  .property-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .property-dialog[open] { grid-template-columns: 1fr; }
  .dialog-image { min-height: 210px; height: 210px; }
  .dialog-content { padding: 22px 18px 24px; }
  .dialog-content h2 { font-size: 28px; }
  .dialog-content > p { font-size: 15px; line-height: 1.75; }
  .dialog-features { font-size: 13px; }
  .dialog-content .button { width: 100%; }
}

@media (max-width: 380px) {
  .brand-mark { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-media { min-height: 245px; }
  .hero-frame { height: 235px; }
  .property-badge { display: none; }
  .journey-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .journey-steps i { display: none; }
}
