/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #f39c12;
    --primary-dark: #d68910;
    --primary-light: rgba(243, 156, 18, 0.1);
    --secondary: #1a252f;
    --secondary-light: #2c3e50;
    --accent: #e67e22;
    --text: #333333;
    --text-light: #7f8c8d;
    --bg-light: #fdfdfd;
    --bg-grey: #f4f6f7;
    --white: #ffffff;
    --black: #000000;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1400px;
    --header-height: 90px;
    --mobile-header-height: 70px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Arabic Font Override */
[lang="ar"] body { font-family: 'Cairo', sans-serif; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-family: 'Cairo', sans-serif; font-weight: 700; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}
.section-padding { padding: 120px 0; }
.section-padding-sm { padding: 80px 0; }
.section-padding-xs { padding: 60px 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }

/* --- LOADING SPINNER --- */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- UTILITY CLASSES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 38px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.btn:active {
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}
.btn-dark {
    background: var(--secondary);
    border-color: var(--secondary);
}
.btn-dark:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
}
.btn-small {
    padding: 10px 25px;
    font-size: 0.85rem;
}
.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

.section-header { margin-bottom: 70px; text-align: center; }
.section-header .subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}
.section-header h2 { 
    font-size: 3rem; 
    position: relative; 
    display: inline-block; 
    margin-bottom: 25px;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}
