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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1000;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 360px;
    height: 120px;
    object-fit: contain;
}

.loading-logo-image {
    width: 360px;
    height: 120px;
    object-fit: contain;
}


.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.btn:hover {
    background: #000000;
    color: #ffffff;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    height: calc(100vh - 60px);
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}


.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Filter Panel */
.filter-panel {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-header h2 {
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    background: #f0f0f0;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #e0e0e0;
    padding: 0;
    transition: color 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #FFD700;
}

.rating-value {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    margin-left: 8px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid #ffffff;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.filter-actions .btn {
    flex: 1;
}

/* Submission Panel */
.submission-panel {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.form-header h2 {
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.rating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.rating-item label {
    font-weight: 600;
    font-size: 12px;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    flex: 1;
}

/* Messages */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.message.success {
    background: #4CAF50;
    color: white;
}

.message.error {
    background: #ff4444;
    color: white;
}

/* Restroom Modal */
.restroom-modal {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    margin: 0;
}

.modal-content p {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.modal-ratings {
    margin: 20px 0;
}

.modal-ratings .rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-ratings .rating-item span {
    font-weight: 600;
    font-size: 14px;
}

.modal-comments {
    margin-top: 20px;
}

.modal-comments h3 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.modal-comments .comment {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}

.add-comment {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.add-comment input {
    flex: 1;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.add-comment button {
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.add-comment button:hover {
    background: #333333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .rating-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-panel,
    .submission-panel,
    .restroom-modal {
        margin: 10px;
        max-width: none;
    }
}

/* Hide elements */
.hidden {
    display: none !important;
}
