/*
Theme Name: FiveStars Theme
Theme URI: https://kh5stars.com
Author: FiveStars
Author URI: https://kh5stars.com
Description: قالب فايف ستار للخدمات المنزلية - إنشاء تلقائي لـ 466 صفحة (20 خدمة × 22 مدينة)
Version: 4.7
License: GNU General Public License v2 or later
Text Domain: fivestars
*/

/* ═══════════════════════════════════════════════════════════════
   المتغيرات الأساسية
═══════════════════════════════════════════════════════════════ */

:root {
    --primary-color: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #ccfbf1;
    --secondary-color: #f97316;
    --secondary-dark: #ea580c;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --whatsapp-color: #25d366;
    --whatsapp-dark: #128c7e;
}

/* ═══════════════════════════════════════════════════════════════
   إعادة التعيين والأساسيات
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
   الهيدر واللوجو
═══════════════════════════════════════════════════════════════ */

.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 30px;
}

/* ═══ اللوجو ═══ */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-image {
    height: 70px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-image {
    transform: scale(1.03);
}

.site-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.site-logo:hover .logo-text {
    color: var(--primary-dark);
}

/* ═══ القائمة الرئيسية - احترافية ═══ */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 20px;
    left: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-menu > li > a:hover::after {
    transform: scaleX(1);
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
    transform: scaleX(1);
}

/* القائمة الفرعية */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.nav-menu .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    padding-right: 25px;
}

/* ═══ زر القائمة للجوال ═══ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    gap: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-light);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══ Responsive Header ═══ */
@media (max-width: 992px) {
    .header-inner {
        gap: 15px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 14px 18px;
        justify-content: flex-start;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        padding-right: 20px;
        background: transparent;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .header-inner {
        padding: 10px 0;
    }
    
    .site-logo .logo-image {
        height: 55px;
        max-width: 65px;
    }
    
    .site-logo .logo-text {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Breadcrumb
═══════════════════════════════════════════════════════════════ */

.breadcrumb-section {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb .separator {
    color: var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════
   Page Header
═══════════════════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    flex-wrap: wrap;
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   تخطيط المحتوى
═══════════════════════════════════════════════════════════════ */

.content-wrapper {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   قائمة المحتويات - Table of Contents (TOC) - Collapsible Pro
═══════════════════════════════════════════════════════════════ */

.fivestars-toc {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.fivestars-toc:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* ═══ Header - الجزء القابل للنقر ═══ */
.fivestars-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.fivestars-toc-header:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
}

.fivestars-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.fivestars-toc-icon {
    font-size: 20px;
}

.fivestars-toc-text {
    font-weight: 700;
}

.fivestars-toc-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ═══ زر الطي/الفتح ═══ */
.fivestars-toc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fivestars-toc-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

/* حالة الطي */
.fivestars-toc.collapsed .toggle-text::after {
    content: 'إظهار';
}

.fivestars-toc.collapsed .toggle-text {
    font-size: 0;
}

.fivestars-toc:not(.collapsed) .toggle-text::after {
    content: 'إخفاء';
}

.fivestars-toc:not(.collapsed) .toggle-text {
    font-size: 0;
}

.fivestars-toc.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.fivestars-toc.collapsed .toggle-icon::after {
    content: '+';
}

.fivestars-toc:not(.collapsed) .toggle-icon::after {
    content: '−';
}

.toggle-icon::after {
    content: '−';
}

.toggle-text::after {
    content: 'إخفاء';
    font-size: 13px;
}

.fivestars-toc.collapsed .toggle-text::after {
    content: 'إظهار';
}

/* ═══ محتوى القائمة ═══ */
.fivestars-toc-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 1;
}

.fivestars-toc.collapsed .fivestars-toc-content {
    max-height: 0;
    opacity: 0;
}

.fivestars-toc-nav {
    padding: 15px 20px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.fivestars-toc-list {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}

.fivestars-toc-item {
    margin-bottom: 8px;
}

.fivestars-toc-item:last-child {
    margin-bottom: 0;
}

/* ═══ روابط القائمة ═══ */
.fivestars-toc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fivestars-toc-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.toc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

.toc-title {
    flex: 1;
    line-height: 1.5;
}

/* ═══ Hover Effect ═══ */
.fivestars-toc-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateX(-6px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.15);
}

.fivestars-toc-link:hover::before {
    background: var(--primary-color);
}

.fivestars-toc-link:hover .toc-number {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
}

/* ═══ العنصر النشط ═══ */
.fivestars-toc-link.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, #c7d2fe 100%);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.fivestars-toc-link.active::before {
    background: var(--secondary-color);
}

.fivestars-toc-link.active .toc-number {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .fivestars-toc-header {
        padding: 14px 16px;
    }
    
    .fivestars-toc-title {
        font-size: 14px;
        gap: 8px;
    }
    
    .fivestars-toc-icon {
        font-size: 18px;
    }
    
    .fivestars-toc-count {
        display: none;
    }
    
    .fivestars-toc-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .fivestars-toc-nav {
        padding: 12px 15px 15px;
    }
    
    .fivestars-toc-link {
        padding: 12px 14px;
        font-size: 14px;
        gap: 12px;
    }
    
    .toc-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* مطوية افتراضياً في الجوال */
    .fivestars-toc {
        /* يمكن جعلها مطوية افتراضياً في الجوال */
    }
}

/* ═══════════════════════════════════════════════════════════════
   تنسيقات المحتوى - Entry Content
═══════════════════════════════════════════════════════════════ */

.entry-content {
    font-size: 17px;
    line-height: 1.9;
}

.entry-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 45px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    scroll-margin-top: 100px;
}

.entry-content h2:first-of-type {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 30px 0 15px;
    padding-right: 15px;
    border-right: 4px solid var(--secondary-color);
}

.entry-content h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content strong {
    color: var(--primary-dark);
}

.entry-content ul,
.entry-content ol {
    margin: 18px 0 22px;
    padding-right: 25px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

/* صندوق التمييز */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #c7d2fe 100%);
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin: 25px 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   الشريط الجانبي - Sidebar
═══════════════════════════════════════════════════════════════ */

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
    }
}

.widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* صندوق السعر */
.price-widget {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}

.price-widget .label {
    font-size: 14px;
    opacity: 0.9;
}

.price-widget .price {
    font-size: 2.2rem;
    font-weight: 800;
}

.price-widget .note {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
}

/* قائمة المعلومات */
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .icon {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   أزرار CTA - الاتصال والواتساب
═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* أزرار التواصل في Sidebar */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-buttons .btn {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   أزرار التواصل العائمة - Floating Contact
═══════════════════════════════════════════════════════════════ */

.floating-contact {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    color: #fff;
}

.floating-btn svg {
    width: 26px;
    height: 26px;
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, var(--whatsapp-dark) 100%);
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.floating-btn.phone:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.5);
}

.floating-btn.phone svg {
    fill: #fff;
}

.floating-btn.whatsapp svg {
    fill: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   قسم FAQ
═══════════════════════════════════════════════════════════════ */

.faq-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question .icon {
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-light);
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   قسم CTA
═══════════════════════════════════════════════════════════════ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-top: 50px;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn-white {
    background: #fff;
    color: var(--primary-color);
}

.cta-buttons .btn-white:hover {
    background: var(--bg-light);
}

.cta-buttons .btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}

.cta-buttons .btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   الفوتر
═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0f1a 100%);
    color: #fff;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* لوجو الفوتر */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-image {
    transform: scale(1.05);
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    transition: color 0.3s;
}

