/* Frontend Styles for Tree Planting Locations Plugin */

/* Page Container */
.tpl-my-locations-page {
    margin: 0;
    padding: 0;
}

/* Page Header */
.tpl-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.tpl-page-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.tpl-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Empty State */
.tpl-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tpl-empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.tpl-empty-state h2 {
    margin: 0 0 15px;
    color: #333;
    font-size: 28px;
}

.tpl-empty-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Map Wrapper */
.tpl-map-wrapper {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tpl-locations-map {
    height: 500px;
    width: 100%;
}

/* Map Markers */
.tpl-tree-marker-frontend {
    background: transparent;
    border: none;
}

.tpl-marker-inner {
    font-size: 35px;
    animation: tpl-bounce 2s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes tpl-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tpl-marker-inner:hover {
    transform: scale(1.2) !important;
    animation: none;
}

/* Popup Styles */
.tpl-popup {
    min-width: 250px;
}

.tpl-popup-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #46b450;
    font-weight: 700;
}

.tpl-popup-description {
    margin: 0 0 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.tpl-popup-meta {
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.tpl-popup-meta p {
    margin: 5px 0;
}

.tpl-popup-meta a {
    color: #46b450;
    text-decoration: none;
    font-weight: 600;
}

.tpl-popup-meta a:hover {
    text-decoration: underline;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpl-page-header h2 {
        font-size: 24px;
    }
    
    .tpl-subtitle {
        font-size: 16px;
    }
    
    .tpl-locations-map {
        height: 350px;
    }
}

/* Loading Animation */
.tpl-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tpl-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #46b450;
    border-radius: 50%;
    animation: tpl-spin 1s linear infinite;
}

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

/* Accessibility */
.leaflet-popup-content a:focus {
    outline: 3px solid #46b450;
    outline-offset: 2px;
}
