:root {
    --bayut-dark-blue: #08243c;
    --bayut-green: #28b16d;
    --bayut-light-gray: #f7f9fa;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #d8dce0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* شريط التنقل العلوي الاحترافي */
.navbar-bayut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-bayut .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--bayut-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-menu {
    display: flex;
    gap: 20px;
}

.main-menu a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.main-menu a:hover {
    color: var(--bayut-green);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #444;
}

/* القسم الرئيسي (الخلفية الزرقاء المتدرجة) */
.hero-bayut {
    background: linear-gradient(180deg, #0b3558 0%, var(--bayut-dark-blue) 100%);
    padding: 60px 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-container {
    width: 100%;
    max-width: 950px;
    padding: 0 20px;
}

.hero-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
}

/* التبويبات العلوية الصغيرة */
.top-search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.top-tab {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.top-tab.active {
    background: #ffffff;
    color: var(--text-dark);
}

.new-badge {
    background: #ff5a5f;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 5px;
}

/* صندوق البحث الرئيسي الأبيض الكبير */
.main-search-box {
    background: #ffffff;
    border-radius: 0 12px 12px 12px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

/* الصف الأول */
.search-row-1 {
    display: flex;
    gap: 12px;
    align-items: center;
}

.purpose-toggle {
    display: flex;
    background: var(--bayut-light-gray);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.purpose-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.purpose-btn.active {
    background: var(--bayut-green);
    color: white;
}

.location-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.location-input-wrapper input {
    width: 100%;
    padding: 14px 40px 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.pin-icon {
    position: absolute;
    right: 15px;
    color: #007a87;
    font-size: 16px;
}

.bayut-search-btn {
    background: var(--bayut-green);
    color: white;
    border: none;
    padding: 14px 45px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* الصف الثاني */
.search-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
}

.status-toggle {
    display: flex;
    gap: 15px;
}

.status-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 4px;
}

.status-btn.active {
    color: var(--bayut-green);
    border-bottom: 2px solid var(--bayut-green);
}

.filter-dropdowns {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.bayut-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    min-width: 150px;
    font-size: 13px;
    color: #444;
}

/* الصف الثالث */
.search-row-3 {
    text-align: left;
    font-size: 13px;
}

.search-2-link {
    color: #007a87;
    text-decoration: none;
    font-weight: 600;
}

/* البنر الإعلاني المدمج الأسفل (داماك) */
.damac-mock-banner {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-top: 25px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
}

.banner-info h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.banner-info p {
    font-size: 12px;
    color: #ccc;
}

.btn-discover {
    background: #fff;
    color: #222;
    border: none;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 8px;
    cursor: pointer;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 20px;
}

.qr-icon {
    font-size: 32px;
    color: #fff;
}

/* البنر الأخضر السفلي العريض */
.green-action-banner {
    background: #005a4b;
    color: white;
    padding: 25px 8%;
    display: flex;
    justify-content: center;
}

.green-banner-content {
    width: 100%;
    max-width: 950px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.green-text h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.green-text p {
    font-size: 14px;
    opacity: 0.85;
}

.btn-start-now {
    background: #ffffff;
    color: #005a4b;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* تنسيق شريط مصغرات الصور مثل بيوت دبي */
.thumbs-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.thumb-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.thumb-img:hover, .thumb-img.active-thumb {
    border-color: #28b16d; /* يظهر إطار أخضر حول الصورة النشطة */
    opacity: 0.9;
}
/* تنسيقات واجهة الـ CRM المخصصة */
.crm-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.crm-header h2 {
    font-size: 1.3rem;
    color: #0f172a;
}

.crm-actions {
    display: flex;
    gap: 12px;
}

.crm-search {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.crm-table th, .crm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.crm-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.whatsapp-btn {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-hot { background-color: #fee2e2; color: #dc2626; }
.badge-warm { background-color: #fef3c7; color: #d97706; }

.btn-match {
    background: #28b16d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-match:hover { background: #1e7e4c; }

.status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    outline: none;
}
/* ==========================================
   تنسيقات واجهة الـ CRM المخصصة للوحة التحكم
   ========================================== */
.crm-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.crm-header h2 {
    font-size: 1.3rem;
    color: #0f172a;
    margin: 0;
}

.crm-actions {
    display: flex;
    gap: 12px;
}

.crm-search {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.crm-table th, .crm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.crm-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.whatsapp-btn {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-hot { background-color: #fee2e2; color: #dc2626; }
.badge-warm { background-color: #fef3c7; color: #d97706; }

.btn-match {
    background: #28b16d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-match:hover { background: #1e7e4c; }

.status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    outline: none;
    font-family: inherit;
}