/* Search results — Figma-aligned layout (ros-hotels brand) */

:root {
	--sr-brand: var(--color-2);
	--sr-brand-hover: var(--color-brand-hover);
	--sr-border: #ece8f4;
	--sr-text-muted: #6b7280;
	--sr-radius: 16px;
}

.content:has(.page.searchMap) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 16px;
}

.page.searchMap {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 24px;
}

.page.searchMap .filters {
	flex: 0 0 320px;
	max-width: 320px;
	position: relative;
	z-index: 40;
}

.page.searchMap .sr-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page.searchMap .sr-panes {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.page.searchMap .hotelsResult {
	flex: 1 1 420px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.sr-sidebar {
	background: transparent;
	border: none;
	border-radius: 0;
	display: block;
}

.sr-sidebar__inner {
	padding: 0;
}

.sr-sidebar__close {
	display: none;
}

/* Layout hooks only — visual styles live in search-filters.css */

.sr-toolbar {
	background: #fff;
	border: 1px solid var(--sr-border);
	border-radius: var(--sr-radius);
	padding: 6px;
	margin-bottom: 0;
}

.sr-toolbar__row {
	display: flex;
	align-items: stretch;
	gap: 10px;
	flex-wrap: wrap;
}

.sr-toolbar__row .formSearchButtons {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
	align-items: stretch;
}

.sr-toolbar .formSearchButtons {
	margin: 0;
	border: none;
	padding: 0;
	width: 100%;
	height: 100%;
}

.sr-view-toggle {
	display: none;
	align-items: stretch;
	gap: 4px;
	width: 100%;
	margin: 0;
	padding: 4px;
	background: #f3f1f8;
	border: 1px solid #ebe7f3;
	border-radius: 12px;
	box-sizing: border-box;
	flex: 0 0 auto;
}

.sr-view-toggle__btn {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 40px;
	height: 40px;
	padding: 0 14px;
	border: none;
	border-radius: 8px;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	color: var(--sr-text-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sr-view-toggle__btn .bi {
	font-size: 15px;
	line-height: 1;
}

.sr-view-toggle__btn:hover:not(.active) {
	color: #1a1625;
	background: rgba(255, 255, 255, 0.55);
}

.sr-view-toggle__btn.active {
	background: #fff;
	color: var(--sr-brand);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(26, 22, 37, 0.08);
}

.sr-view-toggle__btn:focus-visible {
	outline: 2px solid rgba(var(--color-brand-rgb), 0.35);
	outline-offset: 2px;
}

.sr-filters-open-btn {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	padding: 8px 14px;
	border: 1px solid #ebe7f3;
	border-radius: 12px;
	background: #f3f1f8;
	color: #1a1625;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.sr-filters-open-btn .bi {
	font-size: 15px;
	line-height: 1;
}

.sr-filters-open-btn:hover {
	background: #ebe7f3;
}

.sr-filters-open-btn:focus-visible {
	outline: 2px solid rgba(var(--color-brand-rgb), 0.35);
	outline-offset: 2px;
}

.sr-toolbar .sort {
	display: flex;
	align-items: stretch;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 4px;
	margin: 0 !important;
	background: #f3f1f8;
	border: 1px solid #ebe7f3;
	border-radius: 12px;
	box-sizing: border-box;
}

.sr-toolbar .sort > div {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto !important;
	min-height: 40px;
	height: 40px !important;
	padding: 0 14px !important;
	border: none !important;
	border-radius: 8px !important;
	box-sizing: border-box;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--sr-text-muted);
	background: transparent;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.sr-toolbar .sort > div:hover:not(.active) {
	color: #1a1625;
	background: rgba(255, 255, 255, 0.55);
}

.sr-toolbar .sort > div.active {
	background: #fff !important;
	color: var(--sr-brand) !important;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(26, 22, 37, 0.08);
}

/* Override grandiozno yellow/orange sort chips on search map */
.page.searchMap .formSearchButtons .sort > div.active {
	background: #fff !important;
	color: var(--sr-brand) !important;
}

.sr-toolbar .sort.is-sort-busy > div {
	opacity: 0.6;
	cursor: wait;
}

.sr-toolbar .sort > div span:nth-child(2) {
	margin-left: 0 !important;
	font-size: 13px;
	font-weight: 700;
	opacity: 0.9;
}

.page.searchMap .lineSearch,
.page.searchMap .searchResult {
	display: block !important;
	width: 100% !important;
	max-width: none;
	margin: 0 0 12px;
	background: transparent;
	color: inherit;
}

.page.searchMap .lineSearch.is-loading {
	display: block !important;
}

body.sr-filters-open {
	overflow: hidden;
}

.sr-filters-backdrop {
	display: none;
}

/* Filter drawer from the left + compact top spacing for tablets/phones */
@media (max-width: 991px) {
	.content:has(.page.searchMap) {
		margin: 0 !important;
		padding-top: 8px;
		padding-bottom: 12px;
	}

	.page.searchMap {
		flex-direction: column;
		gap: 8px;
		padding-bottom: 12px;
		align-items: stretch;
	}

	.page.searchMap > .sr-view-toggle {
		display: inline-flex;
		order: 0;
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.page.searchMap .sr-main {
		order: 1;
		gap: 8px;
		width: 100%;
		min-width: 0;
	}

	/* ID selector needed to beat #sr-filters.sr-sidebar { position: relative } */
	.page.searchMap #sr-filters.filters.sr-sidebar {
		position: fixed !important;
		top: 0;
		left: 0;
		right: auto;
		bottom: 0;
		z-index: 10001;
		flex: none !important;
		width: min(380px, 92vw);
		max-width: min(380px, 92vw);
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 0;
		border-radius: 0 16px 16px 0;
		background: #fff;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.28s ease, visibility 0s linear 0.28s;
	}

	.page.searchMap #sr-filters > .sr-sidebar__close {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.page.searchMap #sr-filters > .sr-sidebar__inner {
		display: block;
	}

	.sr-filters-backdrop {
		position: fixed;
		inset: 0;
		z-index: 10000;
		display: block;
		border: 0;
		padding: 0;
		margin: 0;
		background: rgba(18, 12, 36, 0.42);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.28s ease, visibility 0s linear 0.28s;
		cursor: pointer;
	}

	body.sr-filters-open .page.searchMap #sr-filters.filters.sr-sidebar {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
		transition: transform 0.28s ease, visibility 0s;
	}

	body.sr-filters-open .sr-filters-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 0.28s ease, visibility 0s;
	}

	.sr-sidebar__close {
		display: none;
	}
}

/* Laptop: toggle above filters column, content on the right */
@media (min-width: 992px) and (max-width: 1366px) {
	.page.searchMap {
		display: grid !important;
		grid-template-columns: 320px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		gap: 12px 16px;
		align-items: start;
	}

	.page.searchMap > .sr-view-toggle {
		display: inline-flex;
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		margin: 0;
	}

	.page.searchMap > .filters.sr-sidebar {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
	}

	.page.searchMap > .sr-main {
		grid-column: 2;
		grid-row: 1 / -1;
		min-width: 0;
	}
}

/* Desktop wide: list + map side by side, no view toggle */
@media (min-width: 1367px) {
	.page.searchMap > .sr-view-toggle {
		display: none !important;
	}
}

.page.searchMap .mapResult {
	flex: 0 0 38%;
	min-width: 320px;
	position: sticky !important;
	top: 80px !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-top: 0 !important;
	height: calc(100vh - 80px);
	border-radius: var(--sr-radius);
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(var(--color-brand-rgb), 0.08);
	z-index: 2;
}

.page.searchMap .mapResult .sr-map,
.page.searchMap .mapResult #mapResult {
	border-radius: inherit;
	overflow: hidden;
}

