/*
 * Hotels catalog — left filter sidebar, active-filter chips, card grid, load more.
 */
div.hotels-catalog {
	--hc-accent: #960a19;
	--hc-text: #323439;
	--hc-muted: #6b6b6b;
	--hc-label: #545454;
	--hc-border: #e8e8e8;
	--hc-border-strong: #323439;
	--hc-check-border: #c8c8c8;
	--hc-sidebar-bg: #ffffff;
	--hc-columns: 3;
	--hc-gap: 28px;
	--hc-sidebar-width: 288px;

	display: flex;
	align-items: flex-start;
	column-gap: 25px;
	row-gap: 24px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	color: var(--hc-text);
	font-family: "TikTok Sans", sans-serif;
}

div.hotels-catalog *,
div.hotels-catalog *::before,
div.hotels-catalog *::after {
	box-sizing: border-box;
}

/* Sidebar ------------------------------------------------------------ */
div.hotels-catalog .hotels-catalog__sidebar {
	flex: 0 0 var(--hc-sidebar-width);
	width: var(--hc-sidebar-width);
	padding: 50px 0 0;
	background: transparent;
}

div.hotels-catalog .hotels-catalog__sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 35px;
	border-bottom: none;
}

div.hotels-catalog .hotels-catalog__sidebar-title {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--hc-text);
}

div.hotels-catalog .hotels-catalog__sidebar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hc-text);
	cursor: pointer;
}

div.hotels-catalog .hotels-catalog__group {
	padding: 35px 0;
	border-bottom: 1px solid #3234391a;
}

div.hotels-catalog .hotels-catalog__group:first-child {
	padding-top: 8px;
}

div.hotels-catalog .hotels-catalog__group:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

div.hotels-catalog .hotels-catalog__group-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: "TikTok Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--hc-text);
	text-align: left;
}

div.hotels-catalog .hotels-catalog__group-caret {
	position: relative;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	margin-left: 10px;
	transition: transform 0.25s ease;
}

div.hotels-catalog .hotels-catalog__group-caret::before,
div.hotels-catalog .hotels-catalog__group-caret::after {
	content: "";
	position: absolute;
	top: 4px;
	width: 6px;
	height: 1.5px;
	background: currentColor;
}

div.hotels-catalog .hotels-catalog__group-caret::before {
	left: 0;
	transform: rotate(-45deg);
}

div.hotels-catalog .hotels-catalog__group-caret::after {
	right: 0;
	transform: rotate(45deg);
}

div.hotels-catalog .hotels-catalog__group:not(.is-collapsed) .hotels-catalog__group-caret {
	transform: rotate(180deg);
}

div.hotels-catalog .hotels-catalog__group-body {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 25px;
}

div.hotels-catalog .hotels-catalog__group.is-collapsed .hotels-catalog__group-body {
	display: none;
}

/* Checkboxes --------------------------------------------------------- */
div.hotels-catalog .hotels-catalog__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.35;
	color: #323439;
}

div.hotels-catalog .hotels-catalog__check .hotels-catalog__check-label {
	align-self: center;
}

div.hotels-catalog .hotels-catalog__check-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

