/* ===== FIX RTL/LTR ISSUES ===== */
/* جلوگیری از معکوس شدن متن‌های انگلیسی در حالت RTL */
.logo,
.mobile-menu-logo,
.phone-number,
.contact-phone,
.footer-phone,
.hero-nexus,
.hero-flow {
    unicode-bidi: embed;
    direction: ltr;
    display: inline-block;
}

/* اطمینان از نمایش صحیح WE-V در همه حالت‌ها */
.logo span[dir="ltr"],
.mobile-menu-logo span[dir="ltr"] {
    unicode-bidi: isolate;
    direction: ltr;
}

/* ===== LISTINGS SECTION ===== */
.listings {
    padding: 120px 2rem;
    position: relative;
}

.listings-container {
    max-width: 1400px;
    margin: 0 auto;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-cyan);
}

.listing-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--darker-bg);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: var(--darker-bg);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.listing-content {
    padding: 2rem;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.listing-price {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.price-value {
    color: var(--primary-cyan);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ===== HERO PHONE ===== */
.hero-phone {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.phone-box {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.phone-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
}

.phone-icon {
    font-size: 2rem;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: inline-block;
    margin-left: 1rem;
}

.cyber-button-small {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.cyber-button-small:hover {
    background: var(--primary-cyan);
    color: var(--darker-bg);
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    clip-path: polygon(30px 0%, 100% 0%, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0% 100%, 0% 30px);
    max-width: 500px;
    width: 100%;
}

.contact-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-phone {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: var(--darker-bg);
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.footer-phone {
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-box {
        padding: 1rem 2rem;
    }
    
    .phone-number {
        font-size: 1.3rem;
    }
    
    .lang-switcher {
        margin-left: 0;
        margin-right: 1rem;
    }
}