/**
 * reba-cards-150.css
 * Draft only — rental card image box: branded placeholder, reserved ratio,
 * and inactive-slide hiding so stacked carousel photos are not treated as
 * in-view. Does not change listing content, prices, waitlist behavior, or
 * phone numbers.
 *
 * New filename on purpose: Hostinger sends a 1-year cache header and
 * strips ?ver=, so a same-name CSS edit would not reach returning visitors.
 */

/* Replace the flat #efefef box with a cream / navy-tint placeholder.
   aspect-ratio replaces height:0 + padding-top so the two techniques
   cannot stack. The @supports fallback keeps the original 69.35% box. */
.reba-rentals__image{
	aspect-ratio:100 / 69.35;
	height:auto;
	padding-top:0;
	background-color:#f4efe4;
	background-image:linear-gradient(180deg, rgba(0, 19, 41, 0.03), rgba(0, 19, 41, 0.08));
}
@supports not (aspect-ratio: 1){
	.reba-rentals__image{
		height:0;
		padding-top:69.35%;
	}
}

/* Subtle gold shimmer while a cover photo is still loading. It sits
   behind the slide (z-index 0); the active photo covers it once painted.
   JS adds .is-loaded to the img and to .reba-rentals__image on load, on
   error, and when the image is already complete at init. */
.reba-rentals__image::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:0;
	pointer-events:none;
	background:linear-gradient(105deg, transparent 35%, rgba(238, 183, 45, 0.22) 50%, transparent 65%);
	background-size:200% 100%;
	animation:reba-card-shimmer 1.8s ease-in-out infinite;
}
@keyframes reba-card-shimmer{
	0%{background-position:120% 0;}
	100%{background-position:-20% 0;}
}
.reba-rentals__image.is-loaded::before{
	animation:none;
	background:none;
}
@media (prefers-reduced-motion:reduce){
	.reba-rentals__image::before{
		animation:none;
		background:none;
	}
}

.reba-rentals__slide img{
	background-color:transparent;
}

/* Inactive slides are display:none so LiteSpeed / native lazy do not treat
   every stacked photo as in-view. During a slide change, the outgoing and
   incoming slides are display:block long enough for the original 0.35s
   opacity fade; JS hydrates the incoming src first, then fades. */
.reba-rentals__slide{
	display:none;
	opacity:0;
	transition:opacity .35s ease;
	pointer-events:none;
}
.reba-rentals__slide[data-active="1"],
.reba-rentals__slide.is-entering,
.reba-rentals__slide.is-leaving{
	display:block;
}
.reba-rentals__slide.is-entering{
	opacity:0;
	z-index:2;
}
.reba-rentals__slide[data-active="1"]{
	opacity:1;
	pointer-events:auto;
	z-index:1;
}
.reba-rentals__slide.is-leaving{
	opacity:0;
	z-index:0;
}
@media (prefers-reduced-motion:reduce){
	.reba-rentals__slide{
		transition:none;
	}
}
