/* ========================================= */
/* 1. PROPERTY PAGES - GITHUB DARK THEME     */
/* ========================================= */
html, body {
    background-color: #0d1117 !important;
    background-image: none !important; 
    background-attachment: fixed !important;
    color: #c9d1d9 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

header {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; 
    box-sizing: border-box !important;
    padding: 10px 5% !important; 
    min-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(13, 17, 23, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: none !important;
}

header nav { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; }
header .nav-links { display: flex !important; justify-content: center !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
.header-actions { display: flex !important; justify-content: flex-end !important; }
.nav-links a { color: #c9d1d9 !important; font-weight: 600; }
.nav-links a.active { color: #ff6a00 !important; text-shadow: 0 0 12px rgba(255, 106, 0, 0.5) !important; }
.search-btn svg { stroke: #ff6a00 !important; }
.burger div { background-color: #ff6a00 !important; }

main { padding-top: 120px !important; }
h1, h2, h3 { color: #ffffff !important; }

/* ========================================= */
/* 2. PROPERTY CARDS (GRID VIEW)             */
/* ========================================= */
#city-properties-container, #results-container {
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
}

.property-card {
    background: #121212 !important; 
    border-radius: 6px !important; 
    overflow: hidden;
    text-decoration: none; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease !important; 
}

.property-card:hover, .property-card:active, .property-card:focus {
    transform: translateY(-6px); 
    border: 1px solid #ff6a00 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 106, 0, 0.3) !important; 
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; 
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the box like background-size: cover */
    display: block;
    background-color: #1a1f26; /* Keeps the dark placeholder while the image downloads */
}

.card-id-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c9d1d9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 10;
}

.price-badge-top, .price-badge-bottom { 
    position: absolute !important;
    top: 15px !important;
    bottom: auto !important; 
    left: -6px !important; 
    background: #ff6a00 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 0 4px 4px 0 !important; 
    font-size: 1.1rem !important; 
    font-weight: bold !important;
    z-index: 10 !important;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4) !important;
}
.price-badge-top::before, .price-badge-bottom::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    border-top: 6px solid #b34a00; 
    border-left: 6px solid transparent;
}

.card-body {
    padding: 20px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-text {
    color: #ffffff !important; 
    font-size: 1.15rem; 
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-location-text {
    color: #c9d1d9 !important; 
    font-weight: 600;
    font-size: 0.85rem; 
    margin-bottom: 15px;
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px; 
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
}
.card-location-text i { color: #ff6a00; }

.card-details-row {
    display: flex;
    justify-content: center; /* 🚨 CENTERED THE CARD DETAILS 🚨 */
    align-items: center;
    color: #c9d1d9; 
    font-size: 0.95rem; 
    font-weight: 600;
    margin-top: auto; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    padding-top: 15px;
}

/* ========================================= */
/* 3. CITY PROPERTIES - HORIZONTAL LIST VIEW */
/* ========================================= */
.list-row {
    display: flex; flex-direction: row; align-items: center; padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: transparent; transition: background 0.2s;
    border-radius: 6px;
}
.list-row:hover { background: rgba(22, 27, 34, 0.5); }

.list-img {
    width: 280px; height: 180px; background-size: cover; background-position: center;
    background-repeat: no-repeat; background-color: #121212; 
    border-radius: 6px; flex-shrink: 0; margin-right: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-body { display: flex; flex-direction: row; flex-grow: 1; justify-content: space-between; align-items: center; }
.list-details { flex-grow: 1; padding-right: 20px; }
.list-title { color: #ffffff; font-size: 1.4rem; margin-bottom: 8px; font-weight: 600; }
.list-location { color: #8b949e; font-size: 0.95rem; margin-bottom: 12px; }
.list-desc { color: #c9d1d9; font-size: 0.95rem; line-height: 1.6; }
.list-action { display: flex; flex-direction: column; align-items: flex-end; min-width: 150px; }
.list-price { color: #ff6a00; font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; }

/* ========================================= */
/* 4. MOBILE SIZING FIXES                    */
/* ========================================= */
@media screen and (max-width: 768px) {
    #city-properties-container, #results-container {
        grid-template-columns: 1fr !important; 
        padding: 0 15px !important;
        gap: 20px !important;
        box-sizing: border-box;
    }

    .property-card {
        width: 100% !important;
    }

    .card-body {
        padding: 20px !important; 
    }
    
    .card-title-text {
        font-size: 1.15rem !important; 
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        color: #ffffff !important;
    }
    
    .card-location-text {
        font-size: 0.85rem !important; 
        font-weight: 600 !important;
        color: #c9d1d9 !important;
        padding: 4px 10px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        border-radius: 4px !important;
        margin-bottom: 15px !important;
    }

    .card-details-row {
        font-size: 0.95rem !important; 
        font-weight: 600 !important;
        color: #c9d1d9 !important;
        padding-top: 15px !important;
        margin-top: auto !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .list-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 0 !important;
    }
    .list-img {
        width: 100% !important;
        height: 220px !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .list-body { flex-direction: column !important; align-items: flex-start !important; width: 100%; }
    
    .list-title { font-size: 1.15rem !important; font-weight: 600 !important; margin-bottom: 12px !important; line-height: 1.4 !important; }
    .list-location { font-size: 0.85rem !important; font-weight: 600 !important; margin-bottom: 15px !important; }
    .list-desc { display: none !important; } 
    .list-action { align-items: flex-start !important; margin-top: 15px; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 15px; }
    .list-price { font-size: 1.3rem !important; }
    
    html body main section:first-of-type {
        padding-top: 120px !important; 
        padding-bottom: 20px !important;
    }
    html body main section:first-of-type h1 {
        font-size: 2.5rem !important;
        padding: 0 15px !important;
        text-align: center;
    }
}

/* ========================================= */
/* HERO BOX SCROLL DOWN ARROWS (4-ARROW CASCADE) */
/* ========================================= */

/* تفعيل وتنسيق الأسهم الكاسكادية للشاشات الكبيرة فقط */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; 
}

.hero-scroll-indicator i {
    color: rgba(255, 255, 255, 0.6); 
    font-size: 2.5rem; 
    margin: -6px 0; /* تقليص التداخل لإعطاء مساحة تنفس متناسقة بين الأسهم */
    animation: heroSlideFadeDown 2.5s infinite ease-in-out; 
}

/* الاستجابة المتتابعة لتوليد تأثير تدفق المياه الهابطة */
.hero-scroll-indicator i:nth-child(1) { animation-delay: 0s; }
.hero-scroll-indicator i:nth-child(2) { animation-delay: 0.15s; }

/* توهج السهمين السفليين باللون البرتقالي الأساسي المعتمد */
.hero-scroll-indicator i:nth-child(3) { 
    animation-delay: 0.3s; 
    color: #ff6a00; 
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
}
.hero-scroll-indicator i:nth-child(4) { 
    animation-delay: 0.45s; 
    color: #ff6a00; 
    text-shadow: 0 0 15px rgba(255, 106, 0, 0.6);
}

@keyframes heroSlideFadeDown {
    0% { opacity: 0; transform: translateY(-20px); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 0; }
}

/* 🚨 إخفاء مؤشر الأسهم تماماً على شاشات الهواتف والتصاميم المحمولة */
@media screen and (max-width: 768px) {
    .hero-scroll-indicator { 
        display: none !important; 
    }
}