/* Adnika Goyzer — single project page.
 *
 * A supplement, not a second design system. property.css owns the hero, the thumbnail
 * strip, the quick-facts tiles, the buttons, the amenity ticks, the map and the enquiry
 * form; developers.css owns the developer card. This file adds only what a launch needs
 * that a listing does not: the brochure band, the schedule tables, the stage bar, and the
 * lead gate that stands in front of the PDF.
 *
 * Everything is scoped under .cp-proj so it cannot reach the property pages, which share
 * the same class names.
 */

.cp-proj{
	--pj-ochre:#C8A96E;--pj-ochre-700:#A8894C;
	/* Small ochre TEXT needs its own value: #A8894C reads at 3.3:1 on white, which is
	   below the 4.5:1 an 11px label needs. Fills, rules and icons keep the brand ochre. */
	--pj-ochre-ink:#7E632F;
	--pj-graphite:#1A3C5A;--pj-graphite-800:#22425E;
	--pj-porcelain:#EAE8E3;--pj-porcelain-100:#F4F2EE;
	--pj-stone-200:#D8D9D7;
}

/* --------------------------------------------------------- hero download ---- */
/* The brochure sits directly under the price, because the price is the last thing
   read before a decision and the PDF is what the decision needs. */
/* A project hero carries an eyebrow, a title, a meta row, a status chip, a price line,
   a button and a note — far more text than a property hero, and usually over a bright
   developer render rather than a photograph. The stock scrim is not enough for it, and
   on a phone the block reaches most of the way up the image. */
