/*
Theme Name: Mamdoh Al Aqali Real Estate
Theme URI: https://mamdohalaqali.com
Author: GlobeHive
Author URI: https://globehive.com
Description: Custom real estate WordPress theme for Mamdoh Al Aqali Real Estate. Modern, luxury, minimal, and Elementor-compatible.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mamdoh-real-estate
*/

/* =========================================================
   CSS VARIABLES / COLOR PALETTE
========================================================= */
:root {
	--color-dark-green: #0b3d2e;
	--color-gold: #c9a24b;
	--color-white: #ffffff;
	--color-dark-gray: #2b2b2b;
	--color-light-gray: #f6f6f4;
	--font-main: 'Poppins', Arial, sans-serif;
}

/* =========================================================
   RESET
========================================================= */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-main);
	color: var(--color-dark-gray);
	background-color: var(--color-white);
	line-height: 1.6;
	font-size: 16px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: var(--color-dark-green);
	transition: color 0.25s ease;
}

a:hover {
	color: var(--color-gold);
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	color: var(--color-dark-green);
	margin: 0 0 15px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.25s ease;
}

.btn-primary {
	background-color: var(--color-gold);
	color: var(--color-dark-green);
}

.btn-primary:hover {
	background-color: var(--color-dark-green);
	color: var(--color-white);
}

.btn-outline {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn-outline:hover {
	background-color: var(--color-white);
	color: var(--color-dark-green);
}

.section {
	padding: 70px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
}

.section-title span {
	color: var(--color-gold);
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 2px;
	font-weight: 600;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
	background-color: var(--color-white);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	position: sticky;
	top: 0;
	z-index: 999;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 15px;
	padding-bottom: 15px;
}

.site-branding img {
	max-height: 55px;
}

.main-navigation ul {
	display: flex;
	gap: 28px;
}

.main-navigation a {
	color: var(--color-dark-gray);
	font-weight: 500;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 26px;
	cursor: pointer;
	color: var(--color-dark-green);
}

/* =========================================================
   HERO
========================================================= */
.hero-banner {
	background-color: var(--color-dark-green);
	background-size: cover;
	background-position: center;
	color: var(--color-white);
	padding: 120px 0;
	text-align: center;
	position: relative;
}

.hero-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11,61,46,0.55);
}

.hero-banner .container {
	position: relative;
	z-index: 2;
}

.hero-banner h1 {
	color: var(--color-white);
	font-size: 46px;
	margin-bottom: 20px;
}

.hero-banner p {
	max-width: 650px;
	margin: 0 auto 30px;
	font-size: 18px;
}

/* Property Search */
.property-search-form {
	background: var(--color-white);
	border-radius: 6px;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.property-search-form select,
.property-search-form input {
	flex: 1 1 200px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: var(--font-main);
	color: var(--color-dark-gray);
}

.property-search-form button {
	flex: 0 0 auto;
}

/* =========================================================
   PROPERTY CATEGORIES
========================================================= */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
}

.category-card {
	background: var(--color-light-gray);
	border-radius: 8px;
	padding: 30px 15px;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card h3 {
	margin-top: 15px;
	margin-bottom: 0;
	font-size: 18px;
}

/* =========================================================
   PROPERTY CARDS / GRID
========================================================= */
.properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.property-card {
	background: var(--color-white);
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.06);
	transition: transform 0.25s ease;
}

.property-card:hover {
	transform: translateY(-6px);
}

.property-card .property-thumb {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.property-card .property-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.property-card .property-price-tag {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--color-gold);
	color: var(--color-dark-green);
	padding: 6px 14px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
}

.property-card .property-body {
	padding: 20px;
}

.property-card .property-body h3 {
	font-size: 19px;
	margin-bottom: 8px;
}

.property-card .property-location {
	color: #777;
	font-size: 14px;
	margin-bottom: 12px;
}

.property-card .property-id-tag {
	font-size: 12px;
	color: #999;
}

/* =========================================================
   SINGLE PROPERTY PAGE
========================================================= */
.property-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	margin-bottom: 40px;
}

.property-gallery .main-image img {
	border-radius: 8px;
	height: 100%;
	object-fit: cover;
}

.property-gallery .thumb-images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.property-gallery .thumb-images img {
	border-radius: 8px;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}

.property-details-wrap {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
}

.property-meta-box {
	background: var(--color-light-gray);
	border-radius: 8px;
	padding: 25px;
}

.property-meta-box .price {
	font-size: 28px;
	color: var(--color-gold);
	font-weight: 700;
	margin-bottom: 15px;
}

.property-features-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 20px 0;
}

.property-features-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.property-map {
	margin-top: 40px;
}

.property-map iframe {
	width: 100%;
	height: 400px;
	border: 0;
	border-radius: 8px;
}

/* WhatsApp Button */
.whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #25D366;
	color: #fff;
	padding: 14px 24px;
	border-radius: 6px;
	font-weight: 600;
	width: 100%;
	justify-content: center;
	margin-top: 15px;
}

.whatsapp-btn:hover {
	background-color: #1ebc59;
	color: #fff;
}

.whatsapp-float {
	position: fixed;
	bottom: 25px;
	right: 25px;
	background-color: #25D366;
	color: #fff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	z-index: 998;
}

/* =========================================================
   WHY CHOOSE US
========================================================= */
.why-choose-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	text-align: center;
}

.why-choose-grid .icon {
	font-size: 40px;
	color: var(--color-gold);
	margin-bottom: 15px;
}

/* =========================================================
   BLOG
========================================================= */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.blog-card {
	background: var(--color-white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.blog-card img {
	height: 200px;
	object-fit: cover;
	width: 100%;
}

.blog-card .blog-body {
	padding: 20px;
}

.blog-card .blog-date {
	color: #999;
	font-size: 13px;
	margin-bottom: 8px;
}

/* =========================================================
   CONTACT CTA + FOOTER
========================================================= */
.contact-cta {
	background-color: var(--color-dark-green);
	color: var(--color-white);
	text-align: center;
	padding: 60px 0;
}

.contact-cta h2 {
	color: var(--color-white);
}

.site-footer {
	background-color: var(--color-dark-gray);
	color: #ccc;
	padding: 60px 0 20px;
}

.site-footer h3 {
	color: var(--color-white);
	font-size: 18px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
	font-size: 14px;
}

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-form-wrap {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: var(--font-main);
}

.contact-info-box {
	background: var(--color-light-gray);
	border-radius: 8px;
	padding: 25px;
}

.contact-info-box li {
	margin-bottom: 15px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
	.property-details-wrap,
	.contact-form-wrap {
		grid-template-columns: 1fr;
	}

	.property-gallery {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.main-navigation {
		display: none;
		width: 100%;
	}

	.main-navigation.active {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		padding: 15px 0;
	}

	.menu-toggle {
		display: block;
	}

	.hero-banner h1 {
		font-size: 30px;
	}

	.hero-banner {
		padding: 70px 0;
	}
}
