.accordion-item {
    border-bottom: none !important; /* Remove all borders */
}
.accordion-item:last-of-type {
    border-bottom: 1px solid!important; /* Remove all borders */
}
.accordion-header {
    border: none !important; /* Remove header borders */
}
/* Add a top border to other items if needed */
.accordion-item:not(:first-of-type) {
    border-top: 1px solid #dee2e6 !important;
}

.pagination ul{
    margin-left: 0px !important;
     list-style: none !important;
    padding-left:0px !important;
}
.acc-img{
    display:flex;
}
.accAnimalLink:focus{
    border:solid black 2px !important;
    /* float: right; */
    /* z-index: 999999999; */
    position: relative;
    display: block;
}
.filter-pills-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sort-dropdown {
    margin-left: auto;
}
.filter-section {
    display: none;
}
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    display: none;
}
.filter-overlay.show {
    display: block;
}
.filter-button {
    display: block;
}

/* Card container styling */
.card.custom-card {
    opacity: 0; /* Start hidden */
}
.custom-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

/* Heart Icon Styling */
.heart-icon:focus{
    border:solid 3px black;
}
.heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: white;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon:hover svg {
    color: #dc6a6a;
}

.heart-icon-active svg{
    color: #dc6a6a;
}
.removeFav{
    background-color: rgba(0, 0, 0, 0);
    padding: 0px !important;
    border: none;
}
.removeFav:focus{
    border:solid 2px black;
}

/* Card Image Section */
.card-img {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}
.card-img-sbs {
    position: relative;
    height: 300px;
    width: 50% !important;
    overflow: hidden;
}
/* Blurred Background */
.blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 0;
}

/* Foreground Image */
.foreground-img {
    position: relative;
    z-index: 1;
    max-height: 300px;
    width: auto;
    height: 100%; /* Ensures the image scales to fit */
    margin: auto;
    display: block;
    object-fit: contain; /* Keeps aspect ratio */
}

/* Details section styling */
.card-details {
    background: white;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    position: relative;

    z-index: 1;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.card-text {
    margin: 4px 0;
    color: #6c757d;
}
.svg-heart {
    width: 24px;
    height: 24px;
    fill: currentColor; /* Use current text color */
}

.counter-badge {
    font-size: 0.7rem;
    min-width: .9rem;
    height: .9rem;
    line-height: .9rem;
    padding: 0;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
}
/* Optionally, make the dropdown wider to accommodate the images */
.dropdown-menu {
    width: 350px; /* Increase the width of the dropdown to fit the images */
}
/* Ensure circular images and keep aspect ratio intact */
.dropdown-menu .acc-img {
    width: 75px;  /* Fixed width */
    height: 75px; /* Fixed height (same as width for a square container) */
    overflow: hidden;  /* Ensure content that exceeds the container is hidden */
    border-radius: 50%;  /* Make the container circular */
}
.favDropDown{

    margin-top:auto;
    margin-left:10px;
}

.favDropDown ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu .acc-img img {
    width: 100%;  /* Ensure image takes up full container width */
    height: 100%; /* Ensure image takes up full container height */
    object-fit: cover; /* Ensure the image covers the container and remains centered */
}
.detail-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.card-img {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
}

.blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 0;
}

.foreground-img {
    position: relative;
    z-index: 1;
    max-height: 500px;
    width: auto;
    height: 100%;
    margin: auto;
    display: block;
    object-fit: contain;
}

.card-details {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    z-index: 1;
    border-solid:red;
}

.heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: white;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.heart-icon:hover svg {
    color: red;
}

/* Grid Styling for Animal Info */
.animal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.animal-info div {
    padding: 10px;
    border-radius: 5px;
    background: #f8f9fa;
}

.sfbox{
    margin-top:10px;
    display:flex;
}
@media (max-width: 768px) {
    .animal-info {
        grid-template-columns: 1fr;
    }
    .mobile100{
           width:100% !important;
       }
    .filter-pills .btn{
        width: 100%;
        margin-right:0px !important;
    }
    .filterUpdate{
        display:block;
    }
    .pagination{
        justify-content: center;
    }
}
@media (min-width: 768px) {

    .filter-section {
        display: block;
    }
    .filter-overlay {
        display: none !important;
    }
    .filter-button {
        display: none;
    }
    .filterUpdate{
        display:none;
    }


}

/* Add a skeleton loader */
/* Skeleton Style */
.skeleton {
    background-color: #f4f4f4;
    opacity: 1;
}

.skeleton-element {
    background-color: #e0e0e0;
    margin: 10px 0;
    border-radius: 4px;
}

/* Heart Icon Skeleton */
.heart-icon.skeleton-element {
    width: 24px;
    height: 24px;
    margin: 10px auto;
    border-radius: 50%;
}

/* Card Image Skeleton */
.card-img .blurred-bg.skeleton-element {
    height: 200px;
    background-color: #d3d3d3;
}

.card-img .foreground-img.skeleton-element {
    height: 200px;
    background-color: #d3d3d3;
}

/* Title and Subtitle Skeleton */
.card-details h1.skeleton-element,
.card-details h2.skeleton-element {
    width: 100%;
    height: 25px;
    background-color: #d3d3d3;
    margin: 10px 0;
}

/* Animal Info Table Skeleton */
.animal-info .skeleton-element {
    width: 100%;
    height: 20px;
    background-color: #d3d3d3;
    margin: 5px 0;
}

/* Animation for Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.skeleton-element {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
/* Card Title Skeleton */
.card-details h5.skeleton-element {
    width: 60%;
    height: 25px;
    background-color: #d3d3d3;
    margin: 10px 0;
}

/* Card Text Skeleton */
.card-details p.skeleton-element {
    width: 90%;
    height: 20px;
    background-color: #d3d3d3;
    margin: 5px 0;
}

