/* aqar — hand-written, framework-free CSS. Mobile first, RTL first. */

/* Almarai (SIL Open Font License), self-hosted: Google Fonts is often unreachable from Syria.
   Browsers fetch only the weights and scripts (Arabic / Latin) a page actually uses. */
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/almarai-v19-300-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/almarai-v19-300-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/almarai-v19-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/almarai-v19-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/almarai-v19-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/almarai-v19-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/almarai-v19-800-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/almarai-v19-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --brand: #0d6b57;
  --brand-700: #0a5546;
  --brand-900: #063a30;
  --brand-50: #e8f4ef;
  --gold: #e0a33b;
  --gold-600: #c98a22;
  --ink: #18212b;
  --muted: #667180;
  --line: #e7e3da;
  --bg: #f7f5f0;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 48px -20px rgba(6, 58, 48, .45);
  --font: "Almarai", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* components set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 0; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-700); }
.btn-gold { background: var(--gold); color: #1d1405; }
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; color: var(--brand-900); }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-900)); color: var(--gold); }
.logo-mark .i { width: 22px; height: 22px; }
.logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--muted); line-height: 1; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: #3b4652; }
.nav a:hover, .nav a.on { background: var(--brand-50); color: var(--brand); }
.top .btn { padding: 9px 16px; }
@media (min-width: 820px) { .nav { display: flex; } }

/* ---------- form controls ---------- */
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--muted); padding-inline: 4px; }
.control { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; outline: none; transition: border-color .15s, box-shadow .15s; }
.control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 107, 87, .15); background: #fff; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667180' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 34px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: #f1efe9; border-radius: 12px; margin-bottom: 14px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 8px 22px; border-radius: 9px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }

