/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 800;
}

.header-content p {
    color: #718096;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-bottom: 24px;
}

.search-container {
    margin-bottom: 20px;
}

#searchBox {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
}

#searchBox:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select {
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.clear-btn:active {
    transform: translateY(0);
}

/* Stats */
.stats {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Results Grid */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.place-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.3;
    flex: 1;
}

.rating-badge {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    color: #718096;
    font-size: 0.95rem;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon {
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 100%);
    color: #065f46;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.price {
    color: #059669;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviews {
    color: #a0aec0;
    font-size: 0.9rem;
}

.notes {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 12px;
}

/* Loading and Empty States */
.loading, .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.loading {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.no-results h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.no-results p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

footer p {
    margin: 8px 0;
    opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .filters-section {
        padding: 20px 16px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .place-name {
        font-size: 1.2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 16px;
    }
    
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .filters-section {
        padding: 16px;
    }
    
    #searchBox {
        padding: 14px 16px;
        font-size: 15px;
    }
}