.page.searchMap .mapResult.min {
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 1367px) {
	.page.searchMap .mapResult,
	.page.searchMap .mapResult.min {
		display: block;
		flex: 0 0 38%;
		width: auto;
		min-width: 320px;
		opacity: 1;
		pointer-events: auto;
		height: calc(100vh - 80px);
		position: sticky !important;
		top: 80px !important;
	}

	.page.searchMap .mapResult #mapResult {
		width: 100%;
		height: 100%;
		min-height: 400px;
	}

	.page.searchMap .hotelsResult.min {
		flex: 1 1 420px;
		width: auto;
		overflow: visible;
		opacity: 1;
		display: block;
	}
}

.page.searchMap .hotelsResult.min {
	flex: 0 0 0;
	width: 0;
	overflow: hidden;
	opacity: 0;
}

.page.searchMap .hotelsResult.max {
	flex: 1 1 auto;
}

.page.searchMap .mapResult.max {
	flex: 1 1 55%;
	opacity: 1;
	pointer-events: auto;
}

/* Legacy toggle markup (form > div) — hide if present */
.filters .mapToggle .form {
	display: none !important;
}

.dir-filters .sort > div.active {
	color: var(--sr-brand);
	font-weight: 600;
}

.filterButtons .button.searchmap,
.dir-filters .button.searchmap {
	background: var(--sr-brand);
	border-radius: 999px;
	border: none;
	font-weight: 600;
}

.filterButtons .button.searchmap:hover {
	background: var(--sr-brand-hover);
}

.minPrice,
.maxPrice {
	border-radius: 999px;
	border: 1px solid var(--sr-border);
	padding: 8px 14px;
}

.searchStatus .result {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 12px;
	line-height: 1.35;
}

.searchStatus .result .sr-count__hint {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--sr-text-muted);
}

.lineSearch.is-loading .searchStatus .result {
	display: none;
}

.page.searchMap .xSearchStatus .sr-progress {
	display: none;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 10px 0 16px;
}

.page.searchMap .lineSearch.is-loading .xSearchStatus .sr-progress,
.page.searchMap .xSearchStatus .sr-progress.is-visible {
	display: flex !important;
}

.page.searchMap .lineSearch.is-loading .xSearchStatus .status {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #1a1625;
	margin-bottom: 2px;
}

.page.searchMap .xSearchStatus .sr-progress__track {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 10px;
	border-radius: 999px;
	background: #ebe7f3;
	overflow: hidden;
}

.page.searchMap .xSearchStatus .sr-progress__fill.load-bar,
.page.searchMap .xSearchStatus .sr-progress__fill,
.page.searchMap .xSearchStatus .load-bar {
	display: block !important;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	height: 100% !important;
	margin: 0 !important;
	border-radius: inherit;
	box-shadow: none !important;
	animation: none !important;
	background: linear-gradient(90deg, var(--color-2) 0%, var(--sr-brand) 55%, var(--color-brand-hover) 100%) !important;
	background-image: linear-gradient(90deg, var(--color-2) 0%, var(--sr-brand) 55%, var(--color-brand-hover) 100%) !important;
	background-color: transparent !important;
	background-size: auto !important;
	transition: width 0.4s ease;
	z-index: 1;
}

.page.searchMap .xSearchStatus .sr-progress__shine {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
	background-size: 220% 100%;
	animation: sr-progress-shine 1.2s linear infinite;
	pointer-events: none;
}

.page.searchMap .xSearchStatus .sr-progress__pct {
	flex-shrink: 0;
	min-width: 3.2em;
	font-size: 13px;
	font-weight: 700;
	color: var(--sr-brand);
	font-variant-numeric: tabular-nums;
}

.page.searchMap .lineSearch.is-loading .xSearchStatus .status {
	font-size: 15px;
	font-weight: 600;
	color: #1a1625;
	margin-bottom: 2px;
}

@keyframes sr-progress-shine {
	0% { background-position: 120% 0; }
	100% { background-position: -120% 0; }
}