.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- RTL SPECIFIC OVERRIDES --- */
[dir="rtl"] .contact-details-top span { margin-right: 0; margin-left: 25px; }
[dir="rtl"] .contact-details-top i { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .top-socials a { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .nav-link::after { left: auto; right: 0; }
[dir="rtl"] .lang-switch { border-left: none; border-right: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-right: 25px; }
[dir="rtl"] .check-list i { margin-right: 0; margin-left: 15px; }
[dir="rtl"] .meta-item i { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .icon-box { margin-right: 0; margin-left: 25px; }
[dir="rtl"] .property-address i { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .hero-search button i { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .testimonial-content::before { left: auto; right: 20px; }
[dir="rtl"] .breadcrumb-item:not(:last-child)::after { content: '←'; margin-left: 0; margin-right: 10px; }
[dir="rtl"] .service-process-item::before { left: auto; right: -40px; }

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
[dir="rtl"] .back-to-top { right: auto; left: 30px; }
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- BREADCRUMB --- */
.breadcrumb {
    background: var(--bg-grey);
    padding: 20px 0;
    margin-bottom: 60px;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.breadcrumb-item:not(:last-child)::after {
    content: '→';
    color: var(--primary);
}
.breadcrumb-item a:hover {
    color: var(--primary);
}
.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* --- PAGE HEADER --- */
.page-header {
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.8)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.contact-details-top { display: flex; flex-wrap: wrap; gap: 15px 25px; }
.contact-details-top span { 
    display: flex;
    align-items: center;
    margin-right: 25px;
}
.contact-details-top i { color: var(--primary); margin-right: 10px; font-size: 0.9rem; }
.top-socials { display: flex; gap: 15px; }
.top-socials a { 
    color: var(--white); 
    opacity: 0.7; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}
.top-socials a:hover { 
    opacity: 1; 
    color: var(--primary); 
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
}
header.scrolled {
    height: 80px;
    box-shadow: var(--shadow-md);
}
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}

.logo { display: flex; align-items: center; }
.logo img { 
    height: 65px; 
    width: auto; 
    transition: var(--transition);
}
header.scrolled .logo img { height: 50px; }
.logo-fallback {
    font-size: 24px; 
    font-weight: 800; 
    font-family: 'Playfair Display', serif; 
    color: var(--secondary);
    display: none; 
    align-items: center; 
    gap: 10px;
}

.nav-menu { 
    display: flex; 
    align-items: center; 
    gap: 35px; 
}
.nav-link { 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    color: var(--secondary); 
    position: relative; 
    cursor: pointer;
    padding: 5px 0;
}
.nav-link::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0;
    background-color: var(--primary); 
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: var(--primary); }

.lang-switch { 
    font-weight: 700; 
    cursor: pointer; 
    border-left: 1px solid rgba(0,0,0,0.1); 
    padding-left: 25px; 
    display: flex; 
    gap: 8px; 
    align-items: center;
}
.lang-btn { 
    background: none; 
    border: none; 
    color: var(--secondary); 
    font-weight: 700; 
    cursor: pointer; 
    font-family: inherit;
    font-size: 0.9rem;
    padding: 5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { 
    color: var(--primary); 
    background: var(--primary-light);
}

.hamburger { 
    display: none; 
    font-size: 28px; 
    color: var(--secondary); 
    cursor: pointer; 
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 95vh;
    background: linear-gradient(rgba(26, 37, 47, 0.7), rgba(26, 37, 47, 0.7)), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 120px 0 80px;
}
.hero-content { max-width: 900px; }
.hero-content h1 { 
    font-size: 4.5rem; 
    margin-bottom: 25px; 
    color: var(--white); 
    font-weight: 800; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    line-height: 1.1;
}
.hero-content p { 
    font-size: 1.4rem; 
    margin-bottom: 50px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    opacity: 0.9;
    font-weight: 300;
}

.hero-search {
    background: var(--white);
    padding: 5px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 5px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.hero-search select, .hero-search input {
    border: none; 
    padding: 0 25px; 
    flex: 1; 
    font-size: 1.05rem; 
    color: var(--secondary); 
    outline: none;
    background: #f9f9f9;
    height: 65px;
    border-radius: var(--border-radius-sm);
}
.hero-search button { 
    flex: 0 0 200px; 
    font-size: 1.05rem; 
    border: none; 
    border-radius: var(--border-radius-sm); 
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hero-search button i { font-size: 1.2rem; }

/* --- STATS SECTION --- */
.stats-section { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); 
    padding: 80px 0; 
    color: var(--white); 
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
    text-align: center; 
    position: relative;
    z-index: 1;
}
.stat-item h3 { 
    font-size: 3.5rem; 
    color: var(--white); 
    margin-bottom: 10px; 
    font-weight: 800; 
}
.stat-item p { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    opacity: 0.9; 
    font-weight: 600;
}

/* --- ABOUT SECTION --- */
.about-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px; 
    align-items: center; 
}
.about-img-group { 
    position: relative; 
    border-radius: var(--border-radius);
    overflow: hidden;
}
.about-main-img { 
    width: 100%; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-lg); 
    transition: var(--transition-slow);
}
.about-img-group:hover .about-main-img {
    transform: scale(1.05);
}
.about-badge {
    position: absolute; 
    bottom: -30px; 
    left: -30px;
    background: var(--white); 
    padding: 35px; 
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl); 
    text-align: center; 
    max-width: 220px;
    z-index: 2;
}
[dir="rtl"] .about-badge { left: auto; right: -30px; }
.about-badge span { 
    display: block; 
    font-size: 3rem; 
    color: var(--primary); 
    font-weight: 800; 
    line-height: 1; 
    margin-bottom: 10px;
}
.about-badge p { font-weight: 600; color: var(--secondary); }

.check-list li { 
    margin-bottom: 18px; 
    display: flex; 
    align-items: flex-start; 
    padding: 5px 0;
}
.check-list i { 
    color: var(--primary); 
    margin-right: 18px; 
    font-size: 1.3rem; 
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- SERVICES --- */
.services-section { background: var(--bg-grey); }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}
.service-card {
    background: var(--white); 
    padding: 45px 35px; 
    border-radius: var(--border-radius);
    transition: var(--transition); 
    border-bottom: 4px solid transparent;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover { 
    transform: translateY(-15px); 
    border-bottom-color: var(--primary); 
    box-shadow: var(--shadow-xl); 
}
.service-icon { 
    font-size: 3.5rem; 
    color: var(--primary); 
    margin-bottom: 30px; 
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 20px; 
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card p { 
    color: #777; 
    flex-grow: 1;
    margin-bottom: 25px;
}

/* --- SERVICE PROCESS --- */
.service-process {
    position: relative;
    padding: 80px 0;
}
.service-process::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    transform: translateY(-50%);
    z-index: 1;
}
.service-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}
.service-process-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}
.service-process-item::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.service-process-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.service-process-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- PROPERTIES --- */
.property-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); 
    gap: 40px; 
}
.property-card {
    background: var(--white); 
    border-radius: var(--border-radius); 
    overflow: hidden;
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.property-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-xl); 
}

