﻿/* متغیرهای مدرن CSS */
:root {
    --primary: #12b2b5;
    --primary-dark: #12b2b5;
    --primary-light: #43d4d7;
    --secondary: #F0F5FF;
    --accent: #FF5A5F;
    --accent-light: #FF7A7F;
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --luxury: #D4AF37;
    --success: #28C76F;
    --warning: #FF9F43;
    --text-dark: #0D1B2A;
    --text-medium: #495057;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 106, 255, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 106, 255, 0.2);
    --border-radius: 20px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
    text-align: right;
    overflow-x: hidden;
    direction:rtl;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* هدر اصلی */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* لوگو */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

    .logo i {
        font-size: 1.3rem;
        color: var(--gold-light);
        animation: float 3s ease-in-out infinite;
    }

/* دکمه منوی همبرگری - سه خط */
.navbar-toggler {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .navbar-toggler span {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: var(--transition);
    }

    /* انیمیشن تبدیل سه خط به X */
    .navbar-toggler.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar-toggler.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* منوی موبایل - بوتسترپ استایل */
.navbar-collapse {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2rem 1.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
}

    .navbar-collapse.show {
        right: 0;
    }

/* منوی دسکتاپ */
.desktop-nav {
    display: none;
}

/* لیست منو */
.navbar-nav {
    list-style: none;
    width: 100%;
}

.nav-item {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.3s ease-out forwards;
}

.navbar-collapse.show .nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar-collapse.show .nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.navbar-collapse.show .nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.navbar-collapse.show .nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.navbar-collapse.show .nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.navbar-collapse.show .nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-10px);
    }

    .nav-link i {
        width: 25px;
        font-size: 1.3rem;
    }

/* اوورلی برای بستن منو */
.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .navbar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* محتوای اصلی */
main {
    margin-top: 70px;
}

/* جستجوی ساده */
.simple-search {
    background: linear-gradient(135deg, rgb(0 220 255 / 95%)0%, rgba(88, 72, 188, 0.95) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.search-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.simple-search-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

    .simple-search-box input {
        padding: 1rem;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-family: 'Vazirmatn', sans-serif;
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
        border: 2px solid transparent;
    }

        .simple-search-box input:focus {
            outline: none;
            border-color: var(--gold-light);
        }

.simple-search-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .simple-search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 90, 95, 0.3);
    }

/* اسلایدر */
.banner-slider {
    padding: 0 1rem;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    width: 100%;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

    .slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        opacity: 0.9;
    }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

    .slider-nav button {
        background: rgba(255, 255, 255, 0.8);
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
    }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

    .dot.active {
        background: var(--gold);
        transform: scale(1.3);
    }

/* بخش ویژگی‌ها */
.features-section {
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* املاک لوکس */
.luxury-section {
    background: linear-gradient(135deg, #f8f6f0 0%, #f5f1e8 100%);
    padding: 3rem 1rem;
    margin: 2rem 0;
}

.luxury-header {
    margin-bottom: 2rem;
    text-align: center;
}

.luxury-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--luxury);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.luxury-badge {
    background: var(--gold);
    color: var(--text-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.luxury-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.luxury-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.luxury-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--luxury) 100%);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.luxury-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .luxury-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.luxury-content {
    padding: 1.5rem;
}

.luxury-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--luxury);
    margin-bottom: 0.5rem;
}

.luxury-address {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.luxury-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    border-right: 3px solid #f0f0f0;
    padding-right: 0.8rem;
}

.luxury-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.luxury-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

    .luxury-feature i {
        color: var(--gold);
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

/* املاک عادی */
.properties-section {
    padding: 2rem 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    z-index: 2;
}

.property-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .property-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.property-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.property-content {
    padding: 1.2rem;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.property-address {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* کارشناسی */
.expert-rating {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border-right: 4px solid var(--primary);
}

.expert-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.rating-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rating-label {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.rating-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #7cfc00);
    border-radius: 3px;
}

.total-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
}

.total-score {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

    .feature i {
        color: var(--primary);
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

/* تخمین قیمت */
.valuation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
    text-align: center;
}

.valuation-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.valuation-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.valuation-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* فوتر */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 1.5rem 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 0.8rem;
    }

.footer-column a {
    color: #b0b7c3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #b0b7c3;
    font-size: 0.85rem;
}

/* مدال کارشناسی */
.valuation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .valuation-modal.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideInUp 0.3s ease;
}

    .modal-content h3 {
        margin-bottom: 1.5rem;
        color: var(--text-dark);
    }

    .modal-content input {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 50px;
        font-family: 'Vazirmatn', sans-serif;
    }

    .modal-content button {
        width: 100%;
        padding: 1rem;
        border: none;
        border-radius: 50px;
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 0.5rem;
    }

    .modal-content .submit-btn {
        background: var(--primary);
        color: white;
    }

    .modal-content .close-btn {
        background: var(--accent);
        color: white;
    }

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* دکمه اسکرول به بالا */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

/* برای تبلت و دسکتاپ */
@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: none;
    }

    .desktop-nav {
        display: flex;
        list-style: none;
        gap: 0.5rem;
    }

        .desktop-nav a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

            .desktop-nav a:hover,
            .desktop-nav a.active {
                background: rgba(255, 255, 255, 0.15);
            }

    .simple-search-box {
        flex-direction: row;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .luxury-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .luxury-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');
