/* REA Property Listings — front end
   Everything is scoped to .rea-wrap so the theme is left alone. */

.rea-wrap {
	--rea-ink: #1d1d1f;
	--rea-ink-2: #424245;
	--rea-muted: #6e6e73;
	--rea-line: #d2d2d7;
	--rea-line-2: #e5e5ea;
	--rea-soft: #f5f5f7;
	--rea-soft-2: #e8e8ed;
	--rea-soft-3: #f0f0f2;
	--rea-red: #c8201a;
	--rea-pad: clamp(20px, 11.1vw, 160px);
	--rea-pill: 980px;

	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	background: #fff;
	color: var(--rea-ink);
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
	font-size: 17px;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
}
.rea-wrap *, .rea-wrap *::before, .rea-wrap *::after { box-sizing: border-box; }
.rea-wrap a { color: var(--rea-ink); text-decoration: none; }
.rea-wrap a:hover { text-decoration: underline; }
.rea-wrap a.rea-card:hover, .rea-wrap a.rea-btn:hover { text-decoration: none; }
.rea-wrap img { max-width: 100%; height: auto; display: block; }
.rea-wrap h1, .rea-wrap h2, .rea-wrap p, .rea-wrap dl, .rea-wrap dd, .rea-wrap figure { margin: 0; padding: 0; }
.rea-wrap h1, .rea-wrap h2 { font-family: inherit; color: var(--rea-ink); text-transform: none; }
.rea-wrap button, .rea-wrap select {
	font-family: inherit; text-transform: none; letter-spacing: normal;
	box-shadow: none; outline-offset: 2px; line-height: 1.2; min-height: 0; margin: 0;
}
.rea-wrap button { cursor: pointer; }

