/* Base styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Modal image viewer */
.image-modal {
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s;
}

.image-modal img {
    transition: transform 0.3s ease;
    animation: scaleIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Map styles */
#map {
    height: 100vh; /* Takes up 100% of the viewport height */
    width: 100%;
}

/* Custom marker styles */
.custom-marker {
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

.custom-marker img {
    transition: all 0.3s ease;
}

/* Vote button styles */
.vote-btn {
    transition: all 0.2s ease;
}

.vote-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vote-btn.voted {
    animation: pulse 0.5s ease;
}

.report-btn:hover {
    color: #666 !important;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545; /* A common red color for delete actions */
    cursor: pointer;
    font-size: 1.2em; /* Adjust as needed */
    padding: 5px;
    /* Removed margin-left as it's applied inline in JS for now */
}
.delete-btn:hover {
    color: #c82333; /* Darker red on hover */
    transform: scale(1.1); /* Add a little hover effect like other buttons */
}

.map-filters .filter-info {
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Add content button styles */
#add-content-button button {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#add-content-button button:hover {
    background-color: #3367d6;
    transform: scale(1.05);
}

/* Add content form styles */
#add-content-form {
    display: none;
    position: absolute;
    bottom: 90px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 300px;
}

#add-content-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

#add-content-form input[type="file"] {
    width: 100%;
    margin: 10px 0;
}

#add-content-form button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

#add-content-form button:first-of-type {
    background-color: #f5f5f5;
}

#add-content-form button:last-of-type {
    background-color: #4CAF50;
    color: white;
}

/* Loading indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4285F4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Context Menu Styles */
#custom-context-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
    padding: 5px;
    z-index: 10000; /* Ensure it's above other elements, especially the map */
    min-width: 150px; /* Give it some default width */
}

#custom-context-menu div { /* Style for items within the context menu */
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

#custom-context-menu div:hover {
    background-color: #f0f0f0;
}

.user-info-bar {
    position: fixed;
    top: 10px;
    right: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 1000;
}
.user-info-bar span {
     margin-right: 15px;
}
.user-info-bar a {
    color: #007bff;
    text-decoration: none;
}
.user-info-bar a:hover {
    text-decoration: underline;
}
.user-info-bar span + a,
.user-info-bar a + a {
    margin-left: 15px;
}
