* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('imgs1/Wallpaper.jpg');
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #222;
    min-height: 100vh;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #262f50;
    text-transform: capitalize ;
    
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #262f50;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #262f50;
}

.main-content {
    flex: 1;
    padding: 30px 20px;
    background: rgba(255,255,255,0.60);
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
} 

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    background: rgba(255,255,255,0.90);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.4);
} 

.page-header h1 {
    color: #262f50;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 600;
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1em;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #262f50;
    box-shadow: 0 0 0 3px rgba(38, 47, 80, 0.1);
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.filters select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}

.filters select:hover {
    border-color: #262f50;
}

.filters select:focus {
    outline: none;
    border-color: #262f50;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

/* Thumbnails for multiple images */
.property-image-container { position: relative; }
.property-image-container .thumbnails { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 8px; padding: 6px; background: rgba(255,255,255,0.92); border-radius: 6px; overflow-x: auto; }
.property-image-container .thumb { width: 60px; height: 40px; object-fit: cover; cursor: pointer; border-radius: 6px; border: 1px solid #eee; transition: transform 0.15s; }
.property-image-container .thumb:hover { transform: scale(1.05); }

/* Lightbox / gallery styles */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display:flex; align-items:center; justify-content:center; z-index:2000; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; width: 100%; display:flex; align-items:center; justify-content:center; flex-direction: column; }
.lightbox-image { max-width: 100%; max-height: 80vh; border-radius:8px; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.9); border: none; padding: 8px 12px; border-radius:6px; cursor:pointer; font-size:18px; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-thumbs { display:flex; gap:8px; margin-top:10px; overflow-x:auto; max-width: 100%; padding:6px; }
.lightbox-thumbs img { width:80px; height:60px; object-fit: cover; cursor:pointer; opacity:0.7; border-radius:4px; border:2px solid transparent; }
.lightbox-thumbs img.active, .lightbox-thumbs img:hover { opacity:1; border-color:#fff; }
.lightbox-actions { display:flex; gap:8px; margin-top:10px; }
.lightbox-actions a { background: rgba(255,255,255,0.95); color:#222; padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:600; box-shadow:0 2px 6px rgba(0,0,0,0.2); }
.lightbox-actions a:hover { transform: translateY(-2px); }


.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #262f50;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 2;
}

.property-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #262f50;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 2;
}

.property-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #262f50;
    margin-bottom: 15px;
}

.property-title {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}
.property-description {
    color: #444;
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.6;
}

.property-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95em;
}

.detail-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.detail-label {
    font-weight: 500;
}

.property-address {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.address-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.property-contact {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.property-phone {
    font-size: 1.1em;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    background: #25D366;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.property-phone:hover {
    background: #20ba5a;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.property-phone i {
    font-size: 1.2em;
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.5em;
    padding: 50px;
    background: white;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.footer {
    background: #262f50;
    color: white;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: lowercase;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95em;
}

.footer-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    font-size: 1.2em;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .search-filter-container {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
        min-width: auto;
    }
    
    .property-image-container {
        height: 200px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }
}