/* Apartment Shortlist styles */
:root {
	--aptsl-accent: #e0245e;
}

/* ---------- Heart button on cards ---------- */
.aptsl-heart {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.12s ease;
}

.aptsl-heart svg {
	width: 28px;
	height: 28px;
	display: block;
	fill: rgba(0, 0, 0, 0.45);
	stroke: #ffffff;
	stroke-width: 2px;
	transition: fill 0.15s ease, stroke 0.15s ease;
}

.aptsl-heart:hover svg {
	fill: rgba(0, 0, 0, 0.55);
	transform: scale(1.05);
}

.aptsl-heart.is-saved svg {
	fill: var(--aptsl-accent);
	stroke: #ffffff;
}

.aptsl-heart:focus-visible {
	outline: 2px solid var(--aptsl-accent);
	outline-offset: 2px;
}

/* On cards with category badges in the top corner, keep the heart at the
   top-right but slide it just under the badges (exact top set inline by JS). */
.aptsl-heart.aptsl-heart--below {
	bottom: auto;
	right: 12px;
}

/* pop animation on toggle */
@keyframes aptsl-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.25); }
	100% { transform: scale(1); }
}
.aptsl-heart.aptsl-pop {
	animation: aptsl-pop 0.28s ease;
}

/* ---------- Floating shortlist button ---------- */
.aptsl-floating {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px 10px 12px;
	background: #ffffff;
	color: #222222;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.aptsl-floating:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.aptsl-floating svg {
	width: 22px;
	height: 22px;
	fill: var(--aptsl-accent);
}

.aptsl-floating-count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--aptsl-accent);
	color: #ffffff;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Hide the floating button until there is at least one saved item. */
.aptsl-floating { opacity: 0; pointer-events: none; transform: translateY(8px); }
.aptsl-floating.has-items { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Shortlist page ---------- */
.aptsl-shortlist-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 0 40px;
}

.aptsl-shortlist-title {
	margin: 0 0 20px;
}

.aptsl-shortlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.aptsl-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.aptsl-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

.aptsl-card-img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
}
.aptsl-card-img.aptsl-no-img {
	background-image: linear-gradient(135deg, #e9eef2, #d9e2e8);
}

.aptsl-card-heart {
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.aptsl-card-heart svg {
	stroke: rgba(0, 0, 0, 0.15);
	stroke-width: 1px;
}

.aptsl-card-body {
	padding: 14px 16px 18px;
}

.aptsl-card-title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #222222;
	text-decoration: none;
	margin-bottom: 6px;
}
.aptsl-card-title:hover { text-decoration: underline; }

.aptsl-card-link {
	font-size: 14px;
	color: var(--aptsl-accent);
	text-decoration: none;
	font-weight: 600;
}

/* ---------- Empty state ---------- */
.aptsl-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 50px 20px;
	color: #555555;
}
.aptsl-empty p {
	font-size: 16px;
	margin: 0 0 18px;
}
.aptsl-explore-btn {
	display: inline-block;
	padding: 12px 22px;
	background: var(--aptsl-accent);
	color: #ffffff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}
.aptsl-explore-btn:hover { filter: brightness(0.95); }
