/* Main Stylesheet for Egypt Real Estate */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8fafc;
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background: var(--primary-color);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 20px;
}

body.ltr .header-top-left {
    flex-direction: row;
}

body[dir="rtl"] .header-top-left,
.header-top-left {
    flex-direction: row-reverse;
}

.header-top-right {
    display: flex;
    align-items: center;
}

body.ltr .header-top-right {
    margin-left: 0;
}

.header-top-bar .lang-switcher {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: white;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.header-top-bar .lang-switcher:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-bar-link {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu-overlay,
.mobile-menu {
    display: none;
}

.lang-switcher {
    background: var(--light-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.lang-switcher:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-btn {
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-slider-prev,
.hero-slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border-color: white;
}

.hero-slider-dots {
    display: flex;
    gap: 10px;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    position: relative;
    z-index: 100;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

/* Advanced Filters Section */
#advancedFilters {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
}

#advancedFilters[style*="grid"] {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Filters Button */
#toggleFiltersBtn {
    background: var(--light-color);
    border: 2px dashed var(--border-color);
    color: var(--gray);
    transition: all 0.3s;
}

#toggleFiltersBtn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Cairo', sans-serif !important;
    direction: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

select option {
    font-family: 'Cairo', sans-serif !important;
    padding: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Property Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.property-image-link:hover {
    opacity: 0.95;
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.property-badge.featured {
    background: var(--accent-color);
}

.property-badge.sale {
    background: #dc2626;
}

.property-badge.rent {
    background: #2563eb;
}

.property-content {
    padding: 25px;
}

.property-type {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.property-location {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.property-price span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: normal;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Property Details Page */
.property-details {
    padding: 40px 0;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.main-image {
    grid-row: span 2;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 400px;
    background: var(--light-color);
}

.main-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnail {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.gallery-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prevent images from being hidden */
.property-gallery img,
.main-image img,
.gallery-thumbnail img {
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.property-description {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.amenity-item i {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-light);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: var(--gray-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* Admin Styles */
.admin-body {
    background: #f8fafc;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 360px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveSidebarBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveSidebarBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

body.ltr .admin-sidebar {
    right: auto;
    left: 0;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-logo {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.admin-logo i {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.admin-menu li {
    margin-bottom: 4px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
    font-weight: 500;
}

body.ltr .admin-menu a {
    border-right: none;
    border-left: 4px solid transparent;
}

.admin-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding-right: 30px;
}

body.ltr .admin-menu a:hover {
    padding-right: 25px;
    padding-left: 30px;
}

.admin-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-right-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

body.ltr .admin-menu a.active {
    border-left-color: rgba(255, 255, 255, 0.8);
    border-right-color: transparent;
}

.admin-menu i {
    width: 24px;
    font-size: 1.1rem;
    text-align: center;
}

.admin-main {
    flex: 1;
    width: calc(100% - 360px);
    margin-right: 360px !important;
    margin-left: 0 !important;
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

body.ltr .admin-main {
    margin-right: 0 !important;
    margin-left: 360px !important;
}


.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

.admin-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 24px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

body.ltr .admin-table th,
body.ltr .admin-table td {
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: #fdfdfd;
}

.action-btn {
    padding: 8px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    line-height: 1;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-available {
    background: #ecfdf5;
    color: #059669;
}

.status-rented {
    background: #fef2f2;
    color: #dc2626;
}

.status-pending {
    background: #fffbeb;
    color: #d97706;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (min-width: 769px) {
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }

    .admin-main {
        margin-right: 240px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .header-actions .lang-switcher {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: var(--primary-color);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -85%;
        width: 85%;
        height: 100%;
        background: var(--white);
        z-index: 1002;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    body.ltr .mobile-menu {
        right: auto;
        left: -85%;
        transition: left 0.3s ease;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark-color);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
    }

    .mobile-menu-close:hover {
        background: var(--light-color);
    }

    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-nav-menu a {
        display: block;
        padding: 15px 20px;
        color: var(--dark-color);
        font-weight: 500;
        transition: background 0.3s, color 0.3s;
    }

    .mobile-nav-menu a:hover,
    .mobile-nav-menu a.active {
        background: var(--primary-color);
        color: var(--white);
    }

    .mobile-menu-actions {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu-actions .lang-switcher {
        display: flex;
    }

    .mobile-menu-actions .btn {
        width: 100%;
        justify-content: center;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        display: block;
        opacity: 1;
    }

    body.mobile-menu-open .mobile-menu {
        right: 0;
    }

    body.ltr.mobile-menu-open .mobile-menu {
        right: auto;
        left: 0;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

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

    .main-image {
        grid-row: auto;
    }

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

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-right: 0;
    }

    .admin-wrapper {
        flex-direction: column;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-modal.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    transform: rotate(90deg);
}

.popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.popup-content .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.popup-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-modal.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #333;
}

.popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Banner Styles */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.promo-banner .container {
    position: relative;
    z-index: 1;
}

.promo-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.promo-banner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.promo-banner .btn {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.promo-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}