/* ==========================================================================
   Single property
   ========================================================================== */

.ycp-property.ycp-property { background: #fff; padding-bottom: 0; }

/* ---------------------------------------------------------- Title block */
.ycp-prop-head.ycp-prop-head { padding: 24px 0 22px; }
.ycp-prop-head__row.ycp-prop-head__row { display: grid; gap: 16px; margin-top: 18px; align-items: end; }
@media (min-width: 900px) { .ycp-prop-head__row.ycp-prop-head__row { grid-template-columns: 1fr auto; gap: 40px; } }
.ycp-prop-head__badges.ycp-prop-head__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ycp-badge--soft.ycp-badge--soft { background: var(--ycp-bg); color: var(--ycp-navy); border: 1px solid var(--ycp-border); }
.ycp-badge--ok.ycp-badge--ok { background: rgba(7, 139, 53, .1); color: var(--ycp-green); }
.ycp.ycp .ycp-prop-head__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.ycp-prop-head__loc.ycp-prop-head__loc { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: var(--ycp-muted); }
.ycp-prop-head__loc.ycp-prop-head__loc .ycp-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ycp-saffron); }
.ycp-prop-head__price.ycp-prop-head__price { text-align: left; }
@media (min-width: 900px) { .ycp-prop-head__price.ycp-prop-head__price { text-align: right; } }
.ycp-prop-head__amount.ycp-prop-head__amount { font-family: var(--ycp-font-head); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 800; color: var(--ycp-navy); letter-spacing: -0.02em; line-height: 1.1; }
.ycp-prop-head__meta.ycp-prop-head__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .85rem; color: var(--ycp-muted); }
@media (min-width: 900px) { .ycp-prop-head__meta.ycp-prop-head__meta { justify-content: flex-end; } }

/* ---------------------------------------------------------- Gallery */
.ycp-gallery.ycp-gallery { position: relative; margin-bottom: 36px; }
.ycp-gallery__item.ycp-gallery__item { position: relative; display: block; overflow: hidden; background: var(--ycp-bg); }
.ycp-gallery__item.ycp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ycp-ease), filter .3s; }
.ycp-gallery__item.ycp-gallery__item:hover img { transform: scale(1.03); filter: brightness(.94); }
.ycp-gallery__more.ycp-gallery__more {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(4, 29, 59, .55); color: #fff;
	font-family: var(--ycp-font-head); font-weight: 800; font-size: 1.25rem;
}
.ycp-gallery__all.ycp-gallery__all { position: absolute; right: 16px; bottom: 16px; box-shadow: var(--ycp-shadow-md); }
.ycp-gallery__all.ycp-gallery__all .ycp-icon { width: 18px; height: 18px; }
.ycp-gallery__all.ycp-gallery__all:hover .ycp-icon { transform: none; }
.ycp-gallery__count.ycp-gallery__count { display: none; }

