/* Shortlist page (old-site layout in current theme style) + floating chip */

.as-shortlist.as-listings {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.as-shortlist__head {
	justify-content: center;
}

.as-shortlist__head .as-listings__title {
	flex: 0 1 auto;
	text-align: center;
}

.as-shortlist__flash {
	padding: 0.85rem 1rem;
	margin: 0;
	border-radius: 2px;
}

.as-shortlist__flash--ok {
	background: #e8f5ef;
}

.as-shortlist__flash--err {
	background: #fbf3ee;
}

.as-shortlist__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.as-shortlist__tools[hidden] {
	display: none;
}

.as-shortlist__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 200px);
	height: 50px;
	padding: 14px 28px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--as-page-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--as-page-ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.as-shortlist__tool:hover,
.as-shortlist__tool:focus-visible {
	background: var(--as-page-ink);
	color: var(--as-white);
}

.as-shortlist__tool:focus-visible {
	outline: 2px solid var(--as-page-marker);
	outline-offset: 2px;
}

.as-shortlist__grid[hidden],
.as-shortlist__empty[hidden] {
	display: none;
}

/* Card: reuse listing shell; star removes from shortlist (old watchlist star). */
.as-shortlist__card {
	position: relative;
	height: 100%;
}

.as-shortlist__card .as-card__photo {
	--as-card-photo-h: 280px;
}

.as-shortlist__star {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(2, 8, 22, 0.55);
	color: var(--as-white);
	cursor: pointer;
}

.as-shortlist__star:hover,
.as-shortlist__star:focus-visible {
	background: var(--as-red);
	color: var(--as-white);
}

.as-shortlist__star:focus-visible {
	outline: 2px solid var(--as-white);
	outline-offset: 2px;
}

.as-shortlist__star svg {
	display: block;
	width: 18px;
	height: 18px;
}

.as-shortlist-chip {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	background: var(--as-page-ink, #0a1329);
	color: #fff;
	text-decoration: none;
	font-size: 0.95rem;
	box-shadow: 0 8px 24px rgba(10, 19, 41, 0.25);
}

.as-shortlist-chip[hidden] {
	display: none;
}

.as-shortlist-chip__count {
	display: inline-flex;
	min-width: 1.4rem;
	height: 1.4rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--as-red, #ee2b3d);
	font-size: 0.8rem;
	font-weight: 600;
}

@media (max-width: 809px) {
	.as-shortlist__tools {
		flex-direction: column;
		align-items: stretch;
	}

	.as-shortlist__tool {
		width: 100%;
		min-width: 0;
	}
}
