/*
 * BM Real Estate — Services
 * ==================================================================
 *   1. Theme reset for these blocks
 *   2. Photo (shared by all three views)
 *   3. Grid card — services page (like the property cards)
 *   4. Slide card + carousel — home page and "Άλλες υπηρεσίες"
 *   5. Single service page
 * Selectors are ".bm-rlst-wrap .x" (two classes) so theme / Elementor
 * kit rules for a, ul, li, h1, h2 don't restyle them. Colors: global.css.
 * ================================================================== */

/* ==================================================================
   1. THEME RESET
   ================================================================== */
.bm-rlst-wrap .bm-rlst-services__grid,
.bm-rlst-wrap .bm-rlst-carousel__track {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bm-rlst-wrap .bm-rlst-services__item,
.bm-rlst-wrap .bm-rlst-carousel__item {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bm-rlst-wrap .bm-rlst-services__item::before,
.bm-rlst-wrap .bm-rlst-carousel__item::before { content: none; }
.bm-rlst-wrap .bm-rlst-scard,
.bm-rlst-wrap .bm-rlst-scard:hover,
.bm-rlst-wrap .bm-rlst-scard:focus,
.bm-rlst-wrap .bm-rlst-scard:visited {
	text-decoration: none;
	color: inherit;
	box-shadow: none;
}

/* ==================================================================
   2. PHOTO — fills its box. The !important sizing beats Elementor's
   ".elementor img { height: auto; max-width: 100% }" (see cards.css).
   ================================================================== */
.bm-rlst-wrap .bm-rlst-svc-img,
.bm-rlst-wrap .bm-rlst-svc-shimmer {
	position: absolute;
	inset: 0;
	display: block;
}
.bm-rlst-wrap img.bm-rlst-svc-img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0;
	border-radius: 0;
	opacity: 0;
	transition: opacity .35s ease, transform .5s ease;
	z-index: 1;
}
.bm-rlst-wrap img.bm-rlst-svc-img.is-loaded { opacity: 1; }
.bm-rlst-wrap .bm-rlst-svc-shimmer {
	z-index: 0;
	background: linear-gradient(100deg, var(--bm-rlst-soft) 30%, #ece4da 50%, var(--bm-rlst-soft) 70%);
	background-size: 200% 100%;
	animation: bm-rlst-svc-shimmer 1.3s ease-in-out infinite;
}
.bm-rlst-wrap .bm-rlst-svc-img--placeholder {
	background: linear-gradient(135deg, var(--bm-rlst-main), var(--bm-rlst-soft));
}
@keyframes bm-rlst-svc-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ==================================================================
   3. GRID CARD — services page
   ================================================================== */
.bm-rlst-wrap .bm-rlst-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.bm-rlst-wrap .bm-rlst-scard--grid {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transition: transform .18s ease, box-shadow .18s ease;
}
.bm-rlst-wrap .bm-rlst-scard--grid .bm-rlst-scard__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bm-rlst-soft);
}
.bm-rlst-wrap .bm-rlst-scard--grid .bm-rlst-scard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 18px 20px;
}
.bm-rlst-wrap .bm-rlst-scard--grid .bm-rlst-scard__title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-scard--grid .bm-rlst-scard__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: 9px 16px;
	border-radius: 8px;
	background: var(--bm-rlst-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}
.bm-rlst-wrap .bm-rlst-scard__more svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}
.bm-rlst-wrap .bm-rlst-services__empty {
	margin: 0;
	padding: 40px 0;
	text-align: center;
	color: var(--bm-rlst-muted);
}

/* ==================================================================
   4. SLIDE CARD + CAROUSEL — photo-led: title over the photo
   ================================================================== */
