/* Restaurant List Screen */
.restaurant-list-screen {
    margin: 1em;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
    align-items: flex-start;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.back-icon {
    font-size: 16px;
}

.screen-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    background: none;
    padding: 0;
}

.screen-title h2::before {
    background: none;
    border: none;
}

.screen-subtitle {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.search-controls {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radius-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.refresh-button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.refresh-button:hover {
    background: #45a049;
}

.refresh-icon {
    font-size: 12px;
}

.results-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.restaurant-list-container {
    min-height: 300px;
    position: relative;
}

/* Loading State */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Restaurant Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.restaurant-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

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

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #d1d5db;
    background: #f8fafc;
}

.card-content {
    padding: 16px;
}

.restaurant-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1e293b;
    line-height: 1.3;
}

.restaurant-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.genre {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.budget {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.restaurant-catch {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.restaurant-details {
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.access {
    margin-bottom: 4px;
}

.capacity {
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-details-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3em 2em;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    flex: 1;
    text-align: center;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
}

.coupon-btn {
    background: #dc2626;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.coupon-btn:hover {
    background: #b91c1c;
    color: white;
    text-decoration: none;
}

/* Error and No Results */
.error-message,
.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon,
.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-message h3,
.no-results-message h3 {
    font-size: 20px;
    color: #374151;
    margin: 0 0 8px 0;
}

.error-message p,
.no-results-message p {
    color: #6b7280;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.retry-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.retry-button:hover {
    background: #45a049;
}

/* Load More */
.load-more-container {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.load-more-button {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.load-more-button:hover {
    background: #e2e8f0;
    border-color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .restaurant-list-screen {
        margin: 0.5em;
    }
    
    .screen-header {
        padding: 16px;
    }
    
    .screen-title h2 {
        font-size: 20px;
    }
    
    .search-controls {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-filters {
        justify-content: center;
    }
    
    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .restaurant-card {
        max-width: none;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 14px;
    }
    
    .restaurant-name {
        font-size: 16px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .coupon-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .restaurant-list-screen {
        margin: 0;
        border-radius: 0;
    }
    
    .back-button {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .screen-title h2 {
        font-size: 18px;
    }
    
    .radius-select,
    .refresh-button {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .restaurant-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .card-image {
        height: 140px;
    }
}