.dog-search-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.search-input-wrapper, .search-select-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    z-index: 2;
}

.dog-search-container input,
.dog-search-container select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    appearance: none; /* Quita flecha nativa para personalizar */
}

.dog-search-container input {
    padding-left: 45px; /* Espacio para el icono */
}

/* Flecha custom para los selects */
.search-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 12px;
}

.dog-search-container select:required:invalid { color: #888; }
.dog-search-container select option { color: #333; }

.dog-search-container input:focus,
.dog-search-container select:focus {
    outline: none;
    border-color: #D74709;
    box-shadow: 0 0 0 4px rgba(215, 71, 9, 0.1);
}

.dog-results-container {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* --- TÍTULOS DE SECCIÓN --- */
.glp-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.glp-section-title i {
    color: #D74709;
    font-size: 20px;
}

/* --- TARJETAS DE CRIADERO --- */
.glp-kennels-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dashed #ddd;
}
.glp-kennel-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.glp-kennel-card:hover {
    border-color: #D74709;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(215, 71, 9, 0.08);
}
.glp-kennel-card img {
    width: 55px; height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #f5f5f5;
}
.glp-kennel-info {
    flex-grow: 1;
}
.glp-kennel-info h4 {
    margin: 0 0 4px 0;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}
.glp-kennel-info span {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.glp-kennel-arrow {
    color: #ccc;
    font-size: 14px;
    transition: 0.3s;
}
.glp-kennel-card:hover .glp-kennel-arrow {
    color: #D74709;
    transform: translateX(3px);
}

/* --- TABLA / LISTA DE PERROS --- */
.dog-results-header {
    display: flex;
    justify-content: space-between;
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.dog-results-header div {
    flex: 1;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.col-name { flex: 2; }
.col-sex { flex: 0.8; }
.col-dob { flex: 1.2; }
.col-height { flex: 1; }
.col-weight { flex: 1; }
.col-breed { flex: 1.5; text-align: right; }

.dog-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.dog-result:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #D74709;
    transform: translateY(-2px);
}
.dog-result img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.dog-result div {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}
.dog-result .col-name {
    font-weight: 700;
    color: #111;
}
.dog-result .col-breed {
    justify-content: flex-end;
}

.dog-breed-badge {
    background-color: #f5f5f5;
    color: #555;
    padding: 5px 12px 5px 5px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}
.dog-breed-badge img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 8px;
    border: none;
    box-shadow: none;
}
.dog-result:hover .dog-breed-badge {
    background-color: #D74709;
    color: #fff;
}

/* --- PAGINACIÓN --- */
#dog-pagination {
    margin-top: 40px;
    text-align: center;
}
.dog-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    cursor: pointer;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.dog-pagination-link:hover {
    background-color: #f5f5f5;
    color: #111;
    border-color: #ccc;
}
.dog-pagination-link.active {
    background-color: #D74709;
    color: #fff;
    border-color: #D74709;
}

/* --- ESTILOS RESPONSIVE --- */
@media (max-width: 900px) {
    .dog-search-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dog-results-header {
        display: none;
    }
    .dog-result {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .dog-result div {
        width: 100%;
        margin-bottom: 10px;
        flex: 1;
        justify-content: flex-start;
    }
    .dog-result .col-name {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .dog-result .col-name img {
        width: 45px;
        height: 45px;
    }
    .dog-result .col-sex::before { content: "Sexo: "; font-weight: 700; color: #888; margin-right: 5px; }
    .dog-result .col-dob::before { content: "Nacimiento: "; font-weight: 700; color: #888; margin-right: 5px; }
    .dog-result .col-height::before { content: "Altura: "; font-weight: 700; color: #888; margin-right: 5px; }
    .dog-result .col-weight::before { content: "Peso: "; font-weight: 700; color: #888; margin-right: 5px; }
    .dog-result .col-breed {
        justify-content: flex-start;
        margin-top: 10px;
        margin-bottom: 0;
    }
    .dog-result .col-breed::before { content: "Raza: "; font-weight: 700; color: #888; margin-right: 5px; }
}
