/* Search Animals Widget */
.ecfya-search-animals-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.ecfya-search-box {
    position: relative;
    max-width: 100%;
}

.ecfya-search-input {
    width: 100%;
    padding: 12px 42px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ecfya-search-input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.15);
}

.ecfya-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    line-height: 0;
}

.ecfya-search-clear {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}

.ecfya-search-clear:hover {
    color: #333;
}

.ecfya-search-spinner {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: ecfya-spin 0.6s linear infinite;
}

@keyframes ecfya-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Results count */
.ecfya-search-results-count {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* Search result items inside the loop container */
.ecfya-search-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.13);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ecfya-search-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.ecfya-search-item .ecfya-search-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* Image — override global .loop_image which has no height */
.ecfya-search-item .loop_image {
    display: block;
    width: 100%;
    height: 298px;
    float: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

/* Card body — override global .entry-content and .detail_anim which have float/width for detail page */
.ecfya-search-item .ecfya-search-card-body {
    padding: 10px 15px;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    border: none;
    font-size: 13px;
}

/* Name — override global .ecfya-anim-name which is 60px for detail page */
.ecfya-search-item .ecfya-anim-name {
    font-family: "Humanae", sans-serif;
    font-size: 24px !important;
    line-height: 1.2;
    margin: 0 0 5px !important;
    color: #7A8069;
}

/* Rating */
.ecfya-search-item .ecfya-rating {
    margin-bottom: 5px;
}

.ecfya-search-item .ec-stars-wrapper {
    vertical-align: middle;
}

.ecfya-search-item .fix_star {
    font-size: 15px !important;
    cursor: default;
}

.ecfya-search-item .txt_scores {
    font-size: 10px;
}

.ecfya-search-item .txt_nrates {
    font-size: 10px;
}

/* Meta */
.ecfya-search-item .type_anim_ficha {
    font-size: 13px;
    color: rgb(122, 128, 105);
}

.ecfya-search-item .ecfya-w-content-anim {
    margin-bottom: 3px;
}

/* Taxonomy */
.ecfya-search-item .type_tag_ficha {
    font-size: 9px;
}

.ecfya-search-item .ecfya-path-anim,
.ecfya-search-item .ecfya-path-anim:hover {
    color: #000;
}

.ecfya-search-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #666;
    grid-column: 1 / -1;
}

/* Pagination */
.ecfya-search-pagination {
    margin-top: 20px;
}

.ecfya-search-pagination {
    position: relative;
    z-index: 100;
}

.ecfya-search-pagination .page-numbers {
    cursor: pointer;
    pointer-events: auto;
}

.elementor-pagination .page-numbers.current {
    color: #1a0a00 !important;
    font-weight: 700;
}