.searchResult .result {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.page.searchMap .searchResult .hotelItem.sr-card {
	margin: 0;
	border-radius: var(--sr-radius);
	overflow: hidden;
	box-shadow: none;
}

/* Skeleton cards */
.sr-card--skeleton {
	pointer-events: none;
	animation: sr-skeleton-pulse 1.4s ease-in-out infinite;
}

.sr-card--skeleton .sr-card__sk-media {
	height: 160px;
	border-radius: 12px;
	background: linear-gradient(110deg, #ece8f4 8%, #f8f7fc 18%, #ece8f4 33%);
	background-size: 200% 100%;
	animation: sr-skeleton-shimmer 1.4s linear infinite;
}

.sr-card--skeleton .sr-card__sk-body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex: 1;
	min-width: 0;
	padding: 4px 0;
}

.sr-card--skeleton .sr-card__sk-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.sr-card--skeleton .sr-card__sk-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
	width: 112px;
}

.sr-card--skeleton .sr-card__sk-line {
	height: 14px;
	border-radius: 6px;
	background: linear-gradient(110deg, #ece8f4 8%, #f8f7fc 18%, #ece8f4 33%);
	background-size: 200% 100%;
	animation: sr-skeleton-shimmer 1.4s linear infinite;
}

.sr-card--skeleton .sr-card__sk-line--short { width: 45%; }
.sr-card--skeleton .sr-card__sk-line--mid { width: 65%; }
.sr-card--skeleton .sr-card__sk-line--price { width: 88px; height: 22px; }
.sr-card--skeleton .sr-card__sk-line--price-sm { width: 64px; height: 12px; }

.sr-card--skeleton .sr-card__sk-chips {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.sr-card--skeleton .sr-card__sk-chips span {
	width: 64px;
	height: 24px;
	border-radius: 999px;
	background: linear-gradient(110deg, #ece8f4 8%, #f8f7fc 18%, #ece8f4 33%);
	background-size: 200% 100%;
	animation: sr-skeleton-shimmer 1.4s linear infinite;
}

@keyframes sr-skeleton-shimmer {
	to { background-position: -200% 0; }
}

@keyframes sr-skeleton-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.92; }
}

@media (min-width: 992px) {
	.sr-card--skeleton .sr-card__sk-media {
		height: auto;
		min-height: 148px;
		align-self: stretch;
	}
}

.sr-card {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--sr-border);
	border-radius: var(--sr-radius);
	position: relative;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.sr-card:hover {
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
	border-color: #d8cff0;
}

.sr-card--highlight {
	border-color: var(--sr-brand);
	box-shadow: 0 0 0 2px rgba(var(--color-brand-rgb), 0.2);
}

noindex.etg-noindex--photos {
	display: contents;
}

noindex.etg-noindex {
	display: block;
}

.sr-card__media {
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	height: 160px;
	background: #f3f1f8;
	text-decoration: none;
	color: inherit;
}

.sr-card__gallery {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: pointer;
}

.sr-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.sr-card__gallery.is-loading-photos::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 5;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sr-spin 0.7s linear infinite;
}

@keyframes sr-spin {
	to { transform: rotate(360deg); }
}

.sr-card__zoom-layer {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	background: rgba(15, 23, 42, 0.28);
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.sr-card__media--gallery:hover .sr-card__zoom-layer,
.sr-card__media--gallery:focus-within .sr-card__zoom-layer {
	opacity: 1;
	pointer-events: auto;
}

.sr-card__zoom {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #1a1625;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sr-card__zoom .bi {
	font-size: 20px;
	line-height: 1;
}

.sr-card__media--gallery:hover .sr-card__photo {
	transform: scale(1.04);
}

.sr-card__media--gallery:hover .sr-card__zoom:hover,
.sr-card__media--gallery:focus-within .sr-card__zoom:hover {
	color: var(--sr-brand);
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 6px 18px rgba(var(--color-brand-rgb), 0.22);
}

.sr-card__photo-count {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(2px);
	pointer-events: none;
}

.sr-card__photo-count .bi {
	font-size: 13px;
	line-height: 1;
}

.sr-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-card__media:not(.sr-card__media--empty) .sr-card__media-placeholder {
	display: none;
}

.sr-card__media--empty img {
	display: none;
}

.sr-card__media-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	min-height: 160px;
	color: #8b8499;
	background: linear-gradient(145deg, #f8f7fc 0%, #ece8f4 100%);
}

.sr-card__media-placeholder .bi {
	font-size: 2rem;
	line-height: 1;
	opacity: 0.55;
}

.sr-card__media-placeholder span {
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
}

.sr-card__body {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	min-width: 0;
}

.sr-card__main {
	flex: 1;
	min-width: 0;
}

.sr-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
}

.sr-card__title a {
	color: inherit;
	text-decoration: none;
}

.sr-card__title a:hover {
	color: var(--sr-brand);
}

.sr-card__address,
.sr-card__distance {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 0.875rem;
	color: var(--sr-text-muted);
	line-height: 1.4;
}

.sr-card__address .bi,
.sr-card__distance .bi {
	flex-shrink: 0;
	margin-top: 2px;
	font-size: 14px;
	color: #9a93ab;
}

.sr-card__room {
	margin: 0 0 4px;
	font-size: 0.875rem;
	color: var(--sr-text-muted);
}

.sr-card__stars {
	display: inline-flex;
	gap: 2px;
	margin-bottom: 6px;
	color: #f5a623;
	font-size: 13px;
	line-height: 1;
}

.sr-card__stars .xstar {
	margin-right: 2px;
}

.sr-card__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.sr-amenity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	font-size: 0.8rem;
	font-weight: 500;
	background: var(--color-brand-soft);
	color: var(--color-brand-deep);
	border-radius: 999px;
	white-space: nowrap;
}

.sr-amenity .bi {
	font-size: 14px;
	line-height: 1;
	opacity: 0.9;
}

