/* Sidebar Styles */
.sidebar {
    width: 100%;
    max-width: 350px;
    order: 2; /* Move to right side */
}

.content-area {
    order: 1; /* Keep content on left */
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.sidebar-widget:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: #667eea;
    font-size: 1.1rem;
}

/* Search Form */
.sidebar-search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.sidebar-search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sidebar-search-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.sidebar-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.3s;
    font-weight: 500;
}

.category-link i {
    margin-right: 0.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.category-link:hover {
    background: #f3f4f6;
    color: #667eea;
    transform: translateX(5px);
}

.category-link:hover i {
    color: #667eea;
}

.category-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-link.active i {
    color: white;
}

.category-count {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-link.active .category-count {
    background: rgba(255,255,255,0.2);
}

/* City Tags */
.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.city-tag i {
    font-size: 0.8rem;
}

.city-tag:hover {
    background: #e5e7eb;
    color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
}

.city-tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Recent/Popular Lists */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.recent-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.recent-link:hover {
    transform: translateX(5px);
}

.recent-link:hover .recent-title {
    color: #667eea;
}

.recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.recent-info {
    flex: 1;
}

.recent-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.recent-location {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

.recent-location i {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* CTA Widget */
.sidebar-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.sidebar-cta:hover {
    border-color: #667eea;
}

.cta-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .sidebar {
        max-width: 100%;
        margin-top: 2rem;
        order: 2; /* Sidebar below on mobile */
    }
    
    .content-area {
        order: 1; /* Content first on mobile */
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}
