* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.place-types-container {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.place-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

button {
    padding: 12px 20px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    grid-column: 1 / -1;
}

button:hover {
    background-color: #3367D6;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.results-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

#map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Responsive styles */
@media (min-width: 768px) {
    .results-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .input-section {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 300px;
    }
}