.sr-card__price-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.sr-card__terms {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.sr-term {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--sr-border);
	border-radius: 8px;
	background: var(--sr-surface);
	color: var(--sr-text-muted);
	cursor: help;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-term:hover,
.sr-term:focus-visible {
	background: #fff;
	color: var(--sr-brand);
	border-color: #ddd8e8;
	outline: none;
}

.sr-term .bi {
	font-size: 14px;
	line-height: 1;
}

.sr-term--ok {
	color: #059669;
	border-color: #a7f3d0;
	background: #ecfdf5;
}

.sr-term--ok:hover,
.sr-term--ok:focus-visible {
	color: #047857;
	border-color: #6ee7b7;
	background: #d1fae5;
}

.sr-term--muted {
	color: #94a3b8;
	border-color: #e2e8f0;
	background: #f8fafc;
}

.sr-balloon__terms {
	justify-content: flex-end;
	align-items: center;
	margin: 0;
	flex-shrink: 0;
}

.sr-balloon__terms .sr-term {
	width: 26px;
	height: 26px;
	border-radius: 8px;
}

.sr-card__rooms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	padding: 8px 14px;
	border: 1px solid var(--sr-brand);
	border-radius: 999px;
	background: var(--sr-brand);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-card__rooms-btn:visited,
.sr-card__rooms-btn:active,
.sr-card__rooms-btn:focus {
	color: #fff;
	text-decoration: none;
}

.sr-card__rooms-btn:hover {
	background: var(--sr-brand-hover);
	border-color: var(--sr-brand-hover);
	color: #fff;
}

.sr-card__rooms-btn:focus-visible {
	outline: 2px solid rgba(var(--color-brand-rgb), 0.35);
	outline-offset: 2px;
}

/* Bootstrap tooltips: light card on light theme, dark card on dark theme */
.tooltip.sr-rate-tooltip {
	--bs-tooltip-opacity: 1;
	--bs-tooltip-max-width: 280px;
	--bs-tooltip-padding-x: 12px;
	--bs-tooltip-padding-y: 8px;
	--bs-tooltip-font-size: 12px;
	--bs-tooltip-border-radius: 10px;
	--bs-tooltip-bg: #fff;
	--bs-tooltip-color: #334155;
	filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.14));
}

.tooltip.sr-rate-tooltip .tooltip-inner {
	border: 1px solid #ddd8e8;
	text-align: left;
	line-height: 1.45;
}

.sr-card__pay {
	display: none;
}

.sr-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.sr-review-score {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	border-radius: 10px;
	overflow: hidden;
}

.sr-review-score__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 1px;
	min-width: 0;
	padding: 5px 8px 5px 10px;
}

.sr-review-score__label {
	font-weight: 700;
	font-size: 0.8rem;
	color: #1a1625;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.sr-review-score__count {
	font-size: 0.62rem;
	font-weight: 600;
	color: #6b6578;
	line-height: 1.15;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.sr-review-score__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 38px;
	padding: 5px 7px;
	color: #fff;
	text-align: center;
}

.sr-review-score__value {
	font-weight: 800;
	font-size: 0.92rem;
	line-height: 1;
	letter-spacing: -0.03em;
}

.sr-review-score--compact {
	border-radius: 8px;
}

.sr-review-score--compact .sr-review-score__text {
	padding: 4px 6px 4px 8px;
}

.sr-review-score--compact .sr-review-score__badge {
	min-width: 34px;
	padding: 4px 6px;
}

.sr-review-score--compact .sr-review-score__value {
	font-size: 0.84rem;
}

.sr-review-score--compact .sr-review-score__label {
	font-size: 0.74rem;
}

.sr-review-score--compact .sr-review-score__count {
	font-size: 0.58rem;
}