.bm-rlst-wrap .bm-rlst-scard--slide {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 18px;
	background: var(--bm-rlst-soft);
	isolation: isolate;
}
.bm-rlst-wrap .bm-rlst-scard--slide .bm-rlst-scard__media {
	position: absolute;
	inset: 0;
	display: block;
}
/* Dark fade at the bottom so the white title is always readable. */
.bm-rlst-wrap .bm-rlst-scard--slide .bm-rlst-scard__media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(28, 20, 16, .82) 0%, rgba(28, 20, 16, .35) 38%, rgba(28, 20, 16, 0) 62%);
}
.bm-rlst-wrap .bm-rlst-scard--slide .bm-rlst-scard__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px;
}
.bm-rlst-wrap .bm-rlst-scard--slide .bm-rlst-scard__title {
	display: block;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.bm-rlst-wrap .bm-rlst-scard--slide .bm-rlst-scard__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--bm-rlst-title);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.bm-rlst-wrap.bm-rlst-carousel {
	position: relative;
}
.bm-rlst-wrap .bm-rlst-carousel__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 12px;
}
.bm-rlst-wrap .bm-rlst-carousel__track::-webkit-scrollbar { display: none; }
/* Phones: the next card peeks in, so it's clear the row swipes. */
.bm-rlst-wrap .bm-rlst-carousel__item {
	flex: 0 0 78%;
	scroll-snap-align: start;
}
@media (min-width: 600px) {
	.bm-rlst-wrap .bm-rlst-carousel__item { flex-basis: calc((100% - 40px) / 2.4); }
}
@media (min-width: 1024px) {
	.bm-rlst-wrap .bm-rlst-carousel__item { flex-basis: calc((100% - 60px) / 4); }
}

/* Arrows (desktop; touch screens swipe). */
.bm-rlst-wrap .bm-rlst-carousel__nav {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: calc(50% - 26px);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--bm-rlst-title);
	box-shadow: 0 4px 16px rgba(40, 30, 20, .2);
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease;
}
.bm-rlst-wrap .bm-rlst-carousel__nav[hidden] { display: none; }
.bm-rlst-wrap .bm-rlst-carousel__nav--prev { left: -16px; }
.bm-rlst-wrap .bm-rlst-carousel__nav--next { right: -16px; }
.bm-rlst-wrap .bm-rlst-carousel__nav:disabled {
	opacity: 0;
	pointer-events: none;
}
.bm-rlst-wrap .bm-rlst-carousel__nav:hover,
.bm-rlst-wrap .bm-rlst-carousel__nav:focus {
	background: #fff;
	color: var(--bm-rlst-title);
	outline: none;
}
.bm-rlst-wrap .bm-rlst-carousel__nav:focus-visible {
	outline: 2px solid var(--bm-rlst-accent);
	outline-offset: 2px;
}
.bm-rlst-wrap .bm-rlst-carousel__nav svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (hover: none) {
	.bm-rlst-wrap .bm-rlst-carousel__nav { display: none !important; }
}

/* Keyboard focus ring on cards */
.bm-rlst-wrap .bm-rlst-scard:focus-visible {
	outline: 2px solid var(--bm-rlst-accent);
	outline-offset: 3px;
}

/* Hover (mouse only — no stuck states after a tap) */
@media (hover: hover) {
	.bm-rlst-wrap .bm-rlst-scard--grid:hover {
		transform: translateY(-3px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	}
	.bm-rlst-wrap .bm-rlst-scard:hover img.bm-rlst-svc-img { transform: scale(1.05); }
	.bm-rlst-wrap .bm-rlst-scard:hover .bm-rlst-scard__more svg { transform: translateX(3px); }
	.bm-rlst-wrap .bm-rlst-carousel__nav:hover { transform: scale(1.06); }
}

/* ==================================================================
   5. SINGLE SERVICE
   ================================================================== */
.bm-rlst-wrap.bm-rlst-service {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-service__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 18px;
	background: var(--bm-rlst-soft);
	box-shadow: 0 10px 30px rgba(40, 30, 20, .12);
}
.bm-rlst-wrap .bm-rlst-service__title {
	margin: 0 0 18px;
	padding: 0;
	font-family: inherit;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--bm-rlst-title);
}
.bm-rlst-wrap .bm-rlst-service__text {
	font-size: 16px;
	line-height: 1.75;
	color: #5f5555;
}
.bm-rlst-wrap .bm-rlst-service__text p {
	margin: 0 0 1em;
	padding: 0;
}
.bm-rlst-wrap .bm-rlst-service__text p:last-child { margin-bottom: 0; }