/* ---------- Type ---------- */
.rea-wrap .rea-h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.rea-wrap .rea-h1--detail { margin-top: 8px; font-size: clamp(36px, 4.45vw, 64px); line-height: 1.04; }
.rea-wrap .rea-lead { margin-top: 14px; font-size: clamp(18px, 1.55vw, 22px); color: var(--rea-muted); }
.rea-wrap .rea-lead--detail { margin-top: 10px; font-size: clamp(17px, 1.46vw, 21px); }
.rea-wrap .rea-h2 { font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.rea-wrap .rea-h2--lg { font-size: clamp(32px, 3.05vw, 44px); }
.rea-wrap .rea-link { font-size: 15px; font-weight: 500; }

/* ---------- Buttons ---------- */
.rea-wrap .rea-btn {
	display: inline-block; text-align: center; font-size: 17px; font-weight: 500;
	padding: 14px 26px; border-radius: var(--rea-pill); border: 1.5px solid var(--rea-ink);
	line-height: 1.2; transition: background .15s, color .15s;
}
.rea-wrap .rea-btn--dark { background: var(--rea-ink); color: #fff; }
.rea-wrap .rea-btn--dark:hover { background: #000; color: #fff; }
.rea-wrap .rea-btn--outline { background: #fff; color: var(--rea-ink); padding: 13px 28px; }
.rea-wrap .rea-btn--outline:hover { background: var(--rea-ink); color: #fff; }
.rea-wrap .rea-btn--block { display: block; width: 100%; padding-left: 0; padding-right: 0; }
.rea-wrap .rea-btn[disabled] { opacity: .5; cursor: default; }

/* ---------- Listing: hero ---------- */
.rea-hero { padding: clamp(48px, 6.7vw, 96px) var(--rea-pad) 40px; display: flex; flex-direction: column; gap: 32px; }
.rea-hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.rea-toggle { display: flex; background: var(--rea-soft); border-radius: var(--rea-pill); padding: 4px; }
.rea-wrap .rea-toggle__btn {
	border: 0; background: transparent; color: var(--rea-ink); font-size: 15px; font-weight: 500;
	padding: 10px 22px; border-radius: var(--rea-pill); transition: background .15s, color .15s;
}
.rea-wrap .rea-toggle__btn:hover { background: rgba(0,0,0,.05); color: var(--rea-ink); }
.rea-wrap .rea-toggle__btn.is-active { background: var(--rea-ink); color: #fff; }

.rea-search {
	background: var(--rea-soft); border-radius: 20px; padding: 10px;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 150px; gap: 10px; margin: 0;
}
.rea-field {
	background: #fff; border-radius: 14px; padding: 12px 16px; margin: 0;
	display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--rea-muted); font-weight: 400;
}
.rea-wrap .rea-field select {
	border: 0; background: transparent; padding: 0; height: auto; width: 100%;
	font-size: 17px; color: var(--rea-ink); appearance: auto; border-radius: 0;
}
.rea-wrap .rea-field select:focus { outline: none; }
.rea-field:focus-within { box-shadow: 0 0 0 2px var(--rea-ink); }
.rea-wrap .rea-search__btn {
	border: 0; border-radius: 14px; background: var(--rea-ink); color: #fff;
	font-size: 17px; font-weight: 500; padding: 14px;
}
.rea-wrap .rea-search__btn:hover { background: #000; color: #fff; }

.rea-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--rea-muted); }
.rea-sort { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }
.rea-wrap .rea-sort__select {
	border: 0; background: transparent; padding: 0 2px; font-size: 15px; font-weight: 500;
	color: var(--rea-ink); cursor: pointer; height: auto; width: auto;
}

/* ---------- Listing: results ---------- */
.rea-results { padding: 0 var(--rea-pad) clamp(64px, 8.3vw, 120px); display: flex; flex-direction: column; }
.rea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.rea-grid.is-loading { opacity: .6; }

.rea-card { display: flex; flex-direction: column; gap: 14px; color: var(--rea-ink); }
.rea-card__media { height: 270px; background: var(--rea-soft); border-radius: 24px; position: relative; overflow: hidden; }
.rea-wrap .rea-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rea-card:hover .rea-card__img { transform: scale(1.03); }
.rea-card__badge {
	position: absolute; top: 16px; left: 16px; background: #fff; font-size: 12px; font-weight: 600;
	padding: 5px 10px; border-radius: var(--rea-pill); color: var(--rea-red); line-height: 1.2;
}
.rea-card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.rea-card__kicker { font-size: 13px; color: var(--rea-muted); }
.rea-card__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rea-card__price { font-size: 17px; }
.rea-card:hover .rea-card__title { text-decoration: underline; }

.rea-more { margin-top: 56px; display: flex; justify-content: center; }
.rea-empty { padding: 64px 0; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rea-empty__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

.rea-cta {
	margin-top: 80px; background: var(--rea-soft); border-radius: 28px; padding: 44px 48px;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.rea-cta__title { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.rea-cta__text { font-size: 17px; color: var(--rea-muted); margin-top: 6px; }
.rea-cta .rea-btn { flex-shrink: 0; }

/* ---------- Detail: title ---------- */
.rea-title { padding: 40px var(--rea-pad) 32px; display: flex; flex-direction: column; gap: 20px; }
.rea-crumbs { font-size: 13px; color: var(--rea-muted); }
.rea-wrap .rea-crumbs a { color: var(--rea-muted); }
.rea-title__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rea-deal { font-size: 15px; font-weight: 600; color: var(--rea-red); }
.rea-price { text-align: right; font-size: clamp(30px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; line-height: 1.1; }
.rea-price__suffix { font-size: clamp(17px, 1.46vw, 21px); color: var(--rea-muted); font-weight: 500; letter-spacing: -0.01em; }
.rea-price__por { font-size: clamp(22px, 2vw, 28px); }

/* ---------- Detail: gallery ---------- */
.rea-gallery {
	position: relative; height: clamp(320px, 38.9vw, 560px); padding: 0 var(--rea-pad);
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.rea-wrap .rea-gallery__tile {
	display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0;
	background: var(--rea-soft-3); overflow: hidden; cursor: zoom-in;
}
.rea-wrap .rea-gallery__tile.is-empty { cursor: default; }
.rea-wrap .rea-gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s; }
.rea-wrap .rea-gallery__tile:hover img { transform: scale(1.03); }
.rea-wrap .rea-gallery__tile--1 { grid-column: span 2; grid-row: span 2; background: var(--rea-soft-2); border-radius: 28px 0 0 28px; }
/* 5+ photos: big + 4 */
.rea-wrap .rea-gallery--n5 .rea-gallery__tile--3 { border-radius: 0 28px 0 0; }
.rea-wrap .rea-gallery--n5 .rea-gallery__tile--5 { border-radius: 0 0 28px 0; }
/* 1 photo: full width */
.rea-gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.rea-wrap .rea-gallery--n1 .rea-gallery__tile--1 { grid-column: auto; grid-row: auto; border-radius: 28px; }
/* 2 photos: side by side */
.rea-gallery--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.rea-wrap .rea-gallery--n2 .rea-gallery__tile--1 { grid-column: auto; grid-row: auto; }
.rea-wrap .rea-gallery--n2 .rea-gallery__tile--2 { border-radius: 0 28px 28px 0; }
/* 3 photos: big + 2 stacked */
.rea-wrap .rea-gallery--n3 .rea-gallery__tile--2 { grid-column: span 2; border-radius: 0 28px 0 0; }
.rea-wrap .rea-gallery--n3 .rea-gallery__tile--3 { grid-column: span 2; border-radius: 0 0 28px 0; }
/* 4 photos: big + 2 small on top + 1 wide below */
.rea-wrap .rea-gallery--n4 .rea-gallery__tile--3 { border-radius: 0 28px 0 0; }
.rea-wrap .rea-gallery--n4 .rea-gallery__tile--4 { grid-column: span 2; border-radius: 0 0 28px 0; }
.rea-wrap .rea-gallery__all {
	position: absolute; right: calc(var(--rea-pad) + 20px); bottom: 20px;
	border: 0; background: #fff; color: var(--rea-ink); font-size: 13px; font-weight: 500;
	padding: 8px 14px; border-radius: var(--rea-pill); box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.rea-wrap .rea-gallery__all:hover { background: var(--rea-ink); color: #fff; }

/* ---------- Detail: body ---------- */
.rea-body {
	padding: clamp(48px, 5vw, 72px) var(--rea-pad) clamp(64px, 7vw, 100px);
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 5.6vw, 80px);
}
.rea-body__main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }

.rea-stats {
	display: grid; grid-template-columns: repeat(var(--rea-stat-cols, 4), minmax(0, 1fr));
	border-top: 1px solid var(--rea-line); border-bottom: 1px solid var(--rea-line);
}
.rea-stat { padding: 24px 12px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.rea-stat__value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.rea-stat__label { font-size: 13px; color: var(--rea-muted); }

.rea-block { display: flex; flex-direction: column; gap: 14px; }
.rea-prose { font-size: 19px; line-height: 1.6; color: var(--rea-ink-2); }
.rea-prose p { margin: 0 0 1em; }
.rea-prose p:last-child { margin-bottom: 0; }
.rea-prose ul, .rea-prose ol { margin: 0 0 1em 1.2em; }

.rea-block--specs { gap: 6px; }
.rea-block--specs .rea-h2 { margin-bottom: 12px; }
.rea-specs { margin: 0; }
.rea-spec { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rea-line-2); font-size: 17px; }
.rea-wrap .rea-spec dt { color: var(--rea-muted); font-weight: 400; margin: 0; }
.rea-wrap .rea-spec dd { margin: 0; text-align: right; }

.rea-map { height: 320px; background: var(--rea-soft); border-radius: 24px; overflow: hidden; }
.rea-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rea-map--empty { display: flex; align-items: flex-end; padding: 20px; }
.rea-map--empty span { font-size: 13px; color: var(--rea-muted); }

.rea-enquiry {
	align-self: start; position: sticky; top: 24px;
	border: 1px solid var(--rea-line); border-radius: 24px; padding: 32px;
	display: flex; flex-direction: column; gap: 14px;
}
.admin-bar .rea-enquiry { top: 56px; }
.rea-enquiry__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.rea-enquiry__text { font-size: 15px; line-height: 1.5; color: var(--rea-muted); }
.rea-enquiry .rea-btn--dark { margin-top: 6px; }
.rea-wrap .rea-enquiry__visit { text-align: center; padding-top: 4px; }
.rea-enquiry__meta { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rea-line-2); font-size: 13px; color: var(--rea-muted); }

/* ---------- Detail: similar ---------- */
.rea-similar { padding: clamp(64px, 7vw, 100px) var(--rea-pad); background: var(--rea-soft); }
.rea-grid--similar { margin-top: 40px; gap: 20px; }
.rea-card--similar { background: #fff; border-radius: 24px; overflow: hidden; gap: 0; }
.rea-card--similar .rea-card__media { height: 220px; border-radius: 0; background: var(--rea-soft-2); }
.rea-card--similar .rea-card__body { padding: 22px 26px 26px; }

/* ---------- [rea_featured] "Available now." section ----------
   Sizes itself to the box it is placed in (full-width section or narrow column). */
.rea-wrap.rea-featured { max-width: none; padding: clamp(56px, 7vw, 100px) clamp(20px, 4vw, 40px); container-type: inline-size; }
.rea-featured--grey { background: var(--rea-soft); }
.rea-featured--white { background: #fff; }
.rea-wrap.rea-featured--none { background: transparent; padding-left: 0; padding-right: 0; }
.rea-featured__inner { max-width: 1120px; margin: 0 auto; }
.rea-featured__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4cqw, 48px); }
.rea-wrap .rea-featured__title { font-size: clamp(36px, 5cqw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.rea-wrap .rea-featured__link { font-size: 17px; font-weight: 500; padding-bottom: 6px; }
.rea-featured__grid { display: grid; grid-template-columns: repeat(var(--rea-cols, 3), minmax(0, 1fr)); gap: 18px; }

.rea-wrap .rea-fcard { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; color: var(--rea-ink); transition: box-shadow .2s, transform .2s; }
.rea-wrap .rea-fcard:hover { text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.06); transform: translateY(-2px); }
.rea-featured--white .rea-fcard, .rea-featured--none .rea-fcard { border: 1px solid var(--rea-line-2); }
.rea-fcard__media { position: relative; height: 228px; background: var(--rea-soft-2); overflow: hidden; }
.rea-fcard:hover .rea-card__img { transform: scale(1.03); }
.rea-fcard__body { display: flex; flex-direction: column; flex-grow: 1; padding: 26px 24px 24px; }
.rea-fcard__kicker { font-size: 13px; color: var(--rea-muted); }
.rea-fcard__title { margin-top: 26px; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.rea-fcard__place { margin-top: 8px; font-size: 17px; color: var(--rea-muted); }
.rea-fcard__foot { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rea-fcard__price { font-size: 17px; font-weight: 600; }
.rea-fcard__view { font-size: 15px; font-weight: 500; white-space: nowrap; }
.rea-fcard:hover .rea-fcard__view { text-decoration: underline; }

/* Tabs (tabs="yes") */
.rea-featured__headings { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rea-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rea-wrap .rea-tab {
	border: 0; border-radius: var(--rea-pill); background: #fff; color: var(--rea-ink);
	font-size: 17px; font-weight: 500; padding: 9px 16px; line-height: 1.2; transition: background .15s, color .15s;
}
.rea-featured--white .rea-tab, .rea-featured--none .rea-tab { background: var(--rea-soft); }
.rea-wrap .rea-tab:hover { background: var(--rea-soft-2); color: var(--rea-ink); }
.rea-wrap .rea-tab.is-active, .rea-wrap .rea-tab.is-active:hover { background: var(--rea-ink); color: #fff; }
.rea-featured__grid { transition: opacity .2s; }
.rea-featured__grid.is-loading { opacity: .4; pointer-events: none; }
.rea-featured__empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; background: #fff; border-radius: 24px; color: var(--rea-muted); font-size: 17px; }
.rea-featured--white .rea-featured__empty, .rea-featured--none .rea-featured__empty { background: var(--rea-soft); }

@container (max-width: 900px) {
	.rea-featured__grid { grid-template-columns: repeat(min(var(--rea-cols, 3), 2), minmax(0, 1fr)); }
	.rea-fcard__title { font-size: 26px; }
}
@container (max-width: 580px) {
	.rea-featured__grid { grid-template-columns: 1fr; }
	.rea-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
	.rea-tabs::-webkit-scrollbar { display: none; }
	.rea-wrap .rea-tab { flex-shrink: 0; font-size: 15px; padding: 8px 14px; }
	.rea-featured__head { align-items: flex-start; flex-direction: column; }
}

/* ---------- Lightbox ---------- */
.rea-lightbox {
	position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.92);
	display: flex; align-items: center; justify-content: center; padding: 56px 72px;
}
.rea-lightbox[hidden] { display: none; }
.rea-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.rea-wrap .rea-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.rea-lightbox__count { color: rgba(255,255,255,.7); font-size: 13px; }
.rea-wrap .rea-lightbox__close, .rea-wrap .rea-lightbox__nav {
	position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
	width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 44px; padding: 0; text-align: center;
}
.rea-wrap .rea-lightbox__close:hover, .rea-wrap .rea-lightbox__nav:hover { background: rgba(255,255,255,.25); color: #fff; }
.rea-lightbox__close { top: 16px; right: 16px; }
.rea-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rea-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
body.rea-lb-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.rea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-grid--similar .rea-card:nth-child(3) { display: none; }
	.rea-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-wrap .rea-search__btn { grid-column: 1 / -1; }
	.rea-body { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
	.rea-body { grid-template-columns: 1fr; }
	.rea-enquiry { position: static; }
	.rea-title__row { flex-direction: column; align-items: flex-start; }
	.rea-price { text-align: left; white-space: normal; }
	.rea-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-stat:nth-child(n+3) { border-top: 1px solid var(--rea-line-2); }
	.rea-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
	.rea-cta__title { font-size: 26px; }
}
@media (max-width: 640px) {
	.rea-grid { grid-template-columns: 1fr; }
	.rea-grid--similar .rea-card:nth-child(3) { display: flex; }
	.rea-card__media { height: 240px; }
	.rea-search { grid-template-columns: 1fr; }
	.rea-hero__top { align-items: flex-start; flex-direction: column; }
	.rea-gallery, .rea-gallery[class*="rea-gallery--n"] { height: 300px; grid-template-columns: 1fr; grid-template-rows: 1fr; padding: 0 var(--rea-pad); }
	.rea-wrap .rea-gallery__tile { display: none; }
	.rea-wrap .rea-gallery .rea-gallery__tile--1 { display: block; grid-column: auto; grid-row: auto; border-radius: 24px; }
	.rea-wrap .rea-gallery__all { right: calc(var(--rea-pad) + 14px); bottom: 14px; }
	.rea-enquiry { padding: 24px; }
	.rea-spec { font-size: 16px; }
	.rea-lightbox { padding: 56px 12px; }
	.rea-lightbox__prev, .rea-lightbox__next { top: auto; bottom: 12px; transform: none; }
	.rea-lightbox__prev { left: calc(50% - 56px); }
	.rea-lightbox__next { right: calc(50% - 56px); }
}

/* =========================================================================
   New launches — [rea_projects_featured], [rea_projects], /projects/, /project/…
   ====================================================================== */
.rea-wrap.rea-pj { max-width: none; background: transparent; container-type: inline-size; }
.rea-wrap .rea-pj__h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 24px; }
.rea-pj__head { margin-bottom: 32px; }
.rea-wrap .rea-pj__sub { margin-top: 12px; font-size: 19px; color: var(--rea-muted); }

/* Status chip */
.rea-wrap .rea-chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 5px 10px; border-radius: var(--rea-pill); background: var(--rea-soft); color: var(--rea-ink); white-space: nowrap; }
.rea-wrap .rea-chip--new { background: var(--rea-red); color: #fff; }

/* Project card */
.rea-wrap .rea-pcard { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; color: var(--rea-ink); transition: transform .3s, box-shadow .3s; }
.rea-wrap .rea-pcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.rea-pcard__ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(135deg, var(--rea-soft-2), var(--rea-soft)); }
.rea-wrap .rea-pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rea-pcard:hover .rea-pcard__img { transform: scale(1.03); }
.rea-pcard__dev { position: relative; font-size: 13px; font-weight: 600; color: var(--rea-muted); letter-spacing: .04em; text-transform: uppercase; }
.rea-pcard__ph .rea-chip { position: absolute; top: 14px; left: 14px; }
.rea-pcard__ph:not(.is-empty) .rea-chip:not(.rea-chip--new) { background: #fff; }
.rea-pcard__bd { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rea-wrap .rea-pcard__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--rea-ink); }
.rea-pcard__loc { font-size: 15px; color: var(--rea-muted); }
.rea-pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--rea-ink-2); margin-top: 6px; }
.rea-pcard__pr { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--rea-soft-3); }
.rea-pcard__pr b { font-size: 18px; font-weight: 600; }
.rea-pcard__pr span { font-size: 14px; color: var(--rea-red); }

/* Spotlight: 1 large + 2 side cards */
.rea-spot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.rea-spot--single { grid-template-columns: 1fr; }
.rea-wrap .rea-spot__main { position: relative; border-radius: 28px; overflow: hidden; background: #000; color: #fff; min-height: 560px; display: flex; align-items: flex-end; }
.rea-wrap .rea-spot__main:hover { text-decoration: none; }
.rea-wrap .rea-spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .6s ease; }
.rea-spot__main:hover .rea-spot__img { transform: scale(1.02); }
.rea-spot__dev { position: absolute; top: 32px; left: 40px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #86868b; }
.rea-spot__in { position: relative; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.rea-wrap .rea-spot__title { margin: 12px 0 0; font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.rea-wrap .rea-spot__line { margin-top: 8px; font-size: 17px; color: #d2d2d7; }
.rea-wrap .rea-spot__price { margin-top: 14px; font-size: 21px; font-weight: 600; color: #fff; }
.rea-spot__price span { font-weight: 400; color: #a1a1a6; font-size: 15px; }
.rea-spot__side { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.rea-wrap .rea-pcard--side { flex-direction: row; background: var(--rea-soft); }
.rea-pcard--side .rea-pcard__ph { aspect-ratio: auto; width: 42%; flex-shrink: 0; }
.rea-pcard--side .rea-pcard__pr { flex-direction: column; align-items: flex-start; gap: 2px; border-top-color: var(--rea-line-2); }

/* Filters + grid */
.rea-pfilters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; border-radius: 20px; margin: 0; background: #fff; }
.rea-projects--on-white .rea-pfilters { background: var(--rea-soft); }
.rea-pfield { background: #fff; border-radius: 14px; padding: 12px 16px; margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--rea-muted); font-weight: 400; }
.rea-projects--on-grey .rea-pfield { background: var(--rea-soft); }
.rea-pfield:focus-within { box-shadow: 0 0 0 2px var(--rea-ink); }
.rea-wrap .rea-pfield select { border: 0; background: transparent; padding: 0; height: auto; width: 100%; font-size: 16px; color: var(--rea-ink); border-radius: 0; appearance: auto; }
.rea-wrap .rea-pfield select:focus { outline: none; }
.rea-pcount { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 24px; font-size: 15px; color: var(--rea-muted); }
.rea-wrap .rea-pcount__reset { background: none; border: 0; padding: 0; font: inherit; color: var(--rea-ink); text-decoration: underline; }
.rea-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; transition: opacity .2s; }
.rea-pgrid.is-loading { opacity: .4; pointer-events: none; }
.rea-projects--on-white .rea-pcard { background: var(--rea-soft); }
.rea-pempty { text-align: center; padding: 60px 0; color: var(--rea-muted); font-size: 18px; }
.rea-wrap .rea-pempty a { text-decoration: underline; color: var(--rea-ink); }
.rea-pempty[hidden], .rea-pj .rea-more[hidden] { display: none; }
.rea-pj .rea-more { margin-top: 48px; }


/* /project/<name>/ detail page */
.rea-pj-single .rea-title .rea-chip { margin-bottom: 4px; }
.rea-pj-single .rea-price { font-size: clamp(28px, 2.6vw, 38px); }
.rea-amenities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rea-amenities li { margin: 0; border: 1px solid var(--rea-line); border-radius: var(--rea-pill); padding: 9px 18px; font-size: 15px; }
.rea-pgrid--similar { margin-top: 40px; }
.rea-pj-single .rea-stat__value { font-size: 22px; }

@container (max-width: 1000px) {
	.rea-spot { grid-template-columns: 1fr; }
	.rea-wrap .rea-spot__main { min-height: 440px; }
	.rea-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-pfilters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 600px) {
	.rea-pgrid { grid-template-columns: 1fr; }
	.rea-wrap .rea-pcard--side { flex-direction: column; }
	.rea-pcard--side .rea-pcard__ph { width: auto; aspect-ratio: 16 / 10; }
	.rea-spot__in { padding: 24px; }
	.rea-spot__dev { left: 24px; top: 24px; }
	.rea-wrap .rea-spot__main { min-height: 400px; }
}
@media (max-width: 900px) {
	.rea-pgrid--similar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.rea-pgrid--similar { grid-template-columns: 1fr; }
	.rea-pfilters { grid-template-columns: 1fr 1fr; }
}

/* Some themes put inline width/height on images and colour every <button>; keep the design. */
.rea-wrap .rea-spot__img, .rea-wrap .rea-pcard__img { width: 100% !important; height: 100% !important; max-width: none !important; }
.rea-wrap.rea-pj .rea-pcount__reset { background: transparent !important; color: var(--rea-ink) !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.rea-wrap.rea-pj .rea-pmore { background: #fff !important; color: var(--rea-ink) !important; border: 1.5px solid var(--rea-ink) !important; border-radius: var(--rea-pill) !important; }
.rea-wrap.rea-pj .rea-pmore:hover { background: var(--rea-ink) !important; color: #fff !important; }
.rea-projects--on-white .rea-pmore { background: transparent !important; }
.rea-wrap .rea-gallery__tile img { width: 100% !important; height: 100% !important; max-width: none !important; }
