/*!
 * RealEstate Pro - Main Stylesheet
 * Hand-written, zero framework, performance-first.
 */

/* =====================================================================
 *  0. FONTS — Cairo (Arabic + Latin combined)
 * =================================================================== */
@font-face {
	font-family: 'Cairo';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Cairo-400.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Cairo';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Cairo-700.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: 'Cairo';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Cairo-Latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Cairo';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Cairo-Latin-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
 *  1. RESET + BASE
 * =================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rep-text);
	background: var(--rep-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
/* SVGs: inline by default (for icons); only block when standalone */
svg { max-width: 100%; height: auto; }
svg:not([class]) { display: block; }
img { border-style: none; }

a {
	color: var(--rep-primary);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover { color: var(--rep-primary-dark); }

button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rep-dark);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding: 0 1.5em; }

input, select, textarea { font: inherit; color: inherit; }
input:focus, select:focus, textarea:focus, button:focus {
	outline: 2px solid var(--rep-primary);
	outline-offset: 2px;
}

/* =====================================================================
 *  2. DESIGN TOKENS (CSS variables — colors set dynamically)
 * =================================================================== */
:root {
	/* Colors — matching aqarpocket (override with theme options) */
	--rep-primary: #1E4164;
	--rep-primary-dark: #153352;
	--rep-primary-light: #2b5a8a;
	--rep-secondary: #7DCBC1;
	--rep-secondary-light: #a8ded7;
	--rep-dark: #1E293B;
	--rep-text: #1E4164;
	--rep-text-muted: #64748B;
	--rep-bg: #ffffff;
	--rep-bg-alt: #F8FAFC;
	--rep-border: #E2E8F0;
	--rep-border-light: #F1F5F9;

	/* Spacing scale */
	--rep-gap-xs: .25rem;
	--rep-gap-sm: .5rem;
	--rep-gap: 1rem;
	--rep-gap-md: 1.5rem;
	--rep-gap-lg: 2rem;
	--rep-gap-xl: 3rem;
	--rep-gap-2xl: 4rem;

	/* Radius */
	--rep-radius-sm: 4px;
	--rep-radius: 8px;
	--rep-radius-lg: 16px;
	--rep-radius-full: 9999px;

	/* Shadows */
	--rep-shadow-sm: 0 1px 2px rgba(0,0,0,.04);
	--rep-shadow: 0 2px 8px rgba(0,0,0,.06);
	--rep-shadow-md: 0 4px 14px rgba(0,0,0,.08);
	--rep-shadow-lg: 0 12px 30px rgba(0,0,0,.12);

	/* Container */
	--rep-container: 1200px;

	/* Transitions */
	--rep-transition: .2s ease;
}

/* =====================================================================
 *  3. LAYOUT — Container + Grid
 * =================================================================== */
.rep-container {
	width: 100%;
	max-width: var(--rep-container);
	margin: 0 auto;
	padding: 0 var(--rep-gap);
	box-sizing: border-box;
}

/* Main content wrapper */
.rep-main {
	width: 100%;
	max-width: 100%;
}

.rep-section { padding: var(--rep-gap-xl) 0; }
.rep-section--alt { background: var(--rep-bg-alt); }

.rep-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rep-gap);
	margin-bottom: var(--rep-gap-lg);
	flex-wrap: wrap;
}
.rep-section__title {
	font-size: 1.75rem;
	margin: 0;
	position: relative;
	padding-inline-start: 1rem;
}
.rep-section__title::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 70%;
	background: var(--rep-primary);
	border-radius: var(--rep-radius-full);
}
.rep-section__more {
	color: var(--rep-primary);
	font-weight: 600;
	font-size: .95rem;
}
.rep-section__more:hover { text-decoration: underline; }

/* Grid System (custom) */
.rep-grid {
	display: grid;
	gap: var(--rep-gap-md);
}
.rep-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rep-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rep-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rep-grid--circles { gap: var(--rep-gap-md); }
.rep-grid--devs { grid-template-columns: repeat(6, 1fr); gap: var(--rep-gap); }

@media (max-width: 1024px) {
	.rep-grid--4 { grid-template-columns: repeat(3, 1fr); }
	.rep-grid--devs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
	.rep-grid--2,
	.rep-grid--3,
	.rep-grid--4 { grid-template-columns: 1fr; }
	.rep-grid--devs { grid-template-columns: repeat(3, 1fr); }
	.rep-section__title { font-size: 1.35rem; }
}

/* =====================================================================
 *  4. BUTTONS
 * =================================================================== */
.rep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.25rem;
	border-radius: var(--rep-radius);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1;
	text-decoration: none;
	transition: all var(--rep-transition);
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}
.rep-btn--primary {
	background: var(--rep-primary);
	color: #fff;
}
.rep-btn--primary:hover {
	background: var(--rep-primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--rep-shadow-md);
}
.rep-btn--outline {
	background: transparent;
	color: var(--rep-primary);
	border-color: var(--rep-primary);
}
.rep-btn--outline:hover {
	background: var(--rep-primary);
	color: #fff;
}
.rep-btn svg { width: 1.1em; height: 1.1em; }

/* =====================================================================
 *  5. HEADER
 * =================================================================== */
.rep-header {
	background: #fff;
	border-bottom: 1px solid var(--rep-border-light);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--rep-shadow-sm);
	width: 100%;
	max-width: 100%;
}
.rep-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rep-gap);
	min-height: 72px;
}
.rep-header__logo { flex-shrink: 0; }
.rep-header__logo-img { max-height: 48px; width: auto; }
.rep-header__logo-text { font-weight: 800; font-size: 1.3rem; color: var(--rep-primary); }

.rep-header__nav { flex: 1; }
.rep-header__menu {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.rep-header__menu li { position: relative; }
.rep-header__menu a {
	display: block;
	padding: .5rem .25rem;
	color: var(--rep-dark);
	font-weight: 600;
	font-size: .95rem;
	transition: color var(--rep-transition);
}
.rep-header__menu a:hover,
.rep-header__menu .current-menu-item > a { color: var(--rep-primary); }

/* Dropdown submenu */
.rep-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: var(--rep-shadow-lg);
	border-radius: var(--rep-radius);
	padding: .5rem;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--rep-transition);
	z-index: 99;
}
.rep-header__menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rep-header__menu .sub-menu a { padding: .5rem .75rem; border-radius: var(--rep-radius-sm); }
.rep-header__menu .sub-menu a:hover { background: var(--rep-secondary); }