/* Mobile: swipe strip */
@media (max-width: 767px) {
	.ycp-gallery.ycp-gallery { margin-inline: calc(var(--ycp-gutter) * -1); }
	.ycp-gallery__track.ycp-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.ycp-gallery__track.ycp-gallery__track::-webkit-scrollbar { display: none; }
	.ycp-gallery__item.ycp-gallery__item { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
	.ycp-gallery__more.ycp-gallery__more { display: none; }
	.ycp-gallery__count.ycp-gallery__count {
		display: block; position: absolute; left: 16px; bottom: 16px;
		padding: 5px 10px; border-radius: 999px; background: rgba(4, 29, 59, .7); color: #fff;
		font-size: .8rem; font-weight: 600;
	}
	.ycp-gallery__all.ycp-gallery__all { bottom: 12px; right: 12px; min-height: 36px; padding: 6px 12px; font-size: .8rem; }
}

/* Desktop: mosaic */
@media (min-width: 768px) {
	.ycp-gallery__track.ycp-gallery__track {
		display: grid; gap: 10px;
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: clamp(380px, 46vw, 540px);
		border-radius: 20px; overflow: hidden;
	}
	.ycp-gallery__item.ycp-gallery__item:first-child { grid-row: span 2; }
	.ycp-gallery__item--extra.ycp-gallery__item--extra { display: none; }
	.ycp-gallery--n1.ycp-gallery--n1 .ycp-gallery__track { grid-template-columns: 1fr; grid-template-rows: 1fr; }
	.ycp-gallery--n2.ycp-gallery--n2 .ycp-gallery__track { grid-template-columns: 2fr 1fr; }
	.ycp-gallery--n2.ycp-gallery--n2 .ycp-gallery__item:nth-child(2) { grid-row: span 2; }
	.ycp-gallery--n3.ycp-gallery--n3 .ycp-gallery__track { grid-template-columns: 2fr 1fr; }
	.ycp-gallery--n4.ycp-gallery--n4 .ycp-gallery__track { grid-template-columns: 2fr 1fr 1fr; }
	.ycp-gallery--n4.ycp-gallery--n4 .ycp-gallery__item:nth-child(4) { grid-column: span 2; }
}
.ycp-gallery--empty.ycp-gallery--empty {
	display: grid; place-items: center; gap: 10px;
	height: 260px; border-radius: 20px; position: relative; overflow: hidden;
	color: var(--ycp-muted); font-weight: 600;
}
.ycp-gallery--empty.ycp-gallery--empty p { position: relative; }

/* Lightbox */
.ycp-lightbox.ycp-lightbox {
	position: fixed; inset: 0; z-index: 10010;
	display: grid; grid-template-rows: auto 1fr; place-items: center;
	background: rgba(2, 12, 26, .96);
	opacity: 0; visibility: hidden;
	transition: opacity .25s var(--ycp-ease), visibility 0s linear .25s;
	font-family: var(--ycp-font-body);
}
.ycp-lightbox.ycp-lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.ycp-lightbox__top.ycp-lightbox__top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; z-index: 2; }
.ycp-lightbox__count.ycp-lightbox__count { font-size: .9rem; font-weight: 600; opacity: .85; }
.ycp-lightbox__stage.ycp-lightbox__stage { grid-row: 1 / -1; margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px 56px; box-sizing: border-box; }
@media (min-width: 900px) { .ycp-lightbox__stage.ycp-lightbox__stage { padding: 72px 96px 64px; } }
.ycp-lightbox__img.ycp-lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity .25s; }
.ycp-lightbox__img.ycp-lightbox__img.is-loaded { opacity: 1; }
.ycp-lightbox__cap.ycp-lightbox__cap { position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.75); }
.ycp-lightbox__btn.ycp-lightbox__btn {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
	transition: background .2s;
}
.ycp-lightbox__btn.ycp-lightbox__btn:hover { background: rgba(255,255,255,.2); }
.ycp-lightbox__btn.ycp-lightbox__btn:focus-visible { outline: 3px solid var(--ycp-saffron); outline-offset: 2px; }
.ycp-lightbox__nav.ycp-lightbox__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.ycp-lightbox__prev.ycp-lightbox__prev { left: 12px; }
.ycp-lightbox__next.ycp-lightbox__next { right: 12px; }
.ycp-lightbox.ycp-lightbox.is-single .ycp-lightbox__nav { display: none; }
@media (max-width: 767px) { .ycp-lightbox__nav.ycp-lightbox__nav { top: auto; bottom: 48px; margin-top: 0; } }

/* ---------------------------------------------------------- Layout */
.ycp-property__layout.ycp-property__layout { display: grid; gap: 36px; padding-bottom: var(--ycp-section); }
@media (min-width: 1024px) {
	.ycp-property__layout.ycp-property__layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
	.ycp-property__aside.ycp-property__aside { position: sticky; top: calc(var(--ycp-header-h) + 20px); }
}
@media (min-width: 1280px) { .ycp-property__layout.ycp-property__layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; } }

/* Key facts */
.ycp-facts.ycp-facts {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
	margin-bottom: 36px;
	background: var(--ycp-border);
	border: 1px solid var(--ycp-border); border-radius: var(--ycp-r-card); overflow: hidden;
}
@media (min-width: 640px) { .ycp-facts.ycp-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.ycp-fact.ycp-fact { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; }
.ycp-fact__icon.ycp-fact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(6, 43, 89, .06); color: var(--ycp-navy); flex: none; }
.ycp-fact__icon.ycp-fact__icon .ycp-icon { width: 22px; height: 22px; }
.ycp-fact__text.ycp-fact__text { display: grid; line-height: 1.3; min-width: 0; }
.ycp-fact__label.ycp-fact__label { font-size: .78rem; color: var(--ycp-muted); }
.ycp-fact.ycp-fact strong { font-family: var(--ycp-font-head); font-size: 1rem; color: var(--ycp-navy); }

/* Sections */
.ycp-psec.ycp-psec { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--ycp-border); }
.ycp-psec__head.ycp-psec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.ycp.ycp .ycp-psec__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.ycp-psec__lead.ycp-psec__lead { font-size: var(--ycp-fs-lead); color: var(--ycp-text); line-height: 1.7; margin-bottom: 12px; }
.ycp-prose.ycp-prose { color: #334155; line-height: 1.8; }
.ycp-prose.ycp-prose > * + * { margin-top: 1em; }
.ycp-prose.ycp-prose ul { list-style: disc; padding-left: 1.3em; }
.ycp-prose.ycp-prose ol { list-style: decimal; padding-left: 1.3em; }
.ycp-prose.ycp-prose a { color: var(--ycp-navy); text-decoration: underline; text-underline-offset: 3px; }

.ycp-specs.ycp-specs { display: grid; grid-template-columns: 1fr; margin: 0; border: 1px solid var(--ycp-border); border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .ycp-specs.ycp-specs { grid-template-columns: 1fr 1fr; } }
.ycp-specs__row.ycp-specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--ycp-border); }
@media (min-width: 640px) {
	.ycp-specs__row.ycp-specs__row:nth-child(odd) { border-right: 1px solid var(--ycp-border); }
	.ycp-specs__row.ycp-specs__row:nth-last-child(-n + 2):nth-child(odd),
	.ycp-specs__row.ycp-specs__row:last-child { border-bottom: 0; }
}
@media (max-width: 639px) { .ycp-specs__row.ycp-specs__row:last-child { border-bottom: 0; } }
.ycp-specs.ycp-specs dt { color: var(--ycp-muted); font-size: .92rem; }
.ycp-specs.ycp-specs dd { margin: 0; text-align: right; font-weight: 600; color: var(--ycp-navy); font-size: .95rem; }

