* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-bar {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.search-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

#locationSearch {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#locationSearch:focus {
    outline: none;
    border-color: #3498db;
}

#findNearby {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

#findNearby:hover {
    background: #2980b9;
}

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

.filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.filters select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 0;
}

.cafe-list {
    padding: 30px 0;
}

.cafe-list h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.cafe-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.cafe-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cafe-address {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cafe-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.open {
    background: #d4edda;
    color: #155724;
}

.closed {
    background: #f8d7da;
    color: #721c24;
}

.cafe-distance {
    float: right;
    color: #3498db;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .search-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #locationSearch, #findNearby {
        width: 100%;
    }
    
    .filters {
        justify-content: space-between;
        width: 100%;
    }
    
    #map {
        height: 400px;
    }
}