body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; 
}

#map { height: 100%; width: 100%; z-index: 1; }

/* Buttons */
.fab-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #ff69b4; color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer; z-index: 1000;
    transition: transform 0.2s;
}
.fab-btn:active { transform: scale(0.95); }

.map-control-btn {
    position: fixed; bottom: 105px; right: 38px;
    width: 44px; height: 44px;
    background-color: white; color: #333;
    border: none; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer; z-index: 1000;
}

/* Lightbox Carousel */
#lightboxOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

#lightboxImage {
    max-width: 95%; max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer; z-index: 3002;
}

.lb-control {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); color: white;
    border: none; padding: 15px; font-size: 24px; cursor: pointer;
    border-radius: 50%; transition: background 0.2s;
}
.lb-control:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

#lightboxCaption {
    color: #ccc; margin-top: 15px; font-size: 14px;
}

#lbPlay {
    margin-top: 10px; font-size: 20px; background: none; border: 1px solid #666;
    color: #fff; padding: 5px 15px; border-radius: 20px; cursor: pointer;
}
#lbPlay.active { background: #ff69b4; border-color: #ff69b4; }

/* Modal */
#uploadOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
}
.upload-card {
    background: white; padding: 24px; border-radius: 16px;
    width: 85%; max-width: 400px; text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh; overflow-y: auto;
}
.hidden { display: none !important; }

/* Nearby Tree Alert */
.nearby-alert {
    background: #fdf0f6; border: 1px solid #ff69b4;
    border-radius: 8px; padding: 10px; margin: 15px 0; text-align: left;
}
.nearby-header { font-weight: bold; color: #d63384; font-size: 13px; margin-bottom: 8px; }
.nearby-content { display: flex; align-items: center; gap: 10px; }
.nearby-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.nearby-info { font-size: 12px; flex-grow: 1; }
.nearby-options label { display: block; margin-top: 2px; cursor: pointer; }

/* Popup Slideshow */
.tree-popup { text-align: center; min-width: 160px; }
.slideshow-container {
    position: relative; width: 160px; height: 120px; margin: 0 auto 8px;
    border-radius: 6px; overflow: hidden; background: #eee; cursor: zoom-in;
}
.slideshow-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: opacity 1s ease-in-out;
}
.tree-popup .meta { font-size: 12px; color: #666; margin-bottom: 8px; }
.lightbox-btn {
    background: #ff69b4; color: white; border: none;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    text-transform: uppercase;
}

/* Color Selector */
.color-selector { margin: 15px 0; }
.color-options { display: flex; justify-content: center; gap: 15px; }
.color-option { display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
.color-option input { position: absolute; opacity: 0; cursor: pointer; }
.swatch {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 4px;
}
.pink-swatch { background-color: #ff69b4; }
.white-swatch { background-color: #ffffff; }
.purple-swatch { background-color: #9c27b0; }
.multi-swatch { background: linear-gradient(135deg, #ff69b4, #ffffff, #9c27b0); }
.color-option input:checked + .swatch { transform: scale(1.1); border-color: #333; }
.label-text { font-size: 11px; color: #666; }

/* Quote */
.quote-text { font-family: Georgia, serif; font-style: italic; font-size: 16px; color: #444; margin-bottom: 5px; }
.quote-source { font-size: 11px; color: #888; }
.quote-source a { color: #ff69b4; text-decoration: none; }

#imagePreview { max-width: 100%; max-height: 200px; border-radius: 8px; margin: 15px 0; object-fit: cover; }
.button-group { display: flex; gap: 10px; margin-top: 15px; flex-direction: column; }
.primary-btn { background-color: #ff69b4; color: white; padding: 12px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; }
.primary-btn:disabled { background-color: #f8bbd0; cursor: not-allowed; }
.secondary-btn { background-color: #f0f0f0; color: #333; padding: 12px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; }
.secondary-btn:disabled { color: #999; cursor: not-allowed; }
.cancel-text-btn { background: none; border: none; color: #666; margin-top: 15px; font-size: 14px; cursor: pointer; text-decoration: underline; }