/* Popular Locations Widget Styles */
.rent-com-popular-locations {
    padding: 20px 0;
}

/* Title */
.popular-locations-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1f2937;
}

.popular-locations-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tab Navigation */
.popular-locations-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button svg {
    width: 20px;
    height: 20px;
}

.tab-button:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.tab-button.active {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* Grid Layout */
.popular-locations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .popular-locations-container {
        grid-template-columns: 1fr;
    }
}

/* List Layout */
.layout-list .popular-locations-container {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Location Item */
.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-item:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.location-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dc2626;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.location-item:hover::before {
    transform: scaleY(1);
}

/* Location Route */
.location-route {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.location-from,
.location-to {
    display: flex;
    flex-direction: column;
}

.location-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    display: block;
}

.location-from .location-name {
    color: #dc2626;
    font-weight: 600;
}

/* Arrow Between Locations */
.location-arrow {
    color: #9ca3af;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.location-arrow svg {
    width: 18px;
    height: 18px;
}

/* Price Section */
.location-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 12px;
    flex-shrink: 0;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}

.price-label {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Arrow Right Icon */
.location-arrow-right {
    color: #9ca3af;
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.location-item:hover .location-arrow-right {
    transform: translateX(3px);
    color: #dc2626;
}

.location-arrow-right svg {
    width: 16px;
    height: 16px;
}

/* Widget Title */
.rent-com-popular-locations-widget .widget-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1f2937;
}

/* Category Filter Buttons - Modern Design */
.category-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Hover Effect */
.category-filter-btn:hover {
    transform: translateY(-2px);
    border-color: #dc2626;
    color: #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15), 0 2px 6px rgba(220, 38, 38, 0.1);
}

/* Active State */
.category-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3), 0 2px 8px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.category-filter-btn.active:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 3px 10px rgba(220, 38, 38, 0.25);
}

/* Ripple Effect on Click */
.category-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-filter-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Focus State (Accessibility) */
.category-filter-btn:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Icon Support (if added later) */
.category-filter-btn svg,
.category-filter-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.category-filter-btn:hover svg,
.category-filter-btn:hover i {
    transform: scale(1.1);
}

/* Badge/Counter Support */
.category-filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 11px;
    margin-left: 6px;
}

.category-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .category-filters {
        gap: 10px;
    }
    
    .category-filter-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-filters {
        gap: 8px;
        padding: 0 15px;
        margin: 25px 0 35px;
    }
    
    .category-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 40px;
    }
}

@media (max-width: 640px) {
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 0 10px;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .category-filter-btn {
        flex-shrink: 0;
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .category-filters {
        gap: 6px;
    }
    
    .category-filter-btn {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Loading State (optional) */
.category-filter-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.category-filter-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll Indicator for Mobile */
.category-filters::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    display: none;
}

@media (max-width: 640px) {
    .category-filters {
        position: relative;
    }
    
    .category-filters::after {
        display: block;
    }
}

/* Category Badge (on location items) */
.location-category-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.location-item:hover .location-category-badge {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Different Badge Colors for Different Categories (optional) */
.location-category-badge[data-category="havalimani"],
.location-category-badge[data-category="airport"] {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.location-category-badge[data-category="sehir-merkezi"],
.location-category-badge[data-category="city-center"] {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

.location-category-badge[data-category="otogar"],
.location-category-badge[data-category="bus-station"] {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
}

.location-category-badge[data-category="alisveris-merkezi"],
.location-category-badge[data-category="shopping-mall"] {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.2);
}

/* Animation for Category Filters */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-filter-btn {
    animation: slideInDown 0.4s ease backwards;
}

.category-filter-btn:nth-child(1) { animation-delay: 0.05s; }
.category-filter-btn:nth-child(2) { animation-delay: 0.1s; }
.category-filter-btn:nth-child(3) { animation-delay: 0.15s; }
.category-filter-btn:nth-child(4) { animation-delay: 0.2s; }
.category-filter-btn:nth-child(5) { animation-delay: 0.25s; }
.category-filter-btn:nth-child(6) { animation-delay: 0.3s; }

.location-item {
    animation: fadeInUp 0.5s ease backwards;
}

.location-item:nth-child(1) { animation-delay: 0.05s; }
.location-item:nth-child(2) { animation-delay: 0.1s; }
.location-item:nth-child(3) { animation-delay: 0.15s; }
.location-item:nth-child(4) { animation-delay: 0.2s; }
.location-item:nth-child(5) { animation-delay: 0.25s; }
.location-item:nth-child(6) { animation-delay: 0.3s; }
.location-item:nth-child(7) { animation-delay: 0.35s; }
.location-item:nth-child(8) { animation-delay: 0.4s; }
