/* =========================================================================
   SINGLE PROPERTY — dimuat HANYA di halaman single property (conditional,
   lihat inc/enqueue.php). Memakai CSS Custom Properties yang sama dengan
   main.css supaya tetap konsisten lintas 4 design preset.
   ========================================================================= */

/* ---------- GALLERY SLIDER ---------- */
.rep-single-property__gallery-wrap { padding-top: var(--rep-space-3); }
.rep-gallery-slider__main {
	position: relative; aspect-ratio: 16/9; max-height: 560px;
	background: var(--rep-color-surface-alt); border-radius: var(--rep-radius-card); overflow: hidden;
}
.rep-gallery-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.rep-gallery-slider__slide.is-active { opacity: 1; }
.rep-gallery-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.rep-gallery-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer;
}
.rep-gallery-slider__nav--prev { left: 12px; }
.rep-gallery-slider__nav--next { right: 12px; }
.rep-gallery-slider__counter {
	position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff;
	font-size: .75rem; padding: 3px 10px; border-radius: 999px;
}
.rep-gallery-slider__expand {
	position: absolute; bottom: 12px; left: 12px; width: 34px; height: 34px; border-radius: 6px;
	background: rgba(255,255,255,.9); border: none; cursor: pointer;
}
.rep-gallery-slider__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.rep-gallery-slider__thumb {
	flex: 0 0 auto; width: 76px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent;
	padding: 0; cursor: pointer; background: none;
}
.rep-gallery-slider__thumb.is-active { border-color: var(--rep-color-accent); }
.rep-gallery-slider__thumb img { width: 100%; height: 100%; object-fit: cover; }

.rep-gallery-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200;
	display: flex; align-items: center; justify-content: center;
}
.rep-gallery-lightbox__image { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.rep-gallery-lightbox__close {
	position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
	font-size: 32px; cursor: pointer; line-height: 1;
}

/* ---------- LAYOUT ---------- */
.rep-single-property__layout {
	display: grid; grid-template-columns: 1fr 340px; gap: var(--rep-space-5);
	padding-block: var(--rep-space-5);
}
.rep-single-property__sidebar-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--rep-space-3); }

@media (max-width: 960px) {
	.rep-single-property__layout { grid-template-columns: 1fr; }
	.rep-single-property__sidebar-sticky { position: static; }
}

/* ---------- BREADCRUMB & HEADER ---------- */
.rep-breadcrumb { font-size: .8125rem; color: var(--rep-color-muted); margin-bottom: var(--rep-space-2); }
.rep-breadcrumb a { color: var(--rep-color-muted); }
.rep-breadcrumb a:hover { color: var(--rep-color-accent); }
.rep-breadcrumb__sep { margin: 0 6px; }
.rep-breadcrumb__current { color: var(--rep-color-ink); }

.rep-property-header__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--rep-space-3); }
.rep-property-header__title { font-size: 1.75rem; margin-bottom: 6px; }
.rep-property-header__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .875rem; color: var(--rep-color-muted); }
.rep-property-header__meta a { color: var(--rep-color-accent); }
.rep-property-header__actions { display: flex; gap: 8px; flex-shrink: 0; }
.rep-property-header__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--rep-space-2); }
/* .rep-badge-pill base sudah didefinisikan di main.css (dipakai juga oleh
   property-card.php di archive/homepage) — di sini hanya override spesifik
   konteks single property bila perlu di masa depan. */

/* ---------- PRICING ---------- */
.rep-property-pricing { margin-top: var(--rep-space-3); padding: var(--rep-space-3); background: var(--rep-color-surface-alt); border-radius: var(--rep-radius-card); }
.rep-price-strike--lg { font-size: 1.1rem; }
.rep-price-main--lg { font-size: 1.75rem; }
.rep-price-note { display: block; font-size: .8125rem; color: var(--rep-color-muted); margin-top: 2px; }
.rep-property-pricing__booking { margin-top: 8px; font-size: .875rem; color: var(--rep-color-muted); }

