/* ============================================
   KING HOUSES - STYLE SHEET
   Version: 2.0 | Premium Real Estate Design
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --primary: #C9A84C;
    --primary-dark: #A07830;
    --primary-light: #E8C97A;
    --secondary: #1A1410;
    --secondary-light: #2C2218;
    --dark: #1a1a2e;
    --gray-dark: #2d3436;
    --gray: #636e72;
    --gray-light: #b2bec3;
    --light: #f8f9fa;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.gold-text {
    color: var(--primary);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-crown {
    font-size: 60px;
    animation: crownPulse 1.5s ease-in-out infinite;
}

.preloader-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    margin: 20px 0;
}

.preloader-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.preloader-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotsPulse 1.5s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes crownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes dotsPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-ar {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.logo-en {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-header-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-header-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(201,168,76,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"/><path fill="rgba(201,168,76,0.03)" d="M20,20 L80,20 L80,80 L20,80 Z"/></svg>');
    background-repeat: repeat;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 25px;
}

.hero-badge i {
    color: var(--primary);
}

.hero-badge span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.hero-title-ar {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-title-en {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.hero-scroll:hover {
    color: var(--primary);
}

.hero-scroll span {
    font-size: 12px;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== FILTERS SECTION ===== */
/* الفلترة ثابتة في مكانها لا تتحرك */
.filters-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;  /* غيرنا من sticky إلى relative */
    z-index: 900;
    box-shadow: 0 4px 20px rgba(26,20,16,.06);
    position: relative !important;

}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-title i {
    color: var(--primary);
    font-size: 20px;
}

.filters-title h3 {
    font-size: 18px;
    font-weight: 600;
}

.filters-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary);
}

.filters-wrapper {
    padding-bottom: 30px;
    transition: var(--transition);
}

.filters-wrapper.hide {
    display: none;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.filter-group label i {
    color: var(--primary);
    margin-left: 5px;
}

.filter-select, .filter-input {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-filter, .btn-reset {
    padding: 10px 64px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-filter {
    background: var(--primary);
    color: var(--white);
    flex: 1;
}

.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-reset {
    background: var(--gray-light);
    color: var(--white);
}

.btn-reset:hover {
    background: var(--gray);
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
}

.results-info {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
}

.results-info span:first-child {
    font-weight: 500;
}

.results-info span:nth-child(2) {
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin: 0 5px;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    direction: ltr;
}

.pagination-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #C9A84C;
    color: white;
    border-color: #C9A84C;
}

.pagination-btn.active {
    background: #C9A84C;
    color: white;
    border-color: #C9A84C;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 10px 5px;
    color: #999;
}

/* ===== PAGINATION STYLES ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    direction: ltr;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 42px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 8px 5px;
    color: var(--gray);
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Card Images */
.card-images {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gray-light);
}

.card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-images img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-sale {
    background: var(--primary);
    color: var(--white);
}

.badge-rent {
    background: var(--info);
    color: var(--white);
}

.card-code {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

.card-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.card-action-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.img-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.img-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--primary);
}

