/* Maalikan – public site. Brand palette kept from the original maalikan.com. */
:root {
  /* Brand family shared with PixFlix: near-black, burgundy, champagne gold. */
  --ink: #f5ede5; --soft: #c5b7b3; --paper: #120f10; --white: #1a1617; --panel-2: #221d1e;  /* PixFlix dark theme */
  --night: #120f10; --night-2: #1d1718;
  --forest: #6c3441; --forest-2: #552833;            /* burgundy (kept old var names) */
  --gold: #e2b98f; --gold-2: #f3d7b6; --gold-ink: #271a1b;
  --line: #3a2f31; --tint: #161213;
  --sold: #9b2c2c; --offer: #a86412;
  --radius: 8px; --shadow: 0 10px 30px #0006;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  color-scheme: dark;
}
[dir=rtl] { --sans: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "DM Sans", system-ui, sans-serif; --serif: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
[dir=rtl] body { line-height: 2.1; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { line-height: 1.8; }
h1 { font: 600 clamp(2rem, 5vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.01em; }
h2 { font: 600 clamp(1.4rem, 3vw, 2rem)/1.2 var(--serif); }
h3, .h3 { font: 600 1.1rem/1.3 var(--sans); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--white); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: .5rem; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.block { padding-block: clamp(2rem, 5vw, 3.5rem); }
.tint { background: var(--tint); }
.muted { color: var(--soft); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }
[dir=rtl] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 60ch; }
.text-link { font-weight: 600; color: var(--gold); text-underline-offset: .25em; text-decoration-color: var(--gold); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.25rem; border-radius: 6px; border: 1px solid var(--gold); background: var(--gold); color: var(--gold-ink); font-weight: 700; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button:hover { background: var(--gold-2); border-color: var(--gold-2); }
.button:active { transform: translateY(1px); }
.button.outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.button.outline:hover { background: var(--gold); color: var(--gold-ink); }
.button.light { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.button.small { min-height: 36px; padding: .3rem .8rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Header */
.site-header { background: rgb(22 17 19 / .92); backdrop-filter: blur(10px); color: #f5ede5; border-bottom: 1px solid rgb(226 185 143 / .25); position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 18px rgb(0 0 0 / .18); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 600 1.5rem/1 var(--serif); color: #fff; }
.brand small { display: block; font: 600 .62rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.brand img { filter: brightness(0) invert(1); }
.brand-logo { height: 52px; width: auto; }
.brand-tag { font: 600 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border-inline-start: 1px solid rgb(226 185 143 / .4); padding-inline-start: .7rem; max-width: 7rem; }
@media (max-width: 520px) { .brand-tag { display: none; } .brand-logo { height: 44px; } }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: #fff; border: 1.5px solid var(--gold); border-radius: 6px; font: 600 1.5rem var(--serif); }
.nav-links { display: flex; align-items: center; gap: .25rem 1.1rem; flex-wrap: wrap; }
.nav-links a:not(.button) { text-decoration: none; font-weight: 500; padding: .4rem 0; color: #f5ede5; border-bottom: 2px solid transparent; }
.nav-links a:not(.button):hover { color: var(--gold-2); }
.nav-links a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-links .lang { font-weight: 600; color: var(--gold); }
.nav-toggle { display: none; background: none; color: #fff; border: 1px solid rgb(226 185 143 / .5); border-radius: 6px; padding: .35rem .7rem; font-size: 1.2rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: .9rem 0 0; margin: 0; font-size: .9rem; color: var(--soft); }
.crumbs li + li::before { content: "›"; margin-inline-end: .3rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Hero + search */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgb(108 52 65 / .45), transparent 60%), var(--paper); padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.hero h1 { color: #fff; }
.hero .eyebrow, .loc-hero .eyebrow { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 1.5rem; }
.hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: .8rem; box-shadow: var(--shadow); margin-block: 1rem; }
.search-form .grow { flex: 1 1 14rem; }
.search-form label { display: block; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid #4a3d3f; color: var(--ink); background: var(--panel-2); border-radius: 6px; }
::placeholder { color: #8f8083; }
option, optgroup { background: var(--panel-2); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 2px solid rgb(226 185 143 / .6); outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .55rem 1rem; cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--gold); color: var(--gold-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin-bottom: 1.5rem; }
.filters label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 600; flex: 1 1 9rem; }

/* Cards */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 18px 50px #0008; }
.card-media { border-bottom: 1px solid var(--line); }
.card-media { position: relative; display: block; }
.card-media img { width: 100%; aspect-ratio: 8/5; object-fit: cover; background: var(--tint); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.card-body h3 { margin: .1rem 0; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-price { font-weight: 700; font-size: 1.2rem; color: var(--gold); margin: 0; }
.card-loc, .card-specs { margin: 0; color: var(--soft); font-size: .92rem; }
.card.is-closed .card-media img { filter: grayscale(.7); }
.badge { display: inline-block; padding: .22rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--night); color: var(--gold); }
.card-media .badge { position: absolute; top: .7rem; inset-inline-start: .7rem; }
.card-media .badge-featured { inset-inline-start: auto; inset-inline-end: .7rem; background: var(--gold); color: var(--gold-ink); }
.badge-sold, .badge-rented { background: var(--sold); color: #fff; }
.badge-under_offer { background: var(--offer); color: #fff; }
.badge-expired { background: #666; }
.verified { color: var(--gold); font-weight: 600; font-size: .88rem; margin: .2rem 0 0; }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.area-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; }
.area-tile img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.area-tile { border: 1px solid #3a2f31; background: var(--night); transition: border-color .18s, transform .18s; }
.area-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.area-tile span { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .6rem .85rem; color: var(--gold); font-size: .85rem; }
.area-tile strong { font-size: 1.05rem; color: #fff; font-family: var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.chips a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.chips small { color: var(--soft); }
.chips.small a { font-size: .88rem; padding: .3rem .7rem; }
.tree { list-style: none; padding-inline-start: 1rem; margin: .3rem 0; columns: 14rem; }
.tree .tree { columns: auto; }
.tree a { text-decoration: none; }
.tree a:hover { text-decoration: underline; }
.city-block { border-top: 1px solid var(--line); padding-block: 1rem; }
.services dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.services dl > div { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.2rem; }
.services dt { font-weight: 700; margin-bottom: .3rem; }
.services dd { margin: 0; color: var(--soft); }

/* Location */
.loc-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 1.5rem 2.5rem; }
.loc-cover, .hero-photo img, .gallery { border: 1px solid var(--line); }
.loc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.loc-cover { border-radius: var(--radius); width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.stats { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 1rem 0 0; color: var(--soft); }
.stats strong { color: var(--gold); font-size: 1.3rem; }
.faq details { border-top: 1px solid var(--line); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .5rem 0 0; color: var(--soft); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* Listing */
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.listing-head h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.listing-head .price { font: 700 clamp(1.4rem, 3vw, 2rem) var(--sans); color: var(--gold); margin: 0; }
.gallery { position: relative; display: grid; gap: .5rem; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.gallery.multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; max-height: 520px; }
.gallery.multi .g0 { grid-row: span 2; }
.gallery.multi a:not(.g0) img { aspect-ratio: auto; }
.gallery .more { position: absolute; inset-inline-end: 1rem; bottom: 1rem; background: rgb(0 0 0 / .65); color: #fff; padding: .3rem .7rem; border-radius: 6px; font-weight: 700; }
.thumbs { display: flex; gap: .4rem; overflow-x: auto; margin-top: .5rem; }
.thumbs img { width: 110px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; margin-top: 2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; margin: 0 0 2rem; }
.facts div { background: var(--white); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 6px; padding: .6rem .8rem; }
.facts dt { font-size: .8rem; color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }
.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose img { border-radius: 8px; margin-block: 1rem; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: .4rem .6rem; }
.features { columns: 2 12rem; padding-inline-start: 1.2rem; }
.video { position: relative; aspect-ratio: 16/9; margin-top: 1.5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.contact-card { align-self: start; position: sticky; top: 90px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.2rem; }
.contact-card .actions .button { flex: 1; }
.lead-form { display: grid; gap: .7rem; margin-top: 1rem; }
.lead-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; }
.notice { background: rgb(226 185 143 / .1); border: 1px solid rgb(226 185 143 / .4); color: var(--gold-2); padding: .7rem 1rem; border-radius: 8px; }
.notice.ok { background: rgb(46 140 90 / .15); border-color: rgb(46 140 90 / .5); color: #bfe8cf; }
.empty { padding: 2rem; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--soft); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.pager a { font-weight: 600; }
.page-title { margin-top: .5rem; }
.page-cover { border-radius: var(--radius); margin-bottom: 1.5rem; }

/* Footer */
.contact-band { background: linear-gradient(120deg, var(--forest-2), var(--forest) 60%, #7d4050); color: #fff; padding-block: clamp(2rem, 5vw, 3rem); }
.contact-band .eyebrow { color: var(--gold); }
.contact-band p { color: #f0e2e4; }
.contact-band a:not(.button) { color: #fff; }
.contact-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.contact-links { display: grid; gap: .5rem; justify-items: start; }
.site-footer { background: #0e0b0c; color: #c5b7b3; padding-block: 2.5rem 1rem; font-size: .93rem; border-top: 1px solid rgb(226 185 143 / .25); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; }
.footer-grid strong { display: block; color: var(--gold); margin-bottom: .5rem; font-family: var(--serif); font-size: 1.05rem; }
.footer-grid a { display: block; text-decoration: none; padding: .15rem 0; }
.footer-grid a:hover { text-decoration: underline; }
.legal { border-top: 1px solid #3a2f31; margin-top: 2rem; padding-top: 1rem; }
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 6px 18px rgb(0 0 0 / .25); z-index: 30; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgb(0 0 0 / .9); display: grid; place-items: center; z-index: 100; }
.lightbox img { max-width: 94vw; max-height: 88vh; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .15); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .close { top: 14px; inset-inline-end: 14px; }
.lightbox .prev { inset-inline-start: 14px; } .lightbox .next { inset-inline-end: 14px; }

@media (max-width: 900px) {
  .hero-grid, .loc-hero-grid, .listing-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .gallery.multi { grid-template-columns: 1fr 1fr; grid-template-rows: auto; max-height: none; }
  .gallery.multi .g0 { grid-column: span 2; grid-row: auto; }
  .gallery.multi .g3, .gallery.multi .g4 { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; inset: 68px 0 auto; background: var(--night); border-bottom: 1px solid rgb(226 185 143 / .25); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .nav-links.open { display: flex; }
  .hero-photo { display: none; }
  .search-form > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Dark theme details */
.card-body h3 a, .page-title, h1, h2 { color: #fff; }
.card-loc, .card-specs, .muted { color: var(--soft); }
.prose a, .crumbs a:hover { color: var(--gold); }
.contact-band { border-top: 1px solid rgb(226 185 143 / .25); border-bottom: 1px solid rgb(226 185 143 / .15); }
.empty { color: var(--soft); }
.stats li { color: var(--soft); }
.faq summary { color: #fff; }
.faq summary:hover { color: var(--gold); }
.tree a, .city-block h2 a { color: var(--ink); }
.tree a:hover, .city-block h2 a:hover { color: var(--gold); }
::selection { background: var(--gold); color: var(--gold-ink); }

/* Contact numbers */
.numbers { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .35rem; }
.numbers li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.numbers .num { font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
.numbers .mini-link, .numbers.small a { font-size: .8rem; font-weight: 600; color: var(--gold); text-decoration: none; border: 1px solid rgb(226 185 143 / .45); border-radius: 999px; padding: .1rem .6rem; }
.numbers .mini-link:hover, .numbers.small a:hover { background: var(--gold); color: var(--gold-ink); }
.numbers.small { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.numbers.small span { min-width: 7.2rem; font-weight: 600; }

/* Overseas & investors section */
.overseas { background: radial-gradient(900px 400px at 10% 0%, rgb(108 52 65 / .45), transparent 60%), #161213; border-block: 1px solid var(--line); }
.overseas h2 { max-width: 22ch; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ov-card { position: relative; display: grid; gap: .35rem; padding: 1.2rem 1.2rem 2.2rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: border-color .18s, transform .18s; }
.ov-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.ov-card strong { font: 600 1.15rem var(--serif); color: #fff; }
.ov-card span { color: var(--soft); font-size: .95rem; }
.ov-card em { position: absolute; inset-inline-end: 1.1rem; bottom: .8rem; color: var(--gold); font-style: normal; font-size: 1.2rem; }
.overseas .eyebrow { color: var(--gold); }