/* Оценки гостей: 9+ яркий зелёный → 5+ мягкий жёлтый */
.sr-review-score.sr-rating--9 .sr-review-score__text { background: linear-gradient(135deg, #e8faf0, #d4f5e4); }
.sr-review-score.sr-rating--9 .sr-review-score__badge {
	background: linear-gradient(160deg, #22c55e, #16a34a);
	color: #fff;
}

.sr-review-score.sr-rating--8 .sr-review-score__text { background: linear-gradient(135deg, #eafbf2, #daf6ea); }
.sr-review-score.sr-rating--8 .sr-review-score__badge {
	background: linear-gradient(160deg, #4ade80, #22c55e);
	color: #fff;
}

.sr-review-score.sr-rating--7 .sr-review-score__text { background: linear-gradient(135deg, #eefaf3, #e2f6eb); }
.sr-review-score.sr-rating--7 .sr-review-score__badge {
	background: linear-gradient(160deg, #6ee7b7, #34d399);
	color: #064e3b;
}

.sr-review-score.sr-rating--6 .sr-review-score__text { background: linear-gradient(135deg, #f4fae8, #eaf5d6); }
.sr-review-score.sr-rating--6 .sr-review-score__badge {
	background: linear-gradient(160deg, #d9f99d, #bef264);
	color: #3f6212;
}

.sr-review-score.sr-rating--5 .sr-review-score__text { background: linear-gradient(135deg, #fefce8, #fef3c7); }
.sr-review-score.sr-rating--5 .sr-review-score__badge {
	background: linear-gradient(160deg, #fde68a, #facc15);
	color: #713f12;
}

.sr-review-score.sr-rating--low .sr-review-score__text { background: linear-gradient(135deg, #fff5f3, #fdeee9); }
.sr-review-score.sr-rating--low .sr-review-score__badge {
	background: linear-gradient(160deg, #fca5a5, #f87171);
	color: #7f1d1d;
}

.sr-review-score.sr-rating--6 .sr-review-score__label,
.sr-review-score.sr-rating--5 .sr-review-score__label {
	color: #3f6212;
}

.sr-review-score.sr-rating--5 .sr-review-score__label {
	color: #713f12;
}

.sr-review-score.sr-rating--6 .sr-review-score__count {
	color: #4d7c0f;
}

.sr-review-score.sr-rating--5 .sr-review-score__count {
	color: #92400e;
}

.sr-rating {
	font-weight: 700;
	font-size: 0.95rem;
	padding: 4px 8px;
	border-radius: 8px;
	background: #ecfdf5;
	color: #047857;
}

.sr-rating--9,
.sr-rating--super { background: #e8faf0; color: #15803d; }
.sr-rating--8,
.sr-rating--excellent { background: #eafbf2; color: #16a34a; }
.sr-rating--7,
.sr-rating--good { background: #eefaf3; color: #059669; }
.sr-rating--6,
.sr-rating--ok { background: #f4fae8; color: #4d7c0f; }
.sr-rating--5,
.sr-rating--fair { background: #fefce8; color: #a16207; }
.sr-rating--low { background: #fff5f3; color: #b91c1c; }

.sr-price {
	text-align: right;
	text-decoration: none;
	color: inherit;
}

.sr-price__value {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--sr-brand);
	line-height: 1.2;
}

.sr-price__meta {
	display: block;
	font-size: 0.8rem;
	color: var(--sr-text-muted);
	line-height: 1.35;
	text-align: right;
	white-space: normal;
}

.sr-fav {
	position: absolute;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.95);
	color: #6b6578;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(26, 22, 37, 0.12);
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sr-card > .sr-fav {
	top: 8px;
	left: 8px;
}

.sr-fav .bi {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 17px;
	line-height: 1;
	pointer-events: none;
}

.sr-fav .bi::before {
	display: block;
	line-height: 1;
	vertical-align: 0;
}

.sr-fav:hover {
	color: var(--sr-brand);
	box-shadow: 0 4px 14px rgba(var(--color-brand-rgb), 0.2);
}

.sr-fav.is-active {
	color: #fff;
	background: var(--sr-brand);
}

.sr-fav.is-active:hover {
	background: var(--sr-brand-hover);
	color: #fff;
}

.sr-fav:disabled {
	opacity: 0.65;
	cursor: wait;
}

.tooltip.fav-guest-tooltip .tooltip-inner {
	max-width: 220px;
	text-align: center;
}

/* Map loader */
.sr-map {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 400px;
}

.page.searchMap .mapResult #mapResult {
	width: 100%;
	height: 100%;
	min-height: 400px;
	border-radius: inherit;
	background-image: none;
}

.page.searchMap .mapResult:fullscreen {
	width: 100vw;
	height: 100vh;
	max-width: none;
	border-radius: 0;
}

.page.searchMap .mapResult:fullscreen .sr-map,
.page.searchMap .mapResult:fullscreen #mapResult {
	height: 100%;
	min-height: 100%;
	border-radius: 0;
}

/* Zoom слева с ползунком — переопределение глобального style.css */
.page.searchMap .mapResult [class*="controls-pane"] > [class*="controls__control"] {
	inset: 50px auto auto 10px !important;
	right: auto !important;
	left: 10px !important;
}

.page.searchMap .mapResult [class*="zoom__scale"] {
	display: block !important;
	visibility: visible !important;
}

.page.searchMap .mapResult [class*="zoom__minus"] {
	top: auto !important;
	bottom: 0 !important;
}

.sr-map__fullscreen {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	color: #1a1625;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.14);
	transition: background 0.15s ease, color 0.15s ease;
}

.sr-map__fullscreen:hover {
	background: #fff;
	color: var(--sr-brand);
}

.sr-map__fullscreen.is-active {
	color: var(--sr-brand);
}

/* Hide Yandex Maps promo / copyright UI on search map */
.page.searchMap .mapResult [class*="copyrights"],
.page.searchMap .mapResult [class*="open-block"],
.page.searchMap .mapResult [class*="open-map"],
.page.searchMap .mapResult [class*="gototech"],
.page.searchMap .mapResult [class*="gotoymaps"],
.page.searchMap .mapResult a[href*="maps.yandex"],
.page.searchMap .mapResult a[href*="yandex.ru/maps"],
.page.searchMap .mapResult a[href*="yandex.com/maps"],
.page.searchMap .mapResult a[href*="tech.yandex.ru"],
.page.searchMap .mapResult a[href*="createmap"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.sr-map {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.sr-map #mapResult {
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.sr-map__loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 28%, rgba(var(--color-brand-rgb), 0.1), transparent 42%),
		radial-gradient(circle at 72% 68%, rgba(157, 92, 255, 0.12), transparent 48%),
		linear-gradient(160deg, #f8f7fc 0%, #f0edf8 50%, #e8e4f2 100%);
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sr-map__loader::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url(/img/map-loader-streets.svg) center / cover no-repeat;
	opacity: 0.68;
	pointer-events: none;
}

.sr-map__loader-visual,
.sr-map__loader-text {
	position: relative;
	z-index: 1;
}

.mapResult.is-map-ready .sr-map__loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sr-map__loader-visual {
	position: relative;
	width: 72px;
	height: 72px;
}

.sr-map__loader-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(var(--color-brand-rgb), 0.12);
}

.sr-map__loader-pulse::before {
	content: "";
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	background: var(--sr-brand);
	opacity: 0.2;
	animation: sr-map-pulse 1.2s ease-in-out infinite;
}

.sr-map__loader-pulse::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(var(--color-brand-rgb), 0.28);
	animation: sr-map-ring 1.35s ease-out infinite;
}

.sr-map__loader-pin {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sr-brand);
	font-size: 26px;
	animation: sr-map-pin 1.2s ease-in-out infinite;
	filter: drop-shadow(0 6px 10px rgba(var(--color-brand-rgb), 0.28));
}

.sr-map__loader-text {
	font-size: 14px;
	font-weight: 600;
	color: #6b6578;
	letter-spacing: 0.01em;
}

@keyframes sr-map-pulse {
	0%, 100% { transform: scale(0.92); opacity: 0.55; }
	50% { transform: scale(1); opacity: 1; }
}

@keyframes sr-map-ring {
	0% { transform: scale(0.88); opacity: 0.85; }
	100% { transform: scale(1.28); opacity: 0; }
}

@keyframes sr-map-pin {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

.page.searchMap .mapResult.load .sr-map #mapResult {
	opacity: 0.35;
}

.sr-more {
	width: 100%;
	margin-top: 12px;
	border-radius: 999px;
	background: var(--sr-brand);
	color: #fff;
	border: none;
	padding: 12px;
	font-weight: 600;
	cursor: pointer;
}

.sr-balloon {
	width: 100%;
	max-width: 100%;
	font-size: 14px;
	line-height: 1.35;
	color: #1a1625;
	background: #fff;
	border: none;
	border-radius: 0;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: none;
}

/* One rounded shell — Yandex panel; inner .sr-balloon is content only */
.page.searchMap [class*="balloon__content"],
.page.searchMap [class*="balloon_layout_panel"],
.page.searchMap [class*="balloon__content"] table,
.page.searchMap [class*="balloon__content"] tbody,
.page.searchMap [class*="balloon__content"] tr,
.page.searchMap [class*="balloon__content"] td {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.page.searchMap [class*="balloon_layout_panel"] {
	background: #fff !important;
	border: 1px solid var(--sr-border) !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14) !important;
	width: 260px !important;
	max-width: 260px !important;
	box-sizing: border-box;
}

.page.searchMap [class*="balloon__content"]:has(.sr-balloon):not(:has([class*="balloon_layout_panel"])) {
	background: #fff !important;
	border: 1px solid var(--sr-border) !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14) !important;
	width: 260px !important;
	max-width: 260px !important;
	box-sizing: border-box;
}

.page.searchMap [class*="balloon__content"] {
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.page.searchMap [class*="balloon__layout"],
.page.searchMap [class*="balloon_layout_normal"],
.page.searchMap [class*="balloon-pane"] {
	overflow: visible !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.page.searchMap [class*="balloon__close"]:not(.sr-balloon__close) {
	display: none !important;
}

.page.searchMap [class*="balloon__content"] > ymaps {
	display: block !important;
	width: 100% !important;
}

.sr-balloon__media {
	position: relative;
	overflow: visible;
}

.sr-balloon__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #1a1625;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sr-balloon__close .bi {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	line-height: 1;
}

.sr-balloon__close .bi::before {
	display: block;
	line-height: 1;
	vertical-align: 0;
}

.sr-balloon__close:hover {
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.sr-balloon__fav.sr-fav {
	position: absolute;
	top: 8px;
	left: 8px;
	right: auto;
	z-index: 10;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #6b6578;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sr-balloon__fav.sr-fav .bi {
	font-size: 14px;
}

.sr-balloon__fav.sr-fav:hover {
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.sr-balloon__fav.sr-fav.is-active {
	background: var(--sr-brand);
	color: #fff;
}

.sr-balloon__fav.sr-fav.is-active:hover {
	background: var(--sr-brand-hover);
	color: #fff;
	box-shadow: 0 4px 14px rgba(var(--color-brand-rgb), 0.28);
}

.sr-balloon__photo {
	display: block;
	width: 100%;
	height: 152px;
	border-radius: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #ece8f4;
	margin: 0;
}

.sr-balloon__photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 152px;
	color: #8b8499;
	font-size: 12px;
	font-weight: 500;
	background-color: #ece8f4;
}

/* Balloon photo gallery */
.sr-balloon__gallery {
	position: relative;
	width: 100%;
	height: 152px;
	overflow: hidden;
	background-color: #ece8f4;
}

.sr-balloon__gallery.is-loading-photos::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 5;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sr-spin 0.7s linear infinite;
}

.sr-balloon__slides {
	display: flex;
	height: 100%;
	transition: transform 0.3s ease;
}

.sr-balloon__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.sr-balloon__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sr-balloon__slide--more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none !important;
	color: #6b6578 !important;
	background: linear-gradient(145deg, #ece8f4 0%, #ddd8e8 100%);
}

.sr-balloon__slide--more .bi {
	font-size: 24px;
	line-height: 1;
	color: #8b8499;
}

.sr-balloon__slide--more span {
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	padding: 0 10px;
}

.sr-balloon__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #1a1625;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sr-balloon__nav .bi {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	line-height: 1;
}

.sr-balloon__nav .bi::before {
	display: block;
	line-height: 1;
	vertical-align: 0;
}

.sr-balloon__nav--prev { left: 8px; }
.sr-balloon__nav--next { right: 8px; }

.sr-balloon__nav:hover {
	transform: translateY(-50%);
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.sr-balloon__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	z-index: 4;
	display: flex;
	gap: 4px;
	justify-content: center;
}

.sr-balloon__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 2px rgba(15, 23, 42, 0.4);
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.sr-balloon__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

.sr-balloon__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 12px;
}

.sr-balloon__rating {
	align-self: flex-start;
	margin-bottom: 2px;
}

.sr-balloon__rating .sr-review-score__text {
	align-items: flex-start;
}

.sr-balloon__title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.sr-balloon__name {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.sr-balloon__stars {
	display: inline-flex;
	flex-shrink: 0;
	gap: 1px;
	margin-top: 1px;
	color: #f5a623;
	font-size: 11px;
	line-height: 1;
}

.sr-balloon__address {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	font-size: 11px;
	color: var(--sr-text-muted);
	line-height: 1.3;
}

.sr-balloon__address span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.sr-balloon__address .bi {
	flex-shrink: 0;
	margin-top: 1px;
	font-size: 12px;
	color: #9a93ab;
}

.sr-balloon__offer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid var(--sr-border);
}

.sr-balloon__price-block {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.sr-balloon__price {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--sr-brand);
	letter-spacing: -0.02em;
}

.sr-balloon__meta {
	font-size: 11px;
	color: var(--sr-text-muted);
	line-height: 1.25;
}

.sr-balloon__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--sr-brand);
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.sr-balloon__link:hover {
	background: var(--sr-brand-hover);
	color: #fff !important;
}

.demoresult {
	display: none !important;
}

@media (max-width: 1366px) {
	.page.searchMap .sr-view-toggle {
		display: inline-flex;
	}

	.page.searchMap:has(.mapResult.max) .sr-toolbar .formSearchButtons {
		display: none;
	}

	.page.searchMap .sr-panes {
		flex-direction: column;
	}

	.page.searchMap .mapResult {
		display: none;
		flex: none;
		max-width: none;
		width: 100%;
		min-width: 0;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		margin-left: 0 !important;
		height: calc(100vh - 180px);
		min-height: 420px;
		opacity: 1;
		pointer-events: auto;
	}

	.page.searchMap .mapResult.max {
		display: block;
		width: 100%;
	}

	.page.searchMap .mapResult.min {
		display: none;
		width: 0;
		min-width: 0;
		opacity: 0;
		pointer-events: none;
	}

	.page.searchMap .hotelsResult.min {
		display: none;
		flex: none;
		width: 0;
		opacity: 0;
		overflow: hidden;
	}

	.page.searchMap .hotelsResult.max {
		display: block;
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		opacity: 1;
		overflow: visible;
	}

	.page.searchMap .lineSearch,
	.page.searchMap .searchResult {
		width: 100%;
		max-width: none;
	}
}

@media (min-width: 992px) and (max-width: 1366px) {
	.page.searchMap:has(.mapResult.max) .sr-toolbar {
		display: none;
	}
}

/* Laptop: map fills remaining viewport; only filters scroll */
@media (min-width: 992px) and (max-width: 1366px) {
	body.sr-map-pinned {
		overflow: hidden !important;
	}

	body.sr-map-pinned .site-footer {
		display: none !important;
	}

	body.sr-map-pinned .content:has(.page.searchMap) {
		margin: 0 !important;
		padding-top: 16px;
		padding-bottom: 12px;
		height: calc(100dvh - var(--app-header-height, 56px));
		max-height: calc(100dvh - var(--app-header-height, 56px));
		box-sizing: border-box;
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}

	body.sr-map-pinned .content:has(.page.searchMap) > .container-fluid {
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
		display: flex;
		flex-direction: column;
	}

	body.sr-map-pinned .page.searchMap {
		display: grid !important;
		grid-template-columns: 320px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
		padding-bottom: 0;
		align-items: stretch;
		overflow: hidden;
		gap: 12px 16px;
	}

	body.sr-map-pinned .page.searchMap > .sr-view-toggle {
		display: inline-flex;
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		width: 100%;
	}

	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar {
		grid-column: 1;
		grid-row: 2;
		align-self: stretch;
		flex: none;
		max-width: 320px;
		width: 100%;
		min-width: 0;
		min-height: 0;
		max-height: 100%;
		height: auto;
		overflow: hidden !important;
		display: flex;
		flex-direction: column;
	}

	body.sr-map-pinned .page.searchMap #sr-filters .sr-sidebar__inner {
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-gutter: stable;
	}

	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.guests-open),
	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.calendar-open),
	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.autocomplete-open) {
		overflow: visible !important;
	}

	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.guests-open) .sr-sidebar__inner,
	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.calendar-open) .sr-sidebar__inner,
	body.sr-map-pinned .page.searchMap #sr-filters.filters.sr-sidebar:has(.autocomplete-open) .sr-sidebar__inner {
		overflow: visible;
	}

	body.sr-map-pinned .page.searchMap .sr-main {
		grid-column: 2;
		grid-row: 1 / -1;
		display: flex;
		flex-direction: column;
		min-width: 0;
		min-height: 0;
		height: 100%;
		overflow: hidden;
	}

	body.sr-map-pinned .page.searchMap .sr-toolbar {
		display: none;
	}

	body.sr-map-pinned .page.searchMap .sr-panes {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
		overflow: hidden;
	}

	body.sr-map-pinned .page.searchMap .mapResult,
	body.sr-map-pinned .page.searchMap .mapResult.max {
		display: flex !important;
		flex-direction: column;
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		min-height: 0;
		height: 100%;
		position: relative !important;
		top: auto !important;
		opacity: 1;
		pointer-events: auto;
	}

	body.sr-map-pinned .page.searchMap .mapResult .sr-map {
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
	}

	body.sr-map-pinned .page.searchMap .mapResult #mapResult {
		width: 100%;
		height: 100% !important;
		min-height: 0;
	}
}

@media (max-width: 640px) {
	.page.searchMap .sr-view-toggle__btn span,
	.page.searchMap .sr-filters-open-btn span {
		display: none;
	}

	.page.searchMap .sr-view-toggle__btn,
	.page.searchMap .sr-filters-open-btn {
		min-width: 44px;
		padding-left: 12px;
		padding-right: 12px;
	}
}

@media (max-width: 991px) {
	.content:has(.page.searchMap) {
		margin: 0 !important;
		padding-top: 8px;
	}

	.page.searchMap .sr-toolbar__row {
		flex-wrap: nowrap;
	}

	.page.searchMap .sr-toolbar__row .formSearchButtons {
		flex: 1 1 auto;
		width: auto;
	}

	.page.searchMap .sr-filters-open-btn {
		flex: 0 0 auto;
		display: inline-flex;
	}

	.page.searchMap:has(.mapResult.max) .sr-toolbar .formSearchButtons {
		display: none;
	}

	.page.searchMap .sr-main,
	.page.searchMap .hotelsResult {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
		position: relative;
		top: auto;
		height: auto;
	}

	.page.searchMap .mapResult {
		height: min(70vh, 560px);
		min-height: 360px;
	}
}

/* Phone: stacked cards */
@media (max-width: 649px) {
	.sr-card {
		grid-template-columns: 1fr;
	}

	.sr-card__media {
		height: 200px;
	}

	.sr-card__body {
		flex-direction: column;
	}

	.sr-card__price {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		width: 100%;
	}

	.sr-card__price-col {
		align-items: flex-end;
	}

	.sr-card__rooms-btn {
		width: 100%;
		max-width: 220px;
	}

	.sr-card--skeleton .sr-card__sk-media {
		height: 200px;
	}

	.page.searchMap > .sr-view-toggle {
		max-width: none;
	}
}

/* Tablet: keep desktop-like horizontal cards */
@media (min-width: 650px) and (max-width: 991px) {
	.sr-card {
		grid-template-columns: 180px 1fr;
	}

	.sr-card__media {
		height: 148px;
		align-self: stretch;
	}

	.sr-card--skeleton .sr-card__sk-media {
		height: auto;
		min-height: 148px;
		align-self: stretch;
	}
}

/* Отключаем встроенные инструменты браузера над фото
   (визуальный поиск Яндекс.Браузера, "поиск изображения" в Edge и т.п.).
   Курсор больше не наведён на сам <img>, поэтому кнопки не появляются;
   клики продолжают ловить родительские кнопки/ссылки. */
.sr-card__media img,
.sr-balloon__slide img,
.sr-balloon__photo img,
.sr-lightbox__img {
	pointer-events: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Photo lightbox */
body.sr-lightbox-open {
	overflow: hidden;
}

.sr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sr-lightbox[hidden] {
	display: none;
}

.sr-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 20, 0.9);
}

.sr-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 56px 72px;
}

.sr-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	min-width: 120px;
	min-height: 120px;
}

.sr-lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 112px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s ease;
}

.sr-lightbox__stage.is-loading .sr-lightbox__img {
	opacity: 0;
}

.sr-lightbox__loader {
	position: absolute;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	animation: sr-lightbox-spin 0.8s linear infinite;
	opacity: 0;
	pointer-events: none;
}

.sr-lightbox__stage.is-loading .sr-lightbox__loader {
	opacity: 1;
}

@keyframes sr-lightbox-spin {
	to { transform: rotate(360deg); }
}

.sr-lightbox__close,
.sr-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.sr-lightbox__close:hover,
.sr-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.sr-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 18px;
}

.sr-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 24px;
}

.sr-lightbox__nav[hidden] {
	display: none;
}

.sr-lightbox__nav--prev { left: 16px; }
.sr-lightbox__nav--next { right: 16px; }

.sr-lightbox__counter {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 2;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
	.sr-lightbox__dialog {
		padding: 56px 12px;
	}

	.sr-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 20px;
	}

	.sr-lightbox__nav--prev { left: 6px; }
	.sr-lightbox__nav--next { right: 6px; }
}

/* Stale search alert */
.sr-stale-search {
	position: fixed;
	left: 50%;
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 12000;
	width: min(560px, calc(100vw - 32px));
	transform: translateX(-50%) translateY(12px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.sr-stale-search.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.sr-stale-search__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px 14px 16px;
	border-radius: 18px;
	border: 1px solid #ece8f4;
	background: rgba(255, 255, 255, 0.96);
	box-shadow:
		0 18px 40px rgba(15, 23, 42, 0.14),
		0 2px 8px rgba(var(--color-brand-rgb), 0.08);
	backdrop-filter: blur(12px);
}

.sr-stale-search__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #fff4e5 0%, #ffe8cc 100%);
	color: #d97706;
	font-size: 18px;
}

.sr-stale-search__body {
	flex: 1 1 auto;
	min-width: 0;
}

.sr-stale-search__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #111827;
}