.rep-header__side {
	display: flex;
	align-items: center;
	gap: var(--rep-gap);
}
.rep-header__cta {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .6rem 1rem;
	background: var(--rep-primary);
	color: #fff;
	border-radius: var(--rep-radius);
	font-weight: 600;
	font-size: .9rem;
	transition: all var(--rep-transition);
}
.rep-header__cta:hover { background: var(--rep-primary-dark); color: #fff; }
.rep-header__cta svg { width: 16px; height: 16px; }

.rep-header__burger {
	display: none;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.rep-header__burger span {
	width: 22px;
	height: 2px;
	background: var(--rep-dark);
	border-radius: 2px;
	transition: all var(--rep-transition);
}
.rep-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rep-header__burger.is-open span:nth-child(2) { opacity: 0; }
.rep-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switcher */
.rep-lang-switcher {
	display: flex;
	gap: .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .85rem;
}
.rep-lang-switcher__item a {
	padding: .3rem .6rem;
	border-radius: var(--rep-radius-sm);
	color: var(--rep-dark);
	font-weight: 600;
	text-transform: uppercase;
}
.rep-lang-switcher__item.is-active a { background: var(--rep-secondary); color: var(--rep-primary); }

/* Mobile */
@media (max-width: 960px) {
	.rep-header__burger { display: inline-flex; }
	.rep-header__nav {
		position: fixed;
		top: 72px;
		inset-inline-end: -100%;
		width: 80%;
		max-width: 320px;
		height: calc(100vh - 72px);
		background: #fff;
		box-shadow: var(--rep-shadow-lg);
		padding: var(--rep-gap-lg);
		transition: inset-inline-end var(--rep-transition);
		overflow-y: auto;
		z-index: 99;
	}
	.rep-header__nav.is-open { inset-inline-end: 0; }
	.rep-header__menu { flex-direction: column; gap: 0; }
	.rep-header__menu li { border-bottom: 1px solid var(--rep-border-light); }
	.rep-header__menu a { padding: 1rem 0; }
	.rep-header__menu .sub-menu {
		position: static;
		box-shadow: none;
		padding: 0 0 0 1rem;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.rep-header__cta span { display: none; }
}

/* =====================================================================
 *  6. HERO (Homepage)
 * =================================================================== */
.rep-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.rep-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.rep-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rep-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 100%);
	z-index: 2;
}
.rep-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: var(--rep-gap-xl) var(--rep-gap);
	text-align: center;
}
.rep-hero__title {
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	margin: 0 0 2rem;
	text-shadow: 0 2px 10px rgba(0,0,0,.3);
	max-width: 900px;
	margin-inline: auto;
}

/* =====================================================================
 *  7. SEARCH FORM — Professional Redesign
 * =================================================================== */
.rep-search {
	max-width: 960px;
	margin: 0 auto;
	overflow: visible;
}

/* --- Tabs --- */
.rep-search__tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.rep-search__tabs::-webkit-scrollbar { display: none; }
.rep-search__tab {
	padding: .75rem 1.6rem;
	cursor: pointer;
	font-weight: 700;
	font-size: .9rem;
	color: rgba(255,255,255,.7);
	background: rgba(255,255,255,.12);
	border-radius: var(--rep-radius) var(--rep-radius) 0 0;
	white-space: nowrap;
	transition: all var(--rep-transition);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.rep-search__tab:hover {
	color: #fff;
	background: rgba(255,255,255,.22);
}
.rep-search__tab.is-active {
	color: #fff;
	background: var(--rep-primary);
}

/* --- Panels --- */
.rep-search__panel { display: none; }
.rep-search__panel.is-active { display: block; }

/* --- The Search Bar (single row) --- */
.rep-search__bar {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 0 0 var(--rep-radius-lg) var(--rep-radius-lg);
	box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
	overflow: hidden;
	min-height: 56px;
}

/* When it's the first tab (active tab is first child), round top-right (RTL: top-left) */
.rep-search__tab.is-active:first-child + .rep-search__tab ~ .rep-search__tab,
.rep-search__tab.is-active:first-child {
	/* handled by border-radius on .rep-search__bar */
}

/* --- Bar Fields --- */
.rep-search__bar-field {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}
.rep-search__bar-field--text {
	flex: 1.4;
}
.rep-search__bar-field input,
.rep-search__bar-field select {
	width: 100%;
	height: 100%;
	padding: 0 1.25rem;
	border: none;
	background: transparent;
	font-size: .95rem;
	font-weight: 500;
	color: var(--rep-dark, #2C3339);
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.rep-search__bar-field input::placeholder {
	color: #9ca3af;
	font-weight: 400;
}
.rep-search__bar-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

/* --- Divider between fields --- */
.rep-search__bar-divider {
	width: 1px;
	align-self: center;
	height: 28px;
	background: #e5e7eb;
	flex-shrink: 0;
}

/* --- Search Button --- */
.rep-search__bar-btn {
	width: 56px;
	min-width: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rep-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background var(--rep-transition);
	flex-shrink: 0;
}
.rep-search__bar-btn:hover {
	background: var(--rep-primary);
}
.rep-search__bar-btn-icon {
	width: 20px;
	height: 20px;
}

/* Legacy classes (kept for backward compat, no longer rendered) */
.rep-search__btn { display: none; }
.rep-search__row { display: none; }

/* =====================================================================
 *  8. CARDS
 * =================================================================== */
.rep-card {
	background: #fff;
	border-radius: var(--rep-radius-lg);
	overflow: hidden;
	box-shadow: var(--rep-shadow);
	transition: transform var(--rep-transition), box-shadow var(--rep-transition);
	height: 100%;
}
.rep-card:hover { transform: translateY(-4px); box-shadow: var(--rep-shadow-lg); }
.rep-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}
.rep-card__thumb {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--rep-bg-alt);
}
.rep-card__thumb--square { aspect-ratio: 1 / 1; }
.rep-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.rep-card:hover .rep-card__thumb img { transform: scale(1.05); }
.rep-card__badge {
	position: absolute;
	bottom: 12px;
	inset-inline-start: 12px;
	background: var(--rep-primary);
	color: #fff;
	padding: .3rem .7rem;
	border-radius: var(--rep-radius-full);
	font-weight: 700;
	font-size: .85rem;
}
.rep-card__body { padding: var(--rep-gap); }
.rep-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 .5rem;
	color: var(--rep-dark);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rep-card__sub { display: block; color: var(--rep-text-muted); font-size: .85rem; margin-bottom: .5rem; }
.rep-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	font-size: .85rem;
	color: var(--rep-text-muted);
}
.rep-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}
.rep-card__meta-item svg {
	width: 14px;
	height: 14px;
	color: var(--rep-primary);
}
.rep-card__date { font-size: .8rem; color: var(--rep-text-muted); display: block; margin-bottom: .4rem; }
.rep-card__excerpt { font-size: .9rem; color: var(--rep-text-muted); margin-bottom: .6rem; line-height: 1.5; }
.rep-card__readmore { color: var(--rep-primary); font-weight: 600; font-size: .9rem; }

/* =====================================================================
 *  9. CIRCLE CARDS (Home: projects, cities)
 * =================================================================== */
