/* Location Detection Styles for KRN Cuts */

/* Header Location Button */
.location-container {
    margin: 0 15px;
}

.location-box {
    min-width: 180px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
}

.location-box:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-search-btn {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.location-search-btn:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.location-search-btn.text-success .bi-geo-alt {
    color: #28a745;
}

/* Location Prompt Styles */
.location-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.location-prompt .alert {
    max-width: 350px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(13, 202, 240, 0.95) !important;
    border: none;
    color: white;
}

.location-prompt .alert-dismissible .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* Nearby Shops Section Enhanced Styles */
.nearby-shops-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.nearby-shops-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(var(--bs-primary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(var(--bs-secondary-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.nearby-shops-section .container {
    position: relative;
    z-index: 1;
}

.shop-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.shop-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shop-card .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

/* Shop Image Hover Effects */
.shop-image {
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.shop-card:hover .shop-image {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Distance Badge Enhanced */
.distance-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.distance-badge .badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Rating Badge */
.rating-badge .badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #333;
    font-weight: 600;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* Shop Stats */
.shop-stats {
    font-size: 0.85rem;
    color: #6c757d;
}

.shop-stats i {
    color: var(--bs-primary);
    margin-right: 4px;
}

/* Action Buttons */
.btn-outline-primary {
    border-width: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

/* Location Notice Banner */
.location-notice {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.location-notice .btn-link {
    text-decoration: underline;
    font-weight: 500;
}

.location-notice .btn-link:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Swiper Navigation Buttons */
.nearby-shops-prev,
.nearby-shops-next {
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--bs-primary);
    width: 44px;
    height: 44px;
    margin-top: -22px;
    transition: all 0.3s ease;
}

.nearby-shops-prev:hover,
.nearby-shops-next:hover {
    background: var(--bs-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4);
}

.nearby-shops-prev::after,
.nearby-shops-next::after {
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Responsive Enhancements */
@media (max-width: 992px) {
    .location-container {
        margin: 0 10px;
    }
    
    .location-box {
        min-width: 140px;
    }
    
    .location-search-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .location-prompt {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .location-prompt .alert {
        max-width: none;
    }
    
    .nearby-shops-section {
        padding: 30px 0;
    }
    
    .shop-card:hover {
        transform: translateY(-4px);
    }
    
    .nearby-shops-prev,
    .nearby-shops-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
}

@media (max-width: 576px) {
    .location-container {
        display: none; /* Hide on very small screens */
    }
    
    .shop-card {
        margin-bottom: 15px;
    }
    
    .distance-badge {
        top: 8px;
        right: 8px;
    }
    
    .distance-badge .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility Improvements */
.location-search-btn:focus,
.shop-card:focus-within {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .location-box {
        background: rgba(33, 37, 41, 0.9);
        border-color: #495057;
        color: #f8f9fa;
    }
    
    .shop-card .card {
        background: #212529;
        color: #f8f9fa;
    }
    
    .shop-stats {
        color: #adb5bd;
    }
}

/* Print Styles */
@media print {
    .location-prompt,
    .location-notice,
    .nearby-shops-prev,
    .nearby-shops-next {
        display: none !important;
    }
}