div.hotels-catalog .hotels-catalog__check-box {
	position: relative;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid #d2d5da;
	border-radius: 4px;
	background: transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

div.hotels-catalog .hotels-catalog__check-box::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 9px;
	border: 0;
	opacity: 0;
	background-color: #000000;
	-webkit-mask-image: url("../images/check-icon.svg");
	mask-image: url("../images/check-icon.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transform: translate(-50%, -50%);
	transition: opacity 0.15s ease;
}

div.hotels-catalog .hotels-catalog__check-input:checked ~ .hotels-catalog__check-box {
	border-color: #000000;
	background-color: #3234390d;
}

div.hotels-catalog .hotels-catalog__check-input:checked ~ .hotels-catalog__check-box::after {
	opacity: 1;
}

div.hotels-catalog .hotels-catalog__check-input:focus-visible ~ .hotels-catalog__check-box {
	outline: 2px solid rgba(50, 52, 57, 0.25);
	outline-offset: 1px;
}

div.hotels-catalog .hotels-catalog__check:hover .hotels-catalog__check-label {
	color: var(--hc-text);
}

/* Chip / button filter options (bedrooms, beach, level) ------------- */
div.hotels-catalog .hotels-catalog__group-body--chips {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

div.hotels-catalog .hotels-catalog__chip-option {
	position: relative;
	display: inline-flex;
	width: auto;
	min-width: 37px;
	height: 37px;
	cursor: pointer;
	margin: 0;
}

div.hotels-catalog .hotels-catalog__chip-option-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: #f3f4f6;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #323439;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	user-select: none;
}

div.hotels-catalog .hotels-catalog__chip-option:hover .hotels-catalog__chip-option-label {
	border-color: #32343966;
}

div.hotels-catalog .hotels-catalog__chip-option .hotels-catalog__check-input:checked ~ .hotels-catalog__chip-option-label {
	border-color: #323439;
}

div.hotels-catalog .hotels-catalog__chip-option .hotels-catalog__check-input:focus-visible ~ .hotels-catalog__chip-option-label {
	outline: 2px solid #323439;
	outline-offset: 2px;
}

/* Bedrooms: compact square chips */
div.hotels-catalog .hotels-catalog__group--chips-bedrooms .hotels-catalog__group-body--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

div.hotels-catalog .hotels-catalog__group--chips-bedrooms .hotels-catalog__chip-option-label {
	width: 100%;
	min-width: 0;
	padding: 8px 0;
}

/* Beach proximity: horizontal pills */
div.hotels-catalog .hotels-catalog__group--chips-beach_proximity .hotels-catalog__chip-option-label {
	padding: 8px 12px;
	white-space: nowrap;
}

/* Level: full-width stacked buttons */
div.hotels-catalog .hotels-catalog__group--chips-level .hotels-catalog__group-body--chips {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 8px;
}

div.hotels-catalog .hotels-catalog__group--chips-level .hotels-catalog__chip-option {
	display: flex;
	width: 100%;
}

div.hotels-catalog .hotels-catalog__group--chips-level .hotels-catalog__chip-option-label {
	width: auto;
	min-width: 92px;
	justify-content: center;
	text-align: center;
	padding: 10px 14px;
}

/* Reset buttons ------------------------------------------------------ */
div.hotels-catalog .hotels-catalog__reset {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: "TikTok Sans", sans-serif;
	color: var(--hc-muted);
	transition: color 0.2s ease, border-color 0.2s ease;
}

div.hotels-catalog .hotels-catalog__reset:hover {
	color: var(--hc-accent);
}

div.hotels-catalog .hotels-catalog__reset--sidebar {
	display: block;
	width: 100%;
	margin-top: 30px;
	padding: 16px;
	border: 1px solid #323439;
	border-radius: 6px;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	color: #323439;
}

div.hotels-catalog .hotels-catalog__reset--sidebar:hover {
	border-color: var(--hc-accent);
	color: var(--hc-accent);
}

/* Main --------------------------------------------------------------- */
div.hotels-catalog .hotels-catalog__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Type switcher ------------------------------------------------------ */
div.hotels-catalog .hotels-catalog__types {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin-bottom: 0;
}

div.hotels-catalog .hotels-catalog__type {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 60px;
	margin: 0;
	padding: 0 0 21px;
	border: 0;
	background: transparent;
	color: var(--hc-text);
	opacity: 1;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

div.hotels-catalog .hotels-catalog__type::after {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	margin-top: 10px;
	background: transparent;
	transition: background-color 0.2s ease;
}

div.hotels-catalog .hotels-catalog__type:hover,
div.hotels-catalog .hotels-catalog__type:focus-visible,
div.hotels-catalog .hotels-catalog__type.is-active {
	opacity: 1;
	outline: none;
	background: transparent;
}

div.hotels-catalog .hotels-catalog__type.is-active::after,
div.hotels-catalog .hotels-catalog__type:hover::after,
div.hotels-catalog .hotels-catalog__type:focus-visible::after {
	background: var(--hc-accent);
}

div.hotels-catalog .hotels-catalog__chips {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	height: 26px;
	min-height: 26px;
	margin-bottom: 37px;
	padding: 0;
	border: 0;
	overflow: hidden;
}

div.hotels-catalog .hotels-catalog__chips:not(.is-empty) {
	height: auto;
	overflow: visible;
}

div.hotels-catalog .hotels-catalog__chips.is-empty .hotels-catalog__chips-list,
div.hotels-catalog .hotels-catalog__chips.is-empty .hotels-catalog__reset--all {
	display: none !important;
}

div.hotels-catalog .hotels-catalog__reset--all[hidden] {
	display: none !important;
}

div.hotels-catalog .hotels-catalog__chips-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

div.hotels-catalog .hotels-catalog__chip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 4px 6px;
	border: 1px solid #323439;
	border-radius: 4px;
	background: transparent;
	font-size: 13px;
	line-height: inherit;
	color: var(--hc-text);
}

div.hotels-catalog .hotels-catalog__chip-remove {
	display: block;
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--hc-text);
	font-size: 16px;
	line-height: 1;
	transition: color 0.2s ease;
}