.rep-circle-card {
	display: flex;
	align-items: center;
	gap: var(--rep-gap);
	padding: var(--rep-gap);
	background: #fff;
	border-radius: var(--rep-radius-lg);
	box-shadow: var(--rep-shadow);
	color: inherit;
	text-decoration: none;
	transition: all var(--rep-transition);
}
.rep-circle-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rep-shadow-md);
	color: inherit;
}
.rep-circle-card__thumb {
	flex-shrink: 0;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rep-bg-alt);
	border: 3px solid var(--rep-secondary);
}
.rep-circle-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rep-circle-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .2rem;
}
.rep-circle-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--rep-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rep-circle-card__meta {
	font-size: .8rem;
	color: var(--rep-text-muted);
}

/* =====================================================================
 *  10. DEVELOPER CARD + SLIDER
 * =================================================================== */
.rep-dev-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	padding: var(--rep-gap);
	text-align: center;
	color: inherit;
	text-decoration: none;
	border-radius: var(--rep-radius);
	transition: all var(--rep-transition);
}
.rep-dev-card:hover { background: var(--rep-bg-alt); color: var(--rep-primary); }
.rep-dev-card__thumb {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--rep-border-light);
	padding: .5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rep-dev-card__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.rep-dev-card__name {
	font-size: .85rem;
	font-weight: 600;
	color: var(--rep-dark);
	line-height: 1.3;
}

.rep-dev-slider {
	position: relative;
	padding: 0 40px;
}
.rep-dev-slider__track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: var(--rep-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.rep-dev-slider__track > * { scroll-snap-align: start; }
.rep-dev-slider__prev,
.rep-dev-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--rep-shadow-md);
	font-size: 1.3rem;
	color: var(--rep-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all var(--rep-transition);
}
.rep-dev-slider__prev { inset-inline-start: 0; }
.rep-dev-slider__next { inset-inline-end: 0; }
.rep-dev-slider__prev:hover,
.rep-dev-slider__next:hover { background: var(--rep-primary); color: #fff; }

/* =====================================================================
 *  11. PROJECT TABS (Homepage)
 * =================================================================== */
.rep-projects-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0 0 var(--rep-gap-md);
	padding: 0;
}
.rep-projects-tabs__tab {
	padding: .5rem 1rem;
	border-radius: var(--rep-radius-full);
	cursor: pointer;
	font-weight: 600;
	font-size: .9rem;
	background: var(--rep-secondary);
	color: var(--rep-dark);
	transition: all var(--rep-transition);
}
.rep-projects-tabs__tab:hover {
	background: var(--rep-primary-light);
	color: #fff;
}
.rep-projects-tabs__tab.is-active {
	background: var(--rep-primary);
	color: #fff;
}

/* =====================================================================
 *  12. BREADCRUMBS
 * =================================================================== */
.rep-breadcrumbs {
	font-size: .85rem;
	color: var(--rep-text-muted);
	margin-bottom: var(--rep-gap);
}
.rep-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rep-breadcrumbs li:not(:last-child)::after {
	content: '›';
	margin: 0 .4rem;
	color: var(--rep-text-muted);
}
html[dir="rtl"] .rep-breadcrumbs li:not(:last-child)::after { content: '‹'; }
.rep-breadcrumbs a { color: var(--rep-text-muted); }
.rep-breadcrumbs a:hover { color: var(--rep-primary); }

/* =====================================================================
 *  13. SINGLE PROJECT / UNIT / RESALE
 * =================================================================== */
.rep-single { padding: var(--rep-gap-lg) 0 var(--rep-gap-xl); }
.rep-single__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 .5rem; }
.rep-single__subtitle {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rep-gap);
	margin-bottom: var(--rep-gap-md);
	font-size: .95rem;
	color: var(--rep-text-muted);
}
.rep-single__subtitle-item {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}
.rep-single__subtitle-item svg { width: 16px; height: 16px; color: var(--rep-primary); }
.rep-single__subtitle a { color: var(--rep-dark); font-weight: 600; }
.rep-single__subtitle a:hover { color: var(--rep-primary); }
.rep-single__badge {
	display: inline-block;
	padding: .25rem .7rem;
	border-radius: var(--rep-radius-full);
	font-size: .75rem;
	font-weight: 700;
	background: var(--rep-primary);
	color: #fff;
}
.rep-single__badge--resale { background: #e0872c; }

.rep-single__section-title {
	font-size: 1.4rem;
	margin: 2rem 0 1rem;
	padding-inline-start: .75rem;
	border-inline-start: 4px solid var(--rep-primary);
}

.rep-single__map-embed iframe {
	width: 100%;
	min-height: 380px;
	border: 0;
	border-radius: var(--rep-radius);
}

/* Layout: main (85%) + sidebar (15%)
 * DOM order: main first, sidebar second.
 * RTL is handled automatically by grid + body dir — no column swap needed.
 * The spec: AR sidebar on LEFT, EN sidebar on RIGHT — achieved naturally
 * because in RTL grid flows right→left, so second column lands on the left.
 */
.rep-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: var(--rep-gap-lg);
	margin-top: var(--rep-gap-lg);
	align-items: start;
}
.rep-single__main { min-width: 0; }
.rep-single__sidebar { min-width: 0; }
@media (max-width: 1100px) {
	.rep-single__layout { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 960px) {
	.rep-single__layout { grid-template-columns: 1fr; }
}

/* =====================================================================
 *  14. GALLERY (Single pages)
 * =================================================================== */
.rep-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 8px;
	margin-bottom: var(--rep-gap-lg);
	max-height: 560px;
}
/* When no thumbs exist (only one image), main takes full width */
.rep-gallery:not(:has(.rep-gallery__thumbs)) { grid-template-columns: 1fr; }
.rep-gallery__main {
	width: 800px;
	height: 400px;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--rep-radius);
	background: var(--rep-bg-alt);
}
.rep-gallery__main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}
.rep-gallery__thumbs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.rep-gallery__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--rep-radius);
	cursor: pointer;
	background: var(--rep-bg-alt);
}
.rep-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.rep-gallery__thumb:hover img { transform: scale(1.05); }
.rep-gallery__thumb--more::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 2;
	pointer-events: none;
}
.rep-gallery__more-btn {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.rep-gallery__more-plus { font-size: 2rem; line-height: 1; }
.rep-gallery__more-label { font-size: .85rem; font-weight: 500; }

@media (max-width: 768px) {
	.rep-gallery { grid-template-columns: 1fr; max-height: none; }
	.rep-gallery__main { width: 100%; height: auto; aspect-ratio: 16/10; }
	.rep-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
	.rep-gallery__thumb { aspect-ratio: 1/1; }
}

/* Lightbox */
.rep-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}
.rep-lightbox.is-open { display: flex; }
.rep-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
.rep-lightbox__stage {
	position: relative;
	max-width: 90vw;
	max-height: 85vh;
	z-index: 2;
}
.rep-lightbox__stage img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: var(--rep-radius);
}
.rep-lightbox__close,
.rep-lightbox__prev,
.rep-lightbox__next {
	position: absolute;
	z-index: 3;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	color: #fff;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--rep-transition);
}
.rep-lightbox__close:hover,
.rep-lightbox__prev:hover,
.rep-lightbox__next:hover { background: rgba(255,255,255,.3); }
.rep-lightbox__close { top: 20px; inset-inline-end: 20px; }
.rep-lightbox__prev  { top: 50%; transform: translateY(-50%); inset-inline-start: 20px; }
.rep-lightbox__next  { top: 50%; transform: translateY(-50%); inset-inline-end: 20px; }
.rep-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	background: rgba(0,0,0,.5);
	padding: .4rem 1rem;
	border-radius: var(--rep-radius-full);
	font-size: .9rem;
	z-index: 3;
}

