/* Template-Compatible Festival Enhancements */

/* Use existing template colors and styles */
:root {
    --template-primary: #fd7b21;
    --template-primary-dark: #e56a1a;
    --template-secondary: #40B69E;
    --template-gray: #f8f9fa;
    --template-border: #ddd;
    --template-shadow: rgba(0,0,0,0.1);
}

/* Enhanced Hero Section - Template Compatible */
.section-title.center-align.big-title h2 {
    color: #333;
    font-weight: 700;
    position: relative;
}

.section-title.center-align.big-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--template-primary);
}

.section-title.center-align.big-title h4 {
    color: #666;
    font-weight: 400;
}

/* Enhanced Search Section - Template Compatible */
.festivals-search-filter-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--template-shadow);
    padding: 25px;
    border: 1px solid var(--template-border);
    margin-bottom: 30px;
}

.festivals-filter-form .form-control {
    border: 1px solid var(--template-border);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.festivals-filter-form .form-control:focus {
    border-color: var(--template-primary);
    box-shadow: 0 0 0 0.2rem rgba(253, 123, 33, 0.25);
    outline: none;
}

.festivals-filter-form .btn-primary {
    background: var(--template-primary);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.festivals-filter-form .btn-primary:hover {
    background: var(--template-primary-dark);
    transform: translateY(-1px);
}

/* Enhanced Festival Cards - Template Compatible */
.geodir-category-listing {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--template-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--template-border);
    margin-bottom: 25px;
}

.geodir-category-listing:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--template-shadow);
    border-color: var(--template-primary);
}

/* Enhanced Image Container */
.geodir-category-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.geodir-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.geodir-category-listing:hover .geodir-category-img img {
    transform: scale(1.05);
}

/* Enhanced Avatar */
.listing-avatar {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.listing-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px var(--template-shadow);
    transition: all 0.3s ease;
}

.listing-avatar:hover img {
    transform: scale(1.1);
    border-color: var(--template-primary);
}

/* Enhanced Status Badge */
.sale-window {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--template-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(253, 123, 33, 0.3);
}

/* Enhanced Rating and Date */
.geodir-category-opt {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.count-listing {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 8px 0 0 0;
    backdrop-filter: blur(5px);
}

.count-listing span {
    display: block;
    font-size: 18px;
    line-height: 1;
}

/* Enhanced Content Area */
.geodir-category-content {
    padding: 20px;
    background: #fff;
}

.geodir-category-content-title h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.geodir-category-content-title h3:hover {
    color: var(--template-primary);
}

.geodir-category-content-title h3 a {
    color: inherit;
    text-decoration: none;
}

.geodir-category-location {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.geodir-category-location i {
    color: var(--template-primary);
    font-size: 12px;
}

.geodir-category-location a {
    color: inherit;
    text-decoration: none;
}

.geodir-category-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Facilities */
.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
}

.facilities-list li {
    background: var(--template-gray);
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--template-border);
    transition: all 0.3s ease;
}

.facilities-list li:hover {
    background: var(--template-primary);
    color: #fff;
    transform: translateY(-1px);
}

.facilities-list li i {
    color: var(--template-secondary);
    font-size: 10px;
    transition: color 0.3s ease;
}

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

/* Enhanced Footer */
.geodir-category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--template-border);
}

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

.listing-item-category {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.listing-item-category-wrap span {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.listing-item-category-wrap:hover span {
    color: var(--template-primary);
}

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

/* Enhanced Action Buttons */
.geodir-opt-list {
    display: flex;
    gap: 5px;
}

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

.geodir-opt-list li a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--template-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--template-border);
    color: #666;
    font-size: 12px;
}

.geodir-opt-list li a:hover {
    background: var(--template-primary);
    color: #fff;
    transform: translateY(-2px);
    border-color: var(--template-primary);
}

/* Enhanced Tooltips */
.geodir-opt-tooltip {
    position: absolute;
    bottom: 40px;
    right: 50%;
    transform: translateX(50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.geodir-opt-list li a:hover .geodir-opt-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 45px;
}

/* Enhanced Results Title */
.festivals-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--template-primary);
}

/* Enhanced Breadcrumbs */
.breadcrumbs.inline-breadcrumbs {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--template-shadow);
    border: 1px solid var(--template-border);
    margin-bottom: 20px;
}

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

.breadcrumbs.inline-breadcrumbs a:hover {
    color: var(--template-primary);
}

/* Enhanced Pagination - Template Compatible */
.festivals-pagination .page-link {
    background: #fff;
    border: 1px solid var(--template-border);
    color: var(--template-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.festivals-pagination .page-link:hover {
    background: var(--template-primary);
    color: #fff;
    border-color: var(--template-primary);
}

.festivals-pagination .page-item.active .page-link {
    background: var(--template-primary);
    color: #fff;
    border-color: var(--template-primary);
}

/* RTL Support */
[dir="rtl"] .geodir-category-listing {
    text-align: right;
}

[dir="rtl"] .geodir-category-content {
    text-align: right;
}

[dir="rtl"] .geodir-category-location {
    justify-content: flex-end;
}

[dir="rtl"] .listing-item-category-wrap {
    justify-content: flex-end;
}

[dir="rtl"] .geodir-opt-list {
    justify-content: flex-start;
}

[dir="rtl"] .listing-avatar {
    left: 15px;
    right: auto;
}

[dir="rtl"] .sale-window {
    right: 15px;
    left: auto;
}

[dir="rtl"] .geodir-category-opt {
    left: 15px;
    right: auto;
}

/* Mobile Responsive - Template Compatible */
@media (max-width: 768px) {
    .festivals-search-filter-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .geodir-category-listing {
        margin-bottom: 20px;
    }
    
    .geodir-category-img {
        height: 180px;
    }
    
    .geodir-category-content {
        padding: 15px;
    }
    
    .geodir-category-content-title h3 {
        font-size: 16px;
    }
    
    .geodir-opt-list {
        margin-top: 15px;
        justify-content: center;
    }
    
    .geodir-opt-list ul {
        justify-content: center;
    }
    
    .geodir-category-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    [dir="rtl"] .geodir-category-footer {
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .geodir-category-content {
        padding: 12px;
    }
    
    .geodir-category-content-title h3 {
        font-size: 15px;
    }
    
    .facilities-list {
        gap: 6px;
    }
    
    .facilities-list li {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .geodir-opt-list li a {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .listing-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .count-listing {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .count-listing span {
        font-size: 16px;
    }
}

/* Subtle Animations */
.geodir-category-listing {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.geodir-category-listing:nth-child(1) { animation-delay: 0.1s; }
.geodir-category-listing:nth-child(2) { animation-delay: 0.2s; }
.geodir-category-listing:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects Enhancement */
.geodir-category-listing {
    position: relative;
    overflow: hidden;
}

.geodir-category-listing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--template-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.geodir-category-listing:hover::before {
    transform: scaleX(1);
}

/* Category Color Enhancements */
.red-bg { background: #dc3545; }
.green-bg { background: var(--template-secondary); }
.blue-bg { background: var(--template-primary); }
.yellow-bg { background: #ffc107; }
.purple-bg { background: #6f42c1; }
.pink-bg { background: #e83e8c; }

/* Enhanced Loading State */
.geodir-category-listing.loading {
    opacity: 0.6;
    pointer-events: none;
}

.geodir-category-listing.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--template-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
