﻿/* ===== CUSTOMER HOME PAGE STYLES ===== */

/* --- Main Wrapper to prevent footer overlap --- */
.main-content {
    min-height: 100vh;
    padding-bottom: 70px; /* Ajusta según la altura de tu footer */
}

/* --- Sticky Filters Bar --- */
.filters-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

    .filters-sticky .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

/* --- Responsive Adjustments for Filters --- */
@media (max-width: 768px) {
    .filters-sticky {
        padding: 0.75rem 0.5rem;
    }

    .distance-filter {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .distance-filter .form-label {
            width: 100%;
        }

        .distance-filter input[type="range"] {
            width: 100%;
        }

    .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* --- Section Spacing --- */
.section-t-space {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Distance Slider --- */
.distance-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .distance-filter .form-label {
        margin-bottom: 0;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .distance-filter input[type="range"] {
        width: 150px;
        height: 8px;
        -webkit-appearance: none;
        appearance: none;
        background: #e9ecef;
        border-radius: 4px;
        outline: none;
        cursor: pointer;
    }

        .distance-filter input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #0d6efd;
            cursor: pointer;
            box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
        }

        .distance-filter input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #0d6efd;
            cursor: pointer;
            border: none;
            box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
        }

/* --- Restaurant Card --- */
.restaurant-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

    .restaurant-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .restaurant-card .card-img-wrapper {
        position: relative;
        height: 150px;
        overflow: hidden;
    }

        .restaurant-card .card-img-wrapper img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            transition: transform 0.3s ease;
        }

    .restaurant-card:hover .card-img-wrapper img {
        transform: scale(1.05);
    }

.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2; 
}

    .status-badge.bg-success {
        background-color: #198754 !important;
    }

    .status-badge.bg-secondary {
        background-color: #6c757d !important;
    }

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
    margin-bottom: 0.25rem;
}

.card-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.distance-tag {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
}

    .distance-tag i {
        color: #0d6efd;
        font-size: 0.9rem;
    }

/* --- Skeleton Cards --- */
.skeleton-card {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.skeleton-img {
    width: 100px;
    height: 100px;
    background: #e9ecef;
    flex-shrink: 0;
}

.skeleton-title {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    width: 70%;
}

.skeleton-text {
    height: 16px;
    background: #e9ecef;
    border-radius: 4px;
    width: 60%;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

    .empty-state i {
        font-size: 3rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }

    .empty-state h5 {
        font-size: 1.25rem;
        color: #495057;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        color: #6c757d;
        font-size: 0.875rem;
    }

/* --- Buttons & Controls --- */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0b5ed7;
        transform: translateY(-1px);
    }

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Pagination Scroll Component --- */
.paginate-scroll {
    text-align: center;
    padding: 1rem 0;
}

    .paginate-scroll .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #0d6efd;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