.ycp-amenities.ycp-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ycp-amenities.ycp-amenities li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ycp-bg); font-weight: 500; font-size: .95rem; }
.ycp-amenities.ycp-amenities .ycp-icon { width: 18px; height: 18px; color: var(--ycp-green); }

.ycp-video.ycp-video, .ycp-map.ycp-map { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ycp-navy-900); }
.ycp-video.ycp-video iframe, .ycp-map.ycp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ycp-video__btn.ycp-video__btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.ycp-video__btn.ycp-video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ycp-video__play.ycp-video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--ycp-saffron); color: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .25s var(--ycp-ease); }
.ycp-video__btn.ycp-video__btn:hover .ycp-video__play { transform: scale(1.08); }
.ycp-map.ycp-map { aspect-ratio: 16 / 10; background: var(--ycp-bg); }

.ycp-plan.ycp-plan { position: relative; display: block; border: 1px solid var(--ycp-border); border-radius: 16px; overflow: hidden; background: #fff; }
.ycp-plan.ycp-plan img { width: 100%; height: auto; }
.ycp-plan__hint.ycp-plan__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(4,29,59,.8); color: #fff; font-size: .8rem; font-weight: 600; }
.ycp-plan__hint.ycp-plan__hint .ycp-icon { width: 15px; height: 15px; }

.ycp-disclaimer.ycp-disclaimer { font-size: .8rem; color: var(--ycp-muted); line-height: 1.6; }

/* ---------------------------------------------------------- Enquiry card */
.ycp-enqcard.ycp-enqcard {
	padding: 26px 24px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--ycp-border);
	box-shadow: var(--ycp-shadow-md);
}
.ycp-enqcard__head.ycp-enqcard__head { margin-bottom: 18px; }
.ycp.ycp .ycp-enqcard__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.ycp-enqcard__head.ycp-enqcard__head p { font-size: .9rem; color: var(--ycp-muted); }
.ycp-enqcard__alt.ycp-enqcard__alt { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--ycp-border); text-align: center; }
.ycp-enqcard__alt.ycp-enqcard__alt > span { display: block; margin-bottom: 10px; font-size: .8rem; color: var(--ycp-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ycp-enqcard__btns.ycp-enqcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ycp-enqcard__btns.ycp-enqcard__btns .ycp-btn .ycp-icon { width: 17px; height: 17px; }
.ycp-enqcard__btns.ycp-enqcard__btns .ycp-btn:hover .ycp-icon { transform: none; }

/* ---------------------------------------------------------- Mobile action bar */
.ycp-mobilebar.ycp-mobilebar {
	position: fixed; z-index: 995; left: 0; right: 0; bottom: 0;
	display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--ycp-border);
	box-shadow: 0 -10px 24px -16px rgba(4, 29, 59, .35);
}
@media (min-width: 1024px) { .ycp-mobilebar.ycp-mobilebar { display: none; } }
.ycp-mobilebar__btn.ycp-mobilebar__btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; border-radius: var(--ycp-r-btn);
	border: 1.5px solid var(--ycp-border-strong);
	font-family: var(--ycp-font-head); font-weight: 700; font-size: .92rem; color: var(--ycp-navy) !important;
}
.ycp-mobilebar__btn.ycp-mobilebar__btn .ycp-icon { width: 19px; height: 19px; }
.ycp-mobilebar__btn--wa.ycp-mobilebar__btn--wa { border-color: rgba(7,139,53,.35); color: var(--ycp-green) !important; }
.ycp-mobilebar__btn--primary.ycp-mobilebar__btn--primary { background: var(--ycp-saffron); border-color: var(--ycp-saffron); color: #fff !important; }
@media (max-width: 1023px) {
	.ycp-has-mobilebar.ycp-has-mobilebar .ycp-footer__bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
	.ycp-has-mobilebar.ycp-has-mobilebar .ycp-wa-float { display: none; }
}

.ycp-related.ycp-related { padding-top: var(--ycp-section); }

@media (max-width: 639px) {
	.ycp-fact.ycp-fact:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 420px) {
	.ycp-mobilebar.ycp-mobilebar { gap: 6px; padding-inline: 8px; grid-template-columns: 1fr 1.25fr 1.25fr; }
	.ycp-mobilebar__btn.ycp-mobilebar__btn { gap: 6px; font-size: .85rem; padding: 0 6px; }
	.ycp-mobilebar__btn.ycp-mobilebar__btn .ycp-icon { width: 17px; height: 17px; }
}
