/* Hadayek Real Estate - Main Mobile-First RTL Stylesheet */
:root {
	--primary: #0f5132;
	--primary-dark: #0a3622;
	--primary-light: #ecfdf5;
	--accent: #d97706;
	--accent-hover: #b45309;
	--wa: #16a34a;
	--wa-hover: #15803d;
	--bg: #f8fafc;
	--surface: #ffffff;
	--text: #0f172a;
	--muted: #64748b;
	--border: #e2e8f0;
	--radius: 14px;
	--shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Cairo', system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.hre-container {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Buttons */
.hre-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	text-align: center;
}
.hre-btn-primary { background: var(--primary); color: #fff; }
.hre-btn-primary:hover { background: var(--primary-dark); }
.hre-btn-accent { background: var(--accent); color: #fff; }
.hre-btn-accent:hover { background: var(--accent-hover); }
.hre-btn-whatsapp { background: var(--wa); color: #fff; }
.hre-btn-whatsapp:hover { background: var(--wa-hover); }
.hre-btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.hre-btn-outline:hover { background: var(--primary-light); }
.hre-btn-block { width: 100%; }
.hre-btn-lg { padding: 13px 24px; font-size: 16px; }

/* Header */
.hre-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 90;
}
.hre-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 16px;
}
.hre-logo-text {
	display: flex;
	align-items: center;
	gap: 10px;
}
.hre-logo-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--primary-light);
	display: grid;
	place-items: center;
	font-size: 22px;
}
.hre-logo-text strong { display: block; font-size: 17px; color: var(--primary); line-height: 1.2; }
.hre-logo-text small { display: block; font-size: 12px; color: var(--muted); }

.hre-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 22px;
}
.hre-nav-list a { font-weight: 600; font-size: 15px; color: var(--text); }
.hre-nav-list a:hover { color: var(--primary); }

.hre-header-actions { display: flex; align-items: center; gap: 10px; }
.hre-mobile-toggle {
	display: none;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 20px;
	cursor: pointer;
}

/* Hero & Search Bar */
.hre-hero {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
	color: #fff;
	padding: 48px 0 56px;
}
.hre-hero-content { max-width: 780px; margin-bottom: 28px; }
.hre-hero-eyebrow {
	display: inline-block;
	background: rgba(255,255,255,0.14);
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
}
.hre-hero h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 36px); line-height: 1.3; }
.hre-hero p { margin: 0; color: #e2e8f0; font-size: 15px; }

.hre-search-box {
	background: var(--surface);
	color: var(--text);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.hre-status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hre-tab-pill {
	cursor: pointer;
	padding: 6px 14px;
	border-radius: 99px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 13px;
	font-weight: 700;
}
.hre-tab-pill input { display: none; }
.hre-tab-pill.active, .hre-tab-pill:has(input:checked) {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

.hre-search-main-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr) 150px;
	gap: 12px;
	align-items: end;
}
.hre-field { display: flex; flex-direction: column; gap: 4px; }
.hre-field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hre-field input, .hre-field select {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
}
.hre-search-submit-wrap .hre-btn { height: 44px; }

.hre-advanced-toggle-row { margin-top: 10px; }
.hre-link-btn {
	background: none;
	border: none;
	color: var(--primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}
.hre-advanced-fields {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	align-items: end;
}
.hre-checkbox-field label {
	flex-direction: row;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	font-size: 13px;
	color: var(--text);
	cursor: pointer;
}
.hre-checkbox-field input { width: 18px; height: 18px; }

/* Sections & Locations Grid */
.hre-section { padding: 48px 0; }
.hre-section-alt { background: #f1f5f9; }
.hre-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.hre-section-head h2 { margin: 0 0 4px; font-size: 23px; }
.hre-section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.hre-link-arrow { font-weight: 700; color: var(--primary); font-size: 14px; }

.hre-locations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 14px;
}
.hre-loc-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.hre-loc-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.hre-loc-icon {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--primary-light);
	display: grid;
	place-items: center;
	font-size: 22px;
	flex-shrink: 0;
}
.hre-loc-card h3 { margin: 0 0 2px; font-size: 16px; }
.hre-loc-card span { font-size: 13px; color: var(--muted); }

/* Property Cards Grid */
.hre-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 20px;
}
.hre-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.hre-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #e2e8f0;
	overflow: hidden;
}
.hre-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hre-card:hover .hre-card-media img { transform: scale(1.04); }
.hre-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 32px;
}
.hre-card-placeholder small { font-size: 13px; margin-top: 4px; }