/* =====================================================================
 *  15. INFO BOX (single)
 * =================================================================== */
.rep-info-box {
	background: linear-gradient(135deg, var(--rep-secondary) 0%, #fff 100%);
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius-lg);
	padding: var(--rep-gap);
	margin-bottom: var(--rep-gap);
}
.rep-info-box__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.rep-info-box__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	padding: .6rem .4rem;
	background: #fff;
	border-radius: var(--rep-radius);
	text-align: center;
	box-shadow: var(--rep-shadow-sm);
}
.rep-info-box__icon {
	display: inline-flex;
	width: 30px;
	height: 30px;
	margin: 0 auto .2rem;
	align-items: center;
	justify-content: center;
	background: var(--rep-secondary);
	color: var(--rep-primary);
	border-radius: 50%;
}
.rep-info-box__icon svg { width: 14px; height: 14px; }
.rep-info-box__label { font-size: .65rem; color: var(--rep-text-muted); font-weight: 600; }
.rep-info-box__value { font-size: .75rem; color: var(--rep-dark); font-weight: 700; }
.rep-info-box__item--price .rep-info-box__value { color: var(--rep-primary); font-size: .8rem; }

/* Desktop: slightly bigger but still smaller than before */
@media (min-width: 769px) {
	.rep-info-box { padding: var(--rep-gap); }
	.rep-info-box__grid { gap: var(--rep-gap-sm); }
	.rep-info-box__item { padding: .5rem .4rem; }
	.rep-info-box__icon { width: 28px; height: 28px; }
	.rep-info-box__icon svg { width: 14px; height: 14px; }
	.rep-info-box__label { font-size: .7rem; }
	.rep-info-box__value { font-size: .85rem; }
	.rep-info-box__item--price .rep-info-box__value { font-size: .95rem; }
}

.rep-info-box__cta {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	padding-top: var(--rep-gap);
	border-top: 1px dashed var(--rep-border);
}
.rep-info-box__cta > * { flex: 1 1 140px; }

/* =====================================================================
 *  16. CTA BUTTONS (Shortcode)
 * =================================================================== */
.rep-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: .75rem 0;
}
.rep-cta--compact .rep-cta__btn { padding: .5rem .9rem; font-size: .85rem; }
.rep-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	border-radius: var(--rep-radius);
	font-weight: 700;
	font-size: .95rem;
	color: #fff;
	text-decoration: none;
	transition: all var(--rep-transition);
	flex: 1 1 140px;
	min-height: 44px;
}
.rep-cta__btn--wa { background: #25D366; }
.rep-cta__btn--wa:hover { background: #1fb554; color: #fff; transform: translateY(-1px); }
.rep-cta__btn--call { background: var(--rep-primary); }
.rep-cta__btn--call:hover { background: var(--rep-primary-dark); color: #fff; transform: translateY(-1px); }
.rep-cta__btn--contact { background: var(--rep-dark); }
.rep-cta__btn--contact:hover { background: #000; color: #fff; transform: translateY(-1px); }
.rep-cta__icon { width: 18px; height: 18px; flex-shrink: 0; }
/* Fallback: constrain ANY svg inside CTA buttons */
.rep-cta__btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =====================================================================
 *  17. DETAILS TABLE
 * =================================================================== */
.rep-details__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius);
	overflow: hidden;
	table-layout: fixed;
	word-wrap: break-word;
}
.rep-details__table tr:not(:last-child) { border-bottom: 1px solid var(--rep-border-light); }
.rep-details__table th,
.rep-details__table td {
	padding: .9rem 1rem;
	text-align: start;
	vertical-align: middle;
	font-size: .95rem;
}
.rep-details__table th {
	width: 35%;
	background: var(--rep-bg-alt);
	font-weight: 600;
	color: var(--rep-text-muted);
}
.rep-details__table td { color: var(--rep-dark); font-weight: 500; }

/* =====================================================================
 *  18. UNITS LIST (on project page)
 * =================================================================== */
.rep-units-list__items {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-bottom: var(--rep-gap-lg);
}
.rep-unit-row {
	display: flex;
	align-items: center;
	gap: var(--rep-gap);
	padding: .75rem;
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: all var(--rep-transition);
}
.rep-unit-row:hover {
	border-color: var(--rep-primary);
	box-shadow: var(--rep-shadow);
	color: inherit;
}
.rep-unit-row__thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rep-bg-alt);
	border: 2px solid var(--rep-secondary);
}
.rep-unit-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rep-unit-row__body { min-width: 0; flex: 1; }
.rep-unit-row__title { display: block; font-weight: 700; color: var(--rep-dark); font-size: .95rem; }
.rep-unit-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	font-size: .8rem;
	color: var(--rep-text-muted);
	margin-top: .2rem;
}
.rep-unit-row__price { color: var(--rep-primary); font-weight: 700; }

/* =====================================================================
 *  19. CONTENT EXPAND
 * =================================================================== */
.rep-content-expand__wrap {
	position: relative;
	overflow: hidden;
	max-height: 9em;
	transition: max-height .4s ease;
}
.rep-content-expand.is-open .rep-content-expand__wrap { max-height: none; }
.rep-content-expand__body { line-height: 1.7; }
.rep-content-expand__body p { margin-bottom: 1em; }
.rep-content-expand__fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3em;
	background: linear-gradient(180deg, transparent, #fff);
	pointer-events: none;
}
.rep-content-expand.is-open .rep-content-expand__fade { display: none; }
.rep-content-expand__btn {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin-top: 1.5rem;
	padding: .5rem 1.25rem;
	border: 1px solid var(--rep-primary);
	color: var(--rep-primary);
	border-radius: var(--rep-radius);
	font-weight: 600;
	font-size: .9rem;
	transition: all var(--rep-transition);
	background: #fff;
	cursor: pointer;
	position: relative;
	z-index: 2;
}
.rep-content-expand__btn:hover { background: var(--rep-primary); color: #fff; }

/* =====================================================================
 *  20. SIDEBAR & CONTACT FORM
 * =================================================================== */
.rep-single__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--rep-gap);
}
.rep-contact-box {
	background: #fff;
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius-lg);
	padding: var(--rep-gap-md);
	box-shadow: var(--rep-shadow-sm);
}
.rep-contact-box__title { font-size: 1.15rem; margin: 0 0 .3rem; color: var(--rep-primary); }
.rep-contact-box__intro { font-size: .85rem; color: var(--rep-text-muted); margin-bottom: var(--rep-gap); }

