/* Public Plantation Styles */
.public-plantation-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #137f4d;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.media-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.gallery-item:hover .video-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.media-container img, .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(19, 127, 77, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.media-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-content {
    padding: 20px;
}

.gallery-content h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-content .location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.gallery-content .species {
    font-size: 0.85rem;
    color: #137f4d;
    background: rgba(19, 127, 77, 0.1);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
}

.submission-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #137f4d;
    box-shadow: 0 0 0 3px rgba(19, 127, 77, 0.1);
}

.btn-submit {
    background: #137f4d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #094127;
    transform: scale(1.05);
    color: #fff;
    
}

.media-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.media-upload-area h5{
    color: #137f4d;
    font-size: 0.8rem;
}

.media-upload-area:hover {
    border-color: #137f4d;
    background: rgba(19, 127, 77, 0.02);
}

.media-upload-area i {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 10px;
}

#media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading Overlay */
#form-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


/* Responsive Adj */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .submission-form-container {
        padding: 25px;
    }
}


/* Remove focus outline from map paths */
path.leaflet-interactive:focus {
    outline: none !important;
}

/* Global Progress Bar Styles */
.global-progress-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #89c235;
}

.global-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.global-progress-header h6 {
    color: #137f4d;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.global-progress-container {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.global-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #137f4d, #89c235);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.activty {
    padding: 15px 30px !important;
}

.global-percentage-badge {
    background: #127e4d33;
    color: #127e4df5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ff4d4d;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.statistics-card {
    height: 100%;
    transition: all 0.3s ease;
}

.statistics-card:hover {
    transform: translateY(-5px);
}

.typed-cursor {
    display: none;
}

/* tree */
#logo_animation{
    width: 500px;
    height: 500px;
}
#logo_animation path {
    animation: fadeInPath 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

@keyframes fadeInPath {
    from {
        opacity: 0;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }

    to {
        opacity: 1;
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

.progress-list {
    list-style: none;
    padding: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #89c235;
    border-radius: 16px;
}

.progress-list li {
    padding: 8px 10px;
}

.progress-list li h6 {
    font-size: 0.9rem;
    color: #137f4d;
    font-weight: 500;
}

.progress-list li .global-progress-labels {
    display: flex;
    justify-content: end;
}

.progress-list li .global-progress-labels span {
    font-size: 0.7rem;
    color: #666;
}

.heading {
    font-size: 2rem;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Social Share Buttons */
.share-container {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #000000; }
.share-btn.facebook { background: #1877F2; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* Post Detail Carousel Styles */
#mediaCarousel {
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

#mediaCarousel .carousel-item {
    height: 500px;
}

#mediaCarousel .post-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#mediaCarousel .carousel-control-prev,
#mediaCarousel .carousel-control-next {
    width: 10%;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

#mediaCarousel:hover .carousel-control-prev,
#mediaCarousel:hover .carousel-control-next {
    opacity: 1 !important;
}

#mediaCarousel .carousel-control-prev-icon,
#mediaCarousel .carousel-control-next-icon {
    background-color: rgba(19, 127, 77, 0.8);
    border-radius: 50%;
    background-size: 60%;
    width: 45px;
    height: 45px;
}

#mediaCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #fff;
    border: 2px solid #137f4d;
    opacity: 0.5;
}

#mediaCarousel .carousel-indicators .active {
    opacity: 1;
    background-color: #137f4d;
}
