/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Header styles */
.header {
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Map container */
.container {
    position: relative;
    height: calc(100vh - 60px);
}

#map {
    width: 100%;
    height: 100%;
}

/* Location status */
.location-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Category filters */
.category-filters {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filters-header h4 {
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.2;
}

.filter-options input[type="checkbox"] {
    margin-top: 3px; /* Align checkbox with first line of text */
}

/* Add these new styles for the label text */
.filter-options label span {
    display: inline-block;
    padding-top: 2px;
}

/* Form styles */
#location-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Button styles */
.mobile-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.submit-button,
.cancel-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
}

.cancel-button {
    background-color: #f44336;
    color: white;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .category-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        border-radius: 0;
        transition: left 0.3s ease;
    }

    .category-filters.show {
        left: 0;
    }

    .mobile-only {
        display: block;
    }

    #location-form {
        width: 95%;
        max-height: 90vh;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-only,
    #filter-toggle {
        display: none;
    }
}