div.hotels-catalog .hotels-catalog__chip-remove::before {
	content: "\00d7";
	display: block;
	line-height: 12px;
}

div.hotels-catalog .hotels-catalog__chip-label {
	font-size: 12px;
}

div.hotels-catalog .hotels-catalog__chip-remove:hover {
	color: var(--hc-accent);
}

div.hotels-catalog .hotels-catalog__reset--all {
	flex-shrink: 0;
	padding: 4px 6px;
	font-size: 12px;
	color: var(--hc-text);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 33%;
}

/* Grid --------------------------------------------------------------- */
div.hotels-catalog .hotels-catalog__grid {
	display: grid;
	grid-template-columns: repeat(var(--hc-columns), minmax(0, 1fr));
	gap: 48px 25px;
	width: 100%;
	transition: opacity 0.2s ease;
}

div.hotels-catalog .hotels-catalog__grid[aria-busy="true"] {
	opacity: 0.5;
	pointer-events: none;
}

div.hotels-catalog .hotels-catalog__card {
	display: flex;
	flex-direction: column;
}

div.hotels-catalog .hotels-catalog__card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

div.hotels-catalog .hotels-catalog__card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 0.98;
	overflow: hidden;
	border-radius: 4px;
	background: #efeae2;
}

div.hotels-catalog .hotels-catalog__card-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

div.hotels-catalog .hotels-catalog__card-link:hover .hotels-catalog__card-image {
	transform: scale(1.04);
}

div.hotels-catalog .hotels-catalog__card-title {
	margin: 19px 0 0;
	font-family: Ahellya, Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.2;
	letter-spacing: 4%;
	color: var(--hc-text);
}

div.hotels-catalog .hotels-catalog__card-text {
	margin: 11px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--hc-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* Empty + footer ----------------------------------------------------- */
div.hotels-catalog .hotels-catalog__empty {
	margin: 0;
	padding: 40px 0;
	font-size: 15px;
	color: var(--hc-muted);
	text-align: center;
}

div.hotels-catalog .hotels-catalog__empty[hidden] {
	display: none;
}

div.hotels-catalog .hotels-catalog__footer {
	display: flex;
	justify-content: center;
	margin-top: 46px;
}

div.hotels-catalog .hotels-catalog__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 15px 30px;
	border: 1px solid var(--hc-border-strong);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	font-family: "TikTok Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: var(--hc-text);
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

div.hotels-catalog .hotels-catalog__load-more:hover:not([disabled]) {
	border-color: var(--hc-accent);
	color: var(--hc-accent);
}

div.hotels-catalog .hotels-catalog__load-more[hidden] {
	display: none;
}

div.hotels-catalog .hotels-catalog__load-more[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1199px) {
	div.hotels-catalog {
		column-gap: 25px;
		--hc-gap: 22px;
	}
}

div.hotels-catalog .hotels-catalog__sidebar-body {
	display: block;
	padding: 16px 30px 16px 16px;
	background: #ffffff;
	border-radius: 6px;
}

div.hotels-catalog .hotels-catalog__sidebar.is-collapsed .hotels-catalog__sidebar-body {
	display: none;
}

div.hotels-catalog .hotels-catalog__sidebar:not(.is-collapsed) .hotels-catalog__sidebar-toggle .hotels-catalog__group-caret {
	transform: rotate(180deg);
}

@media (max-width: 991px) {
	div.hotels-catalog {
		flex-direction: column;
		gap: 24px;
	}

	div.hotels-catalog .hotels-catalog__sidebar {
		flex: 1 1 auto;
		width: 100%;
	}

	div.hotels-catalog .hotels-catalog__types {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin-bottom: 0;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	div.hotels-catalog .hotels-catalog__type {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	div.hotels-catalog .hotels-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	div.hotels-catalog .hotels-catalog__chips {
		justify-content: flex-start;
	}
}

@media (max-width: 575px) {
	div.hotels-catalog .hotels-catalog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	div.hotels-catalog .hotels-catalog__load-more {
		width: 100%;
		min-width: 0;
	}
}
