/* =====================================================================
   RE Projects Manager — Frontend
   Design language: "site plan / blueprint" — deep ink navy, warm paper,
   brass accent, hairline rules, mono specs (area/price/RERA read like a
   spec sheet), rotated corner "stamp" carrying project status like an
   architect's rubber stamp on a drawing.
   Everything is scoped under .re-pm-scope / re-pm- prefixed classes so
   the site's existing global header, footer and typography are never
   touched.
   ===================================================================== */

.re-pm-scope {
	--re-pm-ink: #16233D;
	--re-pm-ink-70: rgba(22,35,61,.7);
	--re-pm-paper: #F6F3EC;
	--re-pm-paper-dark: #ECE7D9;
	--re-pm-line: #D8D2C0;
	--re-pm-brass: #B8863E;
	--re-pm-brass-dark: #8F6A2E;
	--re-pm-upcoming: #3457A6;
	--re-pm-ongoing: #2F6F4F;
	--re-pm-completed: #6B5B95;
	--re-pm-soldout: #8C2F39;
	--re-pm-white: #FFFFFF;

	--re-pm-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--re-pm-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--re-pm-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	font-family: var(--re-pm-font-body);
	color: var(--re-pm-ink);
	background: var(--re-pm-paper);
	line-height: 1.5;
}

.re-pm-scope *, .re-pm-scope *::before, .re-pm-scope *::after { box-sizing: border-box; }
.re-pm-scope img { max-width: 100%; display: block; }
.re-pm-scope a { color: inherit; text-decoration: none; }
.re-pm-mono { font-family: var(--re-pm-font-mono); letter-spacing: -.01em; }

.re-pm-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- Hero */
.re-pm-hero { position: relative; overflow: hidden; background: var(--re-pm-ink); color: var(--re-pm-paper); }
.re-pm-archive-hero { padding: 96px 24px 72px; }
.re-pm-hero-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(246,243,236,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(246,243,236,.06) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}
.re-pm-hero-inner { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.re-pm-eyebrow {
	display: inline-block; font-family: var(--re-pm-font-mono); font-size: 12px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--re-pm-brass); border: 1px solid rgba(184,134,62,.5);
	padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.re-pm-hero-title { font-family: var(--re-pm-font-display); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; }
.re-pm-hero-sub { font-size: 17px; color: rgba(246,243,236,.75); max-width: 560px; margin: 0 auto; }
.re-pm-hero-location { font-family: var(--re-pm-font-mono); font-size: 14px; color: rgba(246,243,236,.8); margin-top: 14px; }
.re-pm-hero-location .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: -2px; color: var(--re-pm-brass); }

/* Single hero (with featured image) */
.re-pm-single-hero { padding: 0; min-height: 420px; display: flex; align-items: flex-end; }
.re-pm-hero-bg { position: absolute; inset: 0; }
.re-pm-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.re-pm-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,35,61,.15) 0%, rgba(22,35,61,.92) 100%); }
.re-pm-single-hero-inner { position: relative; text-align: left; max-width: 900px; padding: 64px 24px 48px; margin: 0 auto; width: 100%; }
.re-pm-single-hero-inner .re-pm-hero-title { font-size: clamp(30px, 4.4vw, 46px); }

/* ------------------------------------------------------------ Status stamp */
.re-pm-stamp {
	display: inline-block; font-family: var(--re-pm-font-mono); font-size: 11px; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px;
	border: 1.5px dashed currentColor; border-radius: 3px; transform: rotate(-3deg);
	background: rgba(255,255,255,.92);
}
.re-pm-stamp-lg { font-size: 12px; padding: 7px 14px; margin-bottom: 18px; }
.re-pm-stamp-upcoming { color: var(--re-pm-upcoming); }
.re-pm-stamp-ongoing { color: var(--re-pm-ongoing); }
.re-pm-stamp-completed { color: var(--re-pm-completed); }
.re-pm-stamp-sold-out { color: var(--re-pm-soldout); }

