/* RUBINA PROPERTIES | HOMEPAGE 3D COVERFLOW | styles scoped to Featured Listings */
.rp-featured-section { padding: 50px 0 0; }
.rp-featured-section .section-head { margin-bottom: 4px; }
.rp-featured-section .section-head .eyebrow { margin-bottom: 10px; }
.rp-featured-section .section-head h2 { font-size: clamp(29px,3.9vw,48px); }
.rp-featured-section .section-head p { margin-top: 9px; }
.rp-featured-carousel { position: relative; width: 100%; --cover-side: clamp(175px, 23vw, 298px); --cover-far: clamp(315px, 38vw, 505px); }
.rp-featured-stage {
  isolation: isolate; position: relative; height: 505px; width: 100%;
  perspective: 1100px; perspective-origin: center 47%;
  overflow: hidden; touch-action: pan-y; user-select: none;
}
.rp-featured-stage:before { content:""; position:absolute; left:10%; right:10%; bottom:28px; height:40px; border-radius:50%; background:radial-gradient(ellipse,rgba(49,38,23,.16),transparent 68%); filter:blur(9px); pointer-events:none; }
.rp-featured-card {
  box-sizing: border-box;
  position:absolute; left:50%; top:48%; width:min(38%,400px); height:455px;
  border-radius:19px; background:#fff; color:#1b1d1f;
  border:1px solid #dfd9cc; box-shadow:0 20px 42px rgba(16,17,18,.18),0 4px 12px rgba(16,17,18,.09);
  overflow:hidden; backface-visibility:hidden;
  transform-style:preserve-3d;
  transition:transform .72s cubic-bezier(.22,1,.36,1), opacity .6s ease, filter .6s ease, box-shadow .6s ease;
  transform:translate(-50%,-50%) translateX(0) rotateY(0deg) scale(.55);
  opacity:0; pointer-events:none; z-index:0;
}
.rp-featured-card[data-position="center"] { z-index:6; opacity:1; pointer-events:auto; transform:translate(-50%,-50%) translateX(0) rotateY(0deg) scale(1); filter:none; box-shadow:0 28px 55px rgba(15,16,16,.22),0 10px 22px rgba(16,17,18,.12); }
.rp-featured-card[data-position="left-near"] { z-index:5; opacity:.94; pointer-events:auto; transform:translate(-50%,-50%) translateX(calc(-1 * var(--cover-side))) rotateY(46deg) scale(.88); filter:brightness(.87); }
.rp-featured-card[data-position="right-near"] { z-index:5; opacity:.94; pointer-events:auto; transform:translate(-50%,-50%) translateX(var(--cover-side)) rotateY(-46deg) scale(.88); filter:brightness(.87); }
.rp-featured-card[data-position="left-far"] { z-index:3; opacity:.75; pointer-events:auto; transform:translate(-50%,-50%) translateX(calc(-1 * var(--cover-far))) rotateY(55deg) scale(.74); filter:brightness(.67); }
.rp-featured-card[data-position="right-far"] { z-index:3; opacity:.75; pointer-events:auto; transform:translate(-50%,-50%) translateX(var(--cover-far)) rotateY(-55deg) scale(.74); filter:brightness(.67); }
.rp-featured-card[data-position="hidden"] { z-index:0; opacity:0; pointer-events:none; transform:translate(-50%,-50%) translateX(0) rotateY(0) scale(.55); }
.rp-featured-card-link { height:100%; display:flex; flex-direction:column; text-decoration:none; outline-offset:-3px; }
.rp-featured-photo { display:block; position:relative; height:56%; flex:0 0 56%; overflow:hidden; background:#25282b; }
.rp-featured-image { width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease; }
.rp-featured-card[data-position="center"] .rp-featured-card-link:hover .rp-featured-image { transform:scale(1.035); }
.rp-featured-kicker { position:absolute;top:14px;left:14px;max-width:calc(100% - 28px);padding:8px 12px;border-radius:999px;color:#f6d992;background:rgba(13,16,18,.87);border:1px solid rgba(234,197,114,.36);letter-spacing:.07em;text-transform:uppercase;font-size:10px;font-weight:800; }
.rp-featured-content { display:flex; flex-direction:column; flex:1; padding:19px 22px 21px; min-height:0; }
.rp-featured-content h3 { font-size:21px; line-height:1.2; letter-spacing:-.023em; margin:0 0 7px; font-weight:850; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.rp-featured-location { color:#777c7f;font-size:12px;line-height:1.4;margin:0 0 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.rp-featured-bottom { margin-top:auto;border-top:1px solid #ece9e1;padding-top:11px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex-wrap:wrap; }
.rp-featured-price { color:#967222;font-size:21px;line-height:1.2;letter-spacing:-.02em;font-weight:900;overflow-wrap:anywhere; }
.rp-featured-cta { white-space:nowrap;color:#252525;font-size:12px;font-weight:800; }
.rp-featured-select { position:absolute;inset:0;border:0;background:transparent;cursor:pointer; }
.rp-featured-select[hidden] { display:none; }
.rp-featured-card[data-position="center"] { border-color:#cdb479; }
.rp-featured-nav { min-height:53px;display:flex;justify-content:center;align-items:center;gap:15px;padding:0; }
.rp-featured-nav[hidden] { display:none; }
.rp-featured-arrow { flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;cursor:pointer;border-radius:50%;border:1px solid #c9c1b2;background:#fff;color:#1b1d1f;font-size:26px;line-height:1;transition:background .2s,border-color .2s; }
.rp-featured-arrow:hover { background:#efe8d6;border-color:#b99a54; }
.rp-featured-dots { display:flex;gap:8px;align-items:center;justify-content:center; }
.rp-featured-dot { width:9px;height:9px;padding:0;border:0;border-radius:999px;cursor:pointer;background:#c6c1b7;transition:width .2s,background .2s; }
.rp-featured-dot.is-active { width:26px;background:#967222; }
.rp-featured-count { font-size:12px;font-weight:750;color:#666b6a;white-space:nowrap;min-width:90px;text-align:center; }
.rp-featured-pause { background:none;border:0;cursor:pointer;font-size:12px;font-weight:700;color:#626666; }
.rp-featured-pause:hover { color:#967222; }
.rp-featured-arrow:focus-visible,.rp-featured-dot:focus-visible,.rp-featured-pause:focus-visible,.rp-featured-card-link:focus-visible,.rp-featured-select:focus-visible { outline:3px solid #d6b66a;outline-offset:3px; }
.rp-featured-hint { font-size:12px;color:#77736e;text-align:center;margin:4px 0 0; }
.rp-featured-empty-stage { height:auto;min-height:100px;display:grid;place-items:center; }
/* The search bar stays directly below the featured slider. */
.rp-featured-section + .search-wrap { margin-top:0 !important; padding:25px 0 65px; }
@media (max-width:1000px) {
  .rp-featured-carousel { --cover-side:clamp(182px,27vw,247px);--cover-far:clamp(310px,43vw,395px); }
  .rp-featured-stage { height:465px; }
  .rp-featured-card { width:min(46%,345px);height:422px; }
  .rp-featured-content { padding:17px 18px; }
  .rp-featured-content h3 { font-size:19px; }
  .rp-featured-price { font-size:20px; }
}
@media (max-width:640px) {
  .rp-featured-section { padding-top:30px; }
  .rp-featured-section .section-head { align-items:flex-start; }
  .rp-featured-carousel { --cover-side:clamp(161px,46vw,215px);--cover-far:clamp(286px,86vw,360px); }
  .rp-featured-stage { height:395px; perspective:850px; }
  .rp-featured-card { width:min(72%,285px);height:355px;border-radius:15px; }
  .rp-featured-card[data-position="left-near"] { transform:translate(-50%,-50%) translateX(calc(-1 * var(--cover-side))) rotateY(49deg) scale(.81); }
  .rp-featured-card[data-position="right-near"] { transform:translate(-50%,-50%) translateX(var(--cover-side)) rotateY(-49deg) scale(.81); }
  .rp-featured-card[data-position="left-far"] { opacity:.48; }
  .rp-featured-card[data-position="right-far"] { opacity:.48; }
  .rp-featured-photo { height:53%;flex-basis:53%; }
  .rp-featured-kicker { top:10px;left:10px;padding:6px 9px;font-size:9px; }
  .rp-featured-content { padding:13px 14px 16px; }
  .rp-featured-content h3 { font-size:17px;margin-bottom:5px; }
  .rp-featured-location { font-size:11px; }
  .rp-featured-price { font-size:19px; }
  .rp-featured-cta { font-size:11px; }
  .rp-featured-nav { gap:10px; }
  .rp-featured-arrow { width:38px;height:38px; }
  .rp-featured-section + .search-wrap { padding:18px 0 45px; }
}
@media (prefers-reduced-motion:reduce) {
  .rp-featured-card,.rp-featured-image,.rp-featured-dot { transition:none !important; }
}
/* Side panels are photo-first, like a true coverflow, while the center retains full listing details. */
.rp-featured-card:not([data-position="center"]) .rp-featured-photo { height:100%;flex-basis:100%; }
.rp-featured-card:not([data-position="center"]) .rp-featured-content {
  position:absolute;left:0;right:0;bottom:0;display:block;min-height:0;
  padding:56px 17px 19px;color:#fff;
  background:linear-gradient(0deg,rgba(9,13,14,.94) 0%,rgba(9,13,14,.68) 57%,rgba(9,13,14,0) 100%);
}
.rp-featured-card:not([data-position="center"]) .rp-featured-content h3 { color:#fff;font-size:19px;min-height:0;text-shadow:0 1px 4px rgba(0,0,0,.3); }
.rp-featured-card:not([data-position="center"]) .rp-featured-location { color:#eee5d6;margin:0; }
.rp-featured-card:not([data-position="center"]) .rp-featured-bottom { display:none; }
