/*
 * BM Real Estate — Home page property carousel
 * ==================================================================
 *   1. Slide widths (property cards need more room than service cards)
 *   2. Cards fill their slide; skeletons
 *   3. "Δείτε όλα τα ακίνητα" end slide
 * The row (track, arrows) is modules/carousel; the card is modules/cards.
 * Selectors start with ".bm-rlst-wrap.bm-rlst-carousel--properties" so
 * they beat the shared carousel's widths and theme/Elementor rules.
 * ================================================================== */

.bm-rlst-wrap.bm-rlst-carousel--properties[hidden] { display: none !important; }

/* ==================================================================
   1. SLIDE WIDTHS — phones: one card + the next peeking in; tablets:
   about two; desktop: three; wide screens: four.
   ================================================================== */
.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-carousel__item {
	display: flex;
	flex: 0 0 84%;
}
@media (min-width: 600px) {
	.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-carousel__item { flex-basis: calc((100% - 20px) / 2.15); }
}
@media (min-width: 1024px) {
	.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-carousel__item { flex-basis: calc((100% - 40px) / 3); }
}
@media (min-width: 1400px) {
	.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-carousel__item { flex-basis: calc((100% - 60px) / 4); }
}

/* Room for the card shadow and its hover lift — the track scrolls, so
   it would clip them otherwise. */
.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-carousel__track {
	padding: 8px 4px 22px;
}

/* ==================================================================
   2. CARDS + SKELETONS
   ================================================================== */
.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-card {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}
/* Same height as a real card (photo 4:3 + body), so nothing jumps
   when the cards arrive. */
.bm-rlst-wrap.bm-rlst-carousel--properties .bm-rlst-card--skeleton {
	aspect-ratio: auto;
	min-height: 360px;
	box-shadow: none;
}

/* ==================================================================
   3. END SLIDE — "Δείτε όλα τα ακίνητα" + a button per listing page
   ================================================================== */
.bm-rlst-wrap .bm-rlst-pcar-more {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	min-height: 320px;
	padding: 32px 24px;
	border: 1px dashed var(--bm-rlst-main);
	border-radius: 14px;
	background: var(--bm-rlst-soft);
	text-align: center;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-pcar-more__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	color: var(--bm-rlst-title);
	box-shadow: 0 2px 10px rgba(40, 30, 20, .08);
}
.bm-rlst-wrap .bm-rlst-pcar-more__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bm-rlst-wrap .bm-rlst-pcar-more__title {
	margin: 0;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-pcar-more__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 240px;
}
.bm-rlst-wrap .bm-rlst-pcar-more__btn,
.bm-rlst-wrap .bm-rlst-pcar-more__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: transform .15s ease, opacity .15s ease;
}
/* Same colours as the pills on the cards, so the link matches. */
.bm-rlst-wrap .bm-rlst-pcar-more__btn--rent,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--rent:visited,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--rent:hover,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--rent:focus {
	background: var(--bm-rlst-rent-bg);
	color: var(--bm-rlst-rent-text);
}
.bm-rlst-wrap .bm-rlst-pcar-more__btn--sale,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--sale:visited,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--sale:hover,
.bm-rlst-wrap .bm-rlst-pcar-more__btn--sale:focus {
	background: var(--bm-rlst-sale-bg);
	color: var(--bm-rlst-sale-text);
}
.bm-rlst-wrap .bm-rlst-pcar-more__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}
.bm-rlst-wrap .bm-rlst-pcar-more__btn:focus-visible {
	outline: 2px solid var(--bm-rlst-title);
	outline-offset: 2px;
}
@media (hover: hover) {
	.bm-rlst-wrap .bm-rlst-pcar-more__btn:hover { transform: translateY(-2px); }
	.bm-rlst-wrap .bm-rlst-pcar-more__btn:hover svg { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
	.bm-rlst-wrap .bm-rlst-pcar-more__btn,
	.bm-rlst-wrap .bm-rlst-pcar-more__btn svg { transition: none; }
}