/* ---------------------------------------------------------------- Filters */
.re-pm-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -40px auto 48px; position: relative; z-index: 2; }
.re-pm-filter-btn {
	font-family: var(--re-pm-font-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
	background: var(--re-pm-white); border: 1px solid var(--re-pm-line); color: var(--re-pm-ink);
	padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.re-pm-filter-btn:hover { border-color: var(--re-pm-brass); }
.re-pm-filter-btn.is-active { background: var(--re-pm-ink); border-color: var(--re-pm-ink); color: var(--re-pm-paper); }
.re-pm-filter-upcoming.is-active { background: var(--re-pm-upcoming); border-color: var(--re-pm-upcoming); }
.re-pm-filter-ongoing.is-active { background: var(--re-pm-ongoing); border-color: var(--re-pm-ongoing); }
.re-pm-filter-completed.is-active { background: var(--re-pm-completed); border-color: var(--re-pm-completed); }
.re-pm-filter-sold-out.is-active { background: var(--re-pm-soldout); border-color: var(--re-pm-soldout); }

/* ------------------------------------------------------------------ Grid */
.re-pm-grid-wrap { padding: 8px 0 80px; }
.re-pm-grid { display: grid; grid-template-columns: repeat(var(--re-pm-cols, 3), 1fr); gap: 28px; }
.re-pm-empty { text-align: center; padding: 60px 0; color: var(--re-pm-ink-70); font-family: var(--re-pm-font-mono); }
.re-pm-grid.is-loading { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------------------ Card */
.re-pm-card { background: var(--re-pm-white); border: 1px solid var(--re-pm-line); border-radius: 4px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.re-pm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(22,35,61,.12); }
.re-pm-card-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--re-pm-paper-dark); overflow: hidden; }
.re-pm-card-media img { width: 100%; height: 100%; object-fit: cover; }
.re-pm-card-media-placeholder { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--re-pm-paper-dark), var(--re-pm-paper-dark) 10px, var(--re-pm-line) 10px, var(--re-pm-line) 11px); }
.re-pm-card .re-pm-stamp { position: absolute; top: 14px; left: 14px; }
.re-pm-card-body { padding: 20px 20px 22px; }
.re-pm-card-title { font-family: var(--re-pm-font-display); font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.re-pm-card-title a:hover { color: var(--re-pm-brass); }
.re-pm-card-location { font-size: 13px; color: var(--re-pm-ink-70); margin: 0 0 14px; }
.re-pm-card-location .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: -3px; color: var(--re-pm-brass); }
.re-pm-card-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.re-pm-card-spec { font-size: 12px; background: var(--re-pm-paper); border: 1px solid var(--re-pm-line); border-radius: 999px; padding: 4px 10px; }
.re-pm-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--re-pm-line); padding-top: 14px; }
.re-pm-card-price { font-family: var(--re-pm-font-mono); font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------- Buttons */
.re-pm-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--re-pm-font-body); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; }
.re-pm-btn-primary { background: var(--re-pm-brass); color: #fff; }
.re-pm-btn-primary:hover { background: var(--re-pm-brass-dark); }
.re-pm-btn-outline { background: transparent; border-color: var(--re-pm-ink); color: var(--re-pm-ink); }
.re-pm-btn-outline:hover { background: var(--re-pm-ink); color: var(--re-pm-paper); }
.re-pm-btn-ghost { background: transparent; color: var(--re-pm-ink); font-size: 13px; padding: 8px 0; }
.re-pm-btn-ghost:hover { color: var(--re-pm-brass); }
.re-pm-btn-sm { padding: 9px 16px; font-size: 13px; }

/* ------------------------------------------------------------------ Sections */
.re-pm-single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; padding: 56px 24px 96px; }
.re-pm-section { margin-bottom: 56px; }
.re-pm-section-title { font-family: var(--re-pm-font-display); font-weight: 600; font-size: 26px; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.re-pm-section-eyebrow { font-family: var(--re-pm-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--re-pm-brass); font-weight: 500; }
.re-pm-content { font-size: 16px; color: var(--re-pm-ink-70); }
.re-pm-content p { margin: 0 0 16px; }

/* Quick facts strip */
.re-pm-quickfacts { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--re-pm-line); border-radius: 4px; margin: -64px 0 48px; background: var(--re-pm-white); position: relative; z-index: 2; box-shadow: 0 12px 30px rgba(22,35,61,.08); }
.re-pm-fact { flex: 1 1 140px; padding: 18px 20px; border-right: 1px dashed var(--re-pm-line); }
.re-pm-fact:last-child { border-right: none; }
.re-pm-fact-label { display: block; font-family: var(--re-pm-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--re-pm-ink-70); margin-bottom: 4px; }
.re-pm-fact-value { display: block; font-size: 15px; font-weight: 600; }

/* Video */
.re-pm-video-embed iframe, .re-pm-video-embed { width: 100%; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; }