/* Card Body */
.card-body {
    padding: 20px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-location i {
    color: var(--primary);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
}

.card-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.spec-icon {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.spec-label {
    font-size: 10px;
    color: var(--gray);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.card-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
}

.btn-more {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sold-stamp {
    border: 3px solid var(--danger);
    color: var(--danger);
    padding: 15px 75px;
    font-size: 36px;
    font-weight: 800;
    transform: rotate(-15deg);
    background: rgba(255, 255, 255, 0.9);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: var(--radius-md);
}

.no-results i {
    font-size: 64px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stats-item {
    padding: 20px;
}

.stats-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary);
}

.stats-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 40px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    color: var(--primary);
    width: 20px;
}

.footer-contact-btn {
    margin-top: 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container.modal-large {
    max-width: 1200px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--primary);
    font-size: 24px;
}

.modal-title h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-body {
    padding: 25px;
}

/* Contact Form */
.contact-greeting {
    background: rgba(201, 168, 76, 0.1);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-greeting i {
    font-size: 24px;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.phone-group {
    display: flex;
    gap: 15px;
}

.phone-select {
    width: 120px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
}

.phone-input {
    flex: 1;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Thanks Modal */
.modal-thanks {
    text-align: center;
    padding: 40px;
}

.thanks-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-thanks h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.qr-wrapper {
    margin: 25px 0;
}

.qr-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
}

.qr-fallback {
    width: 150px;
    height: 150px;
    background: var(--light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.qr-fallback i {
    font-size: 48px;
    color: #25D366;
}

.whatsapp-text {
    margin: 15px 0;
    font-size: 14px;
    color: var(--gray);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* Property Detail Modal */
.property-detail-body {
    padding: 0;
}

.property-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    height: 500px;
    background: var(--gray-light);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.gallery-nav-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: var(--light);
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.property-info {
    padding: 25px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.property-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.property-code {
    color: var(--gray);
    font-size: 13px;
}

.property-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.property-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.meta-badge {
    background: var(--light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.meta-badge i {
    color: var(--primary);
    margin-left: 5px;
}

.property-description {
    margin-bottom: 25px;
}

.property-description h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--secondary);
}

.property-description p {
    color: var(--gray);
    line-height: 1.8;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item-detail {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-item-detail i {
    font-size: 24px;
    color: var(--primary);
}

.spec-item-detail div {
    display: flex;
    flex-direction: column;
}

.spec-label-detail {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value-detail {
    font-size: 16px;
    font-weight: 700;
}

.map-container {
    height: 250px;
    background: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 25px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.property-suggestions {
    margin-bottom: 25px;
}

.property-suggestions h4 {
    margin-bottom: 15px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.suggestion-card {
    background: var(--light);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.suggestion-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.suggestion-card .s-title {
    font-weight: 600;
    font-size: 14px;
}

.suggestion-card .s-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.property-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.action-btn.contact {
    background: var(--primary);
    color: var(--white);
}

.action-btn.contact:hover {
    background: var(--primary-dark);
}

.action-btn.share {
    background: var(--info);
    color: var(--white);
}

.action-btn.share:hover {
    background: #2470a0;
}

.action-btn.favorite {
    background: var(--danger);
    color: var(--white);
}

.action-btn.favorite:hover {
    background: #c0392b;
}

/* ===== TOAST ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 3000;
    transition: var(--transition);
    opacity: 0;
    white-space: nowrap;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.mobile-open {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .filters-toggle {
        display: block;
    }
    
    .filters-wrapper {
        display: none;
    }
    
    .filters-wrapper.show {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .property-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title-ar {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Make filters sticky but not taking full screen */
.filters-section {
    position: sticky;
    top: 80px;
    z-index: 900;
    background: white;
}

.filters-wrapper {
    max-height: 80vh;
    overflow-y: auto;
}

/* على الجوال */
@media (max-width: 768px) {
    .filters-section {
        position: relative;
        top: 0;
    }
    .filters-wrapper {
        max-height: 60vh;
    }
}


/* ===== تحسين حجم مربع الملاحظات ===== */
.form-group textarea,
textarea.form-input,
#contactNote {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s;
}

.form-group textarea:focus,
textarea.form-input:focus,
#contactNote:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* تحسين عام لجميع حقول النص */
.modal-body textarea {
    min-height: 120px;
    background: #f9f9f9;
}

/* أيقونات إضافية */
.spec-item-detail i.fa-arrow-up { color: #3498db; }
.spec-item-detail i.fa-compass { color: #e67e22; }
.spec-item-detail i.fa-paint-brush { color: #9b59b6; }
.spec-item-detail i.fa-file-contract { color: #2ecc71; }


/* Logo Image */
.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* للشاشات الصغيرة (الجوال) */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}


/* تحسين تخطيط الأزرار في الفلاتر على الجوال */
@media (max-width: 768px) {
    /* جعل أزرار الفلاتر تظهر بشكل عمودي */
    .filters-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters-actions .btn-filter,
    .filters-actions .btn-reset,
    .filters-actions .btn-favorite,
    .filters-actions .btn-all,
    .filters-actions .btn-refresh {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    /* تصغير حجم خط الفلاتر */
    .filter-group label {
        font-size: 12px;
    }
    
    /* تحسين المسافات */
    .filters-grid {
        gap: 10px;
    }
    
    /* تحسين حجم الـ Footer */
    .footer-grid {
        gap: 20px;
    }
    
    .footer-links h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-links ul li {
        margin-bottom: 8px;
    }
    
    .footer-about .logo-img {
        height: 35px;
    }
    
    /* تحسين عرض الإحصائيات */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stats-item {
        padding: 10px;
    }
    
    .stats-number {
        font-size: 28px;
    }
}