/* ═══════════════════════════════════════
   RaviElson Apartments — Frontend CSS
   ═══════════════════════════════════════ */
.site-content:has(.reapt-detail-layout) {
	background-color: #fff;
}

/* ─── Search Form ─── */
.reapt-search-wrapper {
	font-family: "Poppins", sans-serif;
}

.reapt-search-form {
	background: #fff;
	border: 1px solid #E8E0D8;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
}

.reapt-form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.reapt-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #172C57;
	margin-bottom: 6px;
}

.reapt-field input,
.reapt-field select {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #D4C5B5;
	border-radius: 4px;
	font-size: 14px;
	font-family: "Poppins", sans-serif;
	background: #fff;
	color: #333;
	box-sizing: border-box;
}

.reapt-field input:focus,
.reapt-field select:focus {
	border-color: #54717B;
	outline: none;
}

.reapt-form-actions {
	display: flex;
	gap: 15px;
}

.reapt-btn-clear {
	flex: 1;
	padding: 14px;
	background: #fff;
	border: 2px solid #D0D0D0;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	color: #54717B;
	cursor: pointer;
	font-family: "Poppins", sans-serif;
	transition: all 0.2s;
}

.reapt-btn-clear:hover {
	background: #F8F5F2;
}

.reapt-btn-search {
	flex: 2;
	padding: 14px;
	background: #54717B;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	font-family: "Poppins", sans-serif;
	transition: all 0.2s;
}

.reapt-btn-search:hover {
	background: #3d5a63;
}

/* ─── Results Bar ─── */
.reapt-results-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 15px;
}

.reapt-results-count {
	font-size: 16px;
	color: #172C57;
}

.reapt-results-controls {
	flex-wrap: wrap;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #54717B;
}

.reapt-view-btn {
	background: none;
	border: 2px solid #D4C5B5;
	border-radius: 4px;
	padding: 6px 8px;
	cursor: pointer;
	color: #999;
	transition: all 0.2s;
	line-height: 1;
}

.reapt-view-btn.active {
	background: #54717B;
	border-color: #54717B;
	color: #fff;
}

.reapt-sort-label select {
	padding: 6px 10px;
	border: 2px solid #D4C5B5;
	border-radius: 4px;
	font-size: 14px;
	font-family: "Poppins", sans-serif;
	margin-left: 5px;
}

/* ─── Loading ─── */
.reapt-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s;
}

.reapt-no-results {
	text-align: center;
	padding: 40px 20px;
	font-size: 16px;
	color: #999;
}

/* ─── List View ─── */
.reapt-list-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}

.reapt-list-table thead th {
	text-align: left;
	padding: 16px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #162B3B;
	background: #F5F5F5;
	text-transform: uppercase;
	border: none;
}

.reapt-sortable {
	cursor: pointer;
	position: relative;
	transition: background 0.2s;
}

.reapt-sortable:hover {
	background: #ECECEC !important;
}

.reapt-sortable::after {
	content: "↕";
	margin-left: 8px;
	font-size: 12px;
	color: #999;
	opacity: 0.5;
}

.reapt-sortable.sorted-asc::after {
	content: "↑";
	color: #54717B;
	opacity: 1;
}

.reapt-sortable.sorted-desc::after {
	content: "↓";
	color: #54717B;
	opacity: 1;
}

.reapt-list-table tbody tr {
	border-bottom: 1px solid #F0EAE3;
	transition: background 0.15s;
}

.reapt-list-table tbody tr:last-child {
	border-bottom: none;
}

.reapt-list-table tbody tr:hover {
	background: #FAFAF8;
}

.reapt-list-table tbody td {
	padding: 16px 20px;
	vertical-align: middle;
	color: #172C57;
	border: none;
}

.reapt-cell-plan {
	text-align: center;
}

.reapt-cell-plan img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	/* border: 1px solid #eee; */
	/* User didn't ask for border here but on single page they said "border radius 8px border 1px solid E8DCCA" for main image. For list thumbnail maybe keep clean? */
	background: transparent;
}

.reapt-link-history {
	color: #54717B;
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
}

.reapt-link-history:hover {
	text-decoration: underline;
}