.sr-stale-search__text {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--sr-text-muted);
}

.sr-stale-search__reload {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--sr-brand);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.sr-stale-search__reload:hover {
	background: var(--sr-brand-hover);
}

.sr-stale-search__reload:active {
	transform: scale(0.98);
}

.sr-stale-search__close {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.sr-stale-search__close:hover {
	background: #f3f4f6;
	color: #4b5563;
}

@media (max-width: 640px) {
	.sr-stale-search {
		width: calc(100vw - 24px);
		bottom: max(14px, env(safe-area-inset-bottom, 0px));
	}

	.sr-stale-search__card {
		position: relative;
		flex-wrap: wrap;
		padding: 12px 44px 14px 14px;
		gap: 12px;
	}

	.sr-stale-search__body {
		flex: 1 1 calc(100% - 56px);
	}

	.sr-stale-search__reload {
		flex: 1 1 auto;
		width: 100%;
		text-align: center;
		padding: 12px 16px;
	}

	.sr-stale-search__close {
		position: absolute;
		top: 10px;
		right: 10px;
	}
}

/* Brand-colored Yandex map pins (HTML layouts) */
.sr-ym-pin {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	min-height: 28px;
	background: var(--color-2);
	color: #fff;
	border-radius: 10px;
	font: 700 12px/1.2 var(--font-semibold, sans-serif);
	white-space: nowrap;
	transform: translate(-50%, calc(-100% - 6px));
	box-shadow: 0 4px 14px rgba(var(--color-brand-rgb), 0.28);
	pointer-events: none;
}
.sr-ym-pin::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 0;
	height: 0;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: var(--color-2);
	border-bottom-width: 0;
}
.sr-ym-pin--visited {
	background: #94a3b8;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.sr-ym-pin--visited::after {
	border-top-color: #94a3b8;
}
.sr-ym-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--color-2);
	color: #111;
	font: 700 13px/1 var(--font-semibold, sans-serif);
	box-shadow: 0 4px 14px rgba(var(--color-brand-rgb), 0.25);
	pointer-events: none;
}
.sr-ym-cluster--visited {
	border-color: #94a3b8;
	color: #64748b;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