.rep-contact-form {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}
.rep-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.rep-contact-form__label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--rep-dark);
}
.rep-contact-form__label em { color: #e11d48; font-style: normal; }
.rep-contact-form input,
.rep-contact-form textarea {
	padding: .65rem .75rem;
	border: 1px solid var(--rep-border);
	border-radius: var(--rep-radius-sm);
	background: #fff;
	font-size: .9rem;
	transition: border-color var(--rep-transition);
	font-family: inherit;
}
.rep-contact-form input:focus,
.rep-contact-form textarea:focus {
	border-color: var(--rep-primary);
	outline: 0;
}
.rep-contact-form__submit {
	align-self: stretch;
	margin-top: .5rem;
}
.rep-contact-form__response {
	font-size: .85rem;
	padding: .6rem;
	border-radius: var(--rep-radius-sm);
	display: none;
}
.rep-contact-form__response.is-success {
	display: block;
	background: #d1fadf;
	color: #065f46;
	border: 1px solid #6ee7b7;
}
.rep-contact-form__response.is-error {
	display: block;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}
.rep-contact-form__field.is-invalid input,
.rep-contact-form__field.is-invalid textarea {
	border-color: #e11d48;
}

/* =====================================================================
 *  21. POPUP
 * =================================================================== */
.rep-popup {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--rep-gap);
}
.rep-popup.is-open { display: flex; }
.rep-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.7);
	backdrop-filter: blur(3px);
}
.rep-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: var(--rep-radius-lg);
	padding: var(--rep-gap-lg);
	box-shadow: var(--rep-shadow-lg);
	max-height: 90vh;
	overflow-y: auto;
	z-index: 2;
}
.rep-popup__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--rep-bg-alt);
	color: var(--rep-dark);
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.rep-popup__close:hover { background: var(--rep-primary); color: #fff; }
.rep-popup__title { font-size: 1.25rem; margin: 0 0 var(--rep-gap); color: var(--rep-primary); padding-inline-end: 40px; }

/* =====================================================================
 *  22. BANNERS
 * =================================================================== */
.rep-banners {
	display: flex;
	justify-content: center;
	margin: var(--rep-gap) 0;
}
.rep-banner {
	max-width: 100%;
	text-align: center;
}
.rep-banner__img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: var(--rep-radius);
}
.rep-banners--sidebar_top,
.rep-banners--sidebar_bottom { margin: 0; }

/* =====================================================================
 *  23. ARCHIVE / PAGE HEADERS
 * =================================================================== */
.rep-archive__header {
	margin-bottom: var(--rep-gap-lg);
}
.rep-archive__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 .5rem;
}
.rep-archive__intro {
	color: var(--rep-text-muted);
	font-size: 1rem;
	max-width: 800px;
}
.rep-empty {
	padding: var(--rep-gap-xl);
	text-align: center;
	color: var(--rep-text-muted);
	background: var(--rep-bg-alt);
	border-radius: var(--rep-radius);
}

/* Taxonomy header with background image */
.rep-tax-header {
	position: relative;
	padding: var(--rep-gap-xl) 0;
	background: var(--rep-bg-alt);
}
.rep-tax-header--has-image {
	min-height: 320px;
	color: #fff;
	overflow: hidden;
}
.rep-tax-header__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}
.rep-tax-header__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.65));
	z-index: 2;
}
.rep-tax-header__inner { position: relative; z-index: 3; }
.rep-tax-header--has-image .rep-tax-header__title,
.rep-tax-header--has-image .rep-tax-header__description,
.rep-tax-header--has-image .rep-breadcrumbs,
.rep-tax-header--has-image .rep-breadcrumbs a { color: #fff; }
.rep-tax-header__title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 .5rem; }
.rep-tax-header__description { max-width: 800px; }

.rep-tax-header__dev {
	display: flex;
	align-items: center;
	gap: var(--rep-gap-lg);
	flex-wrap: wrap;
}
.rep-tax-header__logo {
	width: 140px;
	height: 140px;
	background: #fff;
	border-radius: 50%;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--rep-shadow);
	flex-shrink: 0;
}
.rep-tax-header__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rep-tax-header__dev-body { flex: 1; min-width: 260px; }
.rep-tax-header__dev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* =====================================================================
 *  24. PAGINATION
 * =================================================================== */
.rep-pagination,
.rep-pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: var(--rep-gap-lg);
}
.rep-pagination .page-numbers,
.rep-pagination a,
.rep-pagination > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .7rem;
	border-radius: var(--rep-radius);
	background: #fff;
	border: 1px solid var(--rep-border);
	color: var(--rep-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: .9rem;
	transition: all var(--rep-transition);
}
.rep-pagination .page-numbers:hover,
.rep-pagination a:hover {
	background: var(--rep-primary);
	color: #fff;
	border-color: var(--rep-primary);
}
.rep-pagination .current,
.rep-pagination .page-numbers.current {
	background: var(--rep-primary);
	color: #fff;
	border-color: var(--rep-primary);
}

/* =====================================================================
 *  25. FOOTER
 * =================================================================== */
.rep-footer {
	background: var(--rep-dark);
	color: #d1d5db;
	padding: var(--rep-gap-xl) 0 0;
	margin-top: var(--rep-gap-2xl);
}
.rep-footer a { color: #d1d5db; }
.rep-footer a:hover { color: var(--rep-primary-light); }

.rep-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--rep-gap-lg);
	padding-bottom: var(--rep-gap-lg);
}
@media (max-width: 768px) {
	.rep-footer__grid { grid-template-columns: 1fr; }
}