.reapt-btn-detail {
	display: inline-block;
	padding: 10px 20px;
	background: #BFAE90;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}

.reapt-btn-detail--pdf {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.reapt-btn-detail__icon {
	display: inline-flex;
	align-items: center;
}

.reapt-btn-detail__icon svg {
	width: 22px;
	height: 22px;
}

.reapt-btn-detail:hover {
	background: #3d5a63;
	color: #fff;
}

/* ─── Grid View ─── */
.reapt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ─── Featured Slider/Grid ─── */
.reapt-featured {
	position: relative;
}

.reapt-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.reapt-featured--slider .reapt-featured__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.reapt-featured--slider .reapt-featured__track::-webkit-scrollbar {
	display: none;
}

.reapt-featured--slider .reapt-card {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
}

.reapt-featured__nav {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 14px;
}

.reapt-featured .ravielson-features__arrow {
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	border: 1px solid rgba(84, 113, 123, 0.45);
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: all 0.3s ease;
}

.reapt-featured .ravielson-features__arrow:hover {
	background: #54717b5f;
}

.reapt-featured .ravielson-features__arrow svg {
	width: 18px;
	height: 18px;
	stroke: #54717B;
}

.reapt-featured .ravielson-features__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.reapt-card {
	border: 1px solid #E8E0D8;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.reapt-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.reapt-card-header {
	padding: 15px;
	border-bottom: 1px solid #F0EAE3;
}

.reapt-card-info {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.reapt-card-info span {
	font-size: 12px;
	color: #54717B;
}

.reapt-card-info span small {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
}

.reapt-card-info span strong {
	color: #172C57;
	font-size: 14px;
}

.reapt-card-image {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	background: #fff;
}

.reapt-card-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.reapt-card-no-image {
	color: #ccc;
	font-size: 14px;
}

.reapt-card-footer {
	padding: 15px;
	border-top: 1px solid #F0EAE3;
}

.reapt-card-price {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}

.reapt-card-price small {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
}

.reapt-card-price strong {
	font-size: 16px;
	color: #172C57;
}

.reapt-card-actions {
	display: flex;
	gap: 10px;
}

/* ─── Grid View Button Styles ─── */
.reapt-btn-inquiry {
	flex: 1;
	text-align: center;
	padding: 10px;
	background: #54717B;
	color: #fff;
	border: none;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.reapt-btn-inquiry:hover {
	background: #3d5a63;
	color: #fff;
}

.reapt-card-actions .reapt-btn-detail {
	background: #E8DCCA;
	color: #171717;
	border: none;
	flex: 1;
	display: grid;
	place-content: center;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.reapt-card-actions .reapt-btn-detail:hover {
	background: #dcc0a8;
	color: #171717;
}

/* ─── Status Badges ─── */
.reapt-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 3px;
	white-space: nowrap;
}

.reapt-badge-green {
	background: #e6f5ea;
	color: #1d8348;
}

.reapt-badge-orange {
	background: #fef5e7;
	color: #d68910;
}

.reapt-badge-red {
	background: #fdedec;
	color: #c0392b;
}

/* ─── Pagination ─── */
.reapt-pagination {
	margin-top: 30px;
}

.reapt-pagination-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.reapt-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	gap: 5px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #D4C5B5;
	background-color: #fff;
	border-radius: 4px;
	color: #172C57;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
}

.reapt-page-link:hover {
	background: #F8F5F2;
	color: #172C57;
}

.reapt-page-link.active {
	background: #54717B;
	border-color: #54717B;
	color: #fff;
}

.reapt-muted {
	color: #999;
}

/* ─── Detail Page ─── */
.reapt-detail {
	font-family: "Poppins", sans-serif;
}

.reapt-detail-header {
	margin: 30px 0;
}

.reapt-detail-header h1 {
	font-size: 28px;
	font-weight: 700;
	color: #172C57;
	margin: 0;
}

.reapt-detail-layout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 60px;
	margin-bottom: 40px;
}

.reapt-detail-image-container {
	position: relative;
	text-align: center;
}

.reapt-detail-image {
	overflow: hidden;
	/* For zoom effect */
	cursor: zoom-in;
	background: #fff;
	/* border-radius: 8px; border: 1px solid #E8DCCA; -> This was user request earlier, keeping it? */
	/* Re-adding border per user's earlier comment "border radius 8px border 1px solid E8DCCA" */
	border: 1px solid #E8DCCA;
	border-radius: 8px;
}

.reapt-detail-image img {
	width: 100%;
	height: auto;
	transition: transform 0.1s ease-out;
	/* Faster transition for smoother tracking */
	display: block;
	transform-origin: center center;
}

.reapt-detail-image:hover img {
	transform: scale(2.5);
	/* Much larger zoom */
	cursor: zoom-in;
}

.reapt-detail-actions {
	margin-top: 15px;
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	align-items: center;
	/* PDF button left aligned */
}

.reapt-detail-share {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.reapt-detail-share__label {
	font-size: 12px;
	/* font-weight: 600; */
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #54717B;
}

.reapt-detail-share__link {
	color: #CCCCCC;
	display: grid;
	border-radius: 9999px;
	place-items: center;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reapt-detail-share__link svg {
	width: 28px;
	height: 28px;
}

.reapt-detail-share__link:hover {
	background: #E8DCCA;
	color: #162B3B;
	border-color: #E8DCCA;
}

.reapt-detail-info-row {
	display: flex;
	justify-content: space-between;
	padding: 15px 0;
	border-bottom: 1px solid #E8E0D8;
	font-size: 15px;
	color: #172C57;
}

.reapt-detail-info-row:first-child {
	border-top: 1px solid #E8E0D8;
}

.reapt-detail-label {
	font-weight: 400;
	color: #54717B;
}

.reapt-detail-value {
	font-weight: 600;
	text-align: right;
}

.reapt-detail-cta {
	display: flex;
	gap: 15px;
	margin-top: 40px;
	justify-content: flex-end;
	/* Buttons right aligned */
}

.reapt-detail-cta a {
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s;
}

.reapt-detail-cta .reapt-cta-outline {
	border: 2px solid #162B3B;
	color: #162B3B;
	background: #fff;
}

.reapt-detail-cta .reapt-cta-outline:hover {
	background: #162B3B;
	color: #fff;
}

.reapt-detail-cta .reapt-cta-primary {
	background: #db5c4c;
	border: 2px solid #db5c4c;
	color: #fff;
}

.reapt-detail-cta .reapt-cta-primary:hover {
	background: #c94b3c;
}

/* Similar apartments */
.reapt-similar {
	max-width: 100%;
	margin: 40px 0;
	padding: 0;
}

.reapt-similar .reapt-grid {
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
}

/* Editor content area */
.reapt-detail-editor-content {
	margin-top: 40px;
}

/* ─── Modal ─── */
.reapt-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}

.reapt-modal.active {
	display: flex;
}

.reapt-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.reapt-detail-floor-plan {
	text-align: end;
}

/* Breaking out of the container for Hero Section */
/* We target the Astra theme container specifically on our single post type */
.single-ravielson_apartment #content>.ast-container {
	display: block !important;
	max-width: 100% !important;
	padding: 0 !important;
	width: 100% !important;
}

.reapt-hero-breakout {
	width: 100%;
}

/* Fix for potential double scrollbars if hero is too wide */
body.single-ravielson_apartment {
	overflow-x: hidden;
}

.reapt-modal-container {
	position: relative;
	background: #fff;
	padding: 20px;
	max-width: 90%;
	max-height: 90%;
	overflow: auto;
	border-radius: 8px;
	z-index: 100000;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.reapt-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.reapt-modal-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
	.reapt-form-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.reapt-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.reapt-featured__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.reapt-featured--slider .reapt-card {
		flex-basis: calc((100% - 20px) / 2);
	}

	.reapt-similar .reapt-grid {
		grid-template-columns: 1fr;
	}

	.reapt-detail-layout {
		grid-template-columns: 1fr;
	}

	.reapt-list-table {
		display: block;
		width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 600px) {
	.reapt-form-grid {
		grid-template-columns: 1fr;
	}

	.reapt-grid {
		grid-template-columns: 1fr;
	}

	.reapt-featured__grid {
		grid-template-columns: 1fr;
	}

	.reapt-featured--slider .reapt-card {
		flex-basis: 100%;
	}

	.reapt-results-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.reapt-list-table {
		font-size: 12px;
	}

	.reapt-list-table thead th {
		font-size: 10px;
	}

	.reapt-form-actions {
		flex-direction: column;
	}

	.reapt-card-actions {
		flex-direction: column;
	}

	.reapt-detail-cta {
		flex-direction: column;
	}
}