/* RPF Single Listing Detail Shortcodes */

.rpf-listing-detail {
	display: grid;
	gap: 2rem;
}

.rpf-detail-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 2rem;
	align-items: center;
	padding: 2rem;
	border-radius: 18px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}

.rpf-detail-hero__media {
	overflow: hidden;
	border-radius: 16px;
	background: #e5e7eb;
	aspect-ratio: 16 / 10;
}

.rpf-detail-hero__image,
.rpf-detail-hero__placeholder {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.rpf-detail-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	font-weight: 800;
}

.rpf-detail-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.rpf-detail-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.rpf-detail-hero__title {
	margin: 0 0 0.65rem;
	font-size: clamp(2rem, 4vw, 3.35rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.rpf-detail-hero__location {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: #374151;
}

.rpf-detail-hero__summary {
	margin: 0 0 1.25rem;
	color: #374151;
	font-size: 1.02rem;
	line-height: 1.65;
}

.rpf-detail-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rpf-detail-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.72rem 1rem;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	border: 1px solid #111827;
}

.rpf-detail-button:hover {
	color: #fff;
	text-decoration: none;
}

.rpf-detail-button--secondary {
	background: #fff;
	color: #111827;
}

.rpf-detail-button--secondary:hover {
	color: #111827;
}

.rpf-detail-nda-note {
	margin: 1rem 0 0;
	color: #4b5563;
	font-size: 0.94rem;
}

.rpf-detail-section {
	padding: 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
}

.rpf-detail-section__header {
	max-width: 820px;
	margin-bottom: 1.25rem;
}

.rpf-detail-section__header h2,
.rpf-detail-confidentiality h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.55rem, 2.6vw, 2.15rem);
	line-height: 1.15;
}

.rpf-detail-section__header p {
	margin: 0;
	color: #4b5563;
	line-height: 1.65;
}

.rpf-detail-facts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.rpf-detail-fact {
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
}

.rpf-detail-fact__label {
	margin-bottom: 0.3rem;
	color: #6b7280;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rpf-detail-fact__value {
	color: #111827;
	font-weight: 800;
	line-height: 1.35;
}

.rpf-detail-rich-text {
	color: #374151;
	line-height: 1.72;
}

.rpf-detail-rich-text p:first-child {
	margin-top: 0;
}

.rpf-detail-rich-text p:last-child {
	margin-bottom: 0;
}

.rpf-detail-highlight-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rpf-detail-highlight-list li {
	position: relative;
	padding: 1rem 1rem 1rem 2.2rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	font-weight: 700;
	line-height: 1.45;
}

.rpf-detail-highlight-list li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.25rem;
	width: 0.48rem;
	height: 0.48rem;
	border-radius: 999px;
	background: #111827;
}

.rpf-detail-location__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
	gap: 1.5rem;
	align-items: start;
}

.rpf-detail-location__address {
	margin: 0 0 1rem;
	font-weight: 800;
}

.rpf-detail-location__map {
	overflow: hidden;
	border-radius: 14px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	aspect-ratio: 4 / 3;
}

.rpf-detail-location__map iframe,
.rpf-detail-location__map-image {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	object-fit: cover;
}

.rpf-detail-confidentiality {
	padding: 1.5rem;
	border-radius: 16px;
	background: #111827;
	color: #fff;
}

.rpf-detail-confidentiality p {
	max-width: 920px;
	color: #e5e7eb;
	line-height: 1.65;
}

.rpf-detail-confidentiality .rpf-detail-button {
	background: #fff;
	color: #111827;
	border-color: #fff;
}

.rpf-detail-inquiry__context {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.8rem;
	align-items: center;
	margin-bottom: 1rem;
	padding: 1rem;
	border-radius: 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}

.rpf-detail-inquiry__id {
	color: #6b7280;
	font-size: 0.92rem;
}

.rpf-detail-form-placeholder {
	padding: 1rem;
	border: 1px dashed #9ca3af;
	border-radius: 12px;
	background: #f9fafb;
}

.rpf-detail-form-placeholder code {
	display: block;
	white-space: normal;
	margin-top: 0.6rem;
}

.rpf-detail-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.rpf-detail-related-card {
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.rpf-detail-related-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rpf-detail-related-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.rpf-detail-related-card h3 {
	margin: 1rem 1rem 0.35rem;
	font-size: 1rem;
	line-height: 1.35;
}

.rpf-detail-related-card p {
	margin: 0 1rem 1rem;
	color: #6b7280;
}

.rpf-detail-faq__items {
	display: grid;
	gap: 0.75rem;
}

.rpf-detail-faq__item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	padding: 1rem;
}

.rpf-detail-faq__item summary {
	cursor: pointer;
	font-weight: 800;
}

.rpf-detail-faq__answer {
	margin-top: 0.75rem;
	color: #374151;
	line-height: 1.65;
}

.rpf-detail-admin-notice {
	padding: 1rem;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
}

@media (max-width: 980px) {
	.rpf-detail-hero,
	.rpf-detail-location__layout {
		grid-template-columns: 1fr;
	}

	.rpf-detail-facts-grid,
	.rpf-detail-highlight-list,
	.rpf-detail-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rpf-detail-hero,
	.rpf-detail-section {
		padding: 1.2rem;
	}

	.rpf-detail-facts-grid,
	.rpf-detail-highlight-list,
	.rpf-detail-related__grid {
		grid-template-columns: 1fr;
	}

	.rpf-detail-hero__actions {
		flex-direction: column;
	}

	.rpf-detail-button {
		width: 100%;
	}
}
