/* ============================================================
   Property Galleries — три незалежних слайдери
   Синя тільки активна кнопка, яку можна натиснути
   ============================================================ */

.sb-property-galleries {
	padding: 100px 0;
	overflow: hidden;
	background: #f8f7f3;
}

.sb-property-galleries__title {
	max-width: 920px;
	margin: 0 auto 64px;
	color: #001f4b;
	font-family: "Syne", sans-serif;
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 600;
	line-height: 1.08;
	text-align: center;
}

.sb-property-galleries__groups {
	display: flex;
	flex-direction: column;
	gap: 120px;
}

.sb-property-gallery {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 42px;
}

.sb-property-gallery__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.sb-property-gallery__title {
	margin: 0;
	color: #001f4b;
	font-family: "Syne", sans-serif;
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 700;
	line-height: 1.2;
}

/* ============================================================
   Навігація
   ============================================================ */

.sb-property-gallery__navigation {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

/*
 * Базовий вигляд кнопки.
 * За замовчуванням вона біла.
 */
.sb-property-gallery__nav-btn {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	padding: 0;
	border: 1px solid rgba(11, 19, 85, 0.1);
	border-radius: 50%;
	background: #fff;
	color: rgba(11, 19, 85, 0.35);
	cursor: default;
	appearance: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.sb-property-gallery__nav-btn svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.sb-property-gallery__nav-btn svg path {
	stroke: currentColor;
}

/*
 * Синя тільки кнопка, яку зараз можна натиснути.
 */
.sb-property-gallery__nav-btn:not(:disabled):not(.is-disabled):not(.swiper-button-disabled):not([aria-disabled="true"]) {
	border-color: #0b1355;
	background: #0b1355;
	color: #fff;
	cursor: pointer;
}

/*
 * Hover тільки для активної кнопки.
 */
.sb-property-gallery__nav-btn:not(:disabled):not(.is-disabled):not(.swiper-button-disabled):not([aria-disabled="true"]):hover {
	border-color: #1a2470;
	background: #1a2470;
	color: #fff;
	transform: translateY(-1px);
}

/*
 * Неактивна кнопка:
 * білий фон, світла синя стрілка.
 */
.sb-property-gallery__nav-btn:disabled,
.sb-property-gallery__nav-btn.is-disabled,
.sb-property-gallery__nav-btn.swiper-button-disabled,
.sb-property-gallery__nav-btn[aria-disabled="true"] {
	border-color: rgba(11, 19, 85, 0.1);
	background: #fff;
	color: rgba(11, 19, 85, 0.35);
	opacity: 1;
	cursor: default;
	pointer-events: none;
	transform: none;
}

.sb-property-gallery__nav-btn:focus-visible {
	outline: 2px solid #0b1355;
	outline-offset: 3px;
}

/* ============================================================
   Слайдер
   ============================================================ */

.sb-property-gallery__slider {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.sb-property-gallery__slider.swiper {
	overflow: visible;
}

.sb-property-gallery__slide {
	height: auto;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 384.3 / 228.24;
	border-radius: 0;
	background: #e8e8e8;
}

.sb-property-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.sb-property-gallery__slide:hover .sb-property-gallery__image {
	transform: scale(1.025);
}

/* ============================================================
   Підказка в редакторі
   ============================================================ */

.sb-property-gallery__hint {
	margin: 0;
	padding: 24px;
	border: 1px dashed rgba(0, 31, 75, 0.4);
	border-radius: 10px;
	background: #fff;
	color: #001f4b;
	font-size: 15px;
	line-height: 1.5;
}

/* ============================================================
   Tablet
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
	.sb-property-galleries {
		padding: 80px 0;
	}

	.sb-property-galleries__title {
		margin-bottom: 52px;
	}

	.sb-property-galleries__groups {
		gap: 80px;
	}

	.sb-property-gallery {
		gap: 32px;
	}
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 767px) {
	.sb-property-galleries {
		padding: 64px 0;
	}

	.sb-property-galleries__title {
		margin-bottom: 40px;
		text-align: left;
	}

	.sb-property-galleries__groups {
		gap: 64px;
	}

	.sb-property-gallery {
		gap: 24px;
	}

	.sb-property-gallery__header {
		align-items: flex-end;
		flex-wrap: nowrap;
		gap: 12px;
	}

	.sb-property-gallery__title {
		min-width: 0;
		font-size: clamp(26px, 8vw, 36px);
	}

	.sb-property-gallery__navigation {
		flex: 0 0 auto;
	}

	.sb-property-gallery__nav-btn {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}
}

/* ============================================================
   Маленькі екрани
   ============================================================ */

@media (max-width: 420px) {
	.sb-property-gallery__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.sb-property-gallery__navigation {
		align-self: flex-end;
	}
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	.sb-property-gallery__nav-btn,
	.sb-property-gallery__image {
		transition: none;
	}
}