/* Shared UI components. Cards and widgets will be styled in later phases. */

.rf-entry--teaser {
	border-bottom: 1px solid var(--rf-color-border);
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
}

.rf-entry--teaser .rf-entry__title {
	font-size: 1.25rem;
}

.rf-entry--teaser .rf-entry__title a {
	text-decoration: none;
	color: inherit;
}

.rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.75rem;
	padding: 0.65rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--rf-radius);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	background: var(--rf-color-primary);
	color: #fff;
}

.rf-btn:focus-visible {
	outline: 2px solid var(--rf-color-primary);
	outline-offset: 3px;
}

.rf-btn--primary {
	background: var(--rf-color-primary);
	color: #fff;
}

.rf-btn--navy,
.rf-btn--on-dark {
	background: var(--rf-color-navy);
	color: #fff;
}

.rf-btn--on-dark {
	background: #fff;
	color: var(--rf-color-navy);
}

.rf-btn--on-navy {
	background: #fff;
	color: var(--rf-color-navy);
}

.rf-btn--ghost {
	background: transparent;
	border-color: var(--rf-color-border);
	color: var(--rf-color-primary);
}

.rf-link-arrow {
	color: var(--rf-color-primary);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9375rem;
}

.rf-link-arrow:hover,
.rf-link-arrow:focus-visible {
	text-decoration: underline;
}

.rf-project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.rf-project-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rf-color-border);
	background: var(--rf-color-surface);
	min-width: 0;
	border-radius: var(--rf-radius-card);
	box-shadow: var(--rf-shadow);
	overflow: hidden;
}

.rf-project-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--rf-color-light-blue);
}

.rf-project-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rf-project-card__fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--rf-color-light-blue), #c7d7f5);
}

.rf-project-card__badge {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	padding: 0.28rem 0.6rem;
	background: var(--rf-color-primary);
	color: #fff;
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 4px;
}

.rf-project-card__badge--status {
	left: auto;
	right: 0.75rem;
	background: rgba(15, 23, 42, 0.78);
}

.rf-project-card__badge--featured {
	top: auto;
	bottom: 0.75rem;
	left: 0.75rem;
	background: var(--rf-color-navy);
}

.rf-project-card__badge--rera {
	left: auto;
	right: 0.75rem;
	top: auto;
	bottom: 0.75rem;
	background: rgba(255, 255, 255, 0.94);
	color: var(--rf-color-text);
}

.rf-project-card__developer {
	margin: 0;
	font-size: 0.75rem;
	color: var(--rf-color-muted);
}

.rf-project-card__location {
	margin: 0;
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	color: var(--rf-color-muted);
}

.rf-project-card__location a {
	color: inherit;
	text-decoration: none;
}

.rf-project-card__specs {
	margin: 0;
	font-size: 0.875rem;
	color: var(--rf-color-muted);
}

.rf-project-card__explore {
	color: var(--rf-color-primary);
	font-weight: 600;
	text-decoration: none;
}

.rf-project-card__explore:hover,
.rf-project-card__explore:focus-visible {
	text-decoration: underline;
}

.rf-project-card__badge--launch {
	background: var(--rf-color-success);
}

.rf-project-card__badge--ready {
	background: #7c3aed;
}

.rf-project-card__badge--upcoming {
	background: var(--rf-color-warning);
	color: #1f2937;
}

.rf-project-card__rera {
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	padding: 0.28rem 0.55rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--rf-color-text);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 4px;
}

.rf-project-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1rem 1.15rem;
	flex: 1;
}

.rf-project-card__kicker {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rf-color-muted);
}

.rf-project-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.rf-project-card__title a {
	color: inherit;
	text-decoration: none;
}

.rf-project-card__title a:focus-visible {
	outline: 2px solid var(--rf-color-primary);
	outline-offset: 2px;
}

.rf-project-card__meta,
.rf-project-card__tags {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	font-size: 0.85rem;
	color: var(--rf-color-muted);
}

.rf-project-card__price {
	margin: 0;
	font-weight: 700;
	color: var(--rf-color-navy);
	font-size: 1.05rem;
}

.rf-project-card__pin {
	display: inline-flex;
	vertical-align: middle;
	margin-right: 0.25rem;
	color: var(--rf-color-primary);
}

.rf-project-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	color: var(--rf-color-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rf-project-card__meta a,
.rf-project-card__tags a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.rf-project-card__meta a:hover,
.rf-project-card__tags a:hover,
.rf-project-card__meta a:focus-visible,
.rf-project-card__tags a:focus-visible {
	border-bottom-color: currentColor;
}

.rf-project-card__cta {
	margin: auto 0 0;
	padding-top: 0.65rem;
}

.rf-related-projects {
	padding: 2.5rem 1.25rem 3rem;
	background: var(--rf-color-bg);
}

.rf-related-projects__inner {
	max-width: var(--rf-max-width);
	margin: 0 auto;
}

.rf-related-projects__title {
	margin: 0;
	font-size: 1.25rem;
}

@media (max-width: 1024px) {
	.rf-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rf-project-grid {
		grid-template-columns: 1fr;
	}
}

.rf-breadcrumbs {
	max-width: var(--rf-max-width);
	margin: 0 auto;
	padding: 0.85rem 1.25rem 0;
	font-size: 0.8125rem;
}

.rf-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rf-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
}

.rf-breadcrumbs__item:not(:last-child)::after {
	content: "→";
	margin: 0 0.5rem;
	opacity: 0.45;
}

.rf-breadcrumbs a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.rf-breadcrumbs a:hover,
.rf-breadcrumbs a:focus-visible {
	border-bottom-color: currentColor;
}

.rf-breadcrumbs a:focus-visible {
	outline: 2px solid var(--rf-color-primary);
	outline-offset: 2px;
}
