:root {
  --ink: #111111;
  --muted: #666666;
  --cream: #f4f4f4;
  --paper: #ffffff;
  --white: #fff;
  --lime: #d71920;
  --orange: #d71920;
  --line: #dedede;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Arabic", sans-serif;
  direction: rtl;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.site-header {
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23,54,47,.12);
  background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 14px; }
.brand-dot { color: var(--orange); }
.top-nav { display: flex; gap: 20px; color: var(--muted); font-size: 12px; font-weight: 600; }
.top-nav a { padding: 28px 0 25px; border-bottom: 2px solid transparent; }
.top-nav a.active { color: var(--ink); border-color: var(--orange); }
.menu-toggle { display: none; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); background: white; color: var(--ink); font-weight: 700; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 18px; height: 2px; display: block; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; right: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.language-button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 20px; font-weight: 700; }
.contact-links { display: grid; gap: 12px; margin-top: 22px; }
.contact-links a { width: fit-content; color: var(--orange); font-weight: 700; }
.contact-links span { color: var(--muted); }

.intro { padding: 64px 5vw 40px; max-width: 1200px; margin: auto; }
.intro h1 { max-width: 800px; margin-top: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.15; }
.intro p { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.intro-cta { width: fit-content; margin-top: 26px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.eyebrow > span:first-child { flex: 0 0 22px; width: 22px; height: 1px; background: currentColor; }
.eyebrow > span:not(:first-child) { width: auto; height: auto; background: transparent; }
.intro-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.intro-secondary { width: auto; margin-top: 26px; padding: 15px 22px; text-decoration: none; }
h1, h2, h3 { font-family: inherit; margin: 0; }
h1 { margin-top: 26px; font-size: clamp(48px, 5.4vw, 82px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--orange); font-style: normal; }
.hero-copy p { max-width: 530px; color: var(--muted); font-size: 17px; line-height: 1.7; margin: 27px 0 34px; }
.hero-cta, .calculate-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; padding: 14px 16px 14px 22px; background: var(--ink); color: white; border: 0; font-weight: 700; font-size: 13px; }
.hero-cta span, .calculate-button span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: white; }

