/* RAPEX Real Estate page. Built on the shared tokens in /styles.css (purple, orange, ivory); adds deep navy and a little gold for the property feel. */
.re-page {
  --re-navy: #0b1230; --re-navy-2: #141f52; --re-navy-3: #1d2b6b; --re-gold: #e2bd69; --re-gold-2: #f6dc9a;
  --re-orange: #ff7a2f; --re-orange-2: #ff5d1f; --re-ink: #101733; --re-line: rgba(16, 23, 51, .12);
  background: #fff;
}

/* ---------- Buttons ---------- */
.re-btn { min-height: 50px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; letter-spacing: .01em; cursor: pointer; text-align: center; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.re-btn:hover { transform: translateY(-2px); }
.re-btn:active { transform: translateY(0); }
.re-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.re-btn--orange { color: #fff; background: linear-gradient(135deg, var(--re-orange), var(--re-orange-2)); box-shadow: 0 12px 28px rgba(255, 93, 31, .34); }
.re-btn--orange:hover { box-shadow: 0 16px 34px rgba(255, 93, 31, .46); }
.re-btn--glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.re-btn--glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.re-btn--glass-dark { color: var(--re-navy-2); border-color: rgba(20, 31, 82, .35); background: rgba(20, 31, 82, .06); }
.re-btn--glass-dark:hover { background: rgba(20, 31, 82, .12); }
.re-btn--ghost { color: var(--re-navy-2); border-color: rgba(20, 31, 82, .3); background: #fff; }
.re-btn--ghost:hover { border-color: var(--purple); color: var(--purple-dark); }
.re-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.re-btn--block { width: 100%; }
.re-btn:focus-visible, .re-card button:focus-visible, .re-dialog button:focus-visible { outline: 3px solid var(--re-gold); outline-offset: 3px; }

/* ---------- Shared bits ---------- */
.re-section { padding: clamp(64px, 8vw, 112px) 0; }
.re-kicker { display: inline-block; margin-bottom: 12px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.re-kicker--gold { color: var(--re-gold); }
.re-heading { max-width: 720px; margin-bottom: 40px; }
.re-heading h2, .re-section h2 { margin: 0 0 12px; color: var(--re-ink); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.03em; }
.re-heading p { margin: 0; color: #4b5470; font-size: 17px; }
.re-heading--light h2 { color: #fff; }
.re-heading--light p { color: #c9d0ee; }
.re-fineprint { margin: 14px 0 0; color: #5d6683; font-size: 13px; line-height: 1.55; }
.re-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; color: var(--purple-dark); background: #efe9ff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.re-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; color: #fff; background: rgba(11, 18, 48, .78); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

/* scroll-in (only hidden once JavaScript is running, so the page is complete without it) */
.re-js .re-fade { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.re-js .re-fade.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.re-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--re-navy); }
.re-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.re-hero__photo { position: absolute; inset: 0 0 0 auto; width: 72%; background: url("/assets/images/real-estate/hero-property.webp") center right / cover no-repeat; transform: translate3d(0, var(--py, 0), 0) scale(1.02); transform-origin: 70% 60%; animation: re-zoom 28s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); will-change: transform; }
.re-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 48, .96) 0, rgba(11, 18, 48, .72) 38%, rgba(11, 18, 48, .1) 70%), linear-gradient(0deg, rgba(11, 18, 48, .7) 0, transparent 26%); }
.re-hero__glow { position: absolute; inset: -20%; background: radial-gradient(40% 34% at 76% 22%, rgba(255, 190, 90, .34), transparent 70%), radial-gradient(30% 30% at 18% 88%, rgba(124, 58, 237, .28), transparent 70%); background-size: 140% 140%; animation: re-glow 16s ease-in-out infinite alternate; mix-blend-mode: screen; pointer-events: none; }
.re-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: 16px; padding-top: clamp(40px, 6vw, 84px); min-height: min(86vh, 780px); }
.re-hero__copy { align-self: center; padding-bottom: clamp(40px, 6vw, 84px); max-width: 640px; }
.re-hero__brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin: 48px 0 18px; color: var(--re-gold-2); font-size: 20px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.re-hero__word { position: relative; display: inline-block; color: #fff; }
.re-hero__word img { position: absolute; left: -14px; bottom: 100%; width: 84px; height: 84px; margin-bottom: -33px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(255, 107, 53, .4)); transform-origin: 30% 100%; animation: re-hop 2.6s ease-in-out 1.6s infinite; pointer-events: none; }
.re-hero__tag { color: var(--re-gold-2); }
.re-hero__title { margin: 0; color: #fff; font-size: clamp(44px, 6.6vw, 84px); line-height: .98; letter-spacing: -.045em; }
.re-reveal-line { display: block; overflow: hidden; padding-bottom: .08em; }
.re-reveal-line > span { display: inline-block; animation: re-wipe 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.re-hero__sub { margin: 18px 0 10px; color: var(--re-gold-2); font-size: clamp(19px, 2vw, 26px); letter-spacing: -.01em; }
.re-hero__lead { margin: 0 0 22px; color: #dfe4fa; font-size: clamp(15px, 1.4vw, 18px); max-width: 560px; }
.re-hero__labels { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 26px; padding: 0; list-style: none; }
.re-hero__labels li { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.re-hero__labels svg { color: var(--re-gold); flex: none; }
.re-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.re-hero__financing { display: grid; gap: 4px; max-width: 520px; margin-top: 26px; padding: 14px 18px; border-left: 3px solid var(--re-gold); border-radius: 4px 14px 14px 4px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.re-hero__financing strong { color: var(--re-gold-2); font-size: 15px; }
.re-hero__financing span { color: #cfd6f3; font-size: 12.5px; line-height: 1.5; }
.re-hero__stage { --pw: min(100%, 470px); position: relative; align-self: end; display: flex; justify-content: center; min-height: 420px; }
.re-hero__portrait { position: relative; z-index: 1; margin: 0; width: var(--pw); aspect-ratio: 3 / 4; padding: 5px; border-radius: 32px; background: linear-gradient(145deg, #f6dd9f 0%, #c9962f 28%, #fff2c8 52%, #b98324 78%, #f0cf7f 100%); box-shadow: 0 30px 70px rgba(4, 8, 30, .55), 0 0 0 1px rgba(255, 255, 255, .25), 0 0 60px rgba(226, 189, 105, .28); transform: translate3d(0, var(--py, 0), 0); animation: re-portrait 1.3s cubic-bezier(.2, .7, .2, 1) .5s both; will-change: transform; overflow: hidden; }
.re-hero__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 27px; }
.re-hero__id { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; padding: 13px 18px; border: 1px solid rgba(255, 255, 255, .35); border-left: 4px solid var(--re-gold); border-radius: 8px 20px 20px 8px; background: rgba(11, 18, 48, .82); backdrop-filter: blur(14px); text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.re-hero__id strong { font-size: 17px; color: #fff; }
.re-hero__id span { color: var(--re-gold-2); font-size: 12px; font-weight: 700; }
.re-hero__id small { color: #c9d0ee; font-size: 12px; }
.re-hero__note { position: relative; margin: 0 auto; padding: 6px 0 12px; color: rgba(255, 255, 255, .6); font-size: 11px; }
.re-in { animation: re-up .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }

/* a missing portrait file shows a neutral monogram, never a broken image */
[data-re-portrait].is-missing img { display: none; }
[data-re-portrait].is-missing::before { content: "AS"; display: grid; place-items: center; width: 62%; aspect-ratio: 1; margin: auto; border: 2px solid rgba(226, 189, 105, .6); border-radius: 50%; color: var(--re-gold); background: rgba(255, 255, 255, .08); font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: .04em; }

@keyframes re-zoom { from { transform: translate3d(0, var(--py, 0), 0) scale(1.02); } to { transform: translate3d(0, var(--py, 0), 0) scale(1.12); } }
@keyframes re-glow { from { background-position: 0 0; opacity: .75; } to { background-position: 100% 60%; opacity: 1; } }
@keyframes re-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes re-hop { 0%, 62%, 100% { transform: translate(0, 0) rotate(0); } 70% { transform: translate(5px, -12px) rotate(-5deg); } 80% { transform: translate(9px, -3px) rotate(2deg); } 90% { transform: translate(2px, 0) rotate(0); } }
@keyframes re-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes re-portrait { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: translate3d(0, var(--py, 0), 0); } }

/* ---------- Property cards ---------- */
.re-properties { background: linear-gradient(180deg, #fff, #f6f4ff); }
.re-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.re-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--re-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(20, 31, 82, .08); transition: transform .3s ease, box-shadow .3s ease; }
.re-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(20, 31, 82, .16); }
.re-js .re-card.re-fade.is-in:hover { transform: translateY(-6px); }
.re-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--re-navy-2); }
.re-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.re-card:hover .re-card__media > img { transform: scale(1.05); }
.re-card__placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 18px; text-align: center; color: var(--re-gold-2); background: radial-gradient(90% 90% at 80% 10%, rgba(226, 189, 105, .28), transparent 60%), linear-gradient(145deg, var(--re-navy-2), var(--re-navy-3) 60%, #3a2a78); }
.re-card__placeholder strong { color: #fff; font-size: 19px; letter-spacing: -.01em; }
.re-card__placeholder small { color: #c9d0ee; font-size: 12px; }
.re-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px; }
.re-card__body h3 { margin: 4px 0 0; color: var(--re-ink); font-size: 22px; letter-spacing: -.02em; }
.re-card__loc { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: #4b5470; font-size: 14px; font-weight: 600; }
.re-card__loc svg { flex: none; margin-top: 2px; color: var(--purple); }
.re-card__sum { margin: 0; color: #4b5470; font-size: 14.5px; }
.re-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff7ec; }
.re-card__price span { color: #8a5a14; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.re-card__price strong { color: #b04a0d; font-size: 14px; }
.re-card__status { margin: 0; color: #6b7390; font-size: 12.5px; font-style: italic; }
.re-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.re-card__actions .re-btn { flex: 1 1 120px; }
.re-noscript { padding: 14px 18px; border-radius: 12px; background: #f6f4ff; }

/* ---------- Financing ---------- */
.re-financing { color: #fff; background: radial-gradient(60% 80% at 90% 0, rgba(226, 189, 105, .18), transparent 60%), linear-gradient(135deg, var(--re-navy), var(--re-navy-2)); }
.re-financing h2 { color: #fff; }
.re-financing__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.re-financing p { color: #d3d9f3; font-size: 17px; }
.re-checks { display: grid; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.re-checks li { position: relative; padding-left: 30px; color: #eef1ff; }
.re-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--re-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1230' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.re-financing__card { padding: 28px; border: 1px solid rgba(226, 189, 105, .4); border-radius: 24px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); }
.re-financing__card h3 { margin: 0 0 10px; color: var(--re-gold-2); font-size: 20px; }
.re-financing__card p { font-size: 15px; }
.re-financing__small { margin: 0; color: #aeb7de; font-size: 13px !important; }

/* ---------- Partner ---------- */
.re-partner { background: linear-gradient(180deg, #f6f4ff, #fff); }
.re-partner__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.re-partner__photo { position: relative; margin: 0; padding: 28px 28px 0; border-radius: 32px; background: radial-gradient(70% 60% at 50% 8%, rgba(226, 189, 105, .5), transparent 70%), linear-gradient(160deg, var(--re-navy-2), var(--re-navy-3) 55%, #4a2d9c); overflow: hidden; }
.re-partner__photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .4)); }
.re-partner__photo.is-missing { min-height: 420px; display: grid; }
.re-partner__title { margin: 0 0 14px; color: var(--purple-dark); font-weight: 800; }
.re-partner__copy p { color: #3d4663; font-size: 17px; }
.re-roles { display: grid; gap: 12px; margin: 22px 0; }
.re-roles > div { padding: 14px 18px; border: 1px solid var(--re-line); border-left: 4px solid var(--re-gold); border-radius: 4px 14px 14px 4px; background: #fff; }
.re-roles dt { color: #6b7390; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.re-roles dd { margin: 2px 0 0; color: var(--re-ink); font-weight: 600; }
.re-partner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Achievements ---------- */
.re-achievements { color: #fff; background: linear-gradient(135deg, #0b1230, #1d2b6b 60%, #3a2a78); }
.re-ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.re-ach { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid rgba(226, 189, 105, .35); border-radius: 20px; background: rgba(255, 255, 255, .06); transition: transform .3s ease, background .3s ease; }
.re-ach:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.re-ach__rank { color: var(--re-gold); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.re-ach strong { color: #e7ebff; font-size: 15.5px; font-weight: 600; }

/* ---------- Inquiry ---------- */
.re-inquiry { background: linear-gradient(180deg, #fff, #f6f4ff); }
.re-inquiry__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.re-inquiry__intro p { color: #4b5470; font-size: 17px; }
.re-steps { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.re-steps li { display: flex; align-items: flex-start; gap: 14px; color: #3d4663; }
.re-steps b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--re-orange), var(--purple)); font-size: 14px; }
.re-inquiry__card { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--re-line); border-radius: 26px; background: #fff; box-shadow: 0 20px 50px rgba(20, 31, 82, .12); scroll-margin-top: 120px; }
.re-form h3 { margin: 0 0 18px; color: var(--re-ink); font-size: 22px; }
.re-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.re-form label { display: grid; gap: 6px; color: #2a3358; font-size: 13.5px; font-weight: 700; }
.re-form label small { color: #6b7390; font-weight: 500; }
.re-form input:not([type="checkbox"]), .re-form select, .re-form textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #cdd3e8; border-radius: 12px; color: var(--re-ink); background: #fff; font: inherit; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.re-form textarea { resize: vertical; min-height: 92px; }
.re-form input:focus, .re-form select:focus, .re-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.re-wide { grid-column: 1 / -1; }
.re-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.re-consent { display: flex !important; align-items: flex-start; gap: 10px !important; margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: #f6f4ff; font-weight: 500 !important; font-size: 13.5px !important; line-height: 1.5; }
.re-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); }
.re-consent a { color: var(--purple); text-decoration: underline; }
.re-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; color: #a31d1d; background: #fdecec; font-size: 14px; font-weight: 600; }
.re-success { display: grid; gap: 8px; justify-items: center; padding: 16px 0; text-align: center; }
.re-success[hidden], .re-form[hidden] { display: none; }
.re-success__tick { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 10px 26px rgba(21, 128, 61, .34); animation: re-pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.re-success h3 { margin: 6px 0 0; color: var(--re-ink); }
.re-success__label { margin: 8px 0 0; color: #6b7390; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.re-success__code { padding: 8px 20px; border: 2px dashed var(--purple); border-radius: 12px; color: var(--purple-dark); background: #f6f4ff; font: 800 24px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.re-success p { max-width: 460px; margin: 4px 0; color: #3d4663; }
@keyframes re-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Contact + disclaimer ---------- */
.re-contact { color: #fff; background: radial-gradient(60% 100% at 10% 0, rgba(255, 122, 47, .22), transparent 60%), linear-gradient(135deg, #261143, var(--re-navy-2)); }
.re-contact h2 { color: #fff; }
.re-contact p { margin: 0 0 6px; color: #d3d9f3; }
.re-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.re-contact__lines { display: grid; gap: 4px; margin-top: 10px !important; }
.re-contact__lines a { color: var(--re-gold-2); font-size: 20px; font-weight: 800; }
.re-contact__lines a:hover { text-decoration: underline; }
.re-contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: min(100%, 440px); }
.re-disclaimer { padding: 28px 0; background: #f1f2f9; }
.re-disclaimer p { margin: 0; color: #4b5470; font-size: 13px; line-height: 1.65; }

/* ---------- Floating contact ---------- */
.re-float { position: fixed; z-index: 70; left: 14px; bottom: 16px; transition: opacity .25s ease, transform .25s ease; }
.re-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.re-float__call { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--re-orange), var(--re-orange-2)); box-shadow: 0 14px 30px rgba(255, 93, 31, .45); font-weight: 800; }
.re-float__call:focus-visible { outline: 3px solid var(--re-gold); outline-offset: 3px; }

/* ---------- Property dialog ---------- */
.re-dialog { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 26px; color: var(--copy); background: #fff; box-shadow: 0 40px 100px rgba(8, 12, 36, .5); overflow: auto; overscroll-behavior: contain; }
.re-dialog::backdrop { background: rgba(8, 12, 36, .72); backdrop-filter: blur(4px); }
.re-dialog[open] { animation: re-dialog-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes re-dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.re-dialog__close { position: sticky; top: 12px; z-index: 3; display: block; margin: 12px 12px -56px auto; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(11, 18, 48, .82); font-size: 26px; line-height: 1; cursor: pointer; }
.re-dialog__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.re-gallery { padding: 18px; background: #f6f4ff; }
.re-gallery__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--re-navy-2); }
.re-gallery__main > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .16s ease; }
.re-gallery__main > img.is-swapping { opacity: 0; }
.re-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.re-gallery__thumbs button { flex: none; width: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.re-gallery__thumbs button[aria-selected="true"] { border-color: var(--purple); opacity: 1; }
.re-gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.re-dialog__info { padding: 22px 26px 28px; }
.re-dialog__info h2 { margin: 10px 0 4px; color: var(--re-ink); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.re-dialog__info h3 { margin: 22px 0 8px; color: var(--purple-dark); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.re-specs { display: grid; gap: 0; margin: 0; }
.re-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--re-line); font-size: 14.5px; }
.re-specs dt { color: #6b7390; }
.re-specs dd { margin: 0; color: var(--re-ink); font-weight: 700; text-align: right; }
.re-adv { margin: 0; padding-left: 20px; }
.re-adv li { margin: 4px 0; font-weight: 600; }
.re-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Featured carousel ---------- */
.re-featured { padding-bottom: clamp(24px, 4vw, 48px); background: #fff; }
.re-carousel { position: relative; }
.re-carousel__viewport { overflow: hidden; border-radius: 28px; box-shadow: 0 24px 60px rgba(20, 31, 82, .22); touch-action: pan-y; }
.re-carousel__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .75s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.re-slide { position: relative; flex: 0 0 100%; min-height: clamp(320px, 42vw, 480px); display: grid; align-items: end; overflow: hidden; background: var(--re-navy-2); }
.re-slide__media { position: absolute; inset: 0; }
.re-slide__media > img { width: 100%; height: 100%; object-fit: cover; }
.re-slide__media .re-card__placeholder { height: 100%; }
.re-slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 48, 0) 30%, rgba(11, 18, 48, .88) 100%), linear-gradient(90deg, rgba(11, 18, 48, .55), transparent 60%); pointer-events: none; }
.re-slide__copy { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; padding: clamp(20px, 3vw, 40px); max-width: 640px; color: #fff; }
.re-slide__copy h3 { margin: 4px 0 0; color: #fff; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: -.03em; }
.re-slide__loc { margin: 0; color: #dfe4fa; font-weight: 600; }
.re-slide__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 8px; color: #dfe4fa; }
.re-slide__price strong { color: var(--re-gold-2); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.re-slide__price em { font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: #fff; }
.re-slide__price small { padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 11px; }
.re-slide .re-slide__copy { transition: opacity .6s ease .15s, transform .6s ease .15s; }
.re-slide[inert] .re-slide__copy { opacity: 0; transform: translateY(14px); }
.re-chip--light { color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.re-carousel__bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.re-carousel__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid rgba(20, 31, 82, .25); border-radius: 50%; color: var(--re-navy-2); background: #fff; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.re-carousel__btn:hover { transform: scale(1.06); border-color: var(--purple); }
.re-carousel__btn:focus-visible, .re-carousel__dots button:focus-visible { outline: 3px solid var(--re-gold); outline-offset: 3px; }
.re-carousel__dots { display: flex; gap: 8px; }
.re-carousel__dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px; background: #c9cde4; cursor: pointer; transition: width .3s ease, background .3s ease; }
.re-carousel__dots button[aria-selected="true"] { width: 30px; background: linear-gradient(90deg, var(--re-orange), var(--purple)); }
.re-i-play { display: none; }
.re-carousel.is-paused .re-i-play { display: block; }
.re-carousel.is-paused .re-i-pause { display: none; }

/* ---------- Placeholder tints by category ---------- */
.re-ph--PAGIBIG_RFO { background: radial-gradient(90% 90% at 80% 10%, rgba(226, 189, 105, .3), transparent 60%), linear-gradient(145deg, #141f52, #1d2b6b 60%, #3a2a78); }
.re-ph--PRE_SELLING { background: radial-gradient(90% 90% at 20% 10%, rgba(255, 122, 47, .28), transparent 60%), linear-gradient(145deg, #1a1650, #3a2a78 60%, #5b2a8c); }
.re-ph--BANK_RFO { background: radial-gradient(90% 90% at 80% 10%, rgba(124, 58, 237, .35), transparent 60%), linear-gradient(145deg, #0b1230, #172a63 60%, #243b86); }
.re-ph--HOUSE_LOT_PAGIBIG_PRE_SELLING { background: radial-gradient(90% 90% at 50% 0, rgba(226, 189, 105, .3), transparent 60%), linear-gradient(145deg, #261143, #3a2a78 55%, #7c3aed); }
.re-ph--tall { min-height: 320px; }

/* ---------- Filters ---------- */
.re-filters { display: grid; gap: 14px; margin-bottom: 14px; }
.re-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.re-filter-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid rgba(20, 31, 82, .2); border-radius: 999px; color: var(--re-navy-2); background: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; scroll-snap-align: start; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.re-filter-chip span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: #efe9ff; color: var(--purple-dark); font-size: 12px; text-align: center; }
.re-filter-chip:hover { transform: translateY(-2px); border-color: var(--purple); }
.re-filter-chip[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--re-navy-2), var(--purple)); box-shadow: 0 10px 22px rgba(76, 29, 149, .28); }
.re-filter-chip[aria-selected="true"] span { background: rgba(255, 255, 255, .22); color: #fff; }
.re-filter-chip:focus-visible, .re-link:focus-visible { outline: 3px solid var(--re-gold); outline-offset: 3px; }
.re-filter-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 10px; }
.re-filter-row input, .re-filter-row select { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid #cdd3e8; border-radius: 12px; color: var(--re-ink); background: #fff; font: inherit; font-weight: 500; }
.re-filter-row input:focus, .re-filter-row select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.re-count { margin: 6px 0 14px; color: #4b5470; font-size: 14px; font-weight: 600; }
.re-empty { padding: 28px; border-radius: 16px; text-align: center; background: #f6f4ff; color: #3d4663; }
.re-link { padding: 0; border: 0; background: none; color: var(--purple); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.re-muted { color: #6b7390; font-weight: 500; }

/* ---------- Catalog cards ---------- */
.re-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.re-card[hidden] { display: none; }
.re-card--enter { animation: re-card-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes re-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.re-card__media { display: block; }
.re-card__media.is-loading, .re-slide__media.is-loading, .re-gallery__main.is-loading { background: linear-gradient(100deg, #e7e9f6 30%, #f6f7fd 50%, #e7e9f6 70%); background-size: 200% 100%; animation: re-shimmer 1.4s linear infinite; }
.re-card__media.is-loading > img { opacity: 0; }
@keyframes re-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.re-ribbon { position: absolute; right: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.re-ribbon--rfo { background: linear-gradient(135deg, #16a34a, #15803d); }
.re-ribbon--pre { background: linear-gradient(135deg, var(--re-orange), var(--re-orange-2)); }
.re-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.re-chip--fin { color: #8a5a14; background: #fff1d6; }
.re-chip--bank_loan { color: #0b4a7a; background: #dff0ff; }
.re-chip--to_confirm { color: #5d6683; background: #eceef7; }
.re-chip--stage { color: #fff; background: rgba(255, 255, 255, .18); }
.re-card__stage { margin: 0; color: #5d6683; font-size: 13px; font-weight: 700; }
.re-card__price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding: 10px 12px; }
.re-card__price span { grid-column: 1 / -1; }
.re-card__price strong { font-size: 22px; color: #b04a0d; letter-spacing: -.02em; }
.re-card__price em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a14; }
.re-card__note { margin: 0; color: #6b7390; font-size: 11.5px; font-style: italic; }
.re-card__actions .re-btn { flex: 1 1 110px; }

/* ---------- Financing types ---------- */
.re-fin-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.re-fin-types > div { padding: 16px; border: 1px solid rgba(226, 189, 105, .35); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.re-fin-types strong { color: var(--re-gold-2); }
.re-fin-types span { display: block; margin: 2px 0 6px; color: #fff; font-weight: 800; font-size: 13px; }
.re-fin-types p { margin: 0; color: #c9d0ee; font-size: 13.5px; }

/* ---------- Property page ---------- */
.re-detail-hero { padding: 28px 0 clamp(36px, 5vw, 64px); color: #fff; background: radial-gradient(60% 80% at 90% 0, rgba(226, 189, 105, .2), transparent 60%), linear-gradient(135deg, var(--re-navy), var(--re-navy-2) 60%, #3a2a78); }
.re-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: #aeb7de; font-size: 13px; }
.re-crumbs a:hover { color: #fff; text-decoration: underline; }
.re-crumbs [aria-current] { color: #fff; font-weight: 700; }
.re-detail-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.re-detail-hero h1 { margin: 12px 0 6px; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.re-detail-hero__loc { margin: 0 0 18px; color: #dfe4fa; font-size: 17px; font-weight: 600; }
.re-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 14px 18px; border-left: 4px solid var(--re-gold); border-radius: 4px 16px 16px 4px; background: rgba(255, 255, 255, .08); }
.re-amount span { width: 100%; color: #c9d0ee; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.re-amount strong { color: var(--re-gold-2); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; }
.re-amount em { font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.re-fineprint--light { color: #aeb7de; }
.re-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.re-gallery { display: grid; gap: 10px; }
.re-gallery__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: var(--re-navy-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.re-gallery__main > img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity .16s ease; }
.re-gallery__main > img.is-swapping { opacity: 0; }
.re-gallery__nav, .re-gallery__full { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(11, 18, 48, .72); font-size: 26px; line-height: 1; cursor: pointer; }
.re-gallery__nav { top: 50%; transform: translateY(-50%); }
.re-gallery__nav--prev { left: 12px; }
.re-gallery__nav--next { right: 12px; }
.re-gallery__full { right: 12px; top: 12px; font-size: 20px; }
.re-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.re-gallery__thumbs button { flex: none; width: 84px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.re-gallery__thumbs button[aria-selected="true"] { border-color: var(--re-gold); opacity: 1; }
.re-gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.re-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 36, .96); }
.re-viewer[open] { display: grid; place-items: center; }
.re-viewer > img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.re-viewer__close, .re-viewer__nav { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .16); font-size: 30px; cursor: pointer; }
.re-viewer__close { right: 16px; top: 16px; }
.re-viewer__nav { top: 50%; transform: translateY(-50%); }
.re-viewer__nav--prev { left: 16px; }
.re-viewer__nav--next { right: 16px; }
.re-viewer__count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; color: #dfe4fa; text-align: center; font-size: 14px; }
.re-detail-body { background: #fff; }
.re-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.re-detail-main h2 { margin: 28px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.re-detail-main h2:first-child { margin-top: 0; }
.re-detail-main p { color: #3d4663; font-size: 16.5px; }
.re-detail-main .re-specs > div { padding: 11px 0; }
.re-detail-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.re-disclosure { padding: 18px 20px; border: 1px solid #f0d9a3; border-radius: 16px; background: #fff8e8; }
.re-disclosure h3 { margin: 0 0 6px; color: #8a5a14; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.re-disclosure p { margin: 0; color: #5a4a22; font-size: 14px; line-height: 1.6; }
.re-agent-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--re-line); border-radius: 18px; background: #f6f4ff; }
.re-agent-card strong { font-size: 20px; color: var(--re-ink); }
.re-agent-card span { color: var(--purple-dark); font-weight: 800; font-size: 13px; }
.re-agent-card small { color: #5d6683; margin-bottom: 6px; }
.re-more { background: #f6f4ff; }
.re-more__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 14px 0 22px; padding: 0; list-style: none; }
.re-more__list a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--re-line); border-radius: 16px; background: #fff; transition: transform .25s, box-shadow .25s; }
.re-more__list a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 31, 82, .12); }
.re-more__list span { color: #b04a0d; font-weight: 700; }

@media (max-width: 1280px) { .re-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .re-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .re-filter-row .re-search { grid-column: 1 / -1; } }
@media (max-width: 1020px) {
  .re-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .re-detail-hero__grid, .re-detail-grid { grid-template-columns: 1fr; }
  .re-detail-side { position: static; }
  .re-fin-types { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .re-grid { grid-template-columns: 1fr; }
  .re-filter-row { grid-template-columns: 1fr 1fr; }
  .re-slide { min-height: 400px; }
  .re-carousel__viewport { border-radius: 20px; }
  .re-detail-actions .re-btn { flex: 1 1 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .re-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 0; }
  .re-hero__copy { max-width: none; padding-bottom: 8px; }
  .re-hero__photo { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: .7; }
  .re-hero__bg::after { background: linear-gradient(180deg, rgba(11, 18, 48, .9) 0, rgba(11, 18, 48, .6) 55%, rgba(11, 18, 48, .85) 100%); }
  .re-hero__stage { min-height: 0; padding-top: 12px; }
  .re-hero__stage { --pw: min(78%, 360px); }
  .re-financing__grid, .re-partner__grid, .re-inquiry__grid { grid-template-columns: 1fr; }
  .re-partner__photo { max-width: 420px; margin-inline: auto; }
  .re-dialog__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .re-form__grid { grid-template-columns: 1fr; }
  .re-hero__cta .re-btn { flex: 1 1 100%; }
  .re-contact__actions { grid-template-columns: 1fr; width: 100%; }
  .re-hero__id { padding: 10px 14px; }
  .re-hero__stage { --pw: min(88%, 340px); }
  .re-dialog { width: 100%; max-height: 100vh; border-radius: 20px 20px 0 0; margin: auto 0 0; }
  .re-float { left: 10px; bottom: 12px; }
  .re-float__call span { display: none; }
  .re-float__call { width: 56px; padding: 0; justify-content: center; }
}

/* ---------- Reduced motion: everything is visible and still ---------- */
@media (prefers-reduced-motion: reduce) {
  .re-card--enter, .re-carousel__track, .re-slide .re-slide__copy, .re-card__media.is-loading, .re-slide__media.is-loading, .re-gallery__main.is-loading, .re-hero__word img, .re-hero__photo, .re-hero__glow, .re-reveal-line > span, .re-in, .re-hero__portrait, .re-dialog[open], .re-success__tick { animation: none !important; }
  .re-js .re-fade { opacity: 1; transform: none; transition: none; }
  .re-card, .re-card__media > img, .re-btn, .re-ach { transition: none; }
  .re-card:hover, .re-card:hover .re-card__media > img, .re-btn:hover, .re-ach:hover { transform: none; }
  .re-hero__photo { transform: none; }
}

/* carousel placeholder: a large soft icon on the right, the project name is already in the caption */
.re-slide__media .re-ph { place-content: center end; justify-items: center; padding-right: 12%; }
.re-slide__media .re-ph svg { width: 150px; height: 150px; opacity: .45; }
.re-slide__media .re-ph strong { display: none; }
.re-detail-hero .re-gallery { padding: 0; background: transparent; }
@media (max-width: 640px) { .re-slide__media .re-ph { place-content: start end; padding: 26px 22px 0 0; } .re-slide__media .re-ph svg { width: 84px; height: 84px; } }

.re-card__actions .re-btn { white-space: nowrap; padding-inline: 12px; }

/* The partner section uses a normal rectangular photo: it fills its frame edge to edge, no card showing behind it. */
.re-partner__photo { padding: 0; aspect-ratio: 3 / 4; background: var(--re-navy-2); box-shadow: 0 24px 60px rgba(20, 31, 82, .25); }
.re-partner__photo img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center top; filter: none; }
.re-partner__photo.is-missing { min-height: 0; }

/* ---------- Catalog: horizontal slide, See all expands to the full grid ---------- */
.re-catalog-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 14px; }
.re-catalog-bar .re-count { margin: 0; }
.re-catalog-bar__actions { display: flex; align-items: center; gap: 10px; }
.re-slider-nav { display: flex; gap: 8px; }
.re-catalog-bar.is-expanded .re-slider-nav { display: none; }
.re-grid.is-slider { display: flex; grid-template-columns: none; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 4px; padding: 6px 4px 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.re-grid.is-slider .re-card { flex: 0 0 clamp(260px, 24vw, 310px); scroll-snap-align: start; }
.re-grid.is-slider .re-card[hidden] { display: none; }
@media (max-width: 640px) { .re-grid.is-slider .re-card { flex-basis: min(82vw, 320px); } }