.rep-footer__logo-img { max-height: 48px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.rep-footer__logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; display: block; margin-bottom: .75rem; }
.rep-footer__about { font-size: .9rem; line-height: 1.6; color: #9ca3af; }

.rep-footer__social {
	display: flex;
	gap: .5rem;
	list-style: none;
	padding: 0;
	margin: var(--rep-gap) 0 0;
}
.rep-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #fff;
	transition: all var(--rep-transition);
}
.rep-footer__social a:hover { background: var(--rep-primary); color: #fff; }
.rep-footer__social svg { width: 16px; height: 16px; }

.rep-footer__heading { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.rep-footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.rep-footer__menu a {
	font-size: .9rem;
	transition: color var(--rep-transition);
}
.rep-footer__contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	font-size: .9rem;
}
.rep-footer__contact li {
	display: flex;
	align-items: center;
	gap: .5rem;
}
.rep-footer__contact svg { width: 16px; height: 16px; color: var(--rep-primary-light); flex-shrink: 0; }

.rep-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: var(--rep-gap) 0;
	text-align: center;
	font-size: .85rem;
	color: #9ca3af;
}
.rep-footer__bottom p { margin: 0; }

/* =====================================================================
 *  26. RESALE COUNTER
 * =================================================================== */
.rep-resale-counter {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	background: linear-gradient(135deg, var(--rep-primary) 0%, var(--rep-primary-dark) 100%);
	color: #fff;
	border-radius: var(--rep-radius);
	font-weight: 600;
	margin-top: var(--rep-gap);
	box-shadow: var(--rep-shadow-md);
}
.rep-resale-counter__icon { width: 20px; height: 20px; }
.rep-resale-counter__label { font-size: .9rem; }
.rep-resale-counter__number { color: #fff; font-weight: 800; font-size: 1.1rem; }
.rep-resale-counter__number:hover { color: var(--rep-secondary); }

/* =====================================================================
 *  27. CONTACT PAGE
 * =================================================================== */
.rep-contact-page__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--rep-gap-lg);
}
@media (max-width: 768px) { .rep-contact-page__grid { grid-template-columns: 1fr; } }
.rep-contact-page__details {
	list-style: none;
	padding: 0;
	margin-top: var(--rep-gap);
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
.rep-contact-page__details li {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: .95rem;
}
.rep-contact-page__details svg {
	width: 20px;
	height: 20px;
	color: var(--rep-primary);
	flex-shrink: 0;
}

/* =====================================================================
 *  28. 404
 * =================================================================== */
.rep-404__inner {
	text-align: center;
	padding: var(--rep-gap-2xl) var(--rep-gap);
}
.rep-404__title {
	font-size: clamp(4rem, 15vw, 8rem);
	line-height: 1;
	color: var(--rep-primary);
	margin: 0;
}
.rep-404__subtitle { font-size: 1.5rem; margin-bottom: var(--rep-gap); }
.rep-404__text { color: var(--rep-text-muted); margin-bottom: var(--rep-gap-lg); }

/* =====================================================================
 *  29. SINGLE POST / PAGE
 * =================================================================== */
.rep-single-post__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 .4rem; }
.rep-single-post__meta { font-size: .85rem; color: var(--rep-text-muted); margin-bottom: var(--rep-gap); }
.rep-single-post__thumb { margin-bottom: var(--rep-gap-lg); border-radius: var(--rep-radius); overflow: hidden; }
.rep-single-post__thumb img { width: 100%; height: auto; }
.rep-single-post__content {
	max-width: 820px;
	margin: 0 auto;
	line-height: 1.8;
	font-size: 1.05rem;
}
.rep-single-post__content img { border-radius: var(--rep-radius); margin: var(--rep-gap) 0; }
.rep-single-post__content h2 { font-size: 1.5rem; margin: var(--rep-gap-lg) 0 .6rem; }
.rep-single-post__content h3 { font-size: 1.25rem; margin: var(--rep-gap) 0 .5rem; }

.rep-page__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 var(--rep-gap); }
.rep-page__content { line-height: 1.8; }

/* =====================================================================
 *  30. UTILITIES
 * =================================================================== */
.rep-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.rep-no-scroll { overflow: hidden; }

/* =====================================================================
 *  31. INFO BOX RESPONSIVE + SUBTITLE ICONS
 * =================================================================== */

/* Subtitle icons */
.rep-single__subtitle-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Hide CTA inside info-box (replaced by sidebar dev box + sticky bar) */
.rep-info-box__cta { display: none; }

	/* =====================================================================
	 *  31b. MOBILE OVERFLOW FIX — NUCLEAR APPROACH
	 *  Every single element must be ≤ 100% viewport width on mobile.
	 * =================================================================== */
	@media (max-width: 960px) {
		/* Prevent ALL horizontal overflow at the root */
		html, body { 
			overflow-x: hidden; 
			position: relative;
			width: 100%;
			max-width: 100%;
		}
		
		.rep-main { 
			overflow-x: hidden; 
			width: 100%; 
			max-width: 100%;
		}
	
		/* Global catch: no element wider than screen */
		*, *::before, *::after { 
			max-width: 100vw; 
			box-sizing: border-box; 
		}
	
		/* Grid must never exceed container */
		.rep-grid, .rep-info-box__grid,
		.rep-details__table, .rep-gallery, .rep-footer__grid,
		.rep-single__layout, .rep-dev-slider__track,
		.rep-footer, .rep-header, .rep-container {
			max-width: 100% !important;
			box-sizing: border-box;
		}
	}

	@media (max-width: 768px) {
		.rep-hero__content { padding: var(--rep-gap-lg) var(--rep-gap); }
		.rep-search { display: block !important; visibility: visible !important; opacity: 1 !important; }
		.rep-search__tabs {
			gap: 2px;
			display: flex !important;
		}
		.rep-search__tab {
			padding: .6rem 1rem;
			font-size: .8rem;
		}
		.rep-search__bar {
			display: flex !important;
			flex-direction: column;
			border-radius: 0 0 var(--rep-radius-lg) var(--rep-radius-lg);
		}
		.rep-search__bar-field {
			display: flex !important;
			min-height: 48px;
		}
		.rep-search__bar-field input,
		.rep-search__bar-field select {
			padding: .85rem 1.25rem;
			height: auto;
			min-height: 48px;
			font-size: .9rem;
		}
		.rep-search__bar-btn { width: 100%; border-radius: 0 0 var(--rep-radius-lg) var(--rep-radius-lg); }
	.rep-search__bar-field select {
		padding-right: 2.5rem;
	}
	.rep-search__bar-divider {
		width: calc(100% - 2rem);
		height: 1px;
		margin: 0 auto;
	}
	.rep-search__bar-btn {
		width: 100%;
		min-height: 48px;
		border-radius: 0 0 var(--rep-radius-lg) var(--rep-radius-lg);
	}
	.rep-search { max-width: 100%; }
	.rep-details__table { table-layout: fixed; width: 100%; }
	.rep-details__table th { width: 40%; }
	.rep-details__table th,
	.rep-details__table td { padding: .65rem .6rem; font-size: .85rem; word-break: break-word; }
	.rep-single__title { font-size: 1.3rem; }
	.rep-single__subtitle { gap: .5rem; font-size: .85rem; flex-wrap: wrap; }
	.rep-gallery { grid-template-columns: 1fr; max-height: none; }
	.rep-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
	.rep-tax-header__dev-body { min-width: 0; }
	.rep-tax-header__dev { flex-direction: column; text-align: center; }
	.rep-tax-header__logo { width: 90px; height: 90px; }
	.rep-dev-slider { padding: 0; }
	.rep-dev-slider__prev,
	.rep-dev-slider__next { display: none; }
	.rep-dev-slider__track {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		gap: 8px;
	}
	.rep-dev-slider__track > * {
		flex: 0 0 100px;
		scroll-snap-align: start;
	}
	.rep-hero { min-height: 400px; }
	.rep-hero__title { font-size: 1.4rem; }
	.rep-header__menu .sub-menu { min-width: 0; }
	.rep-info-box { margin-bottom: .75rem; }
	.rep-section { padding: var(--rep-gap-lg) 0; }
	.rep-single { padding: var(--rep-gap) 0 var(--rep-gap-lg); }
	.rep-footer__grid { gap: var(--rep-gap); }
		img, table, iframe, video, pre, code,
		.rep-single__map-embed { max-width: 100% !important; overflow: hidden; }
		.rep-single__map-embed iframe { width: 100% !important; }
		
		.rep-single__map-wrap {
			width: 100%;
			max-width: 100%;
			overflow: hidden;
			position: relative;
			border-radius: var(--rep-radius);
		}
	}