.hero-visual { position: relative; min-height: 610px; background: var(--ink); overflow: hidden; }
.sun { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--orange); right: 12%; top: 12%; }
.plot-grid { position: absolute; inset: 39% -12% -30% -12%; transform: perspective(600px) rotateX(64deg) rotateZ(-12deg); background-image: linear-gradient(rgba(215,25,32,.30) 1px, transparent 1px), linear-gradient(90deg, rgba(215,25,32,.30) 1px, transparent 1px); background-size: 48px 48px; border: 1px solid var(--lime); }
.tower { position: absolute; bottom: 19%; width: 16%; background: #f3eee3; box-shadow: 18px 17px 0 rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 11%; padding: 16px 12px; }
.tower span { display: block; background: var(--ink); opacity: .75; height: 10%; }
.tower-one { height: 35%; left: 18%; }
.tower-two { height: 46%; left: 42%; width: 20%; }
.tower-three { height: 61%; left: 69%; width: 18%; }
.visual-label { position: absolute; right: 8%; bottom: 7%; display: flex; flex-direction: column; padding-right: 14px; border-right: 2px solid var(--lime); color: white; }
.visual-label span { color: #a8b7b1; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.visual-label strong { font: 700 24px Manrope, sans-serif; margin-top: 3px; }

.calculator-section { padding: 42px 5vw 70px; }
.pathways { padding: 30px 5vw 55px; }
.section-heading { max-width: 1200px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { margin-top: 15px; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.055em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.65; }
.calculator-shell { max-width: 1200px; margin: auto; display: grid; grid-template-columns: .92fr 1.08fr; background: white; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(23,54,47,.08); }
.input-panel { padding: 32px; border-right: 1px solid var(--line); }
.panel-intro { display: flex; align-items: center; gap: 15px; margin-bottom: 35px; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: white; font-weight: 800; font-size: 12px; }
.panel-intro h3 { font-size: 20px; letter-spacing: -.03em; }
.panel-intro p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.field { display: block; margin-bottom: 19px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.field > span { display: block; margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.choice-buttons button { min-height: 52px; padding: 8px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.choice-buttons button.selected { border-color: var(--orange); background: var(--orange); color: white; }
[data-choice="saleMode"] { grid-template-columns: 1fr 1fr; }
select, .number-input { width: 100%; min-height: 52px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 13px; outline: none; transition: border .2s; font-size: 15px; }
select:focus, .number-input:focus-within { border-color: var(--orange); }
.number-input { display: flex; align-items: center; }
.number-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.number-input b { white-space: nowrap; color: #777; font-size: 12px; text-transform: none; }
.range-field { padding: 0; border: 0; background: transparent; }
.range-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; color: var(--ink); }
.range-value strong { font-size: 22px; }
.range-value b { color: var(--muted); font-size: 12px; }
input[type="range"] { width: 100%; accent-color: var(--orange); cursor: pointer; }
.range-limits { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 11px; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 24px; }
summary { display: flex; justify-content: space-between; padding: 15px 0; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.assumptions { padding: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.criteria-box { margin: 7px 0 20px; padding: 16px; background: #f6f6f6; border-right: 3px solid var(--lime); }
.criteria-title { display: block; color: var(--ink); font-size: 14px; font-weight: 800; }
.criteria-box p { margin: 6px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.criteria-box .field { margin-bottom: 0; }
.fixed-assumptions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.fixed-assumptions span { padding: 9px 10px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.fixed-assumptions b { color: var(--orange); }
.result-assumptions { margin-top: 24px; padding: 20px; background: white; border: 1px solid var(--line); }
.result-assumptions .fixed-assumptions { margin-top: 12px; }
.three-fields { grid-template-columns: repeat(3, 1fr); }
.calculate-button { width: 100%; }
.input-group { margin-bottom: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.group-label { display: block; margin-bottom: 14px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.results-panel { padding: 32px; background: #f5f5f5; color: var(--ink); }
.results-topline, .breakdown-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); letter-spacing: .03em; font-size: 12px; font-weight: 700; }
.status { color: var(--roi-color, #17833b); }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--roi-color, #17833b); margin-left: 5px; }
.result-actions { display: flex; align-items: center; gap: 14px; }
.result-actions button { padding: 8px 12px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.headline-result { padding: 36px 0 30px; }
.headline-result > span { color: var(--muted); font-size: 14px; }
.headline-result strong { display: block; color: var(--roi-color, #17833b); font-size: clamp(55px, 6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin: 8px 0 17px; }
.headline-result p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 480px; }
.result-formula { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.roi-track { height: 3px; background: #ddd; }
.roi-track span { display: block; width: 47%; height: 100%; background: var(--roi-color, #17833b); transition: width .5s; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 140px; padding: 20px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.metric strong { display: block; font-size: 25px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; }
.metric small { display: block; color: #707070; font-size: 12px; line-height: 1.6; }
.metric.featured { background: var(--lime); color: white; }
.metric.featured span, .metric.featured small { color: rgba(255,255,255,.85); }
.project-summary { margin: 28px 0; padding: 20px; background: white; border: 1px solid var(--line); }
.project-summary > div { display: flex; flex-wrap: wrap; gap: 8px; }
.project-summary strong { padding: 8px 12px; background: #f4f4f4; font-size: 13px; }
.result-group-label { margin-top: 26px; }
.floor-results { display: grid; gap: 4px; margin: 10px 0; }
.floor-results b { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 500; }
.floor-results b span { margin-inline-start: auto; margin-inline-end: 12px; color: var(--orange); font-weight: 700; }
.floor-results strong { display: inline; margin: 0; color: var(--ink); font-size: 14px; }
.levels-comparison { margin-top: 24px; padding: 22px; background: white; border: 1px solid #efb7b9; }
.comparison-title { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.comparison-title span, .comparison-grid span { display: block; color: var(--muted); font-size: 12px; }
.comparison-title strong { display: block; color: var(--orange); font-size: 28px; font-weight: 800; margin-top: 5px; }
.comparison-title small, .comparison-grid small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 18px; }
.comparison-grid strong { display: block; margin: 6px 0; font-size: 18px; }
.financial-results { margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--ink); }
.financial-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.financial-list > div { padding: 17px; background: white; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.financial-list span, .financial-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.financial-list strong { display: block; margin: 7px 0 4px; font-size: 20px; }
.financial-list .grand-total { background: var(--ink); color: white; }
.financial-list .grand-total span, .financial-list .grand-total small { color: #bbb; }
.sales-list { margin-top: 18px; }
.cost-breakdown { padding-top: 28px; }
.breakdown-heading > span:last-child { text-align: left; }
.breakdown-heading b, .breakdown-heading small { display: block; }
.breakdown-heading small { margin-top: 4px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stacked-bar { display: flex; height: 8px; margin: 14px 0; }
.stacked-bar span { transition: width .5s; }
.land-bar { background: var(--orange); }
.build-bar { background: var(--lime); }
.soft-bar { background: #999; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend span { color: var(--muted); font-size: 11px; }
.legend i { display: inline-block; width: 6px; height: 6px; margin-left: 4px; }
.legend b { color: var(--ink); margin-right: 3px; }
.land-dot { background: var(--orange); } .build-dot { background: var(--lime); } .soft-dot { background: #999; }
.disclaimer { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.result-warning, .assumption-box { margin: 18px 0 24px; padding: 16px; border-right: 4px solid var(--orange); background: #fff; color: var(--muted); font-size: 12px; line-height: 1.8; }
.result-warning:empty { display: none; }
.assumption-box strong, .detail-result-warning strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.assumption-box p { margin: 0 0 7px; }
.assumption-box small { color: var(--muted); }

.pathways { background: white; }
.pathway-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.pathway-card { min-height: 130px; padding: 22px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-right: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: right; font: inherit; cursor: pointer; }
.pathway-card:last-child { border-right: 1px solid var(--line); }
.pathway-card > span { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.pathway-card h3 { margin: 16px 0 5px; font-size: 18px; letter-spacing: -.02em; }
.pathway-card p { color: var(--muted); line-height: 1.5; font-size: 13px; margin: 0; }
.pathway-card b { margin-top: auto; color: var(--ink); font-size: 12px; }
.pathway-card.current { border-top: 3px solid var(--orange); }
.pathway-card.dark { background: white; color: var(--ink); }
.pathway-card.dark p { color: var(--muted); }
.pathway-card.dark b { color: var(--orange); }
.study-message { max-width: 1200px; margin: 22px auto 0; padding: 28px 32px; background: white; border-right: 4px solid var(--orange); box-shadow: 0 14px 35px rgba(0,0,0,.05); }
.study-message strong { font-size: 22px; font-weight: 800; }
.study-message p { color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.study-message a { display: inline-block; margin-top: 16px; color: var(--orange); font-weight: 700; }
.view-message { max-width: 900px; min-height: 360px; margin: 70px auto; padding: 70px; display: grid; place-content: center; text-align: center; background: #f5f5f5; border: 1px solid var(--line); }
.view-message strong { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.ownership-buttons { max-width: 340px; margin-bottom: 16px; }
.share-results { width: 100%; margin-top: 18px; padding: 13px; border: 1px solid var(--ink); background: white; color: var(--ink); font-weight: 700; cursor: pointer; }
.view-message p { color: var(--muted); font-size: 18px; }
.view-message a { color: var(--orange); font-weight: 700; }
.assumptions p { margin: 0 0 10px; }
[hidden] { display: none !important; }

.criterion-readout { padding: 14px; border: 1px solid var(--line); background: #f7f7f7; }
.criterion-readout span, .criterion-readout small { display: block; color: var(--muted); font-size: 12px; }
.criterion-readout strong { display: block; margin: 5px 0; font-size: 22px; }
.detailed-section { padding: 42px 5vw 70px; }
.detail-progress { max-width: 1200px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.detail-progress span { padding: 10px; border-left: 1px solid var(--line); color: var(--muted); background: #f7f7f7; text-align: center; font-size: 11px; font-weight: 700; }
.detail-progress span:last-child { border-left: 0; }
.detail-progress span.active { background: var(--ink); color: white; }
.detailed-shell { max-width: 1200px; margin: auto; display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); background: white; }
.detailed-controls, .land-preview { padding: 32px; }
.detailed-controls { border-left: 1px solid var(--line); }
.land-mode-buttons { grid-template-columns: 1fr; margin-bottom: 26px; }
.helper-text { color: var(--muted); font-size: 13px; line-height: 1.7; }
.street-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.street-controls button, .secondary-button { padding: 10px; border: 1px solid var(--line); background: white; font: inherit; font-weight: 700; cursor: pointer; }
.street-controls button.selected { border-color: var(--orange); color: var(--orange); background: #fff4f4; }
.street-widths { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirm-land { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 700; }
.layout-controls { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.plot-stage { position: relative; min-height: 455px; display: grid; place-items: center; padding: 58px 58px 88px; background: #f4f4f4; overflow: hidden; }
.plot-shape { position: relative; width: 62%; height: 72%; background: white; box-shadow: 0 12px 35px rgba(0,0,0,.08); transition: clip-path .25s; }
.plot-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plot-outline polygon { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plot-dimensions { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 6px 10px; background: var(--ink); color: white; font-weight: 700; font-size: 13px; white-space: nowrap; z-index: 2; }
.edge { position: absolute; border: 0; background: transparent; color: #aaa; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.edge.selected { color: var(--orange); }
.edge-north { top: 18px; left: 45%; }
.edge-south { bottom: 52px; left: 45%; }
.edge-east { right: 14px; top: 48%; transform: rotate(90deg); }
.edge-west { left: 14px; top: 48%; transform: rotate(-90deg); }
.land-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.land-stats > div { padding: 14px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.land-stats span { display: block; color: var(--muted); font-size: 11px; }
.land-stats strong { display: block; margin-top: 5px; font-size: 17px; }
.layout-result { grid-column: 1 / -1; margin: 0 32px 32px; padding-top: 22px; border-top: 2px solid var(--ink); }
.detail-result-warning { display: flex; gap: 10px; align-items: baseline; margin: 0 0 16px; }
.layout-summary > div { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.layout-summary strong, .layout-summary span { padding: 8px 11px; background: #f4f4f4; font-size: 12px; }
.layout-summary strong { background: var(--ink); color: white; }
.layout-summary span.is-warning { background: #fff0f0; color: #a41016; font-weight: 800; }
.layout-practicality-warning { display: grid; gap: 5px; margin: 0 0 18px; padding: 15px 17px; border-right: 4px solid #a41016; background: #fff0f0; color: #741014; font-size: 12px; line-height: 1.8; }
.layout-practicality-warning strong { color: #a41016; font-size: 14px; }
.unit-layout { min-height: 400px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); background: #f4f4f4; direction: ltr; overflow: auto; }
.unit-layout svg { width: 100%; max-height: 650px; }
.site-street { fill: #d8d8d8; stroke: #aaa; stroke-width: .35; }
.site-street-label { fill: #555; font-size: 2.5px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.site-land { fill: white; stroke: #111; stroke-width: .7; }
.site-boundary { fill: none; stroke: #111; stroke-width: 1.15; stroke-linejoin: round; }
.site-chamfer-line { stroke: #111; stroke-width: 1.4; stroke-linecap: square; }
.site-unit { fill: #fff5f5; stroke: #d71920; stroke-width: .45; }
.site-building { fill: rgba(17,17,17,.12); stroke: #111; stroke-width: .4; }
.site-building.levels-building { fill: rgba(215,25,32,.16); }
.site-access { stroke: #16833c; stroke-width: 1.3; }
.site-setback { stroke: #777; stroke-width: .35; stroke-dasharray: 1.2 1; }
.site-unit-number { fill: #111; font-size: 2.8px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.site-unit-callout line { stroke: #111; stroke-width: .3; }
.site-unit-callout circle { fill: white; stroke: #111; stroke-width: .35; }
.site-unit-callout text { fill: #111; font-size: 2.3px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.site-scale-label { fill: #555; font-size: 2.6px; font-weight: 700; text-anchor: middle; }
.layout-warning { padding: 24px; color: #8b1519; font-weight: 700; text-align: center; direction: rtl; }
.layout-legend { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.layout-legend i, .layout-legend b, .layout-legend em { display: inline-block; width: 18px; height: 3px; margin-left: 5px; vertical-align: middle; background: #16833c; }
.layout-legend b { background: #d71920; }
.layout-legend em { height: 9px; border: 1px solid #111; background: rgba(17,17,17,.12); }
.detail-ownership-buttons { grid-template-columns: 1fr 1fr; }
.mixed-development-inputs { margin: 18px 0; padding: 18px; border: 1px solid var(--line); background: #fafafa; }
.mixed-development-inputs > strong { display: block; color: var(--orange); }
.product-card { margin: 14px 0; padding: 18px; border: 1px solid var(--line); background: #fafafa; }
.product-card > strong { display: block; margin-bottom: 15px; color: var(--orange); }
.product-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.product-card-heading strong { color: var(--orange); }
.product-card-heading button { border: 0; background: transparent; color: var(--orange); font-weight: 700; }
.add-product-button, .suggestion-button { margin: 10px 0; }
.detailed-results { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detailed-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 24px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.detailed-result-grid > div { min-height: 118px; padding: 16px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detailed-result-grid span, .detailed-result-grid small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detailed-result-grid strong { display: block; margin: 8px 0 3px; font-size: 20px; }
.table-wrap { margin: 12px 0 24px; overflow-x: auto; }
.result-table { width: 100%; min-width: 760px; border-collapse: collapse; background: white; }
.result-table th, .result-table td { padding: 14px; border: 1px solid var(--line); text-align: right; vertical-align: top; }
.result-table th { background: #f4f4f4; color: var(--muted); font-size: 12px; font-weight: 700; }
.result-table td { font-size: 13px; }
.result-table strong, .result-table small { display: block; }
.result-table strong { font-size: 18px; }
.result-table small { margin-top: 5px; color: var(--muted); line-height: 1.5; }
.unit-details-title { margin-top: 28px; }
.unit-type-badge { display: inline-block; padding: 5px 8px; background: var(--ink); color: white; font-weight: 700; }
.unit-type-badge.corner { background: var(--orange); }
.unit-type-badge.neighbor { background: #555; }
.financial-result-table .financial-total-row { background: var(--ink); color: white; }
.financial-result-table .financial-total-row small { color: #bbb; }
.financial-result-table .financial-profit-row strong { color: var(--profit-color, #17833b); }
.next-step-button { width: 100%; margin-top: 22px; }
.detailed-roi { margin-top: 18px; padding: 22px; background: var(--ink); color: white; }
.detailed-roi span { display: block; color: #bbb; font-size: 12px; }
.detailed-roi strong { display: block; margin-top: 7px; color: var(--roi-color, #17833b); font-size: 34px; }
.detailed-roi small { display: block; margin-top: 8px; color: #ddd; line-height: 1.7; }
#landMap { height: 390px; margin: 12px 0; border: 1px solid var(--line); direction: ltr; }
.secondary-button { width: 100%; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.map-summary > div { padding: 10px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-summary span { display: block; color: var(--muted); font-size: 11px; }
.map-summary strong { display: block; margin-top: 4px; }
.length-label { display: grid; place-items: center; border: 1px solid #efb7b9; border-radius: 4px; background: white; color: #a41016; font: 700 11px "Noto Sans Arabic", sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.leaflet-marker-icon:not(.length-label) { filter: hue-rotate(125deg) saturate(1.5); }

.pricing-section { padding: 42px 5vw 70px; }
.complex-section { padding: 42px 5vw 70px; }
.complex-shell { max-width: 1200px; }
.complex-regulation-box { margin-top: 0; background: #f7f7f7; }
.pricing-shell { max-width: 1200px; margin: auto; display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); background: white; box-shadow: 0 24px 70px rgba(23,54,47,.08); }
.pricing-controls, .pricing-results { padding: 32px; }
.pricing-controls { border-left: 1px solid var(--line); }
.pricing-mode-buttons { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.pricing-product-buttons { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.pricing-total { margin: 12px 0 24px; padding: 20px; background: var(--ink); color: white; }
.pricing-total span, .pricing-total small { display: block; color: #ccc; font-size: 12px; }
.pricing-total strong { display: block; margin: 7px 0; font-size: 30px; }
.furniture-total { background: #f4f4f4; color: var(--ink); }
.furniture-total span, .furniture-total small { color: var(--muted); }
.boq-icon { min-width: 32px; display: inline-block; margin-left: 10px; color: var(--orange); font-size: 25px; line-height: 1; font-weight: 800; text-align: center; vertical-align: middle; }
.furniture-item-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; margin-left: 9px; border-radius: 50%; background: #fff1f1; color: var(--orange); font-size: 19px; vertical-align: middle; }
.furniture-table th, .furniture-table td { padding: 10px 12px; vertical-align: middle; }
.furniture-table td:nth-child(3), .furniture-table td:nth-child(4) { width: 125px; white-space: nowrap; }
.table-cost-input { width: 82px; padding: 6px 7px; border: 1px solid var(--line); background: white; font: inherit; direction: ltr; }
.table-price-input { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-price-input b { color: var(--muted); font-size: 11px; font-weight: 500; }
.request-page, .legal-page { max-width: 900px; text-align: right; }
.request-page strong, .legal-page strong { display: block; margin-bottom: 20px; }
.request-page textarea { min-height: 150px; resize: vertical; }
.request-page input, .request-page textarea { width: 100%; padding: 12px; border: 1px solid var(--line); font: inherit; }
.request-page .calculate-button { margin-top: 18px; }
.consent-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 15px; color: var(--muted); font-size: 12px; }
.consent-line input { width: auto; }
.form-status { font-size: 13px !important; color: var(--orange) !important; }
.legal-page h3 { margin: 22px 0 5px; font-size: 18px; }
.legal-page p { margin: 0; font-size: 14px; line-height: 1.9; }
.complex-street-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.complex-street-grid label { display: grid; grid-template-columns: auto 1fr 74px auto; gap: 7px; align-items: center; padding: 10px; border: 1px solid var(--line); }
.complex-street-grid input[type="number"] { min-width: 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 5px; font: inherit; }
.print-pricing-button { width: 100%; margin-top: 12px; }
.detailed-pdf-button { width: 100%; margin-top: 18px; }

@media print {
  body.furniture-print * { visibility: hidden; }
  body.furniture-print #furnitureEstimate,
  body.furniture-print #furnitureEstimate * { visibility: visible; }
  body.furniture-print #furnitureEstimate { position: absolute; inset: 0; width: 100%; padding: 24px; background: white; }
  body.furniture-print .print-pricing-button { display: none; }
  body.detailed-print * { visibility: hidden !important; }
  body.detailed-print #layoutResult,
  body.detailed-print #layoutResult * { visibility: visible !important; }
  body.detailed-print #layoutResult { position: absolute; inset: 0; width: 100%; margin: 0; padding: 24px; background: white; }
  body.detailed-print .detailed-pdf-button { display: none !important; }
}

footer { padding: 30px 5vw; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
footer a { color: var(--muted); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 68px; padding: 14px 5vw; position: relative; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 14px; }
  .menu-toggle { display: inline-flex; }
  .top-nav { display: none; width: 100%; gap: 0; border-top: 1px solid var(--line); }
  .top-nav.open { display: grid; }
  .top-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .top-nav a.active { border-color: var(--orange); color: var(--orange); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 75px 6vw; }
  .hero-visual { min-height: 420px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .calculator-shell { grid-template-columns: 1fr; }
  .detailed-shell { grid-template-columns: 1fr; }
  .pricing-shell { grid-template-columns: 1fr; }
  .pricing-controls { border-left: 0; border-bottom: 1px solid var(--line); }
  .detailed-controls { border-left: 0; border-bottom: 1px solid var(--line); }
  .input-panel { border-right: 0; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-card { border-right: 1px solid var(--line); }
  .three-fields, .comparison-grid { grid-template-columns: 1fr; }
  .detailed-result-grid { grid-template-columns: 1fr 1fr; }
  .unit-layout { max-height: 75vh; justify-content: start; }
  .unit-layout svg { min-width: 760px; width: 100%; }
}

@media print {
  body * { visibility: hidden !important; }
  .results-panel, .results-panel * { visibility: visible !important; }
  .results-panel { position: absolute; inset: 0; width: 100%; padding: 24px; background: white; color: black; }
  .result-actions button { display: none !important; }
  .metrics-grid, .metric { border-color: #ccc; }
  .metric.featured { background: white; color: black; }
  .metric.featured span, .metric.featured small { color: #666; }
  .headline-result strong, .status, .criteria-title { color: #b5121b; }
  .stacked-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (max-width: 560px) {
  .calculator-section, .pathways { padding: 70px 4vw; }
  .input-panel, .results-panel { padding: 25px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .choice-buttons { grid-template-columns: 1fr; }
  [data-choice="saleMode"], .fixed-assumptions { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .financial-list { grid-template-columns: 1fr; }
  .detailed-result-grid { grid-template-columns: 1fr; }
  .detail-progress { grid-template-columns: 1fr; }
  .detail-progress span { border-left: 0; border-bottom: 1px solid var(--line); }
  .quick-table-wrap { overflow: visible; }
  .quick-result-table, .quick-financial-table, .quick-levels-table, .sensitivity-table { min-width: 0; }
  .quick-result-table thead, .quick-financial-table thead, .quick-levels-table thead, .sensitivity-table thead { display: none; }
  .quick-result-table tr, .quick-financial-table tr, .quick-levels-table tr, .sensitivity-table tr { display: grid; margin-bottom: 10px; border: 1px solid var(--line); }
  .quick-result-table td, .quick-financial-table td, .quick-levels-table td, .sensitivity-table td { display: block; border: 0; border-bottom: 1px solid var(--line); }
  .quick-result-table td:first-child, .quick-financial-table td:first-child, .quick-levels-table td:first-child, .sensitivity-table td:first-child { background: #f4f4f4; font-weight: 700; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .detail-result-warning { align-items: flex-start; flex-direction: column; }
  .pricing-controls, .pricing-results { padding: 22px; }
  .complex-street-grid { grid-template-columns: 1fr; }
  footer { gap: 20px; flex-wrap: wrap; }
}