.cp-proj .cp-hero-grad-b{height:82%;background:linear-gradient(to top,#1A3C5A 0%,rgba(26,60,90,.96) 14%,rgba(26,60,90,.82) 32%,rgba(26,60,90,.55) 52%,rgba(26,60,90,.28) 72%,rgba(26,60,90,.08) 88%,transparent 100%)}
@media(max-width:767px){
	.cp-proj .cp-hero-grad-b{height:94%;background:linear-gradient(to top,#1A3C5A 0%,rgba(26,60,90,.97) 26%,rgba(26,60,90,.88) 46%,rgba(26,60,90,.66) 64%,rgba(26,60,90,.34) 82%,transparent 100%)}
}

/* No figure yet: a quiet line, not a headline. The CTA below it carries the block. */
.cp-proj .cp-pj-poa{font-size:15px;letter-spacing:.02em;color:rgba(234,232,227,.82);line-height:1.4}
@media(min-width:768px){.cp-proj .cp-pj-poa{text-align:right}}

.cp-proj .cp-pj-herocta{margin-top:20px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
@media(min-width:768px){.cp-proj .cp-pj-herocta{align-items:flex-end}}
.cp-proj .cp-pj-btn{gap:9px}
.cp-proj .cp-pj-btn .cp-ic{width:16px;height:16px}
.cp-proj .cp-pj-herocta-note{font-size:11.5px;letter-spacing:.04em;color:rgba(234,232,227,.72);line-height:1.4}
@media(min-width:768px){.cp-proj .cp-pj-herocta-note{text-align:right}}

/* Long project names need to breathe more than a five-character reference does. */
.cp-proj .cp-hero-meta{flex-wrap:wrap;row-gap:8px}

/* The crumb row is absolutely positioned, so anything it cannot fit pushes the whole
   document sideways rather than wrapping. "Home > Off-plan > DAMAC Properties > DAMAC
   Islands" is several times the length of a property reference, so the row is given a
   real container, the trail is allowed to shrink, and on a phone it collapses to
   "Home > this project". */
.cp-proj .cp-hero-top{max-width:1400px;margin:0 auto;align-items:center;gap:14px;padding-right:24px}
@media(min-width:768px){.cp-proj .cp-hero-top{padding-right:40px}}
.cp-proj .cp-hero-actions{flex:0 0 auto;display:flex;gap:10px}
.cp-proj .cp-crumbs{min-width:0;overflow:hidden}
.cp-proj .cp-crumbs span{max-width:38ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:767px){
	.cp-proj .cp-crumbs>a:not(:first-child),
	.cp-proj .cp-crumbs>i:nth-of-type(n+2){display:none}
	.cp-proj .cp-crumbs span{max-width:20ch}
	.cp-proj .cp-viewall{padding:10px 13px;letter-spacing:.14em}
}

/* The property page pins six tiles across; a project can legitimately show five, and
   a fixed six-column grid would leave a hole at the end of the row. */
@media(min-width:1024px){.cp-proj .cp-quick-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}

/* ------------------------------------------------------- brochure band ---- */
.cp-proj .cp-pj-band{background:var(--pj-graphite);color:var(--pj-porcelain);border-top:1px solid rgba(234,232,227,.12)}
.cp-proj .cp-pj-band-in{display:grid;gap:22px;align-items:center;padding:34px 24px}
@media(min-width:768px){.cp-proj .cp-pj-band-in{grid-template-columns:auto 1fr auto;gap:26px;padding:38px 40px}}
.cp-proj .cp-pj-band-ic{
	width:60px;height:60px;flex:0 0 auto;display:grid;place-items:center;
	border:1px solid rgba(200,169,110,.45);background:rgba(200,169,110,.12);color:var(--pj-ochre);
}
.cp-proj .cp-pj-band-ic .cp-ic{width:26px;height:26px}
.cp-proj .cp-pj-band-txt h2{
	font-family:"Cormorant Garamond",Georgia,serif;font-weight:300;
	font-size:clamp(23px,2.4vw,31px);line-height:1.16;margin:8px 0 0;color:var(--pj-porcelain);
}
.cp-proj .cp-pj-band-txt p{margin:9px 0 0;font-size:14.5px;line-height:1.62;color:rgba(234,232,227,.74);max-width:62ch}
.cp-proj .cp-pj-band-cta{display:flex}
.cp-proj .cp-pj-band-cta .cp-btn{white-space:nowrap;padding:15px 26px}

/* ----------------------------------------------------------- stage bar ---- */
/* Four fixed stages, the current one lit. A launch buyer's first question is how far
   along it is, and a date alone does not answer that. */
.cp-proj .cp-pj-steps{
	list-style:none;margin:0;padding:0;display:grid;gap:2px;
	border:1px solid var(--pj-stone-200);background:var(--pj-stone-200);max-width:820px;
}
@media(min-width:700px){.cp-proj .cp-pj-steps{grid-template-columns:repeat(4,1fr)}}
.cp-proj .cp-pj-steps li{
	background:#fff;padding:18px 16px;display:flex;flex-direction:column;gap:9px;
	color:rgba(26,60,90,.7);position:relative;
}
.cp-proj .cp-pj-step-ic{
	width:34px;height:34px;display:grid;place-items:center;border-radius:50%;
	border:1px solid var(--pj-stone-200);color:inherit;
}
.cp-proj .cp-pj-step-ic .cp-ic{width:17px;height:17px}
.cp-proj .cp-pj-step-l{font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;line-height:1.35}
/* Only ever rendered inside the lit (graphite) step, so it takes the bright ochre. */
.cp-proj .cp-pj-step-s{font-size:12px;color:var(--pj-ochre);letter-spacing:.02em}
.cp-proj .cp-pj-steps li.is-done{color:var(--pj-graphite)}
.cp-proj .cp-pj-steps li.is-done .cp-pj-step-ic{border-color:var(--pj-ochre);color:var(--pj-ochre)}
.cp-proj .cp-pj-steps li.is-now{background:var(--pj-graphite);color:var(--pj-porcelain)}
.cp-proj .cp-pj-steps li.is-now .cp-pj-step-ic{border-color:var(--pj-ochre);background:var(--pj-ochre);color:#fff}
.cp-proj .cp-pj-steps li.is-now .cp-pj-step-s{color:var(--pj-ochre)}

/* -------------------------------------------------------------- tables ---- */
/* A grid item defaults to min-width:auto, so without this the 640px units table
   stretches its column and the whole page scrolls sideways on a phone. The table
   must scroll inside its own wrapper, not drag the body with it. */
.cp-proj .cp-body-main,
.cp-proj .cp-rail{min-width:0}
/* position:relative is load-bearing, not decoration: the visually-hidden captions and
   column labels inside are absolutely positioned, and without a positioned ancestor
   they escape this scroller, land in document coordinates past the right edge, and the
   page scrolls sideways on a phone with nothing visible to explain why. */
.cp-proj .cp-pj-tablewrap{position:relative;max-width:min(820px,100%);overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--pj-stone-200);background:#fff}
.cp-proj .cp-pj-table{width:100%;border-collapse:collapse;font-size:14px;min-width:440px}
.cp-proj .cp-pj-table caption{text-align:left}
.cp-proj .cp-pj-table thead th{
	background:var(--pj-porcelain-100);
	font-size:10.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
	color:rgba(26,60,90,.74);text-align:left;padding:13px 16px;
	border-bottom:1px solid var(--pj-stone-200);white-space:nowrap;
}
.cp-proj .cp-pj-table tbody th,
.cp-proj .cp-pj-table tbody td,
.cp-proj .cp-pj-table tfoot th,
.cp-proj .cp-pj-table tfoot td{padding:15px 16px;border-bottom:1px solid var(--pj-stone-200);vertical-align:middle}
.cp-proj .cp-pj-table tbody tr:last-child th,
.cp-proj .cp-pj-table tbody tr:last-child td{border-bottom:0}
/* Not display:flex — a flexed <th> stops being a table cell and the columns stop
   lining up. The row icon flows inline instead. */
.cp-proj .cp-pj-table tbody th{font-weight:500;text-align:left;color:var(--pj-graphite)}
.cp-proj .cp-pj-table tbody th a{color:var(--pj-graphite);text-decoration:none;transition:color .2s}
.cp-proj .cp-pj-table tbody th a:hover{color:var(--pj-ochre-ink)}
.cp-proj .cp-pj-table tbody td{color:var(--pj-graphite-800)}
.cp-proj .cp-pj-table tbody tr:hover{background:rgba(200,169,110,.06)}
.cp-proj .cp-pj-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cp-proj .cp-pj-table th.cp-pj-num{text-align:right}
.cp-proj .cp-pj-rowic{
	width:26px;height:26px;display:inline-grid;place-items:center;vertical-align:-8px;margin-right:10px;
	background:rgba(200,169,110,.13);color:var(--pj-ochre-700);
}
.cp-proj .cp-pj-rowic .cp-ic{width:14px;height:14px}
.cp-proj .cp-pj-table tfoot th,
.cp-proj .cp-pj-table tfoot td{
	background:var(--pj-porcelain-100);border-top:1px solid var(--pj-stone-200);border-bottom:0;
	font-weight:500;color:var(--pj-graphite);text-align:left;
}
.cp-proj .cp-pj-table tfoot td.cp-pj-num{text-align:right}

/* Column widths: the label column takes the slack so the numbers stay together on
   the right instead of drifting apart on a wide screen. */
.cp-proj .cp-pj-table-plan tbody th{width:34%}
.cp-proj .cp-pj-table-sizes tbody th{width:60%}
/* The fact sheet has no header row — it is a list of statements, not a schedule —
   so the first row carries the table's top edge instead. */
.cp-proj .cp-pj-table-facts td{color:rgba(26,60,90,.78)}
.cp-proj .cp-pj-table-facts tbody th{width:38%}
.cp-proj .cp-pj-table-units{min-width:640px}
.cp-proj .cp-pj-table-units tbody th{width:34%;min-width:180px}
.cp-proj .cp-pj-table-units td{width:11%}
.cp-proj .cp-pj-table-units td.cp-pj-go{width:9%}

/* the share bar inside the payment-plan table */
.cp-proj .cp-pj-barcol{width:38%;min-width:120px}
.cp-proj .cp-pj-bar{display:block;height:6px;background:var(--pj-porcelain);position:relative;overflow:hidden}
.cp-proj .cp-pj-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--pj-ochre),var(--pj-ochre-700))}

.cp-proj .cp-pj-peryr{font-size:11px;color:rgba(26,60,90,.72)}
.cp-proj .cp-pj-go{text-align:right;white-space:nowrap}
.cp-proj .cp-pj-go a{
	font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
	color:var(--pj-ochre-ink);text-decoration:none;transition:color .2s;
}
.cp-proj .cp-pj-go a:hover{color:var(--pj-graphite)}

.cp-proj .cp-pj-note{display:flex;gap:9px;align-items:flex-start;margin:14px 0 0;max-width:820px;font-size:13px;line-height:1.6;color:var(--pj-graphite-800)}
.cp-proj .cp-pj-note .cp-ic{width:16px;height:16px;margin-top:2px;color:var(--pj-ochre-ink);flex:0 0 auto}
.cp-proj .cp-pj-note-dim{color:rgba(26,60,90,.76);font-size:12px;padding-left:25px}

/* Phones: a table that has to be dragged sideways with no cue that it can be is a
   worse table than a narrower one. Only the unit schedule genuinely needs six columns,
   so the two-column tables lose their floor, the payment bar (a nicety beside the
   percentage) is dropped, and the schedule sheds its least-consulted column. */
.cp-proj .cp-pj-table-sizes,
.cp-proj .cp-pj-table-facts{min-width:0}
@media(max-width:599px){
	.cp-proj .cp-pj-table{font-size:13px}
	.cp-proj .cp-pj-table thead th{padding:11px 10px;letter-spacing:.12em}
	.cp-proj .cp-pj-table tbody th,
	.cp-proj .cp-pj-table tbody td,
	.cp-proj .cp-pj-table tfoot th,
	.cp-proj .cp-pj-table tfoot td{padding:12px 10px}
	.cp-proj .cp-pj-table-plan{min-width:0}
	.cp-proj .cp-pj-barcol{display:none}
	.cp-proj .cp-pj-table-units{min-width:0}
	/* Baths, and the "View" cell — the unit name in the first column is the same link. */
	.cp-proj .cp-pj-table-units tr>*:nth-child(3),
	.cp-proj .cp-pj-table-units tr>*:nth-child(6){display:none}
	.cp-proj .cp-pj-table-units tbody th,
	.cp-proj .cp-pj-table-units td,
	.cp-proj .cp-pj-table-units td.cp-pj-go{width:auto;min-width:0}
	.cp-proj .cp-pj-rowic{display:none}
}

/* ------------------------------------------------------------ amenities ---- */
@media(min-width:600px){.cp-proj .cp-pj-amen{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.cp-proj .cp-pj-amen{grid-template-columns:repeat(3,1fr);max-width:820px}}

/* -------------------------------------------------------------- gallery ---- */
.cp-proj .cp-pj-gal{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;max-width:820px}
@media(min-width:700px){.cp-proj .cp-pj-gal{grid-template-columns:repeat(4,1fr)}}
.cp-proj .cp-pj-gal-i{border:1px solid var(--pj-stone-200);background:var(--pj-porcelain)}
.cp-proj .cp-pj-galmore{margin:16px 0 0}

/* ----------------------------------------------------------------- rail ---- */
.cp-proj .cp-pj-rail-cta{background:var(--pj-graphite);color:var(--pj-porcelain);padding:24px;border:1px solid var(--pj-graphite)}
.cp-proj .cp-pj-rail-cta .cp-eyebrow{color:var(--pj-ochre)}
.cp-proj .cp-pj-rail-cta p{margin:10px 0 16px;font-size:13.5px;line-height:1.6;color:rgba(234,232,227,.76)}
.cp-proj .cp-pj-rail-note{display:block;margin-top:10px;font-size:11px;letter-spacing:.06em;color:rgba(234,232,227,.72);text-align:center}

.cp-proj .cp-pj-glance{background:#fff;border:1px solid var(--pj-stone-200);padding:24px}
.cp-proj .cp-pj-glance .cp-eyebrow{display:block;margin-bottom:6px}
.cp-proj .cp-pj-glance .cp-fact:last-child{border-bottom:0;padding-bottom:0}
.cp-proj .cp-pj-glance .cp-fact-v{font-weight:500;max-width:60%}

.cp-proj .cp-pj-inq-lead{margin:8px 0 4px;font-size:13px;line-height:1.6;color:rgba(26,60,90,.78)}

/* ------------------------------------------------------------ lead gate ---- */
/* The gate keeps its own class names: projects.js binds to them, and it is the one
   component here with no counterpart on a property page. */
.pj-modal{
	position:fixed;inset:0;z-index:99999;
	display:flex;align-items:center;justify-content:center;
	padding:20px;
	background:rgba(26,60,90,.72);
	-webkit-backdrop-filter:saturate(120%) blur(2px);backdrop-filter:saturate(120%) blur(2px);
}
.pj-modal[hidden]{display:none}
.pj-modal__panel{
	position:relative;width:100%;max-width:420px;
	background:#F8F6F1;border:1px solid #D8D9D7;
	padding:clamp(24px,3vw,34px);
	max-height:90vh;overflow-y:auto;
	font-family:"Macan Pan",Inter,system-ui,-apple-system,sans-serif;
	color:#1A3C5A;box-sizing:border-box;
}
.pj-modal__panel *{box-sizing:border-box}
.pj-modal__x{
	position:absolute;top:10px;right:12px;
	background:none;border:0;font-size:24px;line-height:1;color:#787c82;cursor:pointer;padding:4px 8px;
}
.pj-modal__x:hover{color:#1A3C5A}
.pj-modal .cp-eyebrow{font-size:10px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;display:block;margin:0 0 10px}
.pj-modal .cp-ochre{color:#A8894C}
.pj-modal .cp-dim{color:#787c82}
.pj-modal h2{font-family:"Cormorant Garamond",Georgia,serif;font-weight:300;font-size:26px;line-height:1.14;margin:0}
.pj-modal__sub{margin-top:10px;font-size:14px;line-height:1.65;color:#5A6672}
.pj-modal form{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.pj-modal label{display:flex;flex-direction:column;gap:6px}
.pj-modal label .cp-eyebrow{margin:0;font-size:10px;letter-spacing:.18em}
.pj-modal input{
	width:100%;padding:12px 13px;min-height:46px;
	border:1px solid #D8D9D7;background:#fff;border-radius:0;
	font-family:inherit;font-size:16px;color:#1A3C5A;
}
.pj-modal input:focus{outline:2px solid #C8A96E;outline-offset:1px;border-color:#C8A96E}
.pj-modal .cp-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	font-family:inherit;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;
	padding:14px 22px;border:1px solid transparent;cursor:pointer;border-radius:0;text-decoration:none;
	transition:background .2s,color .2s;
}
.pj-modal .cp-btn-ochre{background:#C8A96E;color:#fff}
.pj-modal .cp-btn-ochre:hover{background:#A8894C}
.pj-modal .cp-w{width:100%}
.pj-modal .cp-ic{width:15px;height:15px;flex:0 0 auto}
.pj-formnote{margin:0;font-size:14px;line-height:1.5}
.pj-formnote.is-ok{color:#2E6A54}
.pj-formnote.is-err{color:#9B3A2B}
.pj-consent{margin:2px 0 0;font-size:12px;line-height:1.55;color:#787c82}
@media (prefers-reduced-motion:reduce){.pj-modal{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Astra ships .screen-reader-text, but the template must not depend on a theme for
   whether a table caption is visible. */
.cp-proj .screen-reader-text{
	position:absolute!important;width:1px;height:1px;overflow:hidden;
	clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap;
}