/* Gallery */
.re-pm-gallery-grid-front { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.re-pm-gallery-thumb { padding: 0; border: none; background: none; cursor: zoom-in; aspect-ratio: 1/1; overflow: hidden; border-radius: 3px; }
.re-pm-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.re-pm-gallery-thumb:hover img { transform: scale(1.06); }

.re-pm-lightbox { position: fixed; inset: 0; background: rgba(22,35,61,.96); display: none; align-items: center; justify-content: center; z-index: 9999; }
.re-pm-lightbox.is-open { display: flex; }
.re-pm-lightbox-img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.re-pm-lightbox-close, .re-pm-lightbox-prev, .re-pm-lightbox-next { position: absolute; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; padding: 10px; }
.re-pm-lightbox-close { top: 20px; right: 24px; font-size: 36px; }
.re-pm-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.re-pm-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Floor plans */
.re-pm-fp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.re-pm-fp-tab { font-family: var(--re-pm-font-mono); font-size: 13px; background: var(--re-pm-white); border: 1px solid var(--re-pm-line); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.re-pm-fp-tab.is-active { background: var(--re-pm-ink); border-color: var(--re-pm-ink); color: var(--re-pm-paper); }
.re-pm-fp-panel { display: none; grid-template-columns: 1.3fr 1fr; gap: 32px; border: 1px solid var(--re-pm-line); border-radius: 4px; padding: 24px; background: var(--re-pm-white); }
.re-pm-fp-panel.is-active { display: grid; }
.re-pm-fp-placeholder { display: block; width: 100%; aspect-ratio: 4/3; background: repeating-linear-gradient(45deg, var(--re-pm-paper-dark), var(--re-pm-paper-dark) 10px, var(--re-pm-line) 10px, var(--re-pm-line) 11px); border-radius: 3px; }
.re-pm-fp-details p { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--re-pm-line); padding: 10px 0; margin: 0; }
.re-pm-fp-label { color: var(--re-pm-ink-70); font-size: 13px; }
.re-pm-fp-details .re-pm-btn { margin-top: 18px; width: 100%; justify-content: center; }
@media (max-width: 640px) { .re-pm-fp-panel { grid-template-columns: 1fr; } }

/* Amenities */
.re-pm-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.re-pm-amenity { display: flex; align-items: center; gap: 10px; background: var(--re-pm-white); border: 1px solid var(--re-pm-line); border-radius: 4px; padding: 14px 16px; }
.re-pm-amenity-icon { color: var(--re-pm-brass); font-size: 20px; width: 20px; height: 20px; }
.re-pm-amenity-label { font-size: 14px; font-weight: 500; }

/* Map */
.re-pm-map-frame iframe { width: 100%; height: 420px; border-radius: 4px; border: 1px solid var(--re-pm-line); }
.re-pm-map-address { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--re-pm-ink-70); }
.re-pm-map-address .dashicons { color: var(--re-pm-brass); }
.re-pm-directions-link { margin-left: auto; font-weight: 600; color: var(--re-pm-brass); }

/* Sidebar */
.re-pm-sidebar-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.re-pm-sidebar-card { background: var(--re-pm-white); border: 1px solid var(--re-pm-line); border-radius: 4px; padding: 20px; }
.re-pm-brochure-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.re-pm-brochure-card .dashicons { font-size: 30px; width: 30px; height: 30px; color: var(--re-pm-brass); }
.re-pm-brochure-title { font-weight: 700; margin: 0; font-size: 14px; }
.re-pm-brochure-sub { margin: 0; font-size: 12px; color: var(--re-pm-ink-70); }
.re-pm-brochure-card .re-pm-btn { margin-left: auto; }

/* WhatsApp */
.re-pm-whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; font-weight: 700; border-radius: 4px; padding: 13px 18px; justify-content: center; width: 100%; }
.re-pm-whatsapp-btn:hover { filter: brightness(.95); }
.re-pm-wa-icon { font-size: 10px; }
.re-pm-whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 999; }
.re-pm-whatsapp-float .re-pm-wa-icon { font-size: 26px; }

/* Enquiry form */
.re-pm-form-title { font-family: var(--re-pm-font-display); font-size: 20px; margin: 0 0 16px; }
.re-pm-form-row { margin-bottom: 14px; }
.re-pm-form-row label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--re-pm-ink-70); margin-bottom: 6px; }
.re-pm-form-row input, .re-pm-form-row textarea {
	width: 100%; border: 1px solid var(--re-pm-line); border-radius: 3px; padding: 11px 13px;
	font-family: var(--re-pm-font-body); font-size: 14px; background: var(--re-pm-paper); color: var(--re-pm-ink);
}
.re-pm-form-row input:focus, .re-pm-form-row textarea:focus { outline: 2px solid var(--re-pm-brass); outline-offset: 1px; border-color: var(--re-pm-brass); }
.re-pm-hp-field { position: absolute; left: -9999px; }
.re-pm-submit-enquiry { width: 100%; justify-content: center; position: relative; }
.re-pm-btn-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: re-pm-spin .6s linear infinite; }
.re-pm-submit-enquiry.is-loading .re-pm-btn-spinner { display: inline-block; }
.re-pm-submit-enquiry.is-loading .re-pm-btn-text { opacity: .7; }
@keyframes re-pm-spin { to { transform: rotate(360deg); } }
.re-pm-form-note { font-size: 11px; color: var(--re-pm-ink-70); margin: 10px 0 0; }
.re-pm-form-response { margin-top: 12px; font-size: 13px; font-weight: 600; display: none; padding: 10px 12px; border-radius: 3px; }
.re-pm-form-response.is-success { display: block; background: rgba(47,111,79,.12); color: var(--re-pm-ongoing); }
.re-pm-form-response.is-error { display: block; background: rgba(140,47,57,.12); color: var(--re-pm-soldout); }

/* Related */
.re-pm-related-section { padding-top: 8px; border-top: 1px solid var(--re-pm-line); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
	.re-pm-single-layout { grid-template-columns: 1fr; }
	.re-pm-sidebar-sticky { position: static; }
	.re-pm-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.re-pm-gallery-grid-front { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.re-pm-grid { grid-template-columns: 1fr !important; }
	.re-pm-quickfacts { flex-direction: column; }
	.re-pm-fact { border-right: none; border-bottom: 1px dashed var(--re-pm-line); }
	.re-pm-gallery-grid-front { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.re-pm-scope * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