.rep-payment-options { margin-top: var(--rep-space-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rep-payment-options__label { font-size: .8125rem; color: var(--rep-color-muted); }
.rep-payment-options__chip { background: var(--rep-color-surface-alt); border: 1px solid var(--rep-color-border); border-radius: 999px; padding: 3px 12px; font-size: .8125rem; }

/* ---------- SECTIONS ---------- */
.rep-property-section { padding-block: var(--rep-space-4); border-top: 1px solid var(--rep-color-border); }
.rep-property-section__title { font-size: 1.25rem; margin-bottom: var(--rep-space-3); }
.rep-property-description { line-height: 1.75; }

.rep-unit-type-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--rep-space-3); }

.rep-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--rep-space-3); }
.rep-spec-grid__item { display: flex; flex-direction: column; gap: 2px; }
.rep-spec-grid__label { font-size: .75rem; color: var(--rep-color-muted); text-transform: uppercase; letter-spacing: .03em; }
.rep-spec-grid__value { font-weight: 600; font-family: var(--rep-font-mono); }

.rep-facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--rep-space-4); }
.rep-facilities-group__title { font-size: 1rem; margin-bottom: var(--rep-space-2); }
.rep-facilities-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.rep-facilities-list li { display: flex; align-items: center; gap: 8px; }

.rep-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--rep-space-3); }
.rep-plan-card { display: block; border: 1px solid var(--rep-color-border); border-radius: var(--rep-radius-card); overflow: hidden; }
.rep-plan-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rep-plan-card__label { display: block; padding: 8px 12px; font-weight: 600; font-size: .875rem; }

.rep-video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--rep-radius-card); overflow: hidden; margin-bottom: var(--rep-space-3); }
.rep-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rep-property-address { color: var(--rep-color-muted); margin-bottom: var(--rep-space-2); }
.rep-map-embed { aspect-ratio: 16/9; border-radius: var(--rep-radius-card); overflow: hidden; margin-bottom: var(--rep-space-2); }
.rep-map-embed iframe { width: 100%; height: 100%; border: 0; }

.rep-brochure-download { padding-block: var(--rep-space-3); }

/* ---------- AGENT CONTACT CARD ---------- */
.rep-agent-contact-card { display: flex; gap: var(--rep-space-3); padding: var(--rep-space-3); border: 1px solid var(--rep-color-border); border-radius: var(--rep-radius-card); background: var(--rep-color-white, #fff); }
.rep-agent-contact-card__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.rep-agent-contact-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.rep-agent-contact-card__label { font-size: .75rem; color: var(--rep-color-muted); }
.rep-agent-contact-card__name { font-size: 1rem; margin: 2px 0 10px; }
.rep-btn--block { display: flex; width: 100%; margin-bottom: 8px; }

/* ---------- INQUIRY FORM ---------- */
.rep-inquiry-form-card { padding: var(--rep-space-3); border: 1px solid var(--rep-color-border); border-radius: var(--rep-radius-card); background: var(--rep-color-white, #fff); }
.rep-inquiry-form-card__title { font-size: 1.05rem; margin-bottom: 4px; }
.rep-inquiry-form-card__desc { font-size: .8125rem; color: var(--rep-color-muted); margin-bottom: var(--rep-space-3); }
.rep-inquiry-form input, .rep-inquiry-form textarea {
	padding: .7em .9em; border: 1px solid var(--rep-color-border); border-radius: var(--rep-radius-input);
	font-family: inherit; font-size: .9375rem; margin-bottom: 10px;
}
.rep-inquiry-form__status { font-size: .8125rem; margin-top: 8px; }
.rep-inquiry-form__status.is-success { color: var(--rep-color-success); }
.rep-inquiry-form__status.is-error { color: var(--rep-color-danger); }

/* ---------- STICKY MOBILE CTA ---------- */
.rep-sticky-mobile-cta {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	background: var(--rep-color-white, #fff); border-top: 1px solid var(--rep-color-border);
	padding: 10px var(--rep-space-3); align-items: center; justify-content: space-between; gap: var(--rep-space-2);
	box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.rep-sticky-mobile-cta__price { font-family: var(--rep-font-mono); font-weight: 700; }
.rep-sticky-mobile-cta__actions { display: flex; gap: 8px; }

@media (max-width: 720px) {
	.rep-sticky-mobile-cta { display: flex; }
	.rep-single-property { padding-bottom: 64px; } /* Ruang supaya konten tidak ketutup sticky bar. */
}
