﻿
/*/////////Filter for Citizen Science Project////////////*/
.filters {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 20px;
    font: normal normal 400 1rem / 1.5rem arial, sans-serif !important;
}

.filter-group h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 0;
}

.filter-options label.select-all {
    font-weight: bold;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

/* Accordion Styles */
.accordion-section {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-toggle {
    background-color: initial;
    border: none;
    color: var(--c-d);
    cursor: pointer;
    display: block;
    font: var(--f-m);
    padding: var(--s-s);
    position: relative;
    text-align: start;
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
}

    .accordion-toggle:hover {
        background-color: #e9ecef;
    }

    .accordion-toggle.active {
        background-color: #e9ecef;
    }

    .accordion-toggle i {
        margin-right: 10px;
        color: #4CAF50;
    }

.accordion-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.3s;
}

.accordion-toggle.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.accordion-content-inner {
    padding: 15px;
}

/* Species card adjustments */
.species-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.species-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
    flex-wrap: wrap;
}

    .species-meta span {
        background: #f0f0f0;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 14px;
        color: #555;
    }

.species-photos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

    .species-photos img {
        max-width: 200px;
        max-height: 150px;
        border-radius: 4px;
        object-fit: cover;
    }
     

.results {
    flex: 1;
}

.result-count {
    margin-bottom: 15px;
    font-weight: bold;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}
.project-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.project-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 5px 0;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 20px;
}

.filter-options::-webkit-scrollbar {
    width: 5px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.species-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-container {
    position: relative;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.species-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-grid-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 9/16 = 0.5625 */
    overflow: hidden;
}

.grid-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .grid-thumbnail:hover {
        transform: scale(1.05);
    }
.photo-meta {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    background: white;
}

.photo-credit {
    color: #666;
    text-align: right;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-more-btn {
    margin: 1rem auto 0;
    display: block;
}

.gallery-thumbnail {
    cursor: pointer;
    transition: transform 0.2s;
}

    .gallery-thumbnail:hover {
        transform: scale(1.02);
    }

/* Species Header Styles */
.species-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.main-species-image {
    flex: 0 0 200px;
}

.featured-species-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.species-title {
    flex: 1;
}

.species-meta p {
    margin: 0.3rem 0;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .species-header {
        flex-direction: column;
    }

    .main-species-image {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    .featured-species-image {
        max-height: none;
    }
}