/* ── Card image ──────────────────────────────────────── */
.rp-gallery-card {
	position: relative;
	height: 240px;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: #e8e2d9;
}

.rp-gallery-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to top, rgba(11,17,32,0.45) 0%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.rp-gallery-card > img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
}

/* ── Image overlay badge ─────────────────────────────── */
.card-image-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.card-image-badge {
	background: rgba(176, 106, 58, 0.92);
	color: #fff;
}

/* ── Full gallery (single property page) ────────────── */
.rp-gallery-full {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1380px);
	margin-left: auto;
	margin-right: auto;
}

.rp-gallery-main {
	aspect-ratio: 16 / 9;
	max-height: 620px;
	background: #0B1120;
	overflow: hidden;
}

.rp-gallery-main .swiper-slide,
.rp-gallery-main .swiper-wrapper {
	height: 100%;
}

.rp-gallery-main .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rp-gallery-main .swiper-button-next,
.rp-gallery-main .swiper-button-prev {
	color: #fff;
}

.rp-gallery-main .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.7;
}

.rp-gallery-main .swiper-pagination-bullet-active {
	opacity: 1;
	background: #B06A3A;
}

/* ── Thumbnail strip ─────────────────────────────────── */
.rp-gallery-thumbs {
	height: 80px;
	margin-top: 8px;
	padding: 0 4px;
	box-sizing: border-box;
}

.rp-gallery-thumbs .swiper-slide {
	opacity: 0.5;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	transition: opacity 0.2s;
}

.rp-gallery-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	outline: 2px solid #B06A3A;
	outline-offset: 2px;
}

.rp-gallery-thumbs .swiper-slide img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
	.rp-gallery-main {
		aspect-ratio: 4 / 3;
		max-height: none;
	}

	.rp-gallery-thumbs {
		height: 60px;
	}

	.rp-gallery-thumbs .swiper-slide img {
		height: 60px;
	}
}