.footer-logo:hover .footer-logo-text {
    color: var(--primary-light);
}

.footer-about .footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* روابط السوشيال */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link.whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
}

.social-link.whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* عناوين الفوتر */
.footer-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-widget p,
.footer-widget a,
.footer-widget li {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 12px;
    padding-right: 15px;
    position: relative;
}

.footer-widget li::before {
    content: '←';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 12px;
}

.footer-widget a {
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

/* قسم التواصل */
.footer-contact .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-right: 0;
}

.footer-contact .contact-list li::before {
    display: none;
}

.footer-contact .contact-list svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-contact .contact-list a {
    color: rgba(255,255,255,0.9);
}

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

/* الفوتر السفلي */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
}

.footer-bottom strong {
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════
   جدول الأسعار
═══════════════════════════════════════════════════════════════ */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background: var(--bg-light);
}

.price-table tr:hover {
    background: var(--primary-light);
}

.price-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   شبكة الأحياء/المدن
═══════════════════════════════════════════════════════════════ */

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.area-card {
    background: var(--bg-light);
    padding: 15px 10px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.area-card:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.area-card .icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.area-card h4 {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   الصورة البارزة
═══════════════════════════════════════════════════════════════ */

.featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .entry-content h2 {
        font-size: 1.3rem;
    }
    
    .entry-content h3 {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .floating-contact {
        bottom: 15px;
        left: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   شريط "هذا الإعلان للإيجار" - قبل الصورة البارزة
   ═══════════════════════════════════════════════════════════════ */

.fivestars-ad-ribbon {
    background: linear-gradient(135deg, #1a56db, #1e40af);
    color: #fff;
    padding: 16px 24px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    border-radius: 12px;
    margin: 0 0 24px;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.fivestars-ad-ribbon span:first-child {
    font-size: 24px;
    font-weight: 700;
}

.fivestars-ad-ribbon .ribbon-phone {
    font-size: 24px;
    font-weight: 800;
    direction: ltr;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 18px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .fivestars-ad-ribbon {
        padding: 12px 16px;
        gap: 8px;
        margin: 0 0 18px;
        border-radius: 10px;
    }

    .fivestars-ad-ribbon span:first-child {
        font-size: 20px;
    }

    .fivestars-ad-ribbon .ribbon-phone {
        font-size: 20px;
        padding: 3px 14px;
    }
}
