/* Enhanced Arabic Design for Festivals Page */

/* Arabic Typography and RTL Optimization */
body[dir="rtl"] {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Enhanced Hero Section with Arabic Elements */
.hidden-section.single-par2 {
    position: relative;
    overflow: hidden;
}

.hidden-section.single-par2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(253, 123, 33, 0.1) 0%, 
        rgba(102, 126, 234, 0.1) 50%, 
        rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
}

.section-title.center-align.big-title {
    position: relative;
    z-index: 2;
}

.section-title.center-align.big-title h2 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fd7b21 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    position: relative;
}

.section-title.center-align.big-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #fd7b21 0%, #667eea 100%);
    border-radius: 2px;
}

.section-title.center-align.big-title h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

/* Enhanced Breadcrumbs with RTL Support */
.breadcrumbs.inline-breadcrumbs {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    border: 1px solid rgba(253, 123, 33, 0.1);
}

.breadcrumbs.inline-breadcrumbs a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumbs.inline-breadcrumbs a:hover {
    color: #fd7b21;
}

.breadcrumbs.inline-breadcrumbs a:not(:last-child)::after {
    content: '/';
    margin: 0 15px;
    color: #dee2e6;
}

/* Enhanced Search Section with Arabic Design */
.festivals-search-filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(253, 123, 33, 0.1);
    position: relative;
    overflow: hidden;
}

.festivals-search-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(253, 123, 33, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.festivals-search-filter-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.festivals-search-box {
    position: relative;
    z-index: 1;
}

.festivals-filter-form .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.festivals-filter-form .form-control:focus {
    border-color: #fd7b21;
    box-shadow: 0 0 0 4px rgba(253, 123, 33, 0.1);
    transform: translateY(-2px);
}

.festivals-filter-form .btn-primary {
    background: linear-gradient(135deg, #fd7b21 0%, #ffc288 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(253, 123, 33, 0.3);
}

.festivals-filter-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(253, 123, 33, 0.4);
}

/* Enhanced Festival Cards with Arabic Design */
.geodir-category-listing {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(253, 123, 33, 0.1);
}

.geodir-category-listing::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fd7b21 0%, #ff8c42 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.geodir-category-listing:hover::before {
    opacity: 1;
}

.geodir-category-listing:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Enhanced Image Container */
.geodir-category-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #fd7b21, #ff8c42);
}

.geodir-category-img::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.6) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.geodir-category-listing:hover .geodir-category-img::before {
    opacity: 1;
}

.geodir-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.geodir-category-listing:hover .geodir-category-img img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* RTL Avatar Position */
[dir="rtl"] .listing-avatar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

[dir="rtl"] .listing-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* RTL Status Badge */
[dir="rtl"] .sale-window {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
}

/* RTL Rating Position */
[dir="rtl"] .geodir-category-opt {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.listing-rating {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* RTL Date Badge */
[dir="rtl"] .count-listing {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.3);
    margin: 0;
}

/* Enhanced Content Area */
.geodir-category-content {
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.geodir-category-content-title h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.geodir-category-content-title h3:hover {
    color: #fd7b21;
    transform: translateX(-5px);
}

[dir="rtl"] .geodir-category-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.geodir-category-location i {
    color: #e74c3c;
    font-size: 14px;
}

.geodir-category-content p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    text-align: justify;
}

/* Enhanced Facilities List */
.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.facilities-list li {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.facilities-list li:hover {
    background: linear-gradient(135deg, #fd7b21 0%, #ffc288 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(253, 123, 33, 0.3);
}

.facilities-list li i {
    color: #28a745;
    font-size: 12px;
    transition: color 0.3s ease;
}

.facilities-list li:hover i {
    color: white;
}

/* Enhanced Footer */
.geodir-category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid #f1f3f4;
    position: relative;
}

.geodir-category-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #fd7b21 0%, #ff8c42 100%);
    border-radius: 2px;
}

.listing-item-category-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.listing-item-category {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-item-category-wrap span {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.listing-item-category-wrap:hover span {
    color: #fd7b21;
}

.listing-item-category-wrap:hover .listing-item-category {
    transform: scale(1.1) rotate(8deg);
}

/* RTL Action Buttons */
[dir="rtl"] .geodir-opt-list {
    display: flex;
    gap: 10px;
}

.geodir-opt-list ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.geodir-opt-list li a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.geodir-opt-list li a:hover {
    background: linear-gradient(135deg, #fd7b21 0%, #ffc288 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(253, 123, 33, 0.3);
}

/* Enhanced Results Title */
.festivals-results-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 2px solid rgba(253, 123, 33, 0.1);
    display: inline-block;
}

/* Enhanced Pagination */
.festivals-pagination {
    margin-top: 40px;
    text-align: center;
}

.festivals-pagination .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.festivals-pagination .page-link {
    display: block;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

.festivals-pagination .page-link:hover {
    background: linear-gradient(135deg, #fd7b21 0%, #ffc288 100%);
    color: white;
    border-color: #fd7b21;
    transform: translateY(-2px);
}

.festivals-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #fd7b21 0%, #ffc288 100%);
    color: white;
    border-color: #fd7b21;
}

/* Cultural Elements */
.geodir-category-listing::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fd7b21"><path d="M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5z"/></svg>') no-repeat center;
    opacity: 0.1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title.center-align.big-title h2 {
        font-size: 2.5rem;
    }
    
    .festivals-search-filter-section {
        padding: 25px;
    }
    
    .geodir-category-listing {
        margin-bottom: 25px;
    }
    
    .geodir-category-img {
        height: 200px;
    }
    
    .geodir-category-content {
        padding: 25px;
    }
    
    .geodir-category-content-title h3 {
        font-size: 18px;
    }
    
    .geodir-opt-list {
        margin-top: 20px;
        justify-content: center;
    }
    
    .geodir-opt-list ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title.center-align.big-title h2 {
        font-size: 2rem;
    }
    
    .festivals-search-filter-section {
        padding: 20px;
    }
    
    .geodir-category-content {
        padding: 20px;
    }
    
    .geodir-category-content-title h3 {
        font-size: 16px;
    }
    
    .facilities-list {
        gap: 8px;
    }
    
    .facilities-list li {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .geodir-opt-list li a {
        width: 36px;
        height: 36px;
    }
    
    .listing-avatar img {
        width: 45px;
        height: 45px;
    }
}

/* Arabic Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .geodir-category-listing {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
    }
    
    .geodir-category-content {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        color: white;
    }
    
    .geodir-category-content-title h3 {
        color: white;
    }
    
    .geodir-category-content p {
        color: #ecf0f1;
    }
    
    .festivals-search-filter-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .festivals-filter-form .form-control {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
}