/* ---------- home: project ad banner (cian-style) ---------- */
.promo { position: relative; height: 560px; overflow: hidden; background: var(--brand-900); color: #fff; }
.promo-plain { height: 360px; background: linear-gradient(160deg, var(--brand), var(--brand-900)); }
.pslide { position: absolute; inset: 0; display: none; }
.pslide.on { display: block; animation: pfade .6s ease; }
@keyframes pfade { from { opacity: .3; } to { opacity: 1; } }
.pslide picture, .pslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 28, 23, .92) 0%, rgba(4, 28, 23, .55) 45%, rgba(4, 28, 23, .1) 75%); }
.pslide-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; gap: 10px; padding-bottom: 100px; }
.promo-plain .pslide-body { justify-content: center; padding-bottom: 60px; }
.ad-tag { align-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .8rem; color: #f3e3c3; backdrop-filter: blur(6px); }
.promo h2 { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.promo .tagline { font-size: clamp(1rem, 2.6vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 640px; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .88rem; }
.perks .i { color: var(--gold); }
.pslide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.from small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.from b { font-size: 1.7rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.pdots { position: absolute; z-index: 2; bottom: 82px; left: 50%; translate: -50% 0; display: flex; gap: 8px; }
.pdots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s, background .25s; }
.pdots button[aria-selected="true"] { width: 26px; background: var(--gold); }
@media (min-width: 900px) {
  .promo { height: 520px; }
  .pslide::after { background: linear-gradient(270deg, rgba(4, 28, 23, .9) 0%, rgba(4, 28, 23, .6) 40%, rgba(4, 28, 23, .05) 75%); }
  .pslide-body { justify-content: center; padding-bottom: 70px; }
  .pdots { left: auto; right: max(16px, calc((100% - 1200px) / 2 + 16px)); translate: none; bottom: 96px; }
}

/* search panel overlapping the banner */
.finder-wrap { position: relative; z-index: 5; margin-top: -64px; }
.finder { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 6px 14px 14px; }
.ftabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ftabs label { position: relative; cursor: pointer; flex: none; }
.ftabs input { position: absolute; opacity: 0; }
.ftabs span { display: block; padding: 12px 14px 10px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.ftabs input:checked + span { color: var(--brand); border-bottom-color: var(--brand); }
.ftabs input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -4px; }
.frow { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.f-place, .f-price { grid-column: 1 / -1; }
.f-place { position: relative; }
.f-place .i { position: absolute; top: 50%; right: 14px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.f-place .control { padding-right: 40px; }
.frow .btn { height: 48px; }
.dd { position: relative; }
.dd summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; line-height: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667180' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary small { color: var(--muted); }
.dd-body { position: absolute; z-index: 10; top: calc(100% + 6px); inset-inline: 0; min-width: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .frow { grid-template-columns: repeat(3, 1fr); } .f-price { grid-column: auto; } .f-go { grid-column: span 2; } }
@media (min-width: 1000px) {
  .finder { padding: 6px 18px 18px; }
  .frow { grid-template-columns: 1.15fr .8fr .8fr 2fr auto auto; }
  .f-place, .f-price, .f-map, .f-go { grid-column: auto; }
  .f-go { padding-inline: 34px; }
}

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 104px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile b { font-size: 1.05rem; }
.tile small { color: var(--muted); }
.tile .i { position: absolute; bottom: -10px; left: -10px; width: 74px; height: 74px; padding: 16px; border-radius: 22px; background: var(--brand-50); color: var(--brand); stroke-width: 1.6; transition: transform .2s; }
.tile:hover .i { transform: rotate(-6deg) scale(1.05); }
.tile:nth-child(3) { background: linear-gradient(135deg, #fff8ea, #fff); border-color: #f1dfb8; }
.tile:nth-child(3) .i { background: #fbe9c6; color: #8a5a14; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } }

/* horizontal scrollers and project cards */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 10px; margin-inline: -16px; padding-inline: 16px; }
.hscroll > * { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.pcard h3 { font-size: 1.12rem; font-weight: 800; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .dev { display: flex; align-items: center; gap: 4px; font-size: .86rem; color: #3d4855; font-weight: 600; }
.pcard .dev .verified .i { width: 1em; height: 1em; }
.units { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.units li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.units li span { color: var(--muted); }
.units li b { color: var(--brand-900); white-space: nowrap; }
.pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; font-size: .8rem; color: #3d4855; }
.pfoot span { display: inline-flex; align-items: center; gap: 4px; }
.pfoot .i { color: var(--brand); }
.badge.building { background: #8a5a14; color: #fff; }
.badge.ready { background: var(--brand); color: #fff; }
.badge.ad { background: rgba(0, 0, 0, .6); color: #fff; }

/* map banner */
.mapban { position: relative; overflow: hidden; display: grid; gap: 18px; align-items: center; padding: 26px; border-radius: 22px; border: 1px solid #cfe3da; background: linear-gradient(90deg, #eaf5f0 0%, #f6fbf8 60%); }
.mapban h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.mapban p { color: var(--muted); margin: 6px 0 16px; max-width: 460px; }
.mapban-art { position: relative; min-height: 170px; border-radius: 16px; background:
  linear-gradient(transparent 0 0),
  repeating-linear-gradient(0deg, transparent 0 27px, rgba(13, 107, 87, .08) 27px 28px),
  repeating-linear-gradient(90deg, transparent 0 27px, rgba(13, 107, 87, .08) 27px 28px),
  radial-gradient(140px 90px at 30% 40%, rgba(36, 99, 209, .12), transparent),
  #f3f8f5; border: 1px solid #d9e9e1; }
.mapban-art::before { content: ""; position: absolute; inset: 18% 8% 22% 30%; border: 3px solid rgba(224, 163, 59, .55); border-radius: 40% 55% 45% 60%; transform: rotate(-8deg); }
.mapban .tag, .mapban .bubble { position: absolute; transform: translate(50%, -50%); }
.mapban .tag { padding: 3px 10px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12.5px; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); direction: ltr; }
.mapban .tag.rent { background: #2463d1; }
.mapban .bubble { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(13, 107, 87, .2); }
.mapban:hover .btn { background: var(--brand-700); }
@media (min-width: 760px) { .mapban { grid-template-columns: 1fr 1.1fr; padding: 34px; } .mapban-art { min-height: 200px; } }

/* developer banner */
.devban { display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: 22px; color: #fff; background: radial-gradient(600px 300px at 0% 0%, rgba(224, 163, 59, .3), transparent 60%), linear-gradient(135deg, #1b2430, #0f1a17); }
.devban h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); margin: 8px 0 6px; }
.devban p { color: rgba(255, 255, 255, .78); max-width: 620px; }
.devban .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(224, 163, 59, .18); color: var(--gold); font-weight: 700; font-size: .82rem; }
@media (min-width: 760px) { .devban { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* projects page */
.pfilter { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 14px 0 20px; }
.pfilter input, .pfilter .btn { grid-column: 1 / -1; }
.pfilter .btn { height: 48px; }
@media (min-width: 760px) { .pfilter { grid-template-columns: 200px 180px 1fr auto; } .pfilter input, .pfilter .btn { grid-column: auto; } }
.utable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.utable th { text-align: right; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 0 8px 8px; }
.utable td { padding: 12px 8px; border-top: 1px solid var(--line); }
.utable td b { color: var(--brand-900); }

/* ---------- sections ---------- */
.section { padding: 44px 0 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.3rem, 3.4vw, 1.75rem); font-weight: 800; line-height: 1.3; }
.sec-head p { color: var(--muted); margin-top: 2px; font-size: .95rem; }
.sec-head .more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; white-space: nowrap; font-size: .95rem; }
.sec-head .more:hover { text-decoration: underline; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: rgba(255, 255, 255, .95); color: var(--ink); }
.badge.sale { background: var(--brand); color: #fff; }
.badge.rent { background: #2463d1; color: #fff; }
.badge.star { background: var(--gold); color: #1d1405; }
.badge.sold { background: #b42318; color: #fff; }
.count { position: absolute; bottom: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; font-size: .75rem; background: rgba(0, 0, 0, .55); color: #fff; }
.card .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.price { font-size: 1.28rem; font-weight: 800; color: var(--brand-900); line-height: 1.3; }
.price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.specs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: #3d4855; font-size: .86rem; }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs .i { color: var(--brand); }
.card time { font-size: .76rem; color: var(--muted); }

/* governorate tiles */
.govs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gov { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; min-height: 108px; padding: 14px 16px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #0d6b57, #063a30); transition: transform .2s, box-shadow .2s; }
.gov:nth-child(4n+2) { background: linear-gradient(135deg, #8a5a14, #4a2f07); }
.gov:nth-child(4n+3) { background: linear-gradient(135deg, #1f4f8a, #0f2a4d); }
.gov:nth-child(4n+4) { background: linear-gradient(135deg, #7a2e3a, #3f121b); }
.gov::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 80 80'%3E%3Cpath d='M40 6l9.9 24.1L74 40l-24.1 9.9L40 74l-9.9-24.1L6 40l24.1-9.9z' fill='none' stroke='%23fff' stroke-opacity='.1' stroke-width='1.5'/%3E%3C/svg%3E"); }
.gov:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gov b { position: relative; font-size: 1.15rem; }
.gov small { position: relative; color: rgba(255, 255, 255, .78); }

.app { display: grid; gap: 22px; align-items: center; padding: 28px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.app h2 { font-size: clamp(1.25rem, 3.2vw, 1.6rem); }
.app p { color: var(--muted); margin-top: 6px; }
.app .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: #fdf3e1; color: #8a5a14; font-weight: 700; font-size: .8rem; margin-bottom: 10px; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.feat { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: .92rem; }
.feat .i { color: var(--brand); width: 22px; height: 22px; }
@media (min-width: 900px) { .app { grid-template-columns: 1fr 1.2fr; padding: 36px; } }

/* ---------- footer ---------- */
.foot { margin-top: 56px; background: #0f1a17; color: #b7c3bf; padding: 40px 0 24px; font-size: .92rem; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot .about { grid-column: 1 / -1; }
.foot .logo { color: #fff; margin-bottom: 10px; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a:hover { color: var(--gold); }
.foot .copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #7d8a86; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot .about { grid-column: auto; } }

/* ---------- search page ---------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 800; }
.crumbs { display: flex; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--brand); }
.layout { display: grid; gap: 22px; padding-top: 14px; }
@media (min-width: 960px) { .layout { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filters summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters form { display: grid; gap: 14px; padding: 0 16px 16px; }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 960px) { .filters { position: sticky; top: 80px; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar .control { height: 40px; width: auto; }
.loadmore { display: flex; justify-content: center; margin-top: 24px; }
.empty { padding: 48px 20px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .i { width: 52px; height: 52px; color: var(--muted); margin: 0 auto 10px; }
.empty h3 { margin-bottom: 6px; }

/* ---------- listing page ---------- */
.gallery { position: relative; margin-top: 14px; }
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slides::-webkit-scrollbar { display: none; }
.slides figure { margin: 0; flex: 0 0 100%; aspect-ratio: 3 / 2; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .slides figure { flex-basis: 72%; } }
.gnav { position: absolute; top: 50%; translate: 0 -50%; display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); cursor: pointer; }
.gnav.prev { right: 12px; }
.gnav.next { left: 12px; }
.js .gnav { display: grid; }
.gcount { position: absolute; bottom: 12px; right: 12px; padding: 3px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .82rem; }
.detail { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 340px; align-items: start; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.12rem; margin-bottom: 14px; }
.detail h1 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); line-height: 1.4; margin: 8px 0 6px; }
.detail .price { font-size: 1.7rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); }
.fact .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.fact small { display: block; color: var(--muted); font-size: .76rem; }
.fact b { font-size: .95rem; white-space: nowrap; }
.desc { white-space: pre-line; color: #34404c; }
.seller { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 1.3rem; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: .8rem; font-weight: 700; }
.contact { display: grid; gap: 10px; }
.meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
@media (min-width: 960px) { .detail aside { position: sticky; top: 80px; } }
.callbar { position: fixed; inset: auto 0 0 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2); }
.has-callbar { padding-bottom: 76px; }
@media (min-width: 960px) { .callbar { display: none; } .has-callbar { padding-bottom: 0; } }

/* ---------- map page ---------- */
.mapmode .foot { display: none; }
.mapwrap { position: relative; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
#map { position: absolute; inset: 0; background: #e9eee9; }
.mapbar { position: absolute; z-index: 1000; top: 12px; inset-inline: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px); padding: 8px; background: rgba(255, 255, 255, .97); border-radius: 16px; box-shadow: var(--shadow-lg); }
.mapbar .seg { margin: 0; }
.mapbar .seg span { padding: 6px 14px; }
.mapbar select.control { width: auto; height: 42px; min-width: 130px; }
.mapcount { padding: 0 6px; font-size: .88rem; font-weight: 700; color: var(--brand-900); }
.mapbar .maplist { padding: 9px 14px; }
@media (max-width: 640px) { .mapbar .maplist { display: none; } .mapcount { flex-basis: 100%; padding-bottom: 2px; } }
.mapnojs { position: absolute; inset: 40% 16px auto; z-index: 1000; padding: 16px; text-align: center; background: #fff; border-radius: 12px; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { direction: ltr; }

.leaflet-marker-icon.mk-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(13, 107, 87, .92); color: #fff; font-weight: 800; font-size: 14px; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(13, 107, 87, .22), 0 4px 12px rgba(0, 0, 0, .25); transition: background .15s; }
.leaflet-marker-icon.mk-cluster:hover { background: var(--brand-900); }
.mk-pin .tag { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap; padding: 3px 10px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.6; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); direction: ltr; transition: transform .15s, background .15s; }
.mk-pin .tag::after { content: ""; position: absolute; left: 50%; bottom: -7px; translate: -50% 0; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mk-pin .tag.rent { background: #2463d1; }
.mk-pin:hover .tag { background: var(--gold); color: #1d1405; transform: translate(-50%, calc(-100% - 7px)) scale(1.08); }

.mk-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; }
.mk-popup .leaflet-popup-content { margin: 0; width: 240px !important; direction: rtl; font-size: 14px; line-height: 1.5; }
.mk-popup a.leaflet-popup-close-button { top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font: 18px/26px sans-serif; z-index: 2; }
.mpop { display: block; color: var(--ink) !important; }
.mpop-ph { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.mpop-ph img { width: 100%; height: 100%; object-fit: cover; }
.mpop-ph .badge { position: absolute; top: 8px; left: 8px; }
.mpop-body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.mpop-body .price { font-size: 1.1rem; }
.mpop-body strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpop-body .loc { font-size: .8rem; }

.maplink { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; color: var(--brand); font-weight: 700; font-size: .88rem; }
.maplink:hover { text-decoration: underline; }

/* ---------- posting form ---------- */
.alert { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8a1c12; font-weight: 600; }
.postlayout { display: grid; gap: 22px; padding-top: 12px; }
@media (min-width: 1000px) { .postlayout { grid-template-columns: 1fr 280px; align-items: start; } }
.postform { display: grid; gap: 16px; }
.pstep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; scroll-margin-top: 80px; }
.pstep h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.pstep h2 .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .95rem; }
.subh { font-size: 1rem; margin: 18px 0 10px; }
.fgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: 1 / -1; } }
textarea.control { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.ferr { color: #b42318; font-size: .85rem; font-weight: 600; margin-top: 2px; }
.field:has(.ferr) .control { border-color: #e5948c; background: #fff8f7; }

.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ccard, .kcard, .chip { position: relative; cursor: pointer; }
.ccard input, .kcard input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.ccard span { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; font-size: 1.05rem; transition: border-color .15s, background .15s; }
.ccard .i { width: 26px; height: 26px; color: var(--brand); }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kcard span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 14px; font-weight: 600; font-size: .9rem; text-align: center; transition: border-color .15s, background .15s; }
.kcard .i { width: 28px; height: 28px; color: var(--brand); stroke-width: 1.7; }
.ccard input:checked + span, .kcard input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-900); }
.ccard input:focus-visible + span, .kcard input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fbfaf7; font-size: .9rem; transition: all .15s; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; align-self: center; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #d9d5cc; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .2s; }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::after { right: 21px; }
.toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* fields that depend on other choices — pure CSS, no JS needed */
.postform:has(input[name="kind"][value="land"]:checked) .bld,
.postform:has(input[name="kind"][value="farm"]:checked) .bld { display: none; }
.postform:not(:has(input[name="deal"][value="rent"]:checked)) .rent-only { display: none; }
.postform:has(input[name="deal"][value="rent"]:checked) .sale-only { display: none; }

.pricebox { display: flex; gap: 8px; }
.pricebox .control { flex: 1; }
.seg.cur { margin: 0; flex: none; }
.seg.cur span { padding: 10px 14px; }

/* location picker */
.pick { margin-top: 14px; }
.pickmap { height: 320px; border-radius: 14px; border: 1px solid var(--line); background: #e9eee9; }
.pickbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.pickbar .btn { padding: 8px 14px; }
#pickstatus.ok { color: var(--brand); font-weight: 700; }
.pickpin span { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--gold); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.pickpin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }

/* photo upload zones */
.upzone { margin-top: 16px; padding: 16px; border: 1px dashed #d4cfc3; border-radius: 14px; background: #fcfbf8; }
.uphead { margin-bottom: 12px; }
.uphead h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.uphead h3 .i { color: var(--brand); }
.uphead small { color: var(--muted); }
.upgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.uptile, .upadd { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.uptile img { width: 100%; height: 100%; object-fit: cover; }
.upzone[data-section="plan"] .uptile img { object-fit: contain; background: #fff; }
.uptile:first-child::before { content: "الغلاف"; position: absolute; z-index: 1; top: 6px; right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--gold); color: #1d1405; font-size: .7rem; font-weight: 800; }
.upzone:not([data-section="exterior"]) .uptile:first-child::before { display: none; }
.uptile.loading img { opacity: .55; }
.upbar { position: absolute; inset: auto 8px 8px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .7); overflow: hidden; display: none; }
.uptile.loading .upbar { display: block; }
.upbar b { display: block; width: 4%; height: 100%; background: var(--brand); transition: width .2s; }
.uptile.err img { opacity: .35; filter: grayscale(1); }
.upmsg { position: absolute; inset: auto 0 0; padding: 6px; background: rgba(180, 35, 24, .92); color: #fff; font-size: .72rem; text-align: center; }
.upretry { border: 0; background: none; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.uprm { position: absolute; z-index: 2; top: 6px; left: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.upadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed #c9c3b5; background: #fff; color: var(--brand); font-weight: 700; font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s; }
.upadd:hover, .upadd:focus-within { border-color: var(--brand); background: var(--brand-50); }
.upadd input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upadd .i { width: 28px; height: 28px; }
.plantools { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .plantools { grid-template-columns: 1fr 1fr; } }
.ptool { display: flex; align-items: start; gap: 12px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); opacity: .85; }
.ptool b { display: block; font-size: .95rem; }
.ptool small { color: var(--muted); font-size: .82rem; }
.ptool-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fdf3e1; color: #8a5a14; }
.ptool .pill { flex: none; padding: 2px 10px; border-radius: 99px; background: #fdf3e1; color: #8a5a14; font-size: .75rem; font-weight: 800; }

.psubmit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 4px 0 12px; }
.postaside { display: none; }
@media (min-width: 1000px) { .postaside { display: block; position: sticky; top: 80px; } }
.psteps { display: grid; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.psteps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 600; color: #3b4652; }
.psteps a:hover { background: var(--brand-50); color: var(--brand); }
.psteps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: .8rem; }
.tipbox { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: #fdf8ee; border: 1px solid #f1dfb8; font-size: .9rem; }
.tipbox b { display: flex; align-items: center; gap: 6px; color: #8a5a14; }
.tipbox ul { margin: 8px 0 0; padding-inline-start: 18px; color: #5b4a2c; display: grid; gap: 4px; }

/* land boundary tool (land and farms only) */
.postform:not(:has(input[name="kind"][value="land"]:checked)):not(:has(input[name="kind"][value="farm"]:checked)) .land-only { display: none; }
.landtool { margin-top: 12px; padding: 14px; border-radius: 12px; background: #fdf8ee; border: 1px solid #f1dfb8; }
.landbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.landbar .btn { padding: 9px 14px; }
.landtool p { font-size: .9rem; }
.landarea { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: #5b4a2c; }
.landarea b { color: var(--brand-900); }
.landarea.bad b { color: #b42318; }
.landarea.bad .maplink { display: none; }
.landarea .maplink { margin: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.pickmap.drawing { cursor: crosshair; }
.pickmap.drawing .leaflet-grab { cursor: crosshair; }
.lvtx { border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }

/* floor plan editor */
.ptool-on { width: 100%; text-align: inherit; font: inherit; color: inherit; cursor: pointer; opacity: 1; border: 2px solid var(--brand); transition: background .15s; }
.ptool-on:hover { background: var(--brand-50); }
.ptool-on .ptool-ic { background: var(--brand-50); color: var(--brand); }
.ptool .pill.go { background: var(--brand); color: #fff; }
.ptool-on.loading { opacity: .6; pointer-events: none; }
.planner { width: min(980px, 100vw); max-width: 100vw; height: min(760px, 100dvh); max-height: 100dvh; padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.planner[open] { display: flex; flex-direction: column; }
.planner::backdrop { background: rgba(10, 20, 17, .55); }
@media (max-width: 700px) { .planner { width: 100vw; height: 100dvh; border-radius: 0; } }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pl-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.pl-head h2 .i { color: var(--brand); }
.pl-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1efe9; font-size: 22px; cursor: pointer; }
.pl-add { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chip-btn { flex: none; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fbfaf7; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.pl-stage { position: relative; flex: 1; min-height: 0; background: #fbfcfb; }
#pl-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; font-family: var(--font); }
.pl-room { cursor: move; }
.pl-handle { cursor: nwse-resize; }
.pl-empty { position: absolute; inset: 40% 16px auto; text-align: center; color: var(--muted); pointer-events: none; }
.pl-inspect { padding: 10px 16px; border-top: 1px solid var(--line); background: #fff; }
.pl-ctl { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.pl-ctl > .control { flex: 1 1 140px; height: 42px; }
.pl-ctl > b { align-self: center; font-size: 1rem; color: var(--brand-900); }
.pl-ctl select.control { width: 100px; height: 42px; }
.pl-area { align-self: center; font-weight: 700; color: var(--brand-900); font-size: .9rem; }
.pl-sep { flex: none; width: 1px; margin: 4px 4px; background: var(--line); }
.chip-open { border-color: #f1dfb8; background: #fdf8ee; color: #8a5a14; }
.chip-open:hover { border-color: var(--gold); background: #fdf1dc; color: #6b4510; }
.pl-hint { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; max-width: calc(100% - 24px); padding: 5px 14px; border-radius: 99px; background: rgba(27, 36, 48, .78); color: #fff; font-size: .82rem; text-align: center; pointer-events: none; }
.pl-v { cursor: move; }
.pl-m { cursor: copy; }
.pl-door { cursor: grab; }
.pl-inspect label { display: grid; gap: 2px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.pl-inspect label .control { width: 90px; height: 42px; }
.pl-acts { display: flex; gap: 6px; }
.pl-acts .btn { padding: 9px 12px; }
.pl-del { color: #b42318; }
.pl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #f7f5f0; }
.pl-foot span { margin-inline-end: auto; font-weight: 600; }

/* listing page: location / plot map */
.minimap { height: 300px; border-radius: 12px; background: #e9eee9; }
.plotarea { margin-top: 10px; color: var(--muted); }
.plotarea b { color: var(--brand-900); }

/* listing page: gallery sections, features */
.gtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.gtabs a:hover, .gtabs a.on { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.gtabs small { color: var(--muted); }
.slides figure.plan { background: #fff !important; border: 1px solid var(--line); }
.slides figure.plan img { object-fit: contain; }
.slides figure figcaption { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; }
.slides figure { position: relative; }
.featlist { display: flex; flex-wrap: wrap; gap: 8px; }
.featlist span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand-50); color: var(--brand-900); font-size: .9rem; font-weight: 600; }
.featlist .i { color: var(--brand); width: 1em; height: 1em; }
.badge.nego { background: #fdf3e1; color: #8a5a14; }

/* ---------- accounts ---------- */
.topacts { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.top .topacts .btn { margin: 0; }
.acct { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--brand-900); max-width: 160px; }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct:hover { background: var(--brand-50); }
@media (max-width: 520px) { .hide-sm { display: none; } .acct span { display: none; } }
.whoami { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-900); }

.authcard { max-width: 440px; margin: 48px auto; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-align: center; box-shadow: var(--shadow); }
.authic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--brand-50); color: var(--brand); margin-bottom: 12px; }
.authic .i { width: 28px; height: 28px; }
.authcard h1 { font-size: 1.5rem; margin-bottom: 6px; }
.authform { display: grid; gap: 12px; margin: 18px 0 10px; }
.phonein, .codein { height: 56px; font-size: 1.3rem; text-align: center; letter-spacing: .05em; }
.codein { letter-spacing: .5em; font-weight: 800; }
.devcode { margin-top: 12px; padding: 10px; border-radius: 10px; background: #fdf3e1; color: #8a5a14; font-size: .9rem; }
.resend { color: var(--muted); font-size: .9rem; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); font-weight: 700; cursor: pointer; }
.small { font-size: .82rem; }

.acchead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.accacts { display: flex; gap: 8px; }
.acctabs { display: flex; gap: 4px; margin: 14px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.acctabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.acctabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.profform { display: grid; gap: 14px; max-width: 460px; }
.okmsg { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; }
.mylist { display: grid; gap: 12px; }
.myrow { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.myph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.myph img { width: 100%; height: 100%; object-fit: cover; }
.mybody h3 { font-size: 1rem; margin: 4px 0 2px; }
.myacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.myacts .btn { padding: 8px 14px; }
@media (min-width: 760px) { .myrow { grid-template-columns: 140px 1fr auto; } .myacts { grid-column: auto; } }
.modform .control { height: 40px; width: 200px; }
.stchip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; background: #eef0f4; color: #3d4855; }
.st-active { background: var(--brand-50); color: var(--brand); }
.st-pending { background: #fdf3e1; color: #8a5a14; }
.st-rejected { background: #fdecea; color: #b42318; }
.st-sold { background: #e2edfb; color: #1f4f8a; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 24px; }
.statbox { display: grid; gap: 6px; justify-items: start; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.statbox b { font-size: 1.6rem; }
.favform { margin: 10px 0 0; }
.favform .btn.on { border-color: #e5948c; color: #b42318; background: #fff6f5; }
.favform .btn.on .i { fill: #e05a4b; stroke: #e05a4b; }

/* ---------- misc ---------- */
.notice { max-width: 560px; margin: 56px auto; text-align: center; }
.notice .i { width: 64px; height: 64px; padding: 14px; border-radius: 20px; background: var(--brand-50); color: var(--brand); margin: 0 auto 16px; }
.notice h1 { font-size: 1.6rem; margin-bottom: 8px; }
.notice p { color: var(--muted); margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
