﻿
.species_container {
    display: flex;
    align-items: flex-start;
    padding: 8% 40px 40px 2%;
    gap: 40px;
}

/* Fixed scroll container */


    /* Card styling (if not already defined) */
    #speciesContent .card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

        #speciesContent .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* LEFT PANEL */
.sidebar {
    width: 352px;
}

    .sidebar h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .sidebar p {
        color: #666;
        margin-bottom: 20px;
    }

.taxonomy h3 {
    margin-bottom: 15px;
}

.taxonomy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taxonomy li {
    margin-bottom: 10px;
    color: #0b5ed7;
    cursor: pointer;
}


.content-wrapper {
    flex: 1;
    padding: 1% 0px 0px 10%;
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: flex-start;
}



.card {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;


}

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    }

.card-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    z-index: 2;
}

    .card-info small {
        font-style: italic;
        opacity: 0.85;
    }

    .card-info h4 {
        margin: 5px 0 0;
        font-size: 16px;
    }


/*   birds Dropdown*/
.taxonomy-item {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.birds-dropdown {
    display: none;
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-left: 10px;
}

.bird-row {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #fff;
    font-size: 14px;
}

.common {
    font-weight: 500;
}

.scientific {
    font-style: italic;
    color: #555;
}


.species-chip {
    background: #dbe7ea;
    color: #004b5f;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

    .species-chip em {
        font-style: italic;
        margin-left: 4px;
    }

    .species-chip .remove {
        margin-left: 8px;
        cursor: pointer;
        font-weight: bold;
    }


/*Amphibians*/
.species-dropdown {
    display: none;
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-left: 10px;
}


/*    searchbox*/


.search-box {
    position: relative;
    margin-bottom: 30px;
}

    .search-box input {
        width: 100%;
        padding: 12px 40px 12px 15px;
        border-radius: 30px;
        border: 1px solid #ddd;
        font-size: 15px;
    }

    .search-box span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #888;
    }



.search-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

    .search-item:hover {
        background: #f3f8fa;
    }

    .search-item .title {
        font-weight: 600;
    }

    .search-item .subtitle {
        font-style: italic;
        color: #666;
        font-size: 13px;
    }



/*    responsive ness*/

@media (min-width: 1500px) and (max-width: 1800px) {
    .species_container {
        display: flex;
        align-items: flex-start;
        padding: 18% 40px 40px 2%;
        gap: 40px;
    }
}
@media (min-width: 1200px) and (max-width: 1500px) {
    .species_container {
        display: flex;
        align-items: flex-start;
        padding: 18% 40px 40px 2%;
        gap: 40px;
    }
    
}


@media (min-width: 600px) and (max-width: 1200px) {
    .species_container {
        display: flex;
        align-items: flex-start;
        padding: 18% 40px 40px 2%;
        gap: 40px;
    }
   
}
