/* Banner Area Styles */
.banner-area {
    background: linear-gradient(135deg, #ffa500 0%, #ffc10712 100%);
    border-radius: 10px;
}

.banner-area h1 {
    font-family: 'Poppins', sans-serif;
    color: #198754;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.compact-search .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.compact-search .form-control {
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.compact-search .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}

.compact-search .btn-primary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 600;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange);
}

.breadcrumb-item.active {
    color: #FFFFFF;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-sidebar .card-header {
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
}

.filters-sidebar .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.filters-sidebar .form-select,
.filters-sidebar .form-check-input {
    cursor: pointer;
}

.filters-sidebar .form-select:focus,
.filters-sidebar .form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
}


/* Restaurant Card Component */
.restaurant-card {
    position: relative;
    background: var(--bg-white, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Link Wrapper */
.restaurant-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    cursor: pointer;
}

.restaurant-card-link:hover .restaurant-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-orange, #FF6B35);
}

.restaurant-card-link:hover .card-media img {
    transform: scale(1.08);
}

.restaurant-card-link:focus {
    outline: 2px solid var(--brand-orange, #FF6B35);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Featured Ribbon */
.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -43px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1F2937;
    padding: 1px 34px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    z-index: 10;
    border: 1px solid #FFD700;
}

/* Media Banner (16:9) */
.card-media {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #FFE0CC 0%, #FFD4B8 100%);
}

.card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--brand-orange, #FF6B35);
}

/* Status Chip (Top-Left) */
.status-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.status-chip i {
    font-size: 0.5rem;
}

.status-open {
    background: rgba(46, 125, 50, 0.95);
    color: #FFFFFF;
}

.status-closed {
    background: rgba(220, 38, 38, 0.95);
    color: #FFFFFF;
}

/* Rating Pill (Top-Right) */
.rating-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-navy, #273B68);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.rating-pill i {
    color: #F59E0B;
    font-size: 0.875rem;
}

/* Card Body */
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Info Row (Logo + Name) */
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.restaurant-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #E5E7EB);
}

.restaurant-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-orange, #FF6B35) 0%, #ff8a5b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.restaurant-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #1F2937);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Cuisine Chips */
.cuisine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    background: #EEF2FF;
    color: var(--brand-navy, #273B68);
    border: 1px solid #E0E7FF;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--brand-orange, #FF6B35);
    color: #FFFFFF;
    border-color: var(--brand-orange, #FF6B35);
}

/* Meta Line (Location) */
.meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748B);
}

.meta-line i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Hours Line */
.hours-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748B);
}

.hours-line i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.hours-line.time-open i {
    color: var(--brand-green, #2E7D32);
}

.hours-line.time-closed i {
    color: #DC2626;
}

/* Deal Line */
.deal-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 138, 91, 0.05) 100%);
    border-left: 3px solid var(--brand-orange, #FF6B35);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748B);
    min-height: 40px;
}

.deal-line.deal-empty {
    background: transparent;
    border: none;
    padding: 0;
    min-height: 0;
}

.deal-line i {
    color: var(--brand-orange, #FF6B35);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.deal-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-body {
        padding: 10px;
        gap: 6px;
    }

    .restaurant-name {
        font-size: 0.9rem;
    }

    /* Smaller badges on mobile */
    .status-chip {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .status-chip i {
        font-size: 0.4rem;
    }

    .meta-line,
    .hours-line {
        font-size: 0.75rem;
        gap: 6px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .restaurant-card,
    .card-media img,
    .chip,
    .restaurant-card-link {
        transition: none !important;
    }

    .restaurant-card-link:hover .restaurant-card {
        transform: none;
    }

    .restaurant-card-link:hover .card-media img {
        transform: none;
    }
}