.hre-card-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 6px;
}
.hre-badge {
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
}
.hre-badge-primary { background: var(--primary); color: #fff; }
.hre-badge-gold { background: var(--accent); color: #fff; }
.hre-badge-neutral { background: #e2e8f0; color: var(--text); }

.hre-card-code {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	direction: ltr;
}

.hre-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.hre-card-location { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.hre-card-title { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.hre-card-title a:hover { color: var(--primary); }
.hre-card-price { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.hre-card-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	color: #334155;
	background: var(--bg);
	padding: 8px 10px;
	border-radius: 8px;
	margin-bottom: 14px;
}
.hre-card-actions {
	margin-top: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* CTA Banner */
.hre-cta-banner {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
	border-radius: 18px;
	padding: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.hre-cta-banner h2 { margin: 0 0 6px; font-size: 22px; }
.hre-cta-banner p { margin: 0; color: #cbd5e1; max-width: 640px; }

/* Archive & Taxonomy Pages */
.hre-archive-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 28px 0 32px;
}
.hre-archive-header h1 { margin: 0 0 8px; font-size: 26px; }
.hre-tax-desc { color: var(--muted); margin: 0 0 14px; max-width: 820px; }
.hre-market-indicator {
	display: inline-block;
	background: var(--primary-light);
	border: 1px solid #a7f3d0;
	color: var(--primary-dark);
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 18px;
}
.hre-market-indicator span { font-weight: 800; }

.hre-archive-body { padding: 28px 16px 56px; }
.hre-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.hre-sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hre-sort-wrap select { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); font-family: inherit; }

.hre-loader {
	text-align: center;
	padding: 14px;
	background: var(--primary-light);
	color: var(--primary);
	font-weight: 700;
	border-radius: 10px;
	margin-bottom: 16px;
}

.hre-empty-state {
	grid-column: 1 / -1;
	background: var(--surface);
	border: 1px dashed #cbd5e1;
	border-radius: var(--radius);
	padding: 36px 20px;
	text-align: center;
}

/* Pagination */
.hre-pagination { margin-top: 32px; }
.hre-pagination ul.page-numbers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.hre-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	font-weight: 700;
}
.hre-pagination .page-numbers.current {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

/* Single Property */
.hre-single-main { padding: 24px 0 72px; }
.hre-breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hre-breadcrumbs a:hover { color: var(--primary); }

.hre-single-layout {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 24px;
	align-items: start;
}
.hre-single-top-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.hre-code-pill { font-size: 13px; background: #fff; border: 1px solid var(--border); padding: 2px 10px; border-radius: 6px; }
.hre-single-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); line-height: 1.35; }
.hre-single-meta-row { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.hre-gallery-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px;
	margin-bottom: 20px;
}
.hre-gallery-main {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: #0f172a;
}
.hre-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.hre-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.hre-thumb-btn {
	width: 76px;
	height: 58px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
}
.hre-thumb-btn.active { border-color: var(--primary); }
.hre-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.hre-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 20px;
}
.hre-box h2 { margin: 0 0 14px; font-size: 19px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.hre-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.hre-spec-item {
	background: var(--bg);
	padding: 12px;
	border-radius: 10px;
}
.hre-spec-label { display: block; font-size: 12px; color: var(--muted); }
.hre-spec-item strong { font-size: 15px; color: var(--text); }

.hre-features-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}
.hre-features-list li {
	background: var(--primary-light);
	color: var(--primary-dark);
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}

.hre-contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	position: sticky;
	top: 90px;
}
.hre-price-box {
	background: var(--primary-light);
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 16px;
}
.hre-price-label { font-size: 13px; color: var(--primary-dark); font-weight: 700; }
.hre-price-value { font-size: 24px; font-weight: 800; color: var(--primary); }
.hre-sqm-note { display: block; font-size: 12px; color: #334155; margin-top: 2px; }

.hre-advertiser-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.hre-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bg);
	display: grid;
	place-items: center;
	font-size: 22px;
}
.hre-advertiser-info strong { display: block; font-size: 16px; }
.hre-advertiser-info span { font-size: 13px; color: var(--muted); }

.hre-contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.hre-safety-tip {
	margin-top: 16px;
	padding: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	font-size: 12px;
	color: #92400e;
}
.hre-safety-tip strong { display: block; margin-bottom: 2px; }

.hre-similar-section { margin-top: 40px; }
.hre-similar-section h2 { margin-bottom: 18px; }

/* Sticky Mobile CTA */
.hre-sticky-cta {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 10px 14px;
	gap: 10px;
	z-index: 95;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.hre-sticky-cta .hre-btn { flex: 1; padding: 12px; font-size: 15px; }

/* Footer */
.hre-footer {
	background: #0f172a;
	color: #cbd5e1;
	padding-top: 48px;
}
.hre-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 36px;
}
.hre-footer-title { color: #fff; margin: 0 0 10px; font-size: 20px; }
.hre-footer-subtitle { color: #fff; margin: 0 0 12px; font-size: 16px; }
.hre-footer-desc { font-size: 14px; margin: 0; }
.hre-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hre-footer-links a:hover { color: #fff; }
.hre-footer-bottom {
	border-top: 1px solid #1e293b;
	padding: 16px 0;
	text-align: center;
	font-size: 13px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
	.hre-search-main-row { grid-template-columns: 1fr 1fr; }
	.hre-search-submit-wrap { grid-column: 1 / -1; }
	.hre-single-layout { grid-template-columns: 1fr; }
	.hre-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.hre-mobile-toggle { display: block; }
	.hre-nav {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		padding: 16px;
	}
	.hre-nav.open { display: block; }
	.hre-nav-list { flex-direction: column; align-items: stretch; gap: 12px; }
	.hre-search-main-row { grid-template-columns: 1fr; }
	.hre-sticky-cta { display: flex; }
}
