/* ============================================================
 * revolv® — Zillow-inspired UI primitives (v1.43.0)
 * Used in: revolv-idx map, lead portal, mobile Capacitor wrapper.
 * Owns: price pins, action pill, hide toast, filter chips, "what's new" feed.
 * ============================================================ */

/* ---------- Price pins (Leaflet divIcon markers) ---------- */
.revolv-pin {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 26px;
	padding: 0 9px;
	background: #ffffff;
	color: #0f172a;
	border: 1.5px solid #0f172a;
	border-radius: 13px;
	font: 700 12px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	letter-spacing: -.01em;
	box-shadow: 0 1px 3px rgba(0,0,0,.18);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	white-space: nowrap;
}
.revolv-pin::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 8px;
	height: 8px;
	background: inherit;
	border-right: 1.5px solid #0f172a;
	border-bottom: 1.5px solid #0f172a;
}
.revolv-pin:hover {
	transform: scale(1.08);
	box-shadow: 0 3px 10px rgba(0,0,0,.22);
	z-index: 1000 !important;
}
.revolv-pin--active {
	background: #DC2626 !important;
	border-color: #991B1B !important;
	color: #ffffff !important;
	z-index: 999 !important;
}
.revolv-pin--active::after {
	border-right-color: #991B1B !important;
	border-bottom-color: #991B1B !important;
}
.revolv-pin--fav {
	background: #B45309;
	border-color: #78350F;
	color: #ffffff;
}
.revolv-pin--fav::after {
	border-right-color: #78350F;
	border-bottom-color: #78350F;
}
.revolv-pin__heart {
	font-size: 11px;
	line-height: 1;
}
.revolv-pin--disq {
	opacity: .35;
	filter: saturate(0);
}
/* Comp dot — small, faint, no label */
.revolv-pin--comp {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	width: 12px !important;
	height: 12px !important;
	padding: 0 !important;
}
.revolv-pin--comp::after { display: none; }
.revolv-pin__dot {
	width: 10px;
	height: 10px;
	background: rgba(244, 114, 182, .55);
	border: 1.5px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* ---------- Listing card action pill (top-right floating) ---------- */
.rlp-action-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: rgba(255, 255, 255, .96);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .18);
	padding: 4px;
	z-index: 5;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.rlp-action-pill__btn {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #0f172a;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: background .12s ease, color .12s ease, transform .12s ease;
	padding: 0;
}
.rlp-action-pill__btn:hover {
	background: rgba(53, 99, 233, .12);
	color: #3563E9;
}
.rlp-action-pill__btn:active { transform: scale(.94); }
.rlp-action-pill__btn.is-on {
	background: #B45309;
	color: #ffffff;
}
.rlp-action-pill__btn.is-on:hover { background: #78350F; color: #ffffff; }
.rlp-action-pill__btn[data-act="hide"]:hover { background: rgba(220, 38, 38, .12); color: #DC2626; }
.rlp-action-pill__sep {
	width: 1px;
	height: 18px;
	background: rgba(15, 23, 42, .12);
	margin: 0 2px;
}
.rlp-action-pill__btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0;
}

/* ---------- Hide toast (bottom slide-up with Undo) ---------- */
.rlp-toast-wrap {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px 12px 18px;
	background: #0f172a;
	color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
	z-index: 99999;
	font: 500 14px/1.3 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	transition: transform .35s cubic-bezier(.2,.9,.3,1);
	max-width: 90vw;
}
.rlp-toast-wrap.is-shown {
	transform: translateX(-50%) translateY(0);
}
.rlp-toast-wrap__icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.12);
	border-radius: 50%;
	font-size: 14px;
}
.rlp-toast-wrap__msg { flex: 1; min-width: 0; }
.rlp-toast-wrap__undo {
	background: transparent;
	border: 0;
	color: #93C5FD;
	font: 700 13px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 6px 10px;
	margin-left: 4px;
	border-radius: 6px;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
}
.rlp-toast-wrap__undo:hover {
	background: rgba(147, 197, 253, .12);
	color: #DBEAFE;
}

