/**
 * Rael Property Manager - Single Property styles.
 */

.rpm-property {
	font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1a1d23;
}

.rpm-container {
	width: min(1200px, 90vw);
	margin: 0 auto;
}

.rpm-hero {
	position: relative;
	min-height: 320px;
	color: #fff;
	padding: 60px 0;
	background: linear-gradient(135deg, #0b2545, #193766);
	background-size: cover;
	background-position: center;
}

.rpm-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(7, 23, 44, 0.8), rgba(11, 37, 69, 0.6));
}

.rpm-hero__content {
	position: relative;
	z-index: 1;
	padding-bottom: 30px;
}

.rpm-hero h1 {
	color: #fff;
	margin-bottom: 6px;
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	line-height: 1.15;
	font-weight: 700;
	max-width: 780px;
}

.rpm-price-card {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	background: rgba(7, 31, 65, 0.65);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 18px;
	padding: 14px 20px;
}

.rpm-price-card__label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.65rem;
	color: #b7c7ff;
}

.rpm-price-card__value {
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: 600;
	color: #fff;
}

/* Wishlist button (single property hero) */
.rpm-wishlist-btn--single {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rpm-wishlist-btn--single:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.rpm-wishlist-btn--single.is-saved {
	background: rgba(220, 38, 38, 0.25);
	border-color: rgba(220, 38, 38, 0.5);
	color: #fecaca;
}

.rpm-wishlist-btn--single.is-saved:hover {
	background: rgba(220, 38, 38, 0.35);
	border-color: rgba(220, 38, 38, 0.6);
}

.rpm-wishlist-btn--single .rpm-wishlist-btn__icon {
	display: flex;
}

.rpm-wishlist-btn--single .rpm-wishlist-btn__icon svg {
	width: 20px;
	height: 20px;
}

.rpm-wishlist-btn--single .rpm-wishlist-btn__heart {
	fill: none;
	stroke: currentColor;
}

.rpm-wishlist-btn--single.is-saved .rpm-wishlist-btn__heart {
	fill: currentColor;
	stroke: currentColor;
}

.rpm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.2);
	margin-right: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 15px;
}

.rpm-address {
	font-size: 1.1rem;
	opacity: 0.85;
}

.rpm-directions-link {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rpm-directions-link:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
	color: #0f172a;
}

.rpm-directions-link--map {
	margin-bottom: 12px;
}

.rpm-rental-terms-notes {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #475569;
}

.rpm-inquiry__message {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.95rem;
}

.rpm-inquiry__message--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.rpm-inquiry__message--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.rpm-inquiry-form label {
	display: block;
	margin-top: 10px !important;
}

.rpm-inquiry-form__input {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px !important;
	font-size: 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-sizing: border-box;
}

.rpm-inquiry-form__textarea {
	min-height: 100px;
	resize: vertical;
}

.rpm-inquiry-form p {
	margin-bottom: 16px;
}

.rpm-inquiry-form p:last-of-type {
	margin-bottom: 0;
}

.rpm-inquiry-form__submit {
	padding: 12px 24px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #0f172a;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rpm-inquiry-form__submit:hover {
	background: #1e293b;
}

.rpm-summary {
	background: #fff;
	margin-top: -55px;
	position: relative;
	z-index: 2;
	border-radius: 24px;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.15);
	padding: 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 18px;
}

.rpm-summary__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #f8fafc;
	min-height: 80px;
}

.rpm-summary__icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0b2545;
	color: #fff;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.rpm-summary__icon::before {
	content: attr(data-icon);
}

.rpm-summary__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rpm-summary__label {
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #7c8599;
	margin: 0 0 4px;
}

.rpm-summary__value {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.1;
}

@media (max-width: 768px) {
	.rpm-summary {
		padding: 24px;
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 14px;
	}

	.rpm-summary__item {
		flex-direction: row;
		gap: 10px;
	}
}

@media (max-width: 540px) {
	.rpm-summary {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	}

	.rpm-summary__item {
		flex-direction: column;
		align-items: flex-start;
		min-height: 90px;
	}

	.rpm-summary__icon {
		width: 36px;
		height: 36px;
		font-size: 1.1rem;
	}

	.rpm-summary__value {
		font-size: 0.95rem;
	}
}

.rpm-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	margin: 50px auto 80px;
	width: min(1200px, 90vw);
}

.rpm-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
	margin-bottom: 30px;
}

.rpm-card h2,
.rpm-card h3 {
	margin-top: 0;
	font-weight: 600;
	color: #0f172a;
}

.rpm-gallery {
	width: 100%;
}

.rpm-gallery__main {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
	margin-bottom: 14px;
}

.rpm-gallery__main img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	vertical-align: middle;
}

.rpm-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
}

.rpm-gallery__thumb {
	width: 80px;
	height: 80px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
	cursor: pointer;
	display: block;
	flex-shrink: 0;
	transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.rpm-gallery__thumb:hover {
	border-color: #94a3b8;
	opacity: 0.95;
}

.rpm-gallery__thumb.is-active {
	border-color: #0b2545;
	box-shadow: 0 0 0 2px rgba(11, 37, 69, 0.25);
}

.rpm-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rpm-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.rpm-details-list li {
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 10px;
}

.rpm-details-list span {
	font-weight: 600;
	color: #111827;
}

.rpm-detail-value {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-weight: 600;
	color: #0f172a;
}

.rpm-detail-unit {
	font-size: 0.75em;
	color: #8b95a8;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rpm-features {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rpm-features li {
	background: #f3f4f6;
	color: #1f2937;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.9rem;
}

.rpm-side-panel {
	position: sticky;
	top: 80px;
}

.rpm-map iframe,
.rpm-map__embed {
	width: 100%;
	border: 0;
	border-radius: 14px;
	min-height: 260px;
}

.rpm-documents {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rpm-documents li {
	margin-bottom: 10px;
}

.rpm-documents a {
	color: #0b2545;
	text-decoration: none;
	font-weight: 600;
}

.rpm-documents a:hover {
	text-decoration: underline;
}

.rpm-video {
	background: #0b2545;
	color: #fff;
	padding: 20px;
	border-radius: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
}

.rpm-video:hover {
	background: #0f3a6d;
}

.rpm-video span {
	font-weight: 600;
}

.rpm-video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #000;
}

.rpm-video-embed iframe,
.rpm-video-embed video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.rpm-video-embed video {
	object-fit: cover;
	background: #000;
}

.rpm-video-cta {
	margin-top: 12px;
}

@media (max-width: 992px) {
	.rpm-content {
		grid-template-columns: 1fr;
	}

	.rpm-side-panel {
		position: relative;
		top: 0;
	}
}

@media (max-width: 640px) {
	.rpm-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rpm-gallery__thumb {
		width: 56px;
		height: 56px;
	}
}