.bm-rlst-wrap .bm-rlst-service__contact {
	margin-top: 28px;
	padding: 20px;
	border-radius: 16px;
	background: var(--bm-rlst-soft);
}
.bm-rlst-wrap .bm-rlst-service__contact-label {
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--bm-rlst-muted);
}
.bm-rlst-wrap .bm-rlst-service__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.bm-rlst-wrap .bm-rlst-service__btn,
.bm-rlst-wrap .bm-rlst-service__btn:visited {
	display: inline-flex;
	flex: 1 1 180px;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 10px 16px 10px 14px;
	border: 1px solid var(--bm-rlst-line);
	border-radius: 12px;
	background: #fff;
	color: var(--bm-rlst-title);
	text-decoration: none;
	box-shadow: none;
	transition: border-color .15s ease, transform .15s ease;
}
.bm-rlst-wrap .bm-rlst-service__btn svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bm-rlst-wrap .bm-rlst-service__btn-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.bm-rlst-wrap .bm-rlst-service__btn-label {
	font-size: 15px;
	font-weight: 600;
}
.bm-rlst-wrap .bm-rlst-service__btn-number {
	font-size: 13px;
	color: var(--bm-rlst-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* Call = the main action (site accent). Apps = their colour on the icon,
   white button — readable, and still instantly recognisable. */
.bm-rlst-wrap .bm-rlst-service__btn--call,
.bm-rlst-wrap .bm-rlst-service__btn--call:visited {
	border-color: var(--bm-rlst-accent);
	background: var(--bm-rlst-accent);
	color: #fff;
}
.bm-rlst-wrap .bm-rlst-service__btn--call .bm-rlst-service__btn-number { color: rgba(255, 255, 255, .92); }
.bm-rlst-wrap .bm-rlst-service__btn--viber svg { color: #7360F2; }
.bm-rlst-wrap .bm-rlst-service__btn--whatsapp svg { color: #1FA855; }
.bm-rlst-wrap .bm-rlst-service__btn:focus-visible {
	outline: 2px solid var(--bm-rlst-title);
	outline-offset: 2px;
}
@media (hover: hover) {
	.bm-rlst-wrap .bm-rlst-service__btn:hover { transform: translateY(-2px); color: var(--bm-rlst-title); }
	.bm-rlst-wrap .bm-rlst-service__btn--call:hover { color: #fff; }
	.bm-rlst-wrap .bm-rlst-service__btn--viber:hover { border-color: #7360F2; }
	.bm-rlst-wrap .bm-rlst-service__btn--whatsapp:hover { border-color: #1FA855; }
}

/* "Άλλες υπηρεσίες" under the single service */
.bm-rlst-wrap.bm-rlst-service-others {
	margin-top: 64px;
}
.bm-rlst-wrap .bm-rlst-service-others__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	color: var(--bm-rlst-title);
}

@media (max-width: 899px) {
	.bm-rlst-wrap.bm-rlst-service {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.bm-rlst-wrap .bm-rlst-service__btn { flex-basis: 100%; }
	.bm-rlst-wrap.bm-rlst-service-others { margin-top: 48px; }
	.bm-rlst-wrap .bm-rlst-service-others__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.bm-rlst-wrap .bm-rlst-carousel__track { scroll-behavior: auto; }
	.bm-rlst-wrap img.bm-rlst-svc-img,
	.bm-rlst-wrap .bm-rlst-scard,
	.bm-rlst-wrap .bm-rlst-service__btn { transition: none; }
	.bm-rlst-wrap .bm-rlst-svc-shimmer { animation: none; }
}
