/* =================================
   EGYMAP SCENE - PRELOADER & THEME
   ================================= */

        body.scene-theme { 
            background-color: #000 !important; 
        }

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: zoomIn 4s ease-out forwards;
    opacity: 0.3;
}
@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.preloader-logo {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}
.preloader-logo img {
    max-width: 200px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.loading-bar {
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
}
.loading-bar::after {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    background-color: white;
    animation: load 3s ease-out forwards;
}
@keyframes load {
    from { height: 0%; }
    to { height: 100%; }
}

/* --- Scene Theme General Styles --- */
body.scene-theme {
    background-color: #000;
    color: #fff;
}
/* Header layout fix */
.scene-theme .header-right-side {
    display: flex;
    align-items: center;
    gap: 35px;
}
.scene-theme .main-header {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.scene-theme .main-nav a {
    color: #ccc;
}
.scene-theme .main-nav a:hover, .scene-theme .main-nav a.active {
    color: white;
    border-bottom-color: white;
}
.scene-theme .lang-switcher a {
    color: white;
    border-color: white;
}
.scene-theme .lang-switcher a:hover {
    background-color: white;
    color: black;
}
.scene-theme .main-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.scene-theme .page-title-container {
    text-align: center;
    padding: 60px 0;
}
.scene-theme .page-title-container h1 {
    font-size: 56px;
    color: white;
    font-weight: 700;
}
.scene-theme .page-title-container p {
    font-size: 20px;
    color: #ccc;
    margin-top: 10px;
}

/* --- Scene Theme Franchise Page --- */
.scene-theme .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.scene-theme .filter-btn {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #555;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}
.scene-theme .filter-btn.active, .scene-theme .filter-btn:hover {
    background-color: white;
    color: black;
    border-color: white;
}
.scene-theme .franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.scene-theme .franchise-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}
.scene-theme .franchise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}
.scene-theme .franchise-logo {
    max-width: 100%;
    max-height: 80px;
    /* تم حذف فلتر الـ grayscale ليظهر اللوجو ملونًا دائمًا */
    transition: all 0.3s ease;
}

.scene-theme .franchise-card:hover .franchise-logo {
    /* أضفنا تأثير تكبير بسيط عند مرور الماوس */
    transform: scale(1.1);
}

/* --- Scene Theme Modal --- */
.scene-theme .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.scene-theme .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.scene-theme .modal-content {
    background-color: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.scene-theme .modal-overlay.active .modal-content {
    transform: scale(1);
}
.scene-theme .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}
.scene-theme .modal-close:hover {
    color: white;
}
.scene-theme .modal-body { text-align: center; }
.scene-theme .modal-body img { max-height: 70px; margin-bottom: 20px; }
.scene-theme .modal-body h2 { color: white; margin-bottom: 15px; }
.scene-theme .modal-body p { color: #ccc; line-height: 1.8; margin-bottom: 30px; }
.scene-theme .modal-body .modern-form label { color: #aaa; }
.scene-theme .modal-body .modern-form input, 
.scene-theme .modal-body .modern-form textarea {
    color: white;
    border-bottom-color: #555;
}
.scene-theme .modal-body .modern-form input:focus, 
.scene-theme .modal-body .modern-form textarea:focus {
    border-color: white;
}
.scene-theme .modal-body .modern-form input:focus + label,
.scene-theme .modal-body .modern-form input:not(:placeholder-shown) + label {
    color: white;
}
/* =================================
   SCENE THEME - REAL ESTATE PAGE
   ================================= */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.property-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.property-card:hover .property-card-image {
    transform: scale(1.1);
}

.property-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.property-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    box-sizing: border-box;
    color: white;
}

.property-category {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.property-card-content h3 {
    margin: 15px 0 0 0;
    font-size: 22px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Modal Gallery Styles */
.gallery-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.gallery-container img {
    height: 80px;
    width: auto;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
}
/* =================================
   SCENE THEME - ADVANCED PROPERTY MODAL
   ================================= */
.property-details-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.property-details-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
    font-size: 15px;
}
.property-details-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: white;
}
.property-details-list li strong {
    color: white;
    font-weight: 700;
}
.expand-form-btn {
    width: 100%;
    text-align: center;
}

.modal-form-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}
.modal-content.expanded .modal-form-container {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    margin-top: 30px;
}
.modal-content {
    /* Add transition for expansion */
    transition: all 0.4s ease;
}
.modal-content.expanded {
    max-width: 800px; /* Modal gets wider when expanded */
}

/* =================================
   SCENE THEME - MOBILE MENU
   ================================= */
.scene-theme .mobile-menu-toggle span {
    background-color: white; /* Make burger icon white */
}
.scene-theme .header-right-side {

    box-shadow: -5px 0 15px rgba(255,255,255,0.05);
}
.scene-theme .main-nav a {
    border-bottom-color: rgba(255,255,255,0.1);
}
body.scene-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    /* 1. تم زيادة تركيز الألوان هنا من 0.3 إلى 0.5 */
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 123, 255, 0.5), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(111, 66, 193, 0.5), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(23, 162, 184, 0.5), transparent 30%);
    
    /* 2. تم زيادة الشفافية العامة هنا من 0.5 إلى 0.8 */
    opacity: 0.8;
    
    /* 3. تم تقليل الضبابية هنا من 100px إلى 70px */
    filter: blur(70px);
    
    animation: moveInSpace 25s ease-in-out infinite alternate;
}