.property-thumb { 
    height: 300px; 
    overflow: hidden; 
    position: relative; 
}
.property-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease; 
}
.property-card:hover .property-thumb img { 
    transform: scale(1.1); 
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}
.property-card:hover .property-overlay {
    opacity: 1;
}
.overlay-buttons {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}
.property-card:hover .overlay-buttons {
    transform: translateY(0);
}
.overlay-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.overlay-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.status { 
    position: absolute; 
    top: 25px; 
    left: 25px; 
    padding: 10px 20px; 
    border-radius: 30px; 
    color: var(--white); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    z-index: 2;
}
[dir="rtl"] .status { left: auto; right: 25px; }
.status.sale { background: var(--success); }
.status.rent { background: #2980b9; }
.status.featured { background: var(--danger); }

.price-tag {
    position: absolute; 
    bottom: 25px; 
    right: 25px; 
    background: var(--secondary);
    color: var(--primary); 
    padding: 12px 25px; 
    border-radius: var(--border-radius-sm); 
    font-weight: 800; 
    font-size: 1.3rem;
    z-index: 2;
}
[dir="rtl"] .price-tag { right: auto; left: 25px; }

.property-details { 
    padding: 30px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.property-title { 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
    line-height: 1.3;
}
.property-address { 
    color: var(--text-light); 
    font-size: 1rem; 
    margin-bottom: 25px; 
    display: flex; 
    align-items: center;
}
.property-address i { color: var(--primary); margin-right: 10px; }

.property-meta {
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid #eee; 
    padding-top: 25px;
    margin-top: auto;
    color: var(--secondary); 
    font-size: 0.95rem;
}
.meta-item { display: flex; align-items: center; }
.meta-item i { color: var(--primary); margin-right: 10px; font-size: 1.1rem; }

/* --- PROPERTY FILTERS --- */
.property-filters {
    background: var(--bg-grey);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
}
.filter-group input[type="range"] {
    padding: 0;
}
.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background: linear-gradient(rgba(26, 37, 47, 0.9), rgba(26, 37, 47, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2073&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
}
.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
.testimonial-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 50px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}
.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    opacity: 0.5;
}
.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.author-info h4 {
    color: var(--white);
    margin-bottom: 5px;
}
.author-info p {
    color: var(--primary);
    font-weight: 600;
}
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.testimonial-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-nav button:hover {
    border-color: var(--primary);
    background: var(--primary);
}

/* --- TEAM SECTION --- */
.team-section { 
    background: url('https://images.unsplash.com/photo-1560520031-3a4dc4e9de0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2067&q=80') no-repeat center center/cover; 
    position: relative; 
}
.team-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(26, 37, 47, 0.85); 
}
.team-grid { 
    position: relative; 
    z-index: 2; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 50px; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.team-card { 
    text-align: center; 
    background: var(--white); 
    padding: 50px 40px; 
    border-radius: var(--border-radius); 
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}
.team-img { 
    width: 150px; 
    height: 150px; 
    background: #ddd; 
    border-radius: 50%; 
    margin: 0 auto 25px; 
    object-fit: cover; 
    border: 5px solid var(--primary); 
    box-shadow: var(--shadow-md);
}
.team-name { 
    font-size: 1.7rem; 
    margin-bottom: 10px; 
}
.team-role { 
    color: var(--primary); 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    font-size: 0.95rem; 
    letter-spacing: 1.5px;
}
.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-grey);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* --- FAQ SECTION --- */
.faq-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
}
.faq-item { 
    background: var(--bg-grey); 
    padding: 30px; 
    margin-bottom: 20px; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    transition: var(--transition); 
    border-left: 4px solid transparent;
}
.faq-item:hover { 
    background: #fff; 
    box-shadow: var(--shadow-md); 
    border-left-color: var(--primary);
}
.faq-item.active {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}
.faq-question { 
    font-weight: 700; 
    font-size: 1.2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.faq-question i { 
    color: var(--primary); 
    transition: var(--transition);
}
.faq-answer { 
    margin-top: 20px; 
    color: var(--text-light); 
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { 
    max-height: 300px;
}
.faq-item.active .faq-question i { 
    transform: rotate(180deg); 
}

/* --- CONTACT SECTION --- */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px; 
}
.contact-info-box { 
    margin-bottom: 35px; 
    display: flex; 
    align-items: flex-start; 
}
.icon-box {
    width: 70px; 
    height: 70px; 
    background: var(--primary-light); 
    color: var(--primary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-size: 1.7rem; 
    margin-right: 25px; 
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-info-box:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}
.contact-form-container { 
    background: var(--bg-grey); 
    padding: 60px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-sm);
}
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
}
.form-control { 
    width: 100%; 
    padding: 18px 20px; 
    border: 1px solid #ddd; 
    background: var(--white); 
    border-radius: var(--border-radius); 
    margin-bottom: 0; 
    font-family: inherit; 
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    outline: none;
}
.full-width { grid-column: span 2; }

