/**
 * Badge layout matching residence feature chips (RTL).
 */

.rpcf-features-list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	direction: rtl;
}

.rpcf-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	box-sizing: border-box;
	max-width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rpcf-badge:hover {
	border-color: #d0d0d0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.rpcf-badge__main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rpcf-badge__icon {
	flex-shrink: 0;
	width: 28px;
	min-width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #c9a227;
}

.rpcf-badge__icon img {
	width: 28px;
	height: 28px;
	display: block;
	object-fit: contain;
}

.rpcf-badge__icon--el i,
.rpcf-badge__icon--el svg {
	display: block;
	font-size: 24px;
	width: 24px;
	height: 24px;
	line-height: 1;
}

.rpcf-badge__icon--el svg {
	fill: currentColor;
}

.rpcf-badge__text {
	font-size: 14px;
	font-weight: 500;
	color: #2c3e50;
	line-height: 1.4;
	white-space: nowrap;
}

.rpcf-badge__text a {
	color: inherit;
	text-decoration: none;
}

.rpcf-badge__text a:hover {
	text-decoration: underline;
}

.rpcf-badge__info {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-right: auto;
	margin-left: 0;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background: #c5c8f5;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	line-height: 22px;
	text-align: center;
	cursor: help;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rpcf-badge__info-mark {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
}

.rpcf-badge__tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 160px;
	max-width: 240px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #2c3e50;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.6;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 5;
}

.rpcf-badge__tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #2c3e50;
}

.rpcf-badge__info:hover .rpcf-badge__tooltip,
.rpcf-badge__info:focus .rpcf-badge__tooltip,
.rpcf-badge__info:focus-within .rpcf-badge__tooltip {
	opacity: 1;
	visibility: visible;
}

.rpcf-badge--empty {
	opacity: 0.65;
}

@media (max-width: 767px) {
	.rpcf-badge {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}

	.rpcf-badge__text {
		white-space: normal;
	}
}
