/* متغيرات الألوان */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

/* إعدادات عامة */
body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* الترويسة */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* البطاقات */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

/* صور العقارات */
.property-image {
    height: 200px;
    object-fit: cover;
}

/* معرض الصور */
.swiper {
    width: 100%;
    height: 400px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الأزرار */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

/* التذييل */
.footer {
    background-color: var(--light-color);
    padding: 4rem 0;
    margin-top: auto;
}

.footer a {
    color: var(--secondary-color);
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: var(--primary-color);
}

/* الشارات */
.badge {
    padding: 0.5em 1em;
    border-radius: 6px;
    font-weight: 500;
}

/* تفاصيل العقار */
.property-details {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

/* الصفحة الرئيسية */
.hero-section {
    background-color: #fff;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Company Page Styles */
.company-header {
    position: relative;
    min-height: 500px;
    padding: 100px 0;
    color: white;
    margin-top: -76px;
    text-align: center;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.company-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('/unuplace-link/assets/img/header-bg.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.company-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.company-header .header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.company-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.company-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.company-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.property-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.company-property-image {
    height: 200px;
    object-fit: cover;
}

.feature-item {
    display: inline-block;
    margin-right: 1rem;
}

.company-section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.company-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .property-image {
        height: 180px;
    }

    .swiper {
        height: 300px;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .company-header {
        min-height: 400px;
        padding: 80px 0;
    }
    
    .company-name {
        font-size: 2.5rem;
    }
    
    .company-slogan {
        font-size: 1.2rem;
    }
    
    .company-description {
        font-size: 1rem;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .company-logo {
        width: 120px;
        height: 120px;
    }
    
    .property-image {
        height: 180px;
    }
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