/* --- CONTACT MAP --- */
.contact-map {
    height: 400px;
    background: var(--bg-grey);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 60px;
}
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
}
.map-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer { 
    background: var(--secondary); 
    color: #bdc3c7; 
    padding: 100px 0 40px; 
    position: relative;
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 50px; 
    margin-bottom: 70px; 
}
.footer-about { grid-column: span 2; }
.footer-about p { 
    margin-top: 25px; 
    font-size: 1rem; 
    opacity: 0.8; 
    line-height: 1.7;
}
.footer-title { 
    color: var(--white); 
    font-size: 1.3rem; 
    margin-bottom: 35px; 
    font-weight: 700; 
    position: relative;
    padding-bottom: 15px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}
.footer-links li { 
    margin-bottom: 18px; 
}
.footer-links a { 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.footer-links a i {
    color: var(--primary);
    font-size: 0.8rem;
    transition: var(--transition);
}
.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 10px; 
}
.footer-links a:hover i {
    transform: translateX(5px);
}

.newsletter-form {
    margin-top: 25px;
}
.newsletter-input {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.newsletter-input input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--white);
    font-family: inherit;
}
.newsletter-input input::placeholder {
    color: rgba(255,255,255,0.6);
}
.newsletter-input button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}
.newsletter-input button:hover {
    background: var(--primary-dark);
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 40px; 
    text-align: center; 
    font-size: 0.9rem; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom-links {
    display: flex;
    gap: 25px;
}
.footer-bottom-links a {
    transition: var(--transition);
}
.footer-bottom-links a:hover {
    color: var(--primary);
}

/* --- LEGAL PAGES --- */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}
.legal-section {
    margin-bottom: 50px;
}
.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}
.legal-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-light);
}
.legal-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.legal-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.legal-section li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}
.legal-update {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    border-left: 4px solid var(--primary);
}

/* --- CONTENT PAGES --- */
.content-page {
    line-height: 1.8;
}
.content-page h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--secondary);
}
.content-page h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-light);
}
.content-page p {
    margin-bottom: 20px;
}
.content-page ul, .content-page ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.content-page li {
    margin-bottom: 10px;
}
.content-page blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}
.content-page img {
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}
.pagination a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-grey);
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
}
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- ALERTS --- */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid;
}
.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--success);
    color: #155724;
}
.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #0c5460;
}
.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--warning);
    color: #856404;
}
.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger);
    color: #721c24;
}

/* --- PRINT STYLES --- */
@media print {
    .top-bar, .hamburger, .back-to-top, .hero-search, .newsletter-input, 
    .testimonial-nav, .team-social, .overlay-buttons, .footer-bottom-links {
        display: none !important;
    }
    .section-padding { padding: 40px 0; }
    body { font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    .btn { border: 1px solid #000; background: none; color: #000; }
    .hero { min-height: auto; padding: 60px 0; }
    .stats-section, .testimonials-section, .team-section::before { background: #fff !important; color: #000; }
    .property-overlay, .service-card:hover, .team-card:hover { transform: none !important; }
}