/* ---------- Filter chips bar (horizontal scrollable) ---------- */
.rlp-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 12px 12px;
	margin: 0 -12px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x proximity;
}
.rlp-chips::-webkit-scrollbar { display: none; }
.rlp-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #ffffff;
	border: 1.5px solid #E5E7EB;
	color: #0f172a;
	border-radius: 999px;
	font: 600 13px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	cursor: pointer;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.rlp-chip:hover { border-color: #94A3B8; }
.rlp-chip.is-on {
	background: #0f172a;
	border-color: #0f172a;
	color: #ffffff;
}
.rlp-chip__count {
	font-size: 11px;
	background: rgba(255,255,255,.22);
	padding: 1px 6px;
	border-radius: 10px;
}
.rlp-chip:not(.is-on) .rlp-chip__count {
	background: #EEF2FF;
	color: #3730A3;
}
.rlp-chip__caret {
	font-size: 10px;
	opacity: .65;
	margin-left: 2px;
}

/* ---------- "What's New" feed (horizontally scrollable carousel) ---------- */
.rlp-whatsnew {
	margin: 18px 0 24px;
}
.rlp-whatsnew__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 10px;
	padding: 0 4px;
}
.rlp-whatsnew__title {
	font: 700 17px/1.2 -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
	color: #0f172a;
	margin: 0;
}
.rlp-whatsnew__count {
	font: 600 12px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	color: #64748B;
}
.rlp-whatsnew__rail {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 4px 14px;
	margin: 0 -4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x mandatory;
}
.rlp-whatsnew__rail::-webkit-scrollbar { display: none; }
.rlp-whatsnew__card {
	flex: 0 0 240px;
	scroll-snap-align: start;
	position: relative;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(15,23,42,.05);
	transition: box-shadow .15s ease, transform .15s ease;
	display: flex;
	flex-direction: column;
}
.rlp-whatsnew__card:hover {
	box-shadow: 0 6px 18px rgba(15,23,42,.12);
	transform: translateY(-2px);
}
.rlp-whatsnew__card a.rlp-whatsnew__photo {
	display: block;
	background-size: cover;
	background-position: center;
	background-color: #0f172a;
	height: 150px;
	position: relative;
}
.rlp-whatsnew__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #DC2626;
	color: #fff;
	font: 700 10px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.rlp-whatsnew__body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rlp-whatsnew__price {
	font: 700 17px/1.2 -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
	color: #0f172a;
}
.rlp-whatsnew__addr {
	font-size: 12.5px;
	line-height: 1.35;
	color: #475569;
	min-height: 32px;
}
.rlp-whatsnew__specs {
	font: 600 11.5px/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
	color: #64748B;
	letter-spacing: .01em;
	margin-top: 2px;
}
.rlp-whatsnew__empty {
	padding: 18px 16px;
	background: #F8FAFC;
	border-radius: 10px;
	color: #64748B;
	font-size: 13px;
}

/* ---------- Mobile-friendly tweaks ---------- */
@media (max-width: 600px) {
	.rlp-action-pill__btn { width: 36px; height: 36px; font-size: 17px; }
	.rlp-action-pill__btn svg { width: 18px; height: 18px; }
	.rlp-whatsnew__card { flex-basis: 200px; }
	.rlp-whatsnew__card a.rlp-whatsnew__photo { height: 130px; }
	.rlp-toast-wrap { left: 12px; right: 12px; transform: translateY(120%); max-width: none; }
	.rlp-toast-wrap.is-shown { transform: translateY(0); }
	.rlp-chip { padding: 7px 12px; font-size: 12.5px; }
}

/* ---------- Capacitor mobile wrapper safe-area ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
	.rlp-toast-wrap { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