/* =====================================================================
 *  32. STICKY SIDEBAR (desktop only)
 *  Note: overflow-x:hidden on any ancestor breaks sticky.
 *  We only set overflow-x:hidden on <html>, NOT on body or containers.
 * =================================================================== */
@media (min-width: 961px) {
	.rep-single__sidebar {
		position: -webkit-sticky;
		position: sticky;
		top: 85px;
		align-self: start;
	}
}

/* =====================================================================
 *  33. SIDEBAR DEVELOPER BOX (desktop)
 *  Logo centered + name + "المشروعات" link + WA/Call + طلب خطة أسعار
 * =================================================================== */
.rep-sidebar-dev {
	background: #fff;
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius-lg);
	padding: 1.5rem 1.25rem;
	box-shadow: var(--rep-shadow);
	text-align: center;
	margin-bottom: var(--rep-gap);
}
.rep-sidebar-dev__logo {
	width: 90px;
	height: 90px;
	margin: 0 auto .75rem;
	background: #fff;
	border: 1px solid var(--rep-border-light);
	border-radius: var(--rep-radius-lg);
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rep-sidebar-dev__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.rep-sidebar-dev__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rep-dark);
	margin: 0 0 .4rem;
	line-height: 1.4;
}
.rep-sidebar-dev__summary {
	font-size: .85rem;
	color: var(--rep-text-muted);
	line-height: 1.6;
	margin: 0 0 .8rem;
}
.rep-sidebar-dev__link {
	display: inline-block;
	color: var(--rep-primary);
	font-size: .85rem;
	font-weight: 600;
	margin-bottom: 1rem;
	text-decoration: none;
}
.rep-sidebar-dev__link:hover { text-decoration: underline; }

