/* ============================================
   BÚSQUEDA — Página de resultados
============================================ */
.atlas-search-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.atlas-search-header {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    border-radius: 18px;
    padding: 48px 40px 44px;
    margin: 30px 0 40px;
    text-align: center;
    color: #fff;
}
.atlas-search-icon { font-size: 2.5rem; margin-bottom: 12px; }
.atlas-search-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff;
}
.atlas-search-term { color: #95d5b2; }
.atlas-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    gap: 0;
    position: relative;
}
.atlas-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, background .2s;
}
.atlas-search-input::placeholder { color: rgba(255,255,255,.6); }
.atlas-search-input:focus {
    border-color: #95d5b2;
    background: rgba(255,255,255,.18);
}
.atlas-search-btn {
    padding: 14px 28px;
    background: #52b788;
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.atlas-search-btn:hover { background: #40916c; }

/* Grid de resultados */
.atlas-search-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) { .atlas-search-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .atlas-search-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .atlas-search-grid { grid-template-columns: 1fr; } }
.atlas-search-grid .animal-card-cat {
    font-size: .8rem;
    color: #52b788;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

/* Paginación */
.atlas-search-pagination {
    text-align: center;
    margin-top: 40px;
}
.atlas-search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: #f0f7f4;
    color: #1b4332;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
}
.atlas-search-pagination .page-numbers.current,
.atlas-search-pagination .page-numbers:hover {
    background: #1b4332;
    color: #fff;
}

/* Sin resultados */
.atlas-no-results {
    text-align: center;
    padding: 40px 0;
}
.atlas-no-results-icon { font-size: 4rem; margin-bottom: 16px; opacity: .4; }
.atlas-no-results h2 {
    font-size: 1.4rem;
    color: #1b4332;
    margin-bottom: 8px;
}
.atlas-no-results p { color: #555; margin-bottom: 30px; }
.atlas-no-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 700px) { .atlas-no-results-grid { grid-template-columns: repeat(2, 1fr); } }
.atlas-cat-card .animal-card-img-placeholder { aspect-ratio: 1; font-size: 3rem; }

/* ============================================
   BÚSQUEDA EN VIVO — Dropdown
============================================ */
.atlas-ls-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    z-index: 99999;
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-top: none;
}
.atlas-ls-loading,
.atlas-ls-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: .95rem;
}
.atlas-ls-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.atlas-ls-item:hover {
    background: #f0f7f4;
    text-decoration: none;
    color: inherit;
}
.atlas-ls-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8f5e9;
}
.atlas-ls-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.atlas-ls-info { flex: 1; min-width: 0; }
.atlas-ls-title {
    font-weight: 700;
    font-size: .95rem;
    color: #1b4332;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.atlas-ls-excerpt {
    font-size: .82rem;
    color: #777;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.atlas-ls-viewall {
    display: block;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    color: #52b788;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background .15s;
}
.atlas-ls-viewall:hover {
    background: #f0f7f4;
    color: #40916c;
    text-decoration: none;
}

/* Fix para que el dropdown del header funcione bien */
.ast-search-menu-icon .search-form { position: relative; }
