/* Property details — Task 4 (client revisions v2). Scoped to single property pages only. */

/* ---- Client note #5: comfortable Arabic line spacing on the wrapped title ---- */
/* The shared hero title defaults to a tight 1.18; on a long wrapped Arabic title
 * that collides diacritics/dots between lines. Bump it on the property page only. */
.page-hero .section-title{line-height:1.7}

/* ---- Page heading: purpose badge + price ---- */
.property-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-block:0 1.5rem}
.property-heading__price{font-family:Cairo,sans-serif;font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:var(--ui-teal-dark)}
.property-offer-code{display:inline-flex;align-items:center;gap:.4rem;margin-block:-.85rem 1.35rem;padding:.38rem .7rem;border:1px solid rgba(10,93,98,.18);border-radius:999rem;background:#eef9f7;color:var(--ui-teal-dark);font:800 .82rem/1.5 Cairo,sans-serif}.property-offer-code span{color:#526371}.property-offer-code strong{font-weight:900;letter-spacing:.02em}
.property-purpose{display:inline-flex;align-items:center;gap:.42rem;padding:.34rem .8rem;border-radius:999px;border:1px solid;font-family:Cairo,sans-serif;font-size:.82rem;font-weight:800;line-height:1.4}
.property-purpose::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:currentColor}
.property-purpose.is-sale{background:#e7f6f0;color:#126247;border-color:#bfe3d4}
.property-purpose.is-rent{background:#e8f1fc;color:#175c96;border-color:#c5dcf3}
.property-purpose.is-valuation{background:#fff3dd;color:#855800;border-color:#f0dcae}
/* Unit pages reuse the same pill component for official unit statuses. */
.property-purpose.is-unit-available{background:#e7f6f0;color:#126247;border-color:#bfe3d4}
.property-purpose.is-unit-reserved{background:#fff3dd;color:#855800;border-color:#f0dcae}
.property-purpose.is-unit-sold{background:#fdecec;color:#8a2525;border-color:#f3c6c6}
.property-purpose.is-unit-unavailable{background:#eef1f4;color:#5a6b7c;border-color:#d7dee5}

.property-gallery__empty{display:grid;place-items:center;min-height:18rem;border-radius:var(--ui-radius-lg);background:var(--ui-alt)}
.property-gallery__empty svg{width:4rem;height:4rem;color:rgba(10,22,40,.22)}
/* ---- Property facts: compact horizontal facts ---- */
.media-gallery{padding-inline-start:0}
.property-facts{margin-block-start:1.35rem}
.property-facts__grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem 2rem;padding:1.05rem 0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);background:transparent}
.property-fact-item{display:flex;align-items:flex-start;gap:.65rem;min-width:8.5rem;flex:1 1 0}
.property-fact-item__icon{display:grid;place-items:center;flex:0 0 auto;width:1.35rem;height:1.35rem;margin-top:.12rem;color:var(--ui-teal-dark)}
.property-fact-item__icon svg,.property-fact-item__icon .alsakan-icon{width:1.15rem!important;height:1.15rem!important;color:currentColor!important;opacity:1!important;transform:none!important;transition:none!important;stroke-width:1.8}
.property-fact-item__text{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.property-fact-item__value{font-family:Cairo,sans-serif;font-size:1.08rem;line-height:1.7;font-weight:900;color:var(--ui-ink);overflow-wrap:anywhere}
.property-fact-item__label{font-size:.76rem;line-height:1.7;color:var(--ui-muted)}

/* ---- Description / actions ---- */
.property-description{margin-top:2.25rem}
.property-content-aligned{margin-inline-start:0}
.media-gallery__main{aspect-ratio:2.05/1}

/* ---- V3.4 additional details ---- */
.property-action-composition{margin-block-start:2rem}
.property-additional{padding:1.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:#fff}
.property-additional__heading{display:flex;align-items:flex-end;justify-content:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;text-align:right}
.property-additional h2{margin:0;font-family:Cairo,sans-serif;font-size:clamp(1.25rem,2.4vw,1.65rem);font-weight:900;color:var(--ui-ink)}
.property-additional__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.9rem}
.property-additional__panel{padding:.95rem 1rem;border-radius:calc(var(--ui-radius-lg) - 8px);background:var(--ui-alt)}
.property-additional__panel:last-child:nth-child(odd){grid-column:1/-1}
.property-additional__panel h3{margin:0 0 .55rem;font-family:Cairo,sans-serif;font-size:.98rem;font-weight:900;color:var(--ui-teal-dark)}
.property-additional__list{margin:0}
.property-additional__item{display:grid;grid-template-columns:minmax(7rem,.8fr) 1.2fr;gap:.7rem;padding:.52rem 0;border-top:1px solid rgba(10,22,40,.08)}
.property-additional__item:first-child{border-top:0;padding-top:0}
.property-additional__item:last-child{padding-bottom:0}
.property-additional dt{font-size:.8rem;line-height:1.7;font-weight:850;color:var(--ui-ink)}
.property-additional dd{margin:0;font-family:Cairo,sans-serif;font-size:.95rem;line-height:1.7;font-weight:500;color:#40505f}
.property-action-composition__buttons{justify-content:flex-start;margin-top:2rem}

/* Floorplan uses the same additional-details panel component (unit pages). */
.property-additional__panel.is-plan figure{display:grid;gap:.45rem;margin:0}
.property-additional__panel.is-plan img{width:100%;height:auto;border-radius:.6rem;background:var(--ui-alt)}

/* ---- Responsive refinements ---- */
@media(max-width:520px){
	.property-heading{flex-direction:column;align-items:flex-start;gap:.6rem}
	.media-gallery__main{aspect-ratio:4/3}
	.media-gallery__thumbs-wrap{margin-top:.55rem}
	.property-facts__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem 0;gap:.7rem 1rem}
	.property-fact-item{min-width:0}
	.property-fact-item:last-child:nth-child(odd){grid-column:1/-1}
	.property-fact-item__value{font-size:.96rem}
	.property-additional{padding:1rem}
	.property-additional__grid{grid-template-columns:1fr}
	.property-additional__item{grid-template-columns:1fr;gap:.1rem}
	.property-action-composition__buttons{margin-top:1.5rem}
}
