/*
Theme Name: New Compound Portal
Template: nc-compound
Description: Multi-property portal variant of New Compound Residences, for the Dubai and Turkish property sites: search-first hero, listing grid, categories and residency guides.
Version: 1.0.8
Author: biz-sky
Text Domain: nc-portal
*/

/* Header: dark bar with search */
.layout-portal .site-header { background: var(--c2); border-bottom: 0; }
.layout-portal .brand, .layout-portal .brand:hover, .layout-portal .head-phone { color: #fff; }
.layout-portal .brand-text small { color: rgba(255,255,255,.6); }
.layout-portal .brand-mark { background: var(--c3); color: var(--c2); box-shadow: none; border-radius: 50%; }
.layout-portal .main-nav { display: flex; align-items: center; gap: 14px; }
.layout-portal .main-nav a { color: rgba(255,255,255,.88); }
.layout-portal .main-nav a:hover, .layout-portal .main-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.layout-portal .nav-toggle { background: transparent; border-color: rgba(255,255,255,.3); }
.layout-portal .nav-toggle span { background: #fff; }
.nav-search { display: flex; align-items: center; background: rgba(255,255,255,.1); border-radius: 999px; padding-inline: 14px 4px; }
.nav-search input { background: transparent; border: 0; color: #fff; font: inherit; font-size: 14px; width: 150px; padding: 8px 0; outline: none; }
.nav-search input::placeholder { color: rgba(255,255,255,.6); }
.nav-search button { border: 0; background: transparent; color: #fff; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }

/* Hero */
.p-hero { position: relative; color: #fff; isolation: isolate; min-height: 620px; display: flex; align-items: center; }
.p-hero-media { position: absolute; inset: 0; z-index: -1; }
.p-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c2) 55%, transparent), color-mix(in srgb, var(--c2) 88%, transparent)); }
.p-hero-inner { text-align: center; padding-block: 90px; display: flex; flex-direction: column; align-items: center; }
.p-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 76px); line-height: 1.1; margin-bottom: .2em; }
.p-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.p-hero .hero-sub { margin-inline: auto; max-width: 640px; }
.p-search { margin-top: 30px; width: 100%; max-width: 640px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px; padding-inline-start: 22px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.p-search .ic { color: var(--muted); width: 20px; height: 20px; }
.p-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); background: transparent; padding: 10px 0; }
.p-search .btn { border-radius: 999px; }
.p-stats { list-style: none; margin: 38px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.p-stats li, .p-stats a { display: flex; align-items: baseline; gap: 8px; color: #fff; }
.p-stats li { padding: 10px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.06); }
.p-stats strong { font-family: var(--font-head); font-size: 22px; color: var(--c3); }
.p-stats span { font-size: 14px; }

/* Listings */
.layout-portal .section { background: var(--paper); }
.layout-portal .section:nth-of-type(odd) { background: #fff; }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.p-head h2 { margin: 0; }
.p-head .kicker .ic, .p-guides .kicker .ic { color: var(--c3); }
.p-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.p-cats a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--c2); font-weight: 600; font-size: 14px; }
.p-cats a span { color: var(--c1); margin-inline-start: 4px; }
.p-cats a:hover { background: var(--c2); color: #fff; }
.listings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.listing { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0,0,0,.35); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.listing:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(0,0,0,.45); }
.listing-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--c3); color: var(--on-c3); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.listing-loc { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 14px 10px; font-size: 13px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }
.listing-body { padding: 16px 18px 14px; display: flex; flex-direction: column; flex: 1; }
.listing h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.listing h3 a { color: var(--c2); }
.listing p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.listing .listing-price { display: flex; gap: 6px; align-items: flex-start; color: var(--c1); font-weight: 600; }
.listing-price .ic { margin-top: 3px; }
.listing-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.listing-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.listing-wa { width: 36px; height: 36px; justify-content: center; border-radius: 50%; background: var(--tint); }


/* Guides */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.guide { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--ink); }
.guide img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }
.guide strong { display: block; font-family: var(--font-head); color: var(--c2); font-size: 17px; line-height: 1.35; margin-bottom: 4px; }
.guide small { color: var(--muted); font-size: 13.5px; line-height: 1.55; display: block; }
.guide:hover strong { color: var(--c1); }

/* Photo strip */
.p-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scrollbar-width: thin; }
.p-strip a { display: block; height: 220px; }
.p-strip img { width: 100%; height: 100%; object-fit: cover; }

.layout-portal .cta::before { background: radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--c3) 30%, transparent), transparent 60%); width: 70%; }
.layout-portal .page-head::after { width: 100%; height: 3px; }

@media (max-width: 1080px) {
	.listings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nav-search input { width: 110px; }
}
@media (max-width: 1000px) {
	.layout-portal .main-nav { background: var(--c2); flex-direction: column; align-items: stretch; display: none; }
	.layout-portal.nav-open .main-nav { display: flex; }
	.layout-portal .main-nav a { border-bottom-color: rgba(255,255,255,.12); }
	.nav-search { margin-top: 10px; }
	.nav-search input { width: 100%; flex: 1; }
}
@media (max-width: 900px) {
	.listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guides { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.p-hero { min-height: 0; }
	.p-hero-inner { padding-block: 64px; }
	.p-search { padding-inline-start: 16px; }
	.p-search .btn { padding-inline: 1em; }
	.listings { grid-template-columns: 1fr; }
	.guide { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	.guide img { width: 96px; height: 80px; }
	.p-strip a { height: 160px; }
}