.rep-sidebar-dev__btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 10px;
}
.rep-sidebar-dev__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 8px;
	border-radius: var(--rep-radius);
	font-weight: 700;
	font-size: .85rem;
	color: #fff;
	text-decoration: none;
	transition: all .15s ease;
	min-height: 44px;
}
.rep-sidebar-dev__btn svg,
.rep-sidebar-dev__icon { width: 18px; height: 18px; flex-shrink: 0; }
.rep-sidebar-dev__btn--wa { background: #25D366; }
.rep-sidebar-dev__btn--wa:hover { background: #1fb554; color: #fff; }
.rep-sidebar-dev__btn--call { background: var(--rep-dark); }
.rep-sidebar-dev__btn--call:hover { background: #111; color: #fff; }

.rep-sidebar-dev__pdf {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px;
	border-radius: var(--rep-radius);
	background: #1a1a1a;
	color: #fff;
	font-weight: 700;
	font-size: .85rem;
	text-decoration: none;
	transition: all .15s ease;
}
.rep-sidebar-dev__pdf svg { width: 18px; height: 18px; flex-shrink: 0; }
.rep-sidebar-dev__pdf:hover { background: #000; color: #fff; }

/* Hide sidebar dev box on mobile */
@media (max-width: 960px) {
	.rep-sidebar-dev { display: none; }
}

/* =====================================================================
 *  34. STICKY CTA BAR — MOBILE ONLY
 *  Developer logo + name + 2 buttons (green WA + outline Call)
 * =================================================================== */
.rep-sticky-cta { display: none; }

@media (max-width: 960px) {
		.rep-sticky-cta {
			display: flex;
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			z-index: 999;
			background: #fff;
			box-shadow: 0 -3px 20px rgba(0,0,0,.12);
			padding: 12px 16px;
			padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
			align-items: center;
			gap: 10px;
			width: 100%;
			max-width: 100%;
			box-sizing: border-box;
		}
	.rep-sticky-cta__dev {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 1;
		min-width: 0;
		color: var(--rep-dark);
		text-decoration: none;
	}
	.rep-sticky-cta__dev-logo {
		width: 52px;
		height: 52px;
		border-radius: var(--rep-radius);
		overflow: hidden;
		background: #fff;
		border: 1px solid var(--rep-border-light);
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 5px;
	}
	.rep-sticky-cta__dev-logo img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
		.rep-sticky-cta__dev-name {
			font-size: 0.9rem;
			font-weight: 700;
			color: var(--rep-dark);
			line-height: 1.2;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			line-clamp: 2;
			-webkit-box-orient: vertical;
			word-break: break-word;
		}
	.rep-sticky-cta__spacer { display: none; }
	.rep-sticky-cta__actions {
		display: flex;
		gap: 10px;
		flex-shrink: 0;
	}
	.rep-sticky-cta__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		border-radius: 50%;
		color: #fff;
		text-decoration: none;
		border: 2px solid transparent;
	}
	.rep-sticky-cta__btn span { display: none; }
	.rep-sticky-cta__btn svg { width: 26px; height: 26px; }
	.rep-sticky-cta__btn--wa {
		background: #25D366;
		border-color: #25D366;
	}
	.rep-sticky-cta__btn--call {
		background: #fff;
		border-color: #25D366;
		color: #25D366;
	}

	/* Body padding for sticky bar */
	body.rep-single-project,
	body.rep-single-unit,
	body.rep-single-resale { padding-bottom: 85px; }
}

/* Print */
@media print {
	.rep-header, .rep-footer, .rep-single__sidebar, .rep-banners,
	.rep-info-box__cta, .rep-cta, .rep-popup, .rep-lightbox,
	.rep-sticky-cta, .rep-sidebar-dev { display: none !important; }
	.rep-single__layout { grid-template-columns: 1fr !important; }
}
.rep-dev-slider__track {
    display: grid;
    grid-template-columns: repeat(20, calc(100% / 6 - (var(--rep-gap) * 5 / 6)));
    gap: var(--rep-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

@media (max-width: 1024px) {
    .rep-dev-slider__track {
        grid-template-columns: repeat(20, calc(100% / 4 - (var(--rep-gap) * 3 / 4)));
    }
}

@media (max-width: 768px) {
    .rep-dev-slider__track {
        display: flex;
        grid-template-columns: none;
    }
    .rep-dev-slider__track > * {
        flex: 0 0 120px;
    }
}

/* 3. إصلاح تداخل النصوص في صفحة المطور العقاري */
.rep-tax-header__dev {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* لمنع التداخل عند صغر الشاشة */
}

.rep-tax-header__logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: var(--rep-radius);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rep-shadow);
}

.rep-tax-header__dev-body {
    flex: 1;
    min-width: 300px; /* ضمان مساحة كافية للنص */
}

.rep-tax-header__title {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.rep-tax-header__description {
    margin-bottom: 1rem;
    color: var(--rep-text-muted);
}

@media (max-width: 768px) {
    .rep-tax-header__dev {
        flex-direction: column;
        text-align: center;
    }
    .rep-tax-header__dev-body {
        min-width: 0;
    }
}


/* =====================================================================
 *  FACILITIES SECTION
 * =================================================================== */
.rep-facilities {
	margin: var(--rep-gap-lg) 0;
}
.rep-facilities__grid {
	display: flex;
	flex-wrap: wrap;
	background: var(--rep-bg);
	border: 1px solid var(--rep-border);
	border-radius: var(--rep-radius-lg);
	padding: 1.25rem;
	gap: 0;
}
.rep-facilities__item {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: 33.333%;
	padding: .75rem .5rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--rep-text);
	transition: var(--rep-transition);
}
.rep-facilities__item:hover {
	color: var(--rep-primary);
}
.rep-facilities__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rep-facilities__icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	opacity: .85;
}
.rep-facilities__icon--default {
	width: 40px;
	height: 40px;
	background: var(--rep-bg-alt);
	border-radius: var(--rep-radius);
	color: var(--rep-secondary);
}
.rep-facilities__name {
	line-height: 1.3;
}
@media (max-width: 992px) {
	.rep-facilities__item { width: 50%; }
}
@media (max-width: 576px) {
	.rep-facilities__item { width: 50%; font-size: .82rem; padding: .6rem .4rem; gap: .5rem; }
	.rep-facilities__grid { padding: .75rem .5rem; }
	.rep-facilities__icon { width: 32px; height: 32px; }
	.rep-facilities__icon img { width: 26px; height: 26px; }
}


/* =====================================================================
 *  AUTHOR BOX
 * =================================================================== */
.rep-author-box {
	margin: var(--rep-gap-xl) 0 var(--rep-gap-lg);
	border: 1px solid var(--rep-secondary);
	border-radius: var(--rep-radius-lg);
	padding: 1.5rem;
	background: var(--rep-bg);
}
.rep-author-box__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.rep-author-box__avatar {
	flex-shrink: 0;
	border-radius: var(--rep-radius-lg);
	overflow: hidden;
}
.rep-author-box__avatar img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	display: block;
}
.rep-author-box__info {
	flex: 1;
	min-width: 0;
}
.rep-author-box__name-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .25rem;
}
.rep-author-box__name {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rep-text);
	text-decoration: none;
	transition: var(--rep-transition);
}
.rep-author-box__name:hover {
	color: var(--rep-secondary);
}
.rep-author-box__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.rep-author-box__badge svg {
	filter: drop-shadow(0 1px 2px rgba(30,65,100,.2));
}
.rep-author-box__linkedin {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: #0077b5;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: .5rem;
	transition: var(--rep-transition);
}
.rep-author-box__linkedin:hover {
	color: #005f8d;
	text-decoration: underline;
}
.rep-author-box__bio {
	font-size: .9rem;
	line-height: 1.6;
	color: var(--rep-text-muted);
}
.rep-author-box__socials {
	display: flex;
	gap: .5rem;
	margin-top: .75rem;
	flex-wrap: wrap;
}
.rep-author-box__social-link {
	display: inline-flex;
	align-items: center;
	padding: .25rem .75rem;
	background: var(--rep-bg-alt);
	border-radius: var(--rep-radius-full);
	font-size: .8rem;
	font-weight: 600;
	color: var(--rep-primary);
	text-decoration: none;
	transition: var(--rep-transition);
}
.rep-author-box__social-link:hover {
	background: var(--rep-primary);
	color: #fff;
}
@media (max-width: 576px) {
	.rep-author-box__inner {
		flex-direction: column;
		text-align: center;
	}
	.rep-author-box__name-row {
		justify-content: center;
	}
	.rep-author-box__linkedin {
		justify-content: center;
	}
	.rep-author-box__socials {
		justify-content: center;
	}
}


/* =====================================================================
 *  VIDEO SECTION
 * =================================================================== */
.rep-single__video {
	margin: var(--rep-gap-lg) 0;
}
.rep-single__video-wrap {
	border-radius: var(--rep-radius-lg);
	overflow: hidden;
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}
.rep-single__video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* =====================================================================
 *  FAQ SECTION
 * =================================================================== */
.rep-single__faq {
	margin: var(--rep-gap-lg) 0;
}
.rep-faq-list {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.rep-faq-item {
	border: 1px solid var(--rep-border);
	border-radius: var(--rep-radius);
	overflow: hidden;
	transition: var(--rep-transition);
}
.rep-faq-item[open] {
	border-color: var(--rep-secondary);
}
.rep-faq-item__q {
	padding: 1rem 1.25rem;
	font-weight: 700;
	font-size: .95rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--rep-bg-alt);
	color: var(--rep-text);
	transition: var(--rep-transition);
}
.rep-faq-item__q::-webkit-details-marker { display: none; }
.rep-faq-item__q::after {
	content: '+';
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--rep-primary);
	transition: var(--rep-transition);
}
.rep-faq-item[open] .rep-faq-item__q::after {
	content: '−';
}
.rep-faq-item[open] .rep-faq-item__q {
	background: var(--rep-primary);
	color: #fff;
}
.rep-faq-item[open] .rep-faq-item__q::after {
	color: #fff;
}
.rep-faq-item__a {
	padding: 1rem 1.25rem;
	font-size: .9rem;
	line-height: 1.7;
	color: var(--rep-text-muted);
}


/* =====================================================================
 *  SCROLLBAR (matching aqarpocket)
 * =================================================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background-color: var(--rep-secondary); border-radius: 4px; }
::-webkit-scrollbar-track { background-color: #f1f1f1; }