* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff5eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: #e65100;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 2px solid #ff9800;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #e65100;
}

button {
    padding: 10px 20px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e65100;
}

#map {
    height: 300px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 2px solid #ff9800;
}

.view-toggle {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.view-toggle button {
    background-color: #ffb74d;
}

.view-toggle button.active {
    background-color: #e65100;
}

#results {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.list-view .place-card {
    width: 100%;
}

.grid-view .place-card {
    width: calc(33.333% - 20px);
}

.place-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ffe0b2;
    transition: transform 0.3s ease;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.place-card h3 {
    margin-bottom: 10px;
    color: #e65100;
}

.place-card p {
    margin-bottom: 15px;
    color: #666;
}

.place-card .directions {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid #ff9800;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.place-card .directions:hover {
    background-color: #ff9800;
    color: white;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #e65100;
}

@media (max-width: 768px) {
    .grid-view .place-card {
        width: calc(50% - 20px);
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grid-view .place-card {
        width: 100%;
    }
    
    header h1 {
        font-size: 24px;
    }
}

.radius-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e65100;
}

.radius-control select {
    padding: 8px;
    border: 2px solid #ff9800;
    border-radius: 4px;
    background-color: white;
    color: #e65100;
    font-size: 16px;
    cursor: pointer;
}

.radius-control select:focus {
    outline: none;
    border-color: #e65100;
}

@media (max-width: 768px) {
    .radius-control {
        width: 100%;
        justify-content: space-between;
    }
}

.current-location-marker {
    font-size: 25px;
    text-align: center;
}

.mosque-marker {
    font-size: 25px;
    text-align: center;
}

.results-count {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #fff3e0;
    border-radius: 4px;
    color: #e65100;
    font-weight: bold;
    text-align: center;
}

.loading {
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    background-color: #fff3e0;
    border-radius: 4px;
    color: #e65100;
}

.loading.error {
    background-color: #ffebee;
    color: #c62